aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-07-27 02:51:42 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-07-27 02:51:42 +0000
commit372726c76854386dbe921dcba6af64c1fc92468f (patch)
treeb4ccc81d1b423857659601f9fb14de4fcecfc567 /wiretap
parent4ce97b0fdfbc2227ee9e506111e9b64366bea75e (diff)
Step 1 in adding support for reentrant Flex scanners if Flex supports
them - check whether Flex supports them. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22410 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/configure.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/wiretap/configure.in b/wiretap/configure.in
index d3afcd9794..734a90c43e 100644
--- a/wiretap/configure.in
+++ b/wiretap/configure.in
@@ -20,8 +20,20 @@ AM_PROG_LEX
AC_PROG_LIBTOOL
AC_PATH_PROG(LEX, flex)
-AC_SUBST(FLEX_PATH)
-
+#
+# Check whether Flex supports -R, so we can build reentrant scanners.
+#
+AC_MSG_CHECKING(whether Flex can generate reentrant scanners)
+if flex -R -t <<EOF >/dev/null 2>&1
+%%
+%%
+EOF
+then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(FLEX_REENTRANT_SCANNERS, 1, [Define if Flex can generate reentrant scanners])
+else
+ AC_MSG_RESULT(no)
+fi
#
# Try to add some additional gcc checks to CFLAGS