Configure and test modification for better Freebsd port

This commit is contained in:
User Olof 2019-09-20 06:09:48 -10:00
parent fe1aeda4f2
commit 8c18f2a86d
12 changed files with 31 additions and 29 deletions

View file

@ -127,11 +127,11 @@ if test "$LEX" = ":"; then
fi
# Get "bison" from bison -y or other string
bisonstr=$(expr substr "$YACC" 1 5)
if test "$bisonstr" != "bison"; then
if test "$YACC" = "${YACC##bison}" ; then
AC_MSG_ERROR(CLIXON does not find bison. There are several problems with yacc and byacc. Please install bison. YACC="$YACC")
fi
# Hardcoded to bison -y, seems to work in all bisons?
YACC="bison -y"
if test "$prefix" = "NONE"; then
prefix=${ac_default_prefix}