From c02008a6745dd5f135370d375ff58d9789a3f13b Mon Sep 17 00:00:00 2001 From: David Levine Date: Fri, 10 Jan 2014 20:49:24 -0800 Subject: [PATCH] Reworked LFLAGS hack for flex 2.5.35 and 2.5.36 to work on Ubuntu. And use sed instead of ed. --- configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ---------------- -- 2.56.0