[PATCH 1/3] configure.ac: Require a new enough flex version.

Michael Stefaniuc mstefani at redhat.de
Tue Dec 29 11:07:02 CST 2009


Wine needs a newer flex version than the prediluvian 2.5.4a.

Getting a newer flew version (2.5.33 or 2.5.335) for RHEL5 is just a
"rpmbuild --rebuild" of any of the flex SRPMs from F7 to F10.
---
 configure.ac |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3454464..599c31d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -230,6 +230,20 @@ if test "$FLEX" = "none"
 then
   AC_MSG_ERROR([no suitable flex found. Please install the 'flex' package.])
 fi
+AC_MSG_CHECKING([whether flex is new enough])
+cat >conftest.l <<EOF
+%top{
+#include "prediluvian.h
+}
+%%
+EOF
+if $FLEX -t conftest.l >/dev/null 2>&1
+then
+  AC_MSG_RESULT([yes])
+else
+  AC_MSG_RESULT([no])
+  AC_MSG_ERROR([too old flex version. Please install version 2.5.33 or newer.])
+fi
 
 dnl Check for bison
 AC_CHECK_PROGS(BISON,bison,none)
-- 
1.6.6



More information about the wine-patches mailing list