autoconf/tests
Jim Meyering 68fac90c09 AC_FUNC_ALLOCA: fix a misplaced (now fatal) closing "fi"
"autoconf quoting is a pain"
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Its AC_CACHE_CHECK
contains an if/else block, but the closing "fi" lay just after its ")".
Before, this error didn't trigger any failure because the if/else code was
in the "else" block of AC_CACHE_CHECK's AS_IF invocation and AS_IF was also
implemented using an if..fi block. So the ostensibly-"outer" "fi" provided
by AS_IF matched the inner "if/else", and that stray-after-end "fi" served
to close the AS_IF block. However, when AS_IF switched from if..fi to
case..esac, this became a nesting error: no matching "fi".
Initially-harmless error introduced by v2.69-52-gfd29dbd7 in 2012.
Error exposed by v2.72a-30-gc8d6d6eb.
* tests/mktests.pl (scan_m4_files): Do not elide direct test
of AC_FUNC_ALLOCA.

FTR, here's the list of macros whose direct tests were being suppressed:
AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_CANONICAL_TARGET
AC_CHECK_INCLUDES_DEFAULT AC_DISABLE_OPTION_CHECKING
AC_ERLANG_NEED_ERL AC_ERLANG_NEED_ERLC AC_ERLANG_SUBST_ERTS_VER
AC_ERLANG_SUBST_INSTALL_LIB_DIR AC_ERLANG_SUBST_LIB_DIR AC_F77_DUMMY_MAIN
AC_F77_LIBRARY_LDFLAGS AC_FC_DUMMY_MAIN AC_FC_LIBRARY_LDFLAGS
AC_FUNC_ALLOCA AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK AC_GNU_SOURCE
AC_HEADER_DIRENT AC_HEADER_SYS_WAIT AC_PATH_X AC_PROG_CPP AC_PROG_CXX
AC_PROG_CXXCPP AC_PROG_F77 AC_PROG_FC AC_PROG_GO AC_PROG_GREP
AC_PROG_OBJC AC_PROG_OBJCPP AC_PROG_OBJCXX AC_PROG_OBJCXXCPP
AC_STRUCT_TM AC_TYPE_GETGROUPS AC_TYPE_LONG_LONG_INT AC_TYPE_MBSTATE_T
AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_UID_T AC_TYPE_UNSIGNED_LONG_LONG_INT
AC_USE_SYSTEM_EXTENSIONS
2022-06-27 21:39:24 -07:00
..
data Work around memory-leak false alarms 2022-03-31 23:25:54 -07:00
atlocal.in make update-copyright 2022-05-19 13:57:38 -07:00
autoscan.at make update-copyright 2022-05-19 13:57:38 -07:00
autotest.at make update-copyright 2022-05-19 13:57:38 -07:00
base.at make update-copyright 2022-05-19 13:57:38 -07:00
c.at make update-copyright 2022-05-19 13:57:38 -07:00
compile.at make update-copyright 2022-05-19 13:57:38 -07:00
erlang.at make update-copyright 2022-05-19 13:57:38 -07:00
foreign.at make update-copyright 2022-05-19 13:57:38 -07:00
fortran.at make update-copyright 2022-05-19 13:57:38 -07:00
go.at make update-copyright 2022-05-19 13:57:38 -07:00
local.at tests: avoid test failures due to new EGREP_TRADITIONAL 2022-06-27 21:39:24 -07:00
local.mk make update-copyright 2022-05-19 13:57:38 -07:00
m4sh.at make update-copyright 2022-05-19 13:57:38 -07:00
m4sugar.at make update-copyright 2022-05-19 13:57:38 -07:00
mktests.pl AC_FUNC_ALLOCA: fix a misplaced (now fatal) closing "fi" 2022-06-27 21:39:24 -07:00
semantics.at make update-copyright 2022-05-19 13:57:38 -07:00
statesave.m4 make update-copyright 2022-05-19 13:57:38 -07:00
suite.at make update-copyright 2022-05-19 13:57:38 -07:00
tools.at make update-copyright 2022-05-19 13:57:38 -07:00
torture.at make update-copyright 2022-05-19 13:57:38 -07:00
wrapper.as make update-copyright 2022-05-19 13:57:38 -07:00