work around a bug in automake that caused configure to fall over if both flex

and lex were not on the system.
This commit is contained in:
Bill Currie 2001-02-03 06:47:14 +00:00
parent a12093fe1c
commit 9c0006efcd

View file

@ -279,3 +279,12 @@ main (int argc, char *argv[])
ifelse([$3], , :, [$3])
fi
])
dnl AM_PROG_LEX
dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
AC_DEFUN(AM_PROG_LEX,
[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
AC_PROG_LEX
AC_DECL_YYTEXT
])