sniper          Sun Oct 27 14:47:34 2002 EDT

  Modified files:              
    /php4/build buildcheck.sh 
  Log:
  We have to require bison version <= 1.30 >= 1.75 since any versions between are 
broken..
  
  
Index: php4/build/buildcheck.sh
diff -u php4/build/buildcheck.sh:1.19 php4/build/buildcheck.sh:1.20
--- php4/build/buildcheck.sh:1.19       Sun Jul 21 09:09:07 2002
+++ php4/build/buildcheck.sh    Sun Oct 27 14:47:34 2002
@@ -16,7 +16,7 @@
 #  |          Sascha Schumann <[EMAIL PROTECTED]>                        |
 #  +----------------------------------------------------------------------+
 #
-# $Id: buildcheck.sh,v 1.19 2002/07/21 13:09:07 sas Exp $ 
+# $Id: buildcheck.sh,v 1.20 2002/10/27 19:47:34 sniper Exp $ 
 #
 
 echo "buildconf: checking installation..."
@@ -68,6 +68,25 @@
 exit 1
 else
 echo "buildconf: automake version $am_version (ok)"
+fi
+
+# Bison <= 1.30 or >= 1.75 required (1.35, 1.50 have some bugs)
+bison_version=`bison --version| grep 'GNU Bison' | cut -d ' ' -f 4`
+bison_version_clean=`echo $bison_version|sed -e 's/-p[0-9]*$//'`
+if test "$bison_version" = ""; then
+echo "buildconf: bison not found."
+echo "           You need bison version <= 1.30 >= 1.75 installed"
+echo "           to build PHP from CVS."
+exit 1
+fi
+IFS=.; set $bison_version_clean; IFS=' '
+if test "$1" = "1" -a "$2" -le "30" || test "$1" = "1" -a "$2" -ge "75"; then
+echo "buildconf: bison version $bison_version (ok)"
+else
+echo "buildconf: bison version $bison_version found."
+echo "           You need bison version <= 1.30 >= 1.75 installed"
+echo "           to build PHP from CVS."
+exit 1
 fi
 
 # libtool 1.4 or newer



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to