diff options
author | Zack Weinberg <zackw@panix.com> | 2020-12-14 14:50:47 -0500 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-12-14 17:53:03 -0800 |
commit | ccb57553e3433df3e52e534e6f87915db23ff9a5 (patch) | |
tree | 8d8a09e67e6527d241407ef6fc614e1ed46e6149 /t/deprecated-acinit.sh | |
parent | 6a753ef54ae4688f60a1a22415e028e4b51ca372 (diff) | |
download | automake-ccb57553e3433df3e52e534e6f87915db23ff9a5.tar.gz |
Fix some build and test failures with Autoconf 2.70.
Autoconf 2.70 (released last week) makes a few changes that broke Automake’s
expectations, mostly in the test suite. This patch addresses two of the
problems:
- autoconf now issues a warning if fed a configure script that doesn’t invoke
both AC_INIT and AC_OUTPUT; this, plus a problem with system-provided
tools (still under investigation) broke the *build* on macOS; it also
causes a couple of spurious testsuite failures.
- AC_PACKAGE_NAME and AC_PACKAGE_VERSION are now defined unconditionally.
AM_INIT_AUTOMAKE needs to use m4_ifset instead of m4_ifdef to diagnose
the obsolete use of AC_INIT with fewer than two arguments. (This change
is compatible with autoconf 2.69; m4_ifset is much older, and it means
‘defined with a non-empty value’.)
* configure.ac: Use both AC_INIT and AC_OUTPUT in test configure scripts.
* t/deprecated-acinit.sh, t/init.sh: Likewise.
* m4/init.m4 (AM_INIT_AUTOMAKE): Use m4_ifset, not m4_ifdef, to detect
AC_PACKAGE_NAME and/or AC_PACKAGE_VERSION not having a value.
Diffstat (limited to 't/deprecated-acinit.sh')
-rw-r--r-- | t/deprecated-acinit.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/deprecated-acinit.sh b/t/deprecated-acinit.sh index 21614bafa..f393d6534 100644 --- a/t/deprecated-acinit.sh +++ b/t/deprecated-acinit.sh @@ -35,6 +35,7 @@ for ac_init in AC_INIT 'AC_INIT([Makefile.am])'; do $ac_init $am_init_automake AC_CONFIG_FILES([Makefile]) + AC_OUTPUT END cat configure.ac # For debugging. $ACLOCAL 2>stderr && { cat stderr >&2; exit 1; } |