lang, suffix rules: don't require C stuff needlessly
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 11 Jun 2013 19:20:18 +0000 (21:20 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 12 Jun 2013 08:33:51 +0000 (10:33 +0200)
commit4f7cc4fe88b5f802c9dc2ba78326819d2d62f2dc
treec5aacba353c3dd56e1100ae5de3b62f8d4b2e802
parent0164f83126647476cfb3112441185accdcb157fb
lang, suffix rules: don't require C stuff needlessly

This change fixes automake bug#14560: when two or more user-defined suffix
rules were present in a single Makefile.am, automake would needlessly
include definition of some make variables related to C compilation in the
generated Makefile.in.

* automake.in (handle_languages): Fix logic to decide whether or not to
include definitions of C compilation related variables in the generated
Makefile.in: instead of doing so when two or more user-defined suffix
rules are seen (which is a completely bogus criterion), do so when two
or more compiled languages are used.
* lib/Automake/Rule.pm (suffix_rules_count): Remove as no longer used.
(@EXPORT): Adjust.
* t/list-of-tests.mk (XFAIL_TESTS): No longer list the test script
'suffix-extra-c-stuff-pr14560.sh', which now passes.
* NEWS: Update.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
NEWS
automake.in
lib/Automake/Rule.pm
t/list-of-tests.mk