X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/35622f9929d6c59f9a43a498ab6697287b2cd4a2..6a148103bee3eadc306623038e11ecbe9d3cf99b:/configure.ac?ds=inline diff --git a/configure.ac b/configure.ac index 7bb2024d..38e2a58b 100644 --- a/configure.ac +++ b/configure.ac @@ -559,14 +559,15 @@ LIBS="$nmh_save_LIBS" dnl ---------------- dnl CHECK FLEX FIXUP dnl ---------------- -dnl Use LFLAGS make variable setting to work around bug in flex -dnl 2.5.36 and .37 that causes signed/unsigned mismatch, +dnl Use LFLAGS make variable setting to work around bugs in flex +dnl 2.5.35-37 that cause signed/unsigned mismatch, dnl http://sourceforge.net/p/flex/bugs/140/ -flex -V AS_IF([test "$LEX" = flex], [AS_CASE([`$LEX -V`], + [flex\ 2.5.35], [[LFLAGS=\ +'; printf "%s\n" '\''1,$$s/(size_t) \(num_to_read\)/\1/'\'' w q | ed -s $@']], [flex\ 2.5.3@<:@67@:>@], [[LFLAGS=\ -'; flex -V; cp -p $@ $@.ORIGINAL; printf "%s\n" '\''1,$$s/\( \)int i;/\1yy_size_t i;/'\'' w q | ed -s $@; diff $@ $@.ORIGINAL || true']]) +'; printf "%s\n" '\''1,$$s/\( \)int i;/\1yy_size_t i;/'\'' w q | ed -s $@']]) AC_SUBST([LFLAGS])]) dnl --------------