INN commit: trunk (configure.ac)

INN Commit rra at isc.org
Sun Dec 6 10:45:21 UTC 2020


    Date: Sunday, December 6, 2020 @ 02:45:20
  Author: iulius
Revision: 10440

configure.ac:  use new Autoconf 2.70 syntax for AC_PROG_LEX

Use 'noyywrap' for AC_PROG_LEX.
Use AC_CONFIG_HEADERS instead of obsolete AC_CONFIG_HEADER.

>From Autoconf 2.70 documentation:
  AC_PROG_LEX now takes one argument, which may be either 'yywrap' or
  'noyywrap'.  If it is 'noyywrap', AC_PROG_LEX will only set LEXLIB
  to '-lfl' or '-ll' if a scanner that defines both main and yywrap
  itself still needs something else from that library.  On the other
  hand, if it is 'yywrap', AC_PROG_LEX will fail (setting LEX to ':'
  and LEXLIB to nothing) if it can't find a library that defines yywrap.

  In the absence of arguments, AC_PROG_LEX's behavior is bug-compatible
  with 2.69, which did neither of the above things.  This mode is
  deprecated.

  Prior to Autoconf 2.70, AC_PROG_LEX did not take any arguments,
  and its behavior was different from either of the above
  possibilities: it would search for a library that defines 'yywrap',
  and would set 'LEXLIB' to that library if it finds one.  However,
  if a library that defines this function could not be found,
  'LEXLIB' would be left empty and 'LEX' would _not_ be reset.  This
  behavior was due to a bug.

Modified:
  trunk/configure.ac

--------------+
 configure.ac |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: configure.ac
===================================================================
--- configure.ac	2020-12-06 08:37:42 UTC (rev 10439)
+++ configure.ac	2020-12-06 10:45:20 UTC (rev 10440)
@@ -260,7 +260,7 @@
 
 dnl Checks for programs.
 AC_PROG_GCC_TRADITIONAL
-AC_PROG_LEX
+AC_PROG_LEX([noyywrap])
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_PROG_MKDIR_P
@@ -713,7 +713,7 @@
         #include "inn/options.h"])
 
 dnl Most configuration information goes here.
-AC_CONFIG_HEADER([include/config.h])
+AC_CONFIG_HEADERS([include/config.h])
 
 dnl Generate the configure output.
 AC_OUTPUT



More information about the inn-committers mailing list