]> granicus.if.org Git - php/commitdiff
- Change bison check to positive logic and allow bison 2.0
authorMarcus Boerger <helly@php.net>
Sat, 23 Apr 2005 11:30:11 +0000 (11:30 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 23 Apr 2005 11:30:11 +0000 (11:30 +0000)
acinclude.m4

index 27525bea14b7cb95a8e4d2d10094eb7e87e9f13e..b90c6dafb2a351f5e4d1adfd059184435ad2e7ba 100644 (file)
@@ -1936,10 +1936,10 @@ AC_DEFUN([PHP_PROG_BISON], [
   if test "$YACC" = "bison -y"; then
     AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
       set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'|tr -d a-z`
-      if test "${1}" -ne "1" -o "(" "${2}" != "28" -a "${2}" != "35" -a "${2}" != "75" -a "${2}" != "875" ")"; then 
-        php_cv_bison_version=invalid
-      else
+      if test "(" "${1}" = "1" -a "(" "${2}" = "28" -o "${2}" = "35" -o "${2}" = "75" -o "${2}" = "875" ")" ")" -o "(" "${1}" = "2" -a "(" "${2}" = "0" ")" ")"; then
         php_cv_bison_version="${1}.${2} (ok)"
+      else
+        php_cv_bison_version=invalid
       fi
     ])
   fi