Commit 6f9a4b9e authored by Marek Vavrusa's avatar Marek Vavrusa

Fixed flex version check and support for reentrant parsers.

parent bdd1f27a
......@@ -22,8 +22,8 @@ LEX_FLEX=`$LEX --version | awk '{print $1;exit}'`
if test "$LEX_FLEX" != "flex"; then
AC_MSG_ERROR([GNU flex needed for reentrant parsers, set the \$LEX variable before running configure])
fi
if ! $LEX --reentrant </dev/null 2>/dev/null; then
AC_MSG_ERROR([GNU flex version 2.X.X or higher needed for reentrant parsers])
if ! $LEX --reentrant m4/flex-test.l </dev/null 2>/dev/null; then
AC_MSG_ERROR([GNU flex version 2.5.33 or higher needed for reentrant parsers])
fi
AC_PROG_YACC
YACC_BISON=`bison --version | awk '{print $1;exit}'`
......
%{
%}
%option reentrant
%option bison-bridge
%option noinput
%option nounput
%option noreject
BLANK [ \t\n]
%%
<<EOF>> return 0;
%%
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment