diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-03-31 16:39:32 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-05-06 11:30:16 +0200 |
commit | 27136dfe02926ac596c853fced7c17825ef3cf68 (patch) | |
tree | db64caeb4199554fcf71a262dba4c7be2e1f32c0 /t/confsub.sh | |
parent | 37267407001d025b48648c4fbcf5b3f16072fcc1 (diff) | |
download | automake-27136dfe02926ac596c853fced7c17825ef3cf68.tar.gz |
init: warn against obsolete usage of AM_INIT_AUTOMAKE
Support for the two- and three-arguments invocation forms of the
AM_INIT_AUTOMAKE macro, as in:
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
or:
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, NODEFINE)
will be removed in the next major Automake release (1.13).
Such usages have already been deprecated in the documentation
starting from commit v1.11-2015-ge99690a of 23-02-2012 "docs,
news: document planned removal of obsolete macros and features".
We now start giving runtime warnings as well (in the 'obsolete'
category).
* NEWS: Update.
* m4/init.m4 (AM_INIT_AUTOMAKE): Report the two- and three-arguments
form invocation.
* automake.in (scan_autoconf_traces): Likewise.
* doc/automake.texi: Minor adjustments. Add an @anchor to the
location where it's described how to modernize outdated invocation
of AM_INIT_AUTOMAKE, so that it can be referenced from automake
warning/error messages.
* t/aminit-moreargs-deprecation.sh: New test.
* tests/list-of-tests.mk: Add it.
* tests/ac-output-old.tap: Adjust by calling automake with the
warnings in the 'obsolete' category disabled.
* t/backcompat.test: Likewise.
* t/backcompat3.test: Likewise.
* t/backcompat5.test: Likewise.
* t/backcompat6.test: Likewise.
* t/version.test: Likewise.
* t/version2.test: Likewise.
* t/pr2.test: Modernize style of AC_INIT and AM_INIT_AUTOMAKE
invocations, and use proper m4 quoting.
* t/pr87.test: Likewise.
* t/confsub.test: Likewise.
* t/install2.test: Likewise.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/confsub.sh')
-rwxr-xr-x | t/confsub.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/t/confsub.sh b/t/confsub.sh index 188704678..b13f26a3b 100755 --- a/t/confsub.sh +++ b/t/confsub.sh @@ -19,11 +19,10 @@ . ./defs || Exit 1 -cat > configure.ac << 'END' -AC_INIT -AM_INIT_AUTOMAKE(nonesuch, nonesuch) -AM_CONFIG_HEADER(subdir/config.h:subdir/config.hin) -AC_OUTPUT(Makefile subdir/Makefile) +cat >> configure.ac << 'END' +AC_CONFIG_FILES([subdir/Makefile]) +AM_CONFIG_HEADER([subdir/config.h:subdir/config.hin]) +AC_OUTPUT END cat > Makefile.am << 'END' |