autoconf/doc
Zack Weinberg 46f384f850
Revert to 2.69-compatible behavior in AC_PROG_LEX (#110346)
Commit 29ede6b96f caused AC_PROG_LEX to
stop looking for a library that provides yywrap.  This broke several
packages in a Debian archive rebuild.

Revert all the way to the 2.69 behavior, which was to set LEXLIB to
-ll or -lfl if that library defines yywrap, but allow AC_PROG_LEX to
succeed if neither -ll nor -lfl exists on the system, even if a lex
program that doesn't define yywrap would need it.
(This behavior was a bug, but people have come to depend on it.
See https://savannah.gnu.org/support/index.php?110269 and the
thread starting from
https://lists.gnu.org/r/autoconf-patches/2020-07/msg00013.html
for gory details.)

To provide a path away from bug-compatibility, AC_PROG_LEX now takes
one argument, documented as a whitespace-separated list of options.
Two options are defined: ‘yywrap’ means to look for yywrap and behave
as if lex is unavailable if it isn’t found; ‘noyywrap’ means to not
look for yywrap at all.  These are mutually exclusive.

Fixes bug #110346.

* lib/autoconf/programs.m4 (AC_PROG_LEX): Add an argument which
  can be either ‘yywrap’, meaning to look for yywrap in -ll, or
  ‘noyywrap’, meaning to not look for yywrap at all.  In the
  absence of either option, issue an obsoletion warning and
  revert to behavior bug-compatible with 2.69.

* tests/semantics.at: Add more tests of AC_PROG_LEX.
* tests/mktests.sh: Exclude AC_PROG_LEX from autogenerated tests.

* doc/autoconf.texi: Update documentation of AC_PROG_LEX.
* NEWS: Update notes on AC_PROG_LEX.
2020-11-02 16:56:32 -05:00
..
autoconf.texi Revert to 2.69-compatible behavior in AC_PROG_LEX (#110346) 2020-11-02 16:56:32 -05:00
fdl.texi make fetch 2020-09-03 12:08:31 -04:00
gendocs_template make fetch 2020-06-29 17:08:26 -07:00
gnu-oids.texi make fetch 2020-07-11 11:10:39 -04:00
install.texi maint: make update-copyright 2020-01-01 11:45:50 -08:00
local.mk maint: make update-copyright 2020-01-01 11:45:50 -08:00
make-stds.texi make fetch 2020-06-29 17:08:26 -07:00
standards.texi make fetch 2020-06-29 17:42:16 -07:00