libtool: suggest LT_INIT if LTLIBRARIES primary is used
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 24 Feb 2011 09:21:19 +0000 (10:21 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 28 Feb 2011 12:18:11 +0000 (13:18 +0100)
commitd51e7b79713f909c235c9880f7f62c4b0c0910d0
tree8008521541991e8d4204842bc6072f96b8c11225
parente6ca61c1a1bf601cfde4b67c33fe861cafff7450
libtool: suggest LT_INIT if LTLIBRARIES primary is used

When the LTLIBRARIES primary was used, but $(LIBTOOL) wasn't
defined, automake suggested to add a call to AC_PROG_LIBTOOL
in configure.ac.  But that macro is deprecated since Libtool
version 1.9b (2004-08-29), in favor of the newer LT_INIT.  So
suggest the use of this latter macro instead.

* lib/Automake/Variable.pm (%_am_macro_for_var): Pair 'LIBTOOL'
with 'LT_INIT', not with 'AC_PROG_LIBTOOL'.
* libtool4.test: Adjust and extend.  Also, add a call to macro
AC_PROG_CC in configure.in, to help ensuring that automake does
not fail for the wrong reasons.
* ltinit.test: New test, ensure that automake's libtool support
works with LT_INIT-based interface.

Thanks to Jack Kelly for the suggestion.
ChangeLog
lib/Automake/Variable.pm
tests/Makefile.am
tests/Makefile.in
tests/libtool4.test
tests/ltinit.test [new file with mode: 0755]