ddhill          Thu Mar 27 13:02:00 2003 EDT

  Modified files:              
    /php4       configure.in 
  Log:
  Correcting checking of flex version (dave)
  
  
Index: php4/configure.in
diff -u php4/configure.in:1.433 php4/configure.in:1.434
--- php4/configure.in:1.433     Tue Mar 25 08:43:13 2003
+++ php4/configure.in   Thu Mar 27 13:02:00 2003
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.433 2003/03/25 13:43:13 sniper Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.434 2003/03/27 18:02:00 ddhill Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -155,11 +155,19 @@
 fi
 
 AC_MSG_CHECKING([flex version])
-set `echo "" | $LEX -V -v --version 2>/dev/null | grep 'version' | cut -d ' ' -f 3 | 
sed -e 's/\./ /g' | sed -e 's/[^0-9 ]//g'`
-if test "${1}" != "2" -o "${2}" != "5" -o "${3}" -lt "4"; then
-        AC_MSG_WARN(You will need flex 2.5.4 or later if you want to regenerate 
Zend/PHP lexical parsers.)
-fi
+if test "$LEX" ;then
+       flexvers=`echo "" | $LEX -V -v --version 2>/dev/null | 
+               sed -e 's/^.* //' -e 's/\./ /g'`
+       if test ! -z "$flexvers"; then
+               set $flexvers
+               if test "${1}" != "2" -o "${2}" != "5" -o "${3}" -lt "4"; then
+                       AC_MSG_WARN(You will need flex 2.5.4 or later if you want to 
regenerate Zend/PHP lexical parsers.)
+               fi
+       fi
 AC_MSG_RESULT(${1}.${2}.${3} (ok))
+else
+       AC_MSG_WARN(You will need flex 2.5.4 or later if you want to regenerate 
Zend/PHP lexical parsers.)
+fi
 
 dnl Platform-specific compile settings.
 dnl -------------------------------------------------------------------------



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

Reply via email to