INN commit: branches/2.6 (configure.ac)
INN Commit
rra at isc.org
Wed Dec 9 21:05:30 UTC 2020
Date: Wednesday, December 9, 2020 @ 13:05:29
Author: iulius
Revision: 10443
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:
branches/2.6/configure.ac
--------------+
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Modified: configure.ac
===================================================================
--- configure.ac 2020-12-09 21:04:31 UTC (rev 10442)
+++ configure.ac 2020-12-09 21:05:29 UTC (rev 10443)
@@ -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
@@ -643,7 +643,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