X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/af896e32dbefa9a9db3278f34d69828b31a3d0a2..27557508745259b8372fa2a59f9c5c38ac05dd19:/configure.ac?ds=inline diff --git a/configure.ac b/configure.ac index d5e4dad..0a11088 100644 --- a/configure.ac +++ b/configure.ac @@ -9,12 +9,12 @@ AC_LANG([C++]) AX_PROG_BISON([ BISON=`echo $YACC | $SED -e 's/ -y//'` BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'` -], [AC_MSG_ERROR([You need bison 2.4 or greater])]) +], [AC_MSG_ERROR([You need bison 2.3 or greater])]) AC_PROG_AWK -AC_MSG_CHECKING([if bison is >= 2.4]) -AS_VERSION_COMPARE([$BISON_VERSION], [2.4], [ +AC_MSG_CHECKING([if bison is >= 2.3]) +AS_VERSION_COMPARE([$BISON_VERSION], [2.3], [ AC_MSG_RESULT([no]) - AC_MSG_ERROR([You need bison 2.4 or greater]) + AC_MSG_ERROR([You need bison 2.3 or greater]) ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([yes])]) AC_SUBST([BISON]) AX_PROG_FLEX([ @@ -28,6 +28,7 @@ AS_VERSION_COMPARE([$FLEX_VERSION], [2.5.33], [ ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([yes])]) AC_SUBST([FLEX]) AC_CHECK_PROGS([_BASH], [bash]) +AC_ARG_VAR([GPERF], [perfect hash function generator]) AC_CHECK_PROGS([GPERF], [gperf]) AC_MSG_CHECKING([if gperf >= 3.0.3]) GPERF_VERSION=[`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'`]