From: David Levine Date: Sat, 11 Jan 2014 04:49:24 +0000 (-0800) Subject: Reworked LFLAGS hack for flex 2.5.35 and 2.5.36 to work on X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c02008a6745dd5f135370d375ff58d9789a3f13b Reworked LFLAGS hack for flex 2.5.35 and 2.5.36 to work on Ubuntu. And use sed instead of ed. --- diff --git a/configure.ac b/configure.ac index 9b7bb49e..434efaac 100644 --- a/configure.ac +++ b/configure.ac @@ -503,11 +503,9 @@ dnl http://sourceforge.net/p/flex/bugs/140/ 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 $@; \ -true'], +'; sed -e "s/ int n;/ size_t n;/" $@ >$@.tmp && mv -f $@.tmp $@; true'], [flex\ 2.5.36], [LFLAGS=\ -'; printf "%s\n" '\''1,$$s/\( \)int i;/\1yy_size_t i;/'\'' w q | ed -s $@; \ -true']) +'; sed -s "s/\( \)int i;/\1yy_size_t i;/" $@ >$.tmp && mv -f $@.tmp $@; true']) AC_SUBST([LFLAGS])]) dnl ----------------