]> granicus.if.org Git - php/commitdiff
cygwin ships with bison 1.875b, so we need to remove that b here
authorSascha Schumann <sas@php.net>
Sun, 13 Apr 2003 20:09:32 +0000 (20:09 +0000)
committerSascha Schumann <sas@php.net>
Sun, 13 Apr 2003 20:09:32 +0000 (20:09 +0000)
configure.in

index 35dcecabb5bd663ecda2afbc56ce441af5dddcff..9ccb986b937ef4e55fad5a64b5b6ff9ea68aef4c 100644 (file)
@@ -135,7 +135,7 @@ if test "$YACC" != "bison -y"; then
     AC_MSG_WARN([You will need bison if you want to regenerate the PHP parsers.])
 else
     AC_MSG_CHECKING([bison version])
-    set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'`
+    set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'|tr -d a-z`
     if test "${1}" = "1" -a "${2}" != "28" -a "${2}" != "35" -a "${2}" != "75"; 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