ar-lib: new 'AM_PROG_AR' macro, triggering the 'ar-lib' script
commitc7a6a92ea100e3c78c7f48bd6a672da3ad46fc7f
authorPeter Rosin <peda@lysator.liu.se>
Thu, 20 Oct 2011 22:23:34 +0000 (21 00:23 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Thu, 20 Oct 2011 22:23:34 +0000 (21 00:23 +0200)
treecf3a3d2321c3de8b26a6be411e643920722eec17
parentb07777bd6da63018e845e18ce96c4168343b47b6
ar-lib: new 'AM_PROG_AR' macro, triggering the 'ar-lib' script

* m4/ar-lib.m4: New macro AM_PROG_AR, which locates an
archiver and triggers the auxiliary 'ar-lib' script if needed.
* m4/Makefile.am (dist_m4data_DATA): Update.
* automake.in ($seen_ar): New variable.
(scan_autoconf_traces): Set it.
(handle_libraries, handle_ltlibraries): Require AM_PROG_AR for
portability.
* doc/automake.texi (Public Macros): Mention the new
'AM_PROG_AR' macro.
(Subpackages): Add AM_PROG_AR to the example.
(A Library): Adjust recommendations for AR given the new
AM_PROG_AR macro.
* All relevant tests: Adjust to new portability requirements due
to the new AM_PROG_AR macro.
* tests/ar-lib2.test: New test, checking that AM_PROG_AR triggers
install of ar-lib.
* tests/ar-lib3.test: New test, checking that lib_LIBRARIES
requires AM_PROG_AR.
* tests/ar-lib4.test: New test, checking that lib_LTLIBRARIES
requires AM_PROG_AR.
* tests/ar-lib5a.test: New test, checking that AM_PROG_AR triggers
use of ar-lib when the archiver is Microsoft lib.
* tests/ar-lib5b.test: New test, checking that AM_PROG_AR triggers
use of ar-lib when the archiver is a faked lib.
* tests/ar-lib6a.test: New test, checking the ordering of
AM_PROG_AR and LT_INIT.
* tests/ar-lib6b.test: New test, checking the ordering of
AM_PROG_AR and AC_PROG_LIBTOOL.
* tests/ar-lib7.test: New test, checking that automake warns
if ar-lib is missing.
* tests/ar3.test: New test, checking that AR and ARFLAGS may
be overridden by the user even if AM_PROG_AR is used.
* tests/ar4.test: New test, checking that AM_PROG_AR bails out
if it cannot determine the archiver interface.
* tests/ar5.test: New test, checking that AM_PROG_AR runs its
optional argument if it cannot determine the archiver interface.
* tests/defs.in: New required entry 'lib'.
* tests/Makefile.am (TESTS): Update.
* NEWS: Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
104 files changed:
ChangeLog
NEWS
automake.in
doc/automake.texi
m4/Makefile.am
m4/Makefile.in
m4/ar-lib.m4 [new file with mode: 0644]
tests/Makefile.am
tests/Makefile.in
tests/aclibobj.test
tests/aclocal4.test
tests/ansi10.test
tests/ar-lib2.test [copied from tests/ar2.test with 68% similarity]
tests/ar-lib3.test [copied from tests/ar2.test with 75% similarity]
tests/ar-lib4.test [copied from tests/aclibobj.test with 67% similarity]
tests/ar-lib5a.test [new file with mode: 0755]
tests/ar-lib5b.test [new file with mode: 0755]
tests/ar-lib6a.test [copied from tests/ar2.test with 66% similarity]
tests/ar-lib6b.test [copied from tests/ar2.test with 68% similarity]
tests/ar-lib7.test [copied from tests/canon4.test with 70% similarity]
tests/ar.test
tests/ar2.test
tests/ar3.test [copied from tests/ar2.test with 79% similarity]
tests/ar4.test [copied from tests/canon4.test with 69% similarity]
tests/ar5.test [copied from tests/canon4.test with 70% similarity]
tests/canon4.test
tests/compile4.test
tests/cond13.test
tests/condlib.test
tests/defs.in
tests/depcomp4.test
tests/depcomp6.test
tests/depcomp7.test
tests/depcomp8b.test
tests/fort5.test
tests/instdir-ltlib.test
tests/instdir-prog.test
tests/instfail-libtool.test
tests/instfail.test
tests/instspc.test
tests/ldflags.test
tests/libobj10.test
tests/libobj11.test
tests/libobj12.test
tests/libobj13.test
tests/libobj2.test
tests/libobj7.test
tests/libobj8.test
tests/library.test
tests/libtoo10.test
tests/libtool2.test
tests/libtool3.test
tests/libtool5.test
tests/libtool6.test
tests/libtool7.test
tests/libtool8.test
tests/libtool9.test
tests/listval.test
tests/location.test
tests/ltcond.test
tests/ltcond2.test
tests/ltconv.test
tests/ltdeps.test
tests/ltinit.test
tests/ltinstloc.test
tests/ltlibobjs.test
tests/ltlibsrc.test
tests/ltorder.test
tests/multlib.test
tests/nobase-libtool.test
tests/nobase.test
tests/noinstdir.test
tests/pr300-lib.test
tests/pr300-ltlib.test
tests/pr307.test
tests/pr401.test
tests/pr401b.test
tests/pr401c.test
tests/pr72.test
tests/primary-prefix-couples-documented-valid.test
tests/primary-prefix-couples-force-valid.test
tests/primary-prefix-invalid-couples.test
tests/primary-prefix-valid-couples.test
tests/silent3.test
tests/silent4.test
tests/silent9.test
tests/specflg-dummy.test
tests/specflg2.test
tests/stdlib2.test
tests/strip2.test
tests/strip3.test
tests/subdir4.test
tests/subdirbuiltsources.test
tests/subobj10.test
tests/subobj9.test
tests/subpkg.test
tests/subst3.test
tests/substtarg.test
tests/suffix10.test
tests/suffix2.test
tests/suffix5.test
tests/suffix8.test
tests/vala.test
tests/vala1.test