X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=configure.in;h=531c045f226776d9942a9fbce0e7acaf3717be30;hb=8e5976491f54c7db275880db1c6e29d4e7bf1dc6;hp=2532dfbe084575c399198c5ec824ec2283f3e045;hpb=10137fcff95f69185c8097c835c09127b1a75167;p=ircu2.10.12-pk.git diff --git a/configure.in b/configure.in index 2532dfb..531c045 100644 --- a/configure.in +++ b/configure.in @@ -143,10 +143,12 @@ AC_PATH_PROGS(SHPROG, sh, /bin/sh) dnl (F)LEX - needed for the new conf file parser AC_PROG_LEX dnl The autoconf docs say $LEX defaults to 'lex'. They lie. -if [ "$LEX" eq ":" ] ; then +if test "$LEX" = ":" ; then AC_MSG_ERROR([Cannot find flex.]) elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then - AC_MSG_ERROR([Cannot find flex.]) + : +else + AC_MSG_ERROR([Cannot use $LEX as flex.]) fi if test -z "$LEXLIB" ; then @@ -161,10 +163,12 @@ dnl YACC - ditto AC_PROG_YACC dnl The autoconf docs say $YACC defaults to 'yacc'. This seems to be true, dnl but judging from AC_PROG_LEX, it may not stay true. -if [ "$YACC" eq ":" ] ; then +if test "$YACC" = ":" ; then AC_MSG_ERROR([Cannot find yacc.]) elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then - AC_MSG_ERROR([Cannot find yacc.]) + : +else + AC_MSG_ERROR([Cannot use $YACC as yacc.]) fi