mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
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:
parent
a12093fe1c
commit
9c0006efcd
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue