]> git.ipfire.org Git - thirdparty/automake.git/commit
Fix some build and test failures with Autoconf 2.70.
authorZack Weinberg <zackw@panix.com>
Mon, 14 Dec 2020 19:50:47 +0000 (14:50 -0500)
committerKarl Berry <karl@freefriends.org>
Tue, 15 Dec 2020 01:53:03 +0000 (17:53 -0800)
commitccb57553e3433df3e52e534e6f87915db23ff9a5
tree8d8a09e67e6527d241407ef6fc614e1ed46e6149
parent6a753ef54ae4688f60a1a22415e028e4b51ca372
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.
configure.ac
m4/init.m4
t/deprecated-acinit.sh
t/init.sh