aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-07-27 02:51:42 +0000
committerGuy Harris <guy@alum.mit.edu>2007-07-27 02:51:42 +0000
commit96ef4506369378b1c2caed246f0d8fdd02f39fe9 (patch)
treeb4ccc81d1b423857659601f9fb14de4fcecfc567 /configure.in
parent45ee7230cce7dd5f178dfb5dc0c55ed4aa4ad688 (diff)
downloadwireshark-96ef4506369378b1c2caed246f0d8fdd02f39fe9.tar.gz
wireshark-96ef4506369378b1c2caed246f0d8fdd02f39fe9.tar.bz2
wireshark-96ef4506369378b1c2caed246f0d8fdd02f39fe9.zip
Step 1 in adding support for reentrant Flex scanners if Flex supports
them - check whether Flex supports them. svn path=/trunk/; revision=22410
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 970c427409..b345eeeab8 100644
--- a/configure.in
+++ b/configure.in
@@ -53,6 +53,22 @@ else
fi
AC_PATH_PROG(LEX, flex)
+
+#
+# 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
+
AC_PATH_PROG(PYTHON, python)
AC_SUBST(PERL)