]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #4131: for solaris, error YY_CURRENT_BUFFER undeclared.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Jul 2018 11:53:57 +0000 (11:53 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Jul 2018 11:53:57 +0000 (11:53 +0000)
git-svn-id: file:///svn/unbound/trunk@4795 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac
doc/Changelog

index 8b138efba1fff047e86aa71daf1db76263c13b8e..59c17a54f483535f8432289c5a2c49fb1c2a31e1 100755 (executable)
--- a/configure
+++ b/configure
@@ -6274,6 +6274,8 @@ fi
 
 
 
+
+
 for ac_prog in flex lex
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -6433,6 +6435,7 @@ fi
 rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
 fi
+if test "$LEX" != ""; then
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
 $as_echo_n "checking for yylex_destroy... " >&6; }
@@ -6445,6 +6448,21 @@ $as_echo "yes" >&6; }
        else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }; fi
 
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
+$as_echo_n "checking for lex %option... " >&6; }
+       if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
+%option nounput
+%%
+EOF
+               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; };
+               LEX=""
+       fi
+
+fi
 for ac_prog in 'bison -y' byacc
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
index c71b208f11179d0bec99d3ecb50696d75cde7416..875bbc69d2cbb291bb7cd9b1d2f559b5e67cf96d 100644 (file)
@@ -327,8 +327,23 @@ AC_DEFUN([ACX_YYLEX_DESTROY], [
        else AC_MSG_RESULT(no); fi
 ])
 
+AC_DEFUN([ACX_YYLEX_OPTION], [
+       AC_MSG_CHECKING([for lex %option])
+       if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
+%option nounput
+%%
+EOF
+               AC_MSG_RESULT(yes)
+       else AC_MSG_RESULT(no);
+               LEX=""
+       fi
+])
+
 AC_PROG_LEX
+if test "$LEX" != ""; then
 ACX_YYLEX_DESTROY
+ACX_YYLEX_OPTION
+fi
 AC_PROG_YACC
 AC_CHECK_PROG(doxygen, doxygen, doxygen)
 AC_CHECK_TOOL(STRIP, strip)
index 859468d92f3238629b20174b810ddfa0621fbfa0..fab0b2476e8c23c04b8f2b2eca233419f328d65d 100644 (file)
@@ -2,6 +2,7 @@
        - Fix #4130: print text describing -dd and unbound-checkconf on
          config file read error at startup, the errors may have been moved
          away by the startup process.
+       - Fix #4131: for solaris, error YY_CURRENT_BUFFER undeclared.
 
 19 July 2018: Wouter
        - Fix #4129 unbound-control error message with wrong cert permissions