This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: flex -lfl


>>>>> "Sascha" == Sascha Ziemann <szi@aibon.ping.de> writes:

Sascha> - How can I check for flex and bison instead of lex and yacc?
Sascha> I use some flex/bison specific features, which would not work
Sascha> with lex/yacc.

Here's what I do:

# I want flex, and only flex
AM_PROG_LEX
if test "$LEX" = lex; then
  LEX="$missing_dir/missing flex"
  LEX_OUTPUT_ROOT=lex.yy
  AC_SUBST(LEX_OUTPUT_ROOT)dnl
fi

So that even if $LEX=lex, I don't run it.

        Akim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]