iliaa           Mon Nov 11 11:12:57 2002 EDT

  Modified files:              
    /php4       configure.in 
  Log:
  Added a flex version check. In the event required flex version is not 
  available, an advisory warning (similar to bison one) will be given to the
  user. This is needed for systems such as Sun OS, where the existing lex
  parser cannot be used to regenerate Zend/PHP lexical parsers.
  
  
Index: php4/configure.in
diff -u php4/configure.in:1.395 php4/configure.in:1.396
--- php4/configure.in:1.395     Mon Nov  4 15:08:08 2002
+++ php4/configure.in   Mon Nov 11 11:12:56 2002
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.395 2002/11/04 20:08:08 dreid Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.396 2002/11/11 16:12:56 iliaa Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -158,6 +158,12 @@
   LEX_CFLAGS="-DYY_USE_CONST"
 fi
 
+AC_MSG_CHECKING([flex version])
+set `$LEX -V | 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
+AC_MSG_RESULT(${1}.${2}.${3} (ok))
 
 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