]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Fix logic error in _AC_PROG_LEX_YYTEXT_DECL (#109320)
authorTom <tom@ojodeagua.com>
Sun, 12 Jul 2020 14:44:11 +0000 (10:44 -0400)
committerZack Weinberg <zackw@panix.com>
Sun, 12 Jul 2020 14:52:26 +0000 (10:52 -0400)
commit8173e5d6fefd8a2a36974610f85784121f8dc36e
treefe8957f10685e08b7f9263a643f61af597bbf587
parenta9323950d2b2c799e8c0d71d27b6208cbc6b9b96
Fix logic error in _AC_PROG_LEX_YYTEXT_DECL (#109320)

The search for the appropriate value for @LEXLIB@ did not distinguish
correctly between success (‘break’ out of a shell for loop, having set
$ac_cv_lib_lex) and failure (normal termination of the loop, value in
$ac_cv_lib_lex is garbage).  Bug report and original patch by
Tom <tom@ojodeagua.com> with refinements by Zack Weinberg.

* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL):
  Error out if we cannot find the library that (f)lex scanners
  need to be linked against, instead of continuing with @LEXLIB@
  set to the empty string.
lib/autoconf/programs.m4