diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2004-01-07 21:58:14 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2004-01-07 21:58:14 +0000 |
commit | 4a1851391deaf8faa84eb2b8a24560a874560dff (patch) | |
tree | 96bcda4f097fade2de85c20c5773439a1773183d /tests/libtool3.test | |
parent | cbce9cd422e8b20ca0fe9eff4cf8225e3bde2dd9 (diff) | |
download | automake-4a1851391deaf8faa84eb2b8a24560a874560dff.tar.gz |
Fix for PR automake/289:
* automake.in (Automake::Struct::libtool_tag): New attribute. Define
it for the language that have a Libtool tag.
(%libtool_tags): New variable.
(handle_languages, define_compiler_variable)
(define_linker_variable): Pass --tag=XXX to libtool if supported.
(scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
* tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
output.
Diffstat (limited to 'tests/libtool3.test')
-rwxr-xr-x | tests/libtool3.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libtool3.test b/tests/libtool3.test index 183bdb688..a11e137ba 100755 --- a/tests/libtool3.test +++ b/tests/libtool3.test @@ -88,5 +88,15 @@ $FGREP 'a.o:' Makefile.in && exit 1 $FGREP 'a.lo:' Makefile.in ./configure + +# opportunistically check that --tag=CC is used when supported +if test -n "`./libtool --help | grep tag=TAG`"; then + grep 'LTCOMPILE.*mode=compile --tag=CC' Makefile.in + grep 'LINK.*mode=link --tag=CC' Makefile.in + # We also expect --tag=CC to appear twice in the explicit rule a.lo. + # (The first time if am__fastdepCC is true, the second if it is not.) + test 2 = `grep 'am__fastdepCC.*mode=compile --tag=CC' Makefile.in | wc -l` +fi + $MAKE $MAKE distcheck |