diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-07-27 02:51:42 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-07-27 02:51:42 +0000 |
commit | 96ef4506369378b1c2caed246f0d8fdd02f39fe9 (patch) | |
tree | b4ccc81d1b423857659601f9fb14de4fcecfc567 /wiretap | |
parent | 45ee7230cce7dd5f178dfb5dc0c55ed4aa4ad688 (diff) |
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 'wiretap')
-rw-r--r-- | wiretap/configure.in | 16 |
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 |