Fix build if yacc is missing

This commit is contained in:
Nirgal Vourgère
2013-06-28 20:07:44 +02:00
parent 8f0f167ab2
commit 7a1637982c
3 changed files with 8 additions and 2 deletions

View File

@@ -53,13 +53,15 @@ AC_MSG_RESULT( no - SQL engine disable);
sql=false
fi
if test "x$YACC" = "x"; then
if ! which $YACC > /dev/null; then
sql=false
fi
if test "x$sql" = "xtrue"; then
CFLAGS="$CFLAGS -DSQL"
OPTDIRS="$OPTDIRS sql"
else
AC_MSG_WARN([Yacc is not available: SQL disabled.])
fi
AM_CONDITIONAL(SQL, test x$sql = xtrue)