configure.ac: Don't require flex unless we need it

We need it when we don't have the flex-generated files (i.e., we're
building from git rather than a ("make dist") source tarball).

Change-Id: I824ce4b7f2a8f767e096de050cb3cd0b0449ed62
Reviewed-on: https://code.wireshark.org/review/15423
Reviewed-by: João Valverde <j@v6e.pt>
This commit is contained in:
João Valverde 2016-05-14 05:38:27 +01:00 committed by João Valverde
parent 1c842bc125
commit a8537e07ac
1 changed files with 8 additions and 6 deletions

View File

@ -176,13 +176,15 @@ AS_IF([$YACC -V >/dev/null 2>&1],
[AC_MSG_RESULT(no)
AS_IF([test ! -f wiretap/ascend.c],
AC_MSG_ERROR([I couldn't find yacc (or bison or ...); make sure it's installed and in your path]))])
dnl AM_MISSING_PROG(YACC, bison)
AC_PROG_LEX
AS_IF([test "x$LEX" != xflex],
[AS_UNSET(LEX)
AS_IF([test ! -f wiretap/ascend_scanner.c],
AC_MSG_ERROR(I couldn't find flex; make sure it's installed and in your path))])
AM_MISSING_PROG(LEX, flex)
AM_PROG_LEX
AC_PATH_PROG(LEX, flex)
if test "x$LEX" = x
then
AC_MSG_ERROR(I couldn't find flex; make sure it's installed and in your path)
fi
AC_PATH_PROG(POD2MAN, pod2man)
if test "x$POD2MAN" = x
then