Fixed detection of flex and bison

This commit is contained in:
Olivier Teulière 2006-09-17 15:20:50 +00:00
parent 27822976c2
commit af99d00a7b

View file

@ -19,7 +19,13 @@ AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_YACC
if test "$YACC" = yacc; then
AC_MSG_ERROR([Could not find the 'bison' program on your system])
fi
AM_PROG_LEX
if test "$LEX" != flex; then
AC_MSG_ERROR([Could not find the 'flex' program on your system])
fi
dnl --------------------------------------------------------------
dnl Checks for compilation flags
@ -52,8 +58,6 @@ fi
dnl Regexp / Listdic / Compdic build enable
AC_ARG_ENABLE([dictools],AC_HELP_STRING([--enable-dictools],[build independant dictionary tools (default enabled)]))
AM_PROG_LEX
AC_PROG_YACC
AM_CONDITIONAL([BUILD_DICTOOLS], [test "${enable_dictools}" != "no"])
dnl --------------------------------------------------------------