]> git.ipfire.org Git - thirdparty/automake.git/commit
distcheck: add support for AM_DISTCHECK_CONFIGURE_FLAGS
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 10 Jun 2011 10:26:42 +0000 (12:26 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 10 Jun 2011 13:17:14 +0000 (15:17 +0200)
commit976003923e43d17985a776f82cf8168e8741f7de
tree0c0f64c753897ea21c51747e13afce4b1000f7cf
parent24b9022b753b129d9a2832904fbd9b7a7bbb17d6
distcheck: add support for AM_DISTCHECK_CONFIGURE_FLAGS

* doc/automake.texi (Checking the Distribution): Suggest to use
AM_DISTCHECK_CONFIGURE_FLAGS, not DISTCHECK_CONFIGURE_FLAGS, to
define (in the top-level Makefile.am) extra flags to be passed
to configure at "make distcheck" time; DISTCHECK_CONFIGURE_FLAGS
should be reserved for the user.  Add proper `@vindex' directive.
Document that AM_DISTCHECK_CONFIGURE_FLAGS is not honoured in a
subpackage Makefile.am, but the flags in it are passed down to
the configure script of the subpackage.
* lib/am/distdir.am (distcheck): Also pass the flags in
$(AM_DISTCHECK_CONFIGURE_FLAGS) to the configure invocation.
Update comments.
* tests/defs.in.test (AM_DISTCHECK_CONFIGURE_FLAGS,
DISTCHECK_CONFIGURE_FLAGS): Unset in case they are exported in
the environment, they might improperly influence our testsuite.
* tests/distcheck-configure-flags.test: New test.
* tests/distcheck-configure-flags-am.test: Likewise.
* tests/distcheck-configure-flags-subpkg.test: Likewise.
* distcheck-hook.test: Likewise.
* distcheck-hook2.test: Likewise.
* tests/Makefile.am (TESTS): Update.

Closes automake bug#8487.
12 files changed:
ChangeLog
Makefile.in
doc/automake.texi
lib/am/distdir.am
tests/Makefile.am
tests/Makefile.in
tests/defs.in
tests/distcheck-configure-flags-am.test [new file with mode: 0755]
tests/distcheck-configure-flags-subpkg.test [new file with mode: 0755]
tests/distcheck-configure-flags.test [new file with mode: 0755]
tests/distcheck-hook.test [new file with mode: 0755]
tests/distcheck-hook2.test [new file with mode: 0755]