bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling bison-3.0 on AIX 5.3


From: Paul Eggert
Subject: Re: compiling bison-3.0 on AIX 5.3
Date: Sat, 24 Aug 2013 18:24:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8

Michael Felt wrote:
> Neither system has flex installed - so I am surprised about the message.

Yes, that message is bogus.  To fix this I installed the following
in the Savannah maint branch.  Thanks for reporting it.

>From e1e2b8fb4037979d4b832fe8c41830d97488bbd0 Mon Sep 17 00:00:00 2001
From: Paul Eggert <address@hidden>
Date: Sat, 24 Aug 2013 18:22:22 -0700
Subject: [PATCH] build: don't require flex for ordinary builds

* configure.ac (LEX): Don't fail if this is lex, as flex is not
required for ordinary builds.  Instead, issue a warning and
substitute a no-op LEX.  Reported by Michael Felt in
<http://lists.gnu.org/archive/html/bug-bison/2013-08/msg00009.html>.
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index f7319a1..992e203 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,7 +175,10 @@ AC_SUBST([YACC_LIBRARY])
 # Checks for programs.
 AM_MISSING_PROG([DOT], [dot])
 AC_PROG_LEX
-$LEX_IS_FLEX || AC_MSG_ERROR([Flex is required])
+$LEX_IS_FLEX || test "X$LEX" = X: || {
+  AC_MSG_WARN([bypassing lex because flex is required])
+  LEX=:
+}
 AC_PROG_YACC
 AC_PROG_RANLIB
 AC_PROG_GNU_M4
-- 
1.7.11.7





reply via email to

[Prev in Thread] Current Thread [Next in Thread]