X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=configure.in;h=3244abcaee63f9fec2789dbc102dcdcab2b3064a;hb=aec8ef1ce79fb9cb0b12a07a2b156f91e5a6d68f;hp=7c5e5b760578a4aa49b27b5d89c412a52ad05a80;hpb=1deac559c3a369ab25efbd3c0fd13b3f296cb070;p=ircu2.10.12-pk.git diff --git a/configure.in b/configure.in index 7c5e5b7..3244abc 100644 --- a/configure.in +++ b/configure.in @@ -137,13 +137,34 @@ AC_PROG_AWK AC_PROG_MAKE_SET AC_PROG_INSTALL AC_PROG_LN_S -AC_PROG_LEX -AC_PROG_YACC AC_PATH_PROGS(RMPROG, rm, /bin/rm) AC_PATH_PROGS(SHPROG, sh, /bin/sh) +dnl (F)LEX - needed for the new conf file parser +AC_PROG_LEX +if test -x "$LEX" +then + AC_MSG_ERROR([Cannot find flex.]) +fi + +if test -z "$LEXLIB" +then + AC_MSG_FAILURE([ + Cannot find a library with yywrap() in, but flex was found. + It's possible the compiler you're using ($CC) is incompatible with the + installed library.]) +fi + LIBS="$LEXLIB $LIBS" +dnl YACC - ditto +AC_PROG_YACC +if test -z "$YACC" +then + AC_MSG_ERROR([Cannot find yacc.]) +fi + + unet_NONBLOCKING unet_SIGNALS