Closed GoogleCodeExporter closed 8 years ago
hm, looks like 2.5.4 is not recent at all, sorry for the noise.
Original comment by neuhau...@sigpipe.cz
on 30 Aug 2009 at 9:25
attached patch allows flex selection at confiugre time
this is needed on systems with an old flex early in the path, such as freebsd
(/usr/bin/flex 2.5.4 precedes /usr/local/bin/flex 2.5.35)
LEX=/usr/local/bin/flex ./configure ...
Original comment by neuhau...@sigpipe.cz
on 30 Aug 2009 at 10:28
Attachments:
Yeah, flex 2.5.4 is an ancient version.
Unfortunately, the suggested patch won't work, because AC_PROG_LEX might pick
up lex
if flex isn't available. Instead I just added variables BISON and FLEX for
bison and
flex to the Makefile now, so that you can set these when invoking 'make'.
Fixed in r2160.
Original comment by aggraef@gmail.com
on 30 Aug 2009 at 9:16
I'm afraid this won't save you from occasional bug report just like this one.
AC_PROG_LEX can be augmented with a subsequent test for version or required
feature.
current code lets you designate a particular flex install, but won't tell you your
choice was wrong (other than through failed build).
Original comment by neuhau...@sigpipe.cz
on 31 Aug 2009 at 7:08
Ok, I added configure checks for bison and flex in r2161. They're not 100%
foolproof,
but then flex and bison are normally only required if you build from svn
sources, and
so I don't want want configure to bail out if they're not installed.
To set the flex version you want to use, you can do this:
FLEX=/usr/local/bin/flex ./configure ...
Original comment by aggraef@gmail.com
on 31 Aug 2009 at 12:12
Original issue reported on code.google.com by
neuhau...@sigpipe.cz
on 30 Aug 2009 at 9:19