From ecc0759032cb92e65ee1d54cf5db05c2dbf8e632 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sat, 29 Mar 2003 15:56:25 +0000 Subject: [PATCH] MFH(r-1.436): improved bison check; now configure accepts 1.28, 1.35 and 1.75 only. --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index ae7c50e596..2a6cb2d7da 100644 --- a/configure.in +++ b/configure.in @@ -136,8 +136,8 @@ if test "$YACC" != "bison -y"; then else AC_MSG_CHECKING([bison version]) set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'` - if test "${1}" = "1" -a "${2}" -lt "28"; then - AC_MSG_WARN(You will need bison 1.28 if you want to regenerate the Zend parser (found ${1}.${2}).) + if test "${1}" = "1" -a "(" "${2}" -lt "75" -a "${2}" -ne "28" -a "${2}" -ne "35" -o "${2}" -ge "875" ")"; then + AC_MSG_WARN(You will need bison 1.28, 1.35 or 1.75 if you want to regenerate the Zend parser (found ${1}.${2}).) fi AC_MSG_RESULT(${1}.${2} (ok)) fi -- 2.40.0