summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-02 07:03:00 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-02 07:03:00 +0000
commit467a5f44eceeb4579653645d33d4bb8c332de9db (patch)
tree20503698a55971ff349fcd25b759e72890e720d3
parent057e87e6e55e2e6d5604254d9b02e22d0852b40d (diff)
downloadphp-git-467a5f44eceeb4579653645d33d4bb8c332de9db.tar.gz
Fixed flex version check. Some lex scanners like Sun's SGU do not appear
to support -V flag, so by passing them data on stdin we prevent them from sitting idle waiting for stdin data. I've also added some common version retrieval flags, that may be supported by various lex scanners.
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index a8b451ddb8..08d7d4984d 100644
--- a/configure.in
+++ b/configure.in
@@ -159,7 +159,7 @@ if test "$ac_cv_c_const" = "yes" ; then
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'`
+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