]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
15 years agoMerge branch 'master' into pr-msvc-support
Peter Rosin [Fri, 11 Sep 2009 04:40:30 +0000 (06:40 +0200)] 
Merge branch 'master' into pr-msvc-support

15 years agofunc_win32_libid doesn't work with MS dumpbin
Peter Rosin [Thu, 10 Sep 2009 07:51:15 +0000 (09:51 +0200)] 
func_win32_libid doesn't work with MS dumpbin

* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): The $NM
interface is assumed to be BSD nm in func_win32_libid, so
check for that before using it.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoMerge branch 'master' into pr-msvc-support
Peter Rosin [Wed, 9 Sep 2009 10:36:23 +0000 (12:36 +0200)] 
Merge branch 'master' into pr-msvc-support

15 years agoAllow dlopen self test to work with gcc's -fvisibility=hidden.
Ralf Wildenhues [Mon, 7 Sep 2009 19:27:08 +0000 (21:27 +0200)] 
Allow dlopen self test to work with gcc's -fvisibility=hidden.

* libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Declare default
visibility for the symbol we are going to test dlopen (NULL)
when a GCC version is used that understands the visibility
attribute, under the assumption that if -fvisibility=hidden
will be used, the user code will be sufficiently annotated
for visibility of needed symbols from the main executable.
* THANKS: Update.
Report by Josh Hursey against OpenMPI.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix and split recent testsuite addition for compile/link flags.
Ralf Wildenhues [Mon, 7 Sep 2009 19:08:50 +0000 (21:08 +0200)] 
Fix and split recent testsuite addition for compile/link flags.

* tests/flags.at (passing flags through libtool): Split into ...
(passing CC flags through libtool)
(passing CXX flags through libtool)
(passing F77 flags through libtool)
(passing FC flags through libtool)
(passing GCJ flags through libtool): ... these five tests,
factorized with m4_foreach.  Fix F77 and FC compile and link
commands; add GCJ tag.  Use LT_AT_TAG to correctly skip tags
for which no compiler exists.  Use $EXEEXT where appropriate.
Drop unneeded use of reload_cmds.
Reports by Peter Rosin and Peter O'Gorman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix redirect in test case.
Peter O'Gorman [Mon, 7 Sep 2009 20:17:03 +0000 (15:17 -0500)] 
Fix redirect in test case.

tests/darwin.at: Fix stderr redirect.

15 years agoUse darwin's -force_load flag if available for whole_archive_flag_spec
Peter O'Gorman [Mon, 7 Sep 2009 05:41:58 +0000 (00:41 -0500)] 
Use darwin's -force_load flag if available for whole_archive_flag_spec

* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Check for
-force_load and use it if there.
* tests/darwin.at: Add a simple test.

15 years agoTestsuite keyword 'interactive' and check-* rules.
Ralf Wildenhues [Sun, 6 Sep 2009 17:38:06 +0000 (19:38 +0200)] 
Testsuite keyword 'interactive' and check-* rules.

* Makefile.am (testsuite_deps, testsuite_deps_uninstalled):
New variables.
(check-local, installcheck-local): Use them.
(check-interactive, check-noninteractive): New rules.
* tests/link-order2.at (Link order of deplibs),
tests/static.at (static linking flags for programs): Add keyword
`interactive'.
* doc/libtool.texi (Test descriptions): Document all keywords
used in the Libtool test suite.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix failure test in the presence of --with-pic or -prefer-pic.
Ralf Wildenhues [Sun, 6 Sep 2009 10:42:34 +0000 (12:42 +0200)] 
Fix failure test in the presence of --with-pic or -prefer-pic.

* tests/fail.at (Failure tests): Run non-PIC failure test only
if pic_mode is 'default' or 'no', rather than 'default' or 'yes'
and also -prefer-pic has not been passed in $CFLAGS.
* THANKS: Update.
Report by Donn Washburn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAdd testsuite exposure for passing of compiler and linker flags.
Ralf Wildenhues [Sun, 6 Sep 2009 07:48:33 +0000 (09:48 +0200)] 
Add testsuite exposure for passing of compiler and linker flags.

* tests/flags.at (passing flags through libtool): New file, new
test, for bug fixed in previous commit.
* Makefile.am (TESTSUITE_AT): Add tests/flags.at.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMake -Wc,FLAG behave like -Xcompiler FLAG in link mode.
Peter Rosin [Fri, 4 Sep 2009 20:19:36 +0000 (22:19 +0200)] 
Make -Wc,FLAG behave like -Xcompiler FLAG in link mode.

* libltdl/config/ltmain.m4sh (func_mode_link): Remove "-Wc,"
instead of replacing it with "$wl" when linking programs
through the compiler driver, just as is the case when linking
libraries.
* NEWS: Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoShut up prototype warnings with recent GCC and -Wstrict-prototypes.
Lennart Poettering [Sun, 23 Aug 2009 05:19:26 +0000 (07:19 +0200)] 
Shut up prototype warnings with recent GCC and -Wstrict-prototypes.

* libltdl/config/ltmain.m4sh (func_generate_dlsyms): Use recent
GCC's diagnostic pragma to override a -Wstrict-prototypes
setting for the symbol list code.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoRemove __oline__ from macros, for less spurious configure diffs.
Ralf Wildenhues [Sun, 23 Aug 2009 05:12:30 +0000 (07:12 +0200)] 
Remove __oline__ from macros, for less spurious configure diffs.

* libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK, _LT_COMPILER_OPTION)
(_LT_COMPILER_C_O, LT_PATH_NM): Replace __oline__ instances with
$LINENO.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFixup 'execute mode' test for w32.
Roumen Petrov [Fri, 24 Jul 2009 20:59:46 +0000 (22:59 +0200)] 
Fixup 'execute mode' test for w32.

* tests/execute-mode.at (execute mode): Add missing $EXEEXT.
(LDFLAGS): Add -no-undefined.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years ago[CXX] Use correct export_dynamic_flag_spec for PE-COFF $hosts
Yaakov Selkowitz [Tue, 30 Jun 2009 12:26:20 +0000 (08:26 -0400)] 
[CXX] Use correct export_dynamic_flag_spec for PE-COFF $hosts

* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [cygwin*|mingw*|pw32*|cegcc*]:
Define export_dynamic_flag_spec as -Wl,--export-all-symbols here as well
(see commit 5f2bbb494a2753afb2878c399cfd8316b7403a5b).

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
16 years ago[mingw] Improve sys_lib_search_path_spec detection.
Charles Wilson [Mon, 29 Jun 2009 01:51:42 +0000 (21:51 -0400)] 
[mingw] Improve sys_lib_search_path_spec detection.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Fix handling
of dos-style paths when parsing $CC -print-search-dirs output.

16 years agoFinish adding alias for obsoleted AC_LIBTOOL_RC macro.
Charles Wilson [Sun, 28 Jun 2009 22:50:30 +0000 (18:50 -0400)] 
Finish adding alias for obsoleted AC_LIBTOOL_RC macro.

* libltdl/m4/libtool.m4: Add reminder comment concerning
aclocal-1.4 backwards compatibility.
* libltdl/m4/lt~obsolete.m4: Remove unnecessary AC_DEFUN.

16 years agoAdd alias for obsoleted AC_LIBTOOL_RC macro.
Charles Wilson [Wed, 24 Jun 2009 00:32:16 +0000 (20:32 -0400)] 
Add alias for obsoleted AC_LIBTOOL_RC macro.

* libltdl/m4/libtool.m4: Add alias for obsoleted
macro AC_LIBTOOL_RC.

16 years agoRemove unneeded functions and options from cwrapper
Charles Wilson [Mon, 22 Jun 2009 00:07:13 +0000 (20:07 -0400)] 
Remove unneeded functions and options from cwrapper

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
[lt_opt_process_env_set]: Remove.
[lt_opt_process_env_prepend]: Remove.
[lt_opt_process_env_append]: Remove.
[lt_split_name_value]: Remove.
[file scope]: Don't declare removed functions. Remove
constants and defines related to eliminated commandline
options.
[main]: Remove code related to eliminated commandline
options --lt-env-set, --lt-env-prepend, --lt-env-append.

16 years agoEnsure LT_PATH_LD works when called before LT_INIT
Yaakov Selkowitz [Fri, 19 Jun 2009 17:33:22 +0000 (13:33 -0400)] 
Ensure LT_PATH_LD works when called before LT_INIT

* libltdl/m4/libtool.m4 (LT_PATH_LD): AC_REQUIRE _LT_PROG_ECHO_BACKSLASH.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
16 years agoAdd versioning tests.
Ralf Wildenhues [Sun, 14 Jun 2009 10:03:31 +0000 (12:03 +0200)] 
Add versioning tests.

* tests/versioning.at (versioning): New file, new test.
* Makefile.am (TESTSUITE_AT): Adjust.
Prompted by bug report from Mike Gorchak.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix versioning computation for QNX.
Mike Gorchak [Sun, 14 Jun 2009 09:42:09 +0000 (11:42 +0200)] 
Fix versioning computation for QNX.

* libltdl/config/ltmain.m4sh (func_mode_link): Set `$current'
and `$age' properly for version_type `qnx'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAvoid spurious localization testsuite failure on HP-UX/ia64.
Ralf Wildenhues [Sun, 14 Jun 2009 09:35:59 +0000 (11:35 +0200)] 
Avoid spurious localization testsuite failure on HP-UX/ia64.

* tests/localization.at (localized compiler messages): Skip test
if the compiler warning output contains `locale', for HP-UX.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix concurrent extraction of convenience libraries on Darwin.
Ralf Wildenhues [Wed, 10 Jun 2009 17:47:33 +0000 (19:47 +0200)] 
Fix concurrent extraction of convenience libraries on Darwin.

* libltdl/m4/libtool.m4 (_LT_CMD_OLD_ARCHIVE): New libtool
variable `lock_old_archive_extraction', set to `yes' on darwin.
* doc/libtool.texi (libtool script contents): Document it.
* libltdl/config/ltmain.m4sh (func_extract_an_archive): Lock
`ar x' invocation if `lock_old_archive_extraction' is yes.
* tests/darwin.at (darwin concurrent library extraction): New
test.
* NEWS: Update.
Report by Akim Demaille.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix testsuite failure of lt_dlopenadvise test on FreeMiNT.
Ralf Wildenhues [Sun, 7 Jun 2009 14:35:11 +0000 (16:35 +0200)] 
Fix testsuite failure of lt_dlopenadvise test on FreeMiNT.

* tests/lt_dladvise.at (lt_dlopenadvise library loading): Do not
build moddepend for systems without shared libraries.
Report by Alan Hourihane.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agotestsuite: avoid failures due to old Automake.
Ralf Wildenhues [Sun, 7 Jun 2009 10:01:56 +0000 (12:01 +0200)] 
testsuite: avoid failures due to old Automake.

* tests/configure-iface.at (installable libltdl)
(--with-ltdl-include/lib, --with-included-ltdl):
Speficy libmodule_la_SOURCES in Makefile.am as the default
source file naming scheme changed in Automake 1.8.
* tests/nonrecursive.at (_LT_AT_LTDL_SETUP): Require Automake
1.9.6.
* THANKS: Update.
Report by Robert Garron.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agotestsuite: add missing @LIBS@ in a link command line.
Ralf Wildenhues [Sun, 7 Jun 2009 09:58:59 +0000 (11:58 +0200)] 
testsuite: add missing @LIBS@ in a link command line.

* tests/old-m4-iface.at (AC_WITH_LTDL): Use @LIBS@ when linking.
Report by Patrice Fromy.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agotestsuite: cope when some installed libltdl.la has been removed.
Ralf Wildenhues [Sun, 7 Jun 2009 09:42:17 +0000 (11:42 +0200)] 
testsuite: cope when some installed libltdl.la has been removed.

* tests/old-m4-iface.at (AC_WITH_LTDL): Pass --with-included-ltdl
to configure, to ensure we do not accidentally link against a
previously installed libltdl.so where the corresponding .la
file has been removed, thus we do not add a run path, and the
runtime linker then fails to find libltdl.so.7.
* tests/configure-iface.at (--with-ltdl-include/lib): Remove -L
flags from LDFLAGS to avoid picking up an installed libltdl
outside of the default locations.
* THANKS: Update.
Prompted by report from Patrice Fromy.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix C wrapper invocation for ceGCC hosts (cegcc and mingw32ce).
Vincent Torri [Sun, 7 Jun 2009 07:25:45 +0000 (09:25 +0200)] 
Fix C wrapper invocation for ceGCC hosts (cegcc and mingw32ce).

* libltdl/config/ltmain.m4sh (func_mode_link): do not generate
C wrapper for cegcc and mingw32ce hosts.
(func_emit_cwrapperexe_src): remove useless check on
__MINGW32CE__.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDon't pick up double-quotes from /etc/ld.so.conf on Ubuntu.
Ralf Wildenhues [Sun, 7 Jun 2009 07:01:12 +0000 (09:01 +0200)] 
Don't pick up double-quotes from /etc/ld.so.conf on Ubuntu.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]
<sys_lib_dlsearch_path_spec>: Remove embedded double quotes from
paths picked up from /etc/ld.so.conf.  Fixes libltdl compile
failure on Ubuntu 7.10.
* THANKS: Update.
Report by Camilo La Rota.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix GNU nm invocation for AIX.
Richard Sandiford [Sat, 6 Jun 2009 06:50:38 +0000 (08:50 +0200)] 
Fix GNU nm invocation for AIX.

* libldtl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
<export_symbols_cmds>: Modify the GNU-nm-on-AIX version so that
it adds weak defined symbols to the export list.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoBuild AIX shared libraries with binutils 2.19.50+.
Richard Sandiford [Sat, 6 Jun 2009 06:48:44 +0000 (08:48 +0200)] 
Build AIX shared libraries with binutils 2.19.50+.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
<lt_use_gnu_ld_interface>: New variable to control whether the
GNU ld or native ld interface is used.  Set to "no" for GNU ld
2.19.50+ on AIX, otherwise mirror $with_gnu_ld.  Update the
warning message that is printed when using GNU ld on AIX.
Adjust the whole_archive_flag_spec value for GNU ld on AIX.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDon't run compiler checks twice.
Peter O'Gorman [Wed, 27 May 2009 19:19:57 +0000 (14:19 -0500)] 
Don't run compiler checks twice.

libltdl/m4/libtool.m4 (_LT_PROG_FC, _LT_PROG_F77,
_LT_PROG_CXX): Remove these macros.
libltdl/m4/lt~obsolete.m4: Add removed macros here.
libltdl/m4/libtool.m4 (_LT_LANG_FC_CONFIG, _LT_LANG_F77_CONFIG,
_LT_LANG_CXX_CONFIG): Remove references to removed macros, and
move functionality here.
NEWS: Update.

16 years agoFix cross compilation for HPPA/64 with a BSD file command.
Rainer Emrich [Tue, 5 May 2009 20:51:03 +0000 (22:51 +0200)] 
Fix cross compilation for HPPA/64 with a BSD file command.

* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD)
[hpux10.20*, hpux11*, !ia64] <lt_cv_deplibs_check_method>:
Match the dot in `PA-RISC 2.0' literally.  Adjust hppa*64*
pattern to also match BSD `file' output, used in cross
compilation setups.
* THANKS: Update.
Report and initial patch by Rainer Emrich, refined by Peter
Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agolibtoolize: ignore trailing junk on scriptversion line.
Ralf Wildenhues [Tue, 5 May 2009 05:39:16 +0000 (07:39 +0200)] 
libtoolize: ignore trailing junk on scriptversion line.

* libtoolize.m4sh (func_install_update): Ignore semi-colon or
comment-sign and all following characters when parsing a
`scriptversion' line in one of the auxiliary scripts; recent
Automake-provided script have a stylized comment to induce
Emacs to use UTC.
Exposed by the `libtoolize config files serial update' test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoSkip localization test when setlocale is not functional.
Ralf Wildenhues [Sat, 2 May 2009 08:55:23 +0000 (10:55 +0200)] 
Skip localization test when setlocale is not functional.

* tests/localization.at (localized compiler messages): Skip
test when there is a warning about `LC_ALL'.
* THANKS: Update.
Report by Maciej Helminiak.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoImproved support for FreeMiNT.
Alan Hourihane [Sat, 2 May 2009 08:42:39 +0000 (10:42 +0200)] 
Improved support for FreeMiNT.

* libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN) [mint]: Hard-code
command line length limit to 8192, to avoid long test.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoInitial port for BlueGene BG/L.
Ralf Wildenhues [Sat, 2 May 2009 08:36:17 +0000 (10:36 +0200)] 
Initial port for BlueGene BG/L.

* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [linux]: Detect bgxl*, bgf*, mpixl*
compilers.
* NEWS, THANKS: Update.
Report, feedback and testing by John R. Cary and Christian
Rössel.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agomanual: fix grammaros.
Ralf Wildenhues [Sat, 2 May 2009 08:31:18 +0000 (10:31 +0200)] 
manual: fix grammaros.

* doc/libtool.texi (Dlpreopening): Fix grammaro.
(C header files): Remove duplicate word.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAllow through -tp=* at link time, for pgcc.
Ralf Wildenhues [Sat, 2 May 2009 08:24:28 +0000 (10:24 +0200)] 
Allow through -tp=* at link time, for pgcc.

* libltdl/config/ltmain.m4sh (func_mode_link): Portlant Group
pgcc uses `-tp=PROCESSOR' for target processor selection; allow
the flag through at link time.
Report by Ethan Mallove.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix quoting of eval'ed variable.
Ralf Wildenhues [Sat, 2 May 2009 07:57:47 +0000 (09:57 +0200)] 
Fix quoting of eval'ed variable.

* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Double-quote
$lt_cv_sys_global_symbol_pipe for eval, like we do in ltmain,
in order to preserve TABs and multiple adjacent whitespace.
Report by Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoCope better with missing `makeinfo' in `bootstrap'.
Ralf Wildenhues [Wed, 22 Apr 2009 18:46:45 +0000 (20:46 +0200)] 
Cope better with missing `makeinfo' in `bootstrap'.

* bootstrap: Update `./doc/notes.txt' last so missing `makeinfo'
does not cause a broken tree.
* THANKS: Update.
Report by Christian Rössel.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years ago[cygwin] Improve operation with gcc4
Yaakov Selkowitz [Sun, 29 Mar 2009 23:45:18 +0000 (19:45 -0400)] 
[cygwin] Improve operation with gcc4

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [cygwin*]:
Add w32api to sys_lib_search_path_spec without overriding gcc's
own search path.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
16 years agoUse correct export_dynamic_flag_spec for PE-COFF $hosts
Yaakov Selkowitz [Sun, 29 Mar 2009 23:38:58 +0000 (19:38 -0400)] 
Use correct export_dynamic_flag_spec for PE-COFF $hosts

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin*|mingw*|pw32*|cegcc*]:
Define export_dynamic_flag_spec as -Wl,--export-all-symbols, as required
by GNU ld for PE-COFF.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
16 years agoImprove compatibility with older automake
Charles Wilson [Sun, 29 Mar 2009 23:25:35 +0000 (19:25 -0400)] 
Improve compatibility with older automake

* libltdl/m4/lt~obsolete.m4: Add AC_DEFUNs for
_LT_PREPARE_SED_QUOTE_VARS and _LT_PROG_ECHO_BACKSLASH.
Report by Yaakov Selkowitz.

16 years agoMerge branch 'master' into pr-msvc-support
Peter Rosin [Sat, 21 Mar 2009 19:09:02 +0000 (20:09 +0100)] 
Merge branch 'master' into pr-msvc-support

16 years agoLT_OUTPUT should always create the libtool script.
Peter Rosin [Fri, 20 Mar 2009 15:42:25 +0000 (16:42 +0100)] 
LT_OUTPUT should always create the libtool script.

* libltdl/m4/libtool.m4 (LT_OUTPUT): Make LT_OUTPUT ignore the
--no-create configure option, and assume that the user wants
to use an up-to-date libtool script if the LT_OUTPUT macro is
present.
* tests/early-libtool.at: Make sure we do not regress.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
16 years agoMerge branch 'master' into pr-msvc-support
Peter Rosin [Wed, 18 Mar 2009 21:47:14 +0000 (22:47 +0100)] 
Merge branch 'master' into pr-msvc-support

16 years agoDon't settle for any dumpbin/link program as name lister.
Peter Rosin [Wed, 18 Mar 2009 18:52:27 +0000 (19:52 +0100)] 
Don't settle for any dumpbin/link program as name lister.

* libltdl/m4/libtool.m4 (LT_PATH_NM): When locating dumpbin or
link -dump, check if they appear to really be capable of name
listing, in order to eliminate e.g. link from coreutils. This
makes the name lister decision fall back on nm as the default if
no acceptable candidate is found, which mainly happens on
(arguably broken) cross compiles.
* NEWS: Update
* THANKS: Update
Reports by Rudolf Leitgeb and Peter Kjellerstedt.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDocument INNER_TESTSUITEFLAGS, drop leading space.
Ralf Wildenhues [Sat, 28 Feb 2009 16:13:27 +0000 (17:13 +0100)] 
Document INNER_TESTSUITEFLAGS, drop leading space.

* README: Document INNER_TESTSUITEFLAGS.
* tests/cmdline_wrap.at (Run tests with low max_cmd_len):
When using INNER_TESTSUITEFLAGS on the testsuite invocation,
drop leading space after "-k libtool", so that the user may
further limit the set of tests to be run.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix low max_cmd_len template test on UnixWare.
Ralf Wildenhues [Mon, 2 Mar 2009 06:25:31 +0000 (07:25 +0100)] 
Fix low max_cmd_len template test on UnixWare.

* libltdl/config/ltmain.m4sh (func_mode_link): When expanding
$reload_cmds, always put objects in $reload_objs rather than
adding them to the command line, to allow more general command
lines in reload_cmds.  Ensure $reload_objs contains a leading
space.
* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [sysv5*,
sco3.2v5*, sco5v6*] <reload_cmds>: For CC, invoke prelinker
before creating reloadable object.
(_LT_CMD_RELOAD) <reload_cmds, reload_flag>: Declare as
_LT_TAGDECL, not _LC_DECL.
(_LT_LANG_CXX_CONFIG, _LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG)
(_LT_LANG_GCJ_CONFIG) <reload_cmds, reload_flag>: Initialize
from default (C tag) value.
* THANKS: Update.
Report and analysis by Tim Rice and John Wolfe.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAdd missing parentheses in the manual.
Ralf Wildenhues [Sat, 28 Feb 2009 21:37:34 +0000 (22:37 +0100)] 
Add missing parentheses in the manual.

* doc/libtool.texi (Distributing libltdl, Test descriptions):
Add missing parentheses.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix C++ template handling for old archives on UnixWare 7.1.4.
Tim Rice [Sat, 28 Feb 2009 13:12:03 +0000 (14:12 +0100)] 
Fix C++ template handling for old archives on UnixWare 7.1.4.

* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [sysv5*,
sco3.2v5*, sco5v6*] <old_archive_cmds>: For CC, add template
prelink step before archiving.  Fixes template.at test failures.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDo not add bogus directory arguments to link command lines.
Török Edwin [Sat, 28 Feb 2009 12:26:59 +0000 (13:26 +0100)] 
Do not add bogus directory arguments to link command lines.

* libltdl/config/ltmain.m4sh (func_mode_link): Ensure $path is
always initialized before it is used.  Reported for zsh, for
which $path contains $PATH entries even after "emulate sh", see
<http://bugs.debian.org/517501>.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoRemove remaining references to CVS.
Andreas Schwab [Wed, 18 Feb 2009 21:47:41 +0000 (22:47 +0100)] 
Remove remaining references to CVS.

* bootstrap: Remove references to CVS.
* README.alpha: Likewise.
* clcommit.m4sh: Likewise.
* doc/libtool.texi: Bump copyright years.
(libtool script contents): Describe macro_revision as revision
without reference to CVS.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDo not pass $INSTALL via TESTS_ENVIRONMENT.
Ralf Wildenhues [Mon, 16 Feb 2009 20:59:34 +0000 (21:59 +0100)] 
Do not pass $INSTALL via TESTS_ENVIRONMENT.

* Makefile.am (TESTS_ENVIRONMENT): Set lt_INSTALL, not INSTALL,
so that a bogus relative path to the install-sh script in the
source tree is not propagated to the configure scripts of the
old test suite.
* tests/testsuite.at: Adjust.
* tests/install.at (Install tests): Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoNew test for lt_dlopenext error message.
Ralf Wildenhues [Tue, 3 Feb 2009 06:58:52 +0000 (07:58 +0100)] 
New test for lt_dlopenext error message.

* tests/lt_dlopenext.at (lt_dlopenext error messages): New file,
with new test, with sources taken from the Autobook example.
* Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agolt_dlopenext sets error upon successful library load.
Kurt Roeckx [Tue, 3 Feb 2009 06:54:33 +0000 (07:54 +0100)] 
lt_dlopenext sets error upon successful library load.

* libltdl/ltdl.c (lt_dlopenadvise): Fix bogus error on
successful loading of library with lt_dlopenext.
Report by Kaiwang Chen in <http://bugs.debian.org/510006>.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix sed script in install.at.
Ralf Wildenhues [Sun, 1 Feb 2009 14:05:37 +0000 (15:05 +0100)] 
Fix sed script in install.at.

* tests/install.at (Install tests): Fix typo in sed script,
fixes test failure on HP-UX.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix $INSTALL in testsuite with relative path to install-sh.
Ralf Wildenhues [Sun, 1 Feb 2009 14:06:03 +0000 (15:06 +0100)] 
Fix $INSTALL in testsuite with relative path to install-sh.

* tests/testsuite.at: If `$INSTALL' points to in-tree
install-sh, override a possibly-relative path to it with an
absolute one.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoinstall mode: do not pass `-m $install_override_mode' to cp.
Ralf Wildenhues [Sun, 1 Feb 2009 14:06:19 +0000 (15:06 +0100)] 
install mode: do not pass `-m $install_override_mode' to cp.

* libltdl/config/ltmain.m4sh (func_mode_install): New variable
$install_cp, factor test when `cp' is used for installation.
Do not pass mode override to cp.  Fixes `libtool --mode=install
cp ...' on HP-UX; cp should not be used for libraries that might
be needed by programs invoked during the installation process.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix sed script portability issue in func_version.
Ralf Wildenhues [Sun, 1 Feb 2009 14:24:00 +0000 (15:24 +0100)] 
Fix sed script portability issue in func_version.

* libltdl/config/getopt.m4sh (func_version): Remove space in
`/\./! {' sed command, to please HP-UX sed.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoNew test for bogus lt_dlopen error message.
Jeff Squyres [Sat, 31 Jan 2009 15:04:07 +0000 (16:04 +0100)] 
New test for bogus lt_dlopen error message.

* tests/lt_dlopen.at (lt_dlopen error messages): New file, new
test, marked as XFAIL for now.
* Makefile.am: Adjust.
Report and reproducible test case by Jeff Squyres.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoexecute mode: do not transform *.lo or *.la arguments.
Ralf Wildenhues [Sat, 31 Jan 2009 14:00:10 +0000 (15:00 +0100)] 
execute mode: do not transform *.lo or *.la arguments.

* libltdl/config/ltmain.m4sh (func_mode_execute): Do not check
arguments matching *.lo or *.la for script wrappers.
* tests/execute-mode.at (execute mode): Add tests.
* NEWS, THANKS: Update.
Report by Paul Biggar.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoNonexistent `main' does not guarantee link failure.
Ralf Wildenhues [Sat, 31 Jan 2009 10:34:06 +0000 (11:34 +0100)] 
Nonexistent `main' does not guarantee link failure.

* tests/fail.at (Failure tests): Use an unresolved symbol,
rather than non-presence of `main', to provoke a link failure
also on QNX.  Only check for failure of the libtool script if
the link without libtool would have failed, too.
Report by Mike Gorchak.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoUse AT_CHECK more liberally in duplicate members test.
Ralf Wildenhues [Sat, 31 Jan 2009 10:27:11 +0000 (11:27 +0100)] 
Use AT_CHECK more liberally in duplicate members test.

* tests/duplicate_members.at (duplicate members in archive
tests): Wrap link commands in AT_CHECK, they might fail, as seen
on QNX.
* THANKS: Update.
Report by Mike Gorchak.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix cwrapper warnings from MSVC 2005.
Akim Demaille [Fri, 30 Jan 2009 07:52:17 +0000 (02:52 -0500)] 
Fix cwrapper warnings from MSVC 2005.

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
[file scope]: define _CRT_SECURE_NO_DEPRECATE.

16 years agoFix bootstrap with older libtool.m4 in reach of aclocal.
Akim Demaille [Thu, 29 Jan 2009 22:43:25 +0000 (23:43 +0100)] 
Fix bootstrap with older libtool.m4 in reach of aclocal.

* libltdl/m4/lt~obsolete.m4: Add stub definitions for
_LT_REQUIRED_DARWIN_CHECKS and _LT_AC_PROG_CXXCPP.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix func_exec_init.
Akim Demaille [Mon, 5 Jan 2009 10:56:24 +0000 (11:56 +0100)] 
Fix func_exec_init.

* tests/defs.m4sh (func_exec_init): Instead of using the undefined
my_dir, call func_dirname_and_basename and use its result.
(func_make): For consistency, don't use the useless local variable
my_dir.

16 years agoDocument --mode short-hands better, and test them.
Ralf Wildenhues [Thu, 29 Jan 2009 18:54:31 +0000 (19:54 +0100)] 
Document --mode short-hands better, and test them.

* doc/libtool.texi (Invoking libtool): Give examples for using
the `--mode=MODE' short-hand `MODE', or abbreviations thereof.
* libltdl/config/ltmain.m4sh: Mention the short-hand for MODE
in the --help output.
* tests/help.at (mode short-hands): New test group.
Suggestion by Bruno Haible.

16 years agofunc_version copes with multi-line copyright headers.
Ralf Wildenhues [Thu, 29 Jan 2009 17:53:13 +0000 (18:53 +0100)] 
func_version copes with multi-line copyright headers.

* libltdl/config/getopt.m4sh (func_version): Slurp in copyright
lines until a period is found.
* libltdl/config/ltmain.m4sh: Multi-line copyright is ok to use
now.
* tests/help.at (standard command line options): New file, new
tests.  Make this test group the first one for libtool tests,
moving the banner ...
* tests/duplicate_members.at: ... from here.
* Makefile.am (TESTSUITE_AT): Add tests/help.at.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoNormalize compiler output due to compiler wrappers.
Akim Demaille [Thu, 29 Jan 2009 17:39:58 +0000 (18:39 +0100)] 
Normalize compiler output due to compiler wrappers.

* tests/testsuite.at (LT_AT_NORMALIZE_COMPILER_OUTPUT): New
macro, to normalize ccache and distcc output.
* tests/localization.at (localized compiler messages): Use it.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoMake modified libtool script in cwrapper test executable
Peter Rosin [Thu, 29 Jan 2009 07:55:08 +0000 (08:55 +0100)] 
Make modified libtool script in cwrapper test executable

* tests/cwrapper.at: Make modified libtool script executable.
Report by Roumen Petrov.

16 years agoClean space uses.
Akim Demaille [Mon, 19 Jan 2009 08:05:31 +0000 (09:05 +0100)] 
Clean space uses.

* libtoolize.m4sh: Remove trailing spaces.
Use <tab><sp>, as some editors remove "useless" spaces in
<sp><tab>.

16 years agoMerge branch 'master' into pr-msvc-support
Peter Rosin [Mon, 26 Jan 2009 23:12:34 +0000 (00:12 +0100)] 
Merge branch 'master' into pr-msvc-support

16 years agoAWK is required, make sure it is set.
Peter Rosin [Mon, 26 Jan 2009 21:37:35 +0000 (22:37 +0100)] 
AWK is required, make sure it is set.

* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS: Make sure
AWK is set (automake brings it in, but is not always used).
Fixes old-m4-iface.at on MSYS/MSVC.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix typo in libtool install mode documentation.
Mike Frysinger [Mon, 26 Jan 2009 04:29:15 +0000 (23:29 -0500)] 
Fix typo in libtool install mode documentation.

* libltdl/config/ltmain.m4sh (func_mode_help): Change -inst-prefix
to -inst-prefix-dir.
* doc/libtool.texi (Install mode): Likewise.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAdd -Wall to cwrapper tests.
Charles Wilson [Sat, 24 Jan 2009 17:04:45 +0000 (12:04 -0500)] 
Add -Wall to cwrapper tests.

* tests/cwrapper.at: Add -Wall existing tests. Add additional
round of tests with -Wall alone.

16 years ago[cygwin|mingw] cwrapper cleanups.
Charles Wilson [Fri, 23 Jan 2009 13:45:38 +0000 (08:45 -0500)] 
[cygwin|mingw] cwrapper cleanups.

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
[file scope]: re-organized includes and portability
macros. Avoid oldnames on MINGW32 and MSVC for
setmode/stat/chmod/getcwd/putenv. Declare _putenv on
MINGW32 when -ansi. Use namespaced macro LT_DEBUGWRAPPER.

16 years agoExpand exit status test in LT_AT_NOINST_EXEC_CHECK correctly
Peter Rosin [Sat, 24 Jan 2009 10:18:15 +0000 (11:18 +0100)] 
Expand exit status test in LT_AT_NOINST_EXEC_CHECK correctly

* tests/testsuite.at (LT_AT_NOINST_EXEC_CHECK): STATUS is
argument $3, not $2.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoMerge master into pr-msvc-support
Peter Rosin [Fri, 23 Jan 2009 14:35:06 +0000 (15:35 +0100)] 
Merge master into pr-msvc-support

16 years agoAdd tests for cwrapper with -std=c89 and -std=c99
Charles Wilson [Thu, 22 Jan 2009 23:36:57 +0000 (18:36 -0500)] 
Add tests for cwrapper with -std=c89 and -std=c99

* tests/cwrapper.at: New file.
* Makefile.am: Add tests/cwrapper.at.

16 years agoMerge branch 'pr-changelog-libtool-ar' into pr-msvc-support
Peter Rosin [Fri, 23 Jan 2009 13:10:57 +0000 (14:10 +0100)] 
Merge branch 'pr-changelog-libtool-ar' into pr-msvc-support

16 years agoAdd ChangeLog for the libtool-ar patch.
Peter Rosin [Fri, 23 Jan 2009 13:09:02 +0000 (14:09 +0100)] 
Add ChangeLog for the libtool-ar patch.

16 years agoMerge branch 'pr-changelog-embed-manifest-exeext' into pr-msvc-support
Peter Rosin [Fri, 23 Jan 2009 12:48:48 +0000 (13:48 +0100)] 
Merge branch 'pr-changelog-embed-manifest-exeext' into pr-msvc-support

16 years agoAdd ChangeLog for the embed-manifest-exeext patch.
Peter Rosin [Fri, 23 Jan 2009 12:45:49 +0000 (13:45 +0100)] 
Add ChangeLog for the embed-manifest-exeext patch.

16 years agoMerge branch 'pr-changelog-msvc-documentation' into pr-msvc-support
Peter Rosin [Fri, 23 Jan 2009 12:42:43 +0000 (13:42 +0100)] 
Merge branch 'pr-changelog-msvc-documentation' into pr-msvc-support

16 years agoAdd ChangeLog for the msvc-documentation patch.
Peter Rosin [Fri, 23 Jan 2009 12:40:35 +0000 (13:40 +0100)] 
Add ChangeLog for the msvc-documentation patch.

16 years agoMerge branch 'pr-changelog-skip-on-no-reload' into pr-msvc-support
Peter Rosin [Fri, 23 Jan 2009 12:33:38 +0000 (13:33 +0100)] 
Merge branch 'pr-changelog-skip-on-no-reload' into pr-msvc-support

16 years agoAdd ChangeLog for the skip-on-no-reload patch.
Peter Rosin [Fri, 23 Jan 2009 12:32:13 +0000 (13:32 +0100)] 
Add ChangeLog for the skip-on-no-reload patch.

16 years agoMerge branch 'pr-tests-newline-fixes' into pr-msvc-support
Peter Rosin [Thu, 22 Jan 2009 22:44:00 +0000 (23:44 +0100)] 
Merge branch 'pr-tests-newline-fixes' into pr-msvc-support

16 years agoMerge branch 'pr-tests-newline-fixes'
Peter Rosin [Thu, 22 Jan 2009 22:42:18 +0000 (23:42 +0100)] 
Merge branch 'pr-tests-newline-fixes'

16 years agoUnify line endings in localization test.
Peter Rosin [Thu, 22 Jan 2009 22:41:06 +0000 (23:41 +0100)] 
Unify line endings in localization test.

* tests/testsuite.at: Update copyright year.
(LT_AT_UNIFY_NL): Add macro that unifies line endings on
platforms that suffer from such confusion.
* tests/localization.at: Use it. Update copyright year. Fixes
the test on MSYS/MSVC.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years ago[cygwin|mingw] Fix compile warnings when -std=c89.
Charles Wilson [Sat, 3 Jan 2009 06:56:54 +0000 (01:56 -0500)] 
[cygwin|mingw] Fix compile warnings when -std=c89.

* libltdl/config/ltmain.m4sh (func_emit_wrapper_part1):
move contents to...
(func_emit_wrapper_part2): move contents to...
(func_emit_wrapper): here.
(func_emit_cwrapperexe_src) [file scope]: Remove
variables script_text_part1 and script_text_part2.
(func_emit_cwrapperexe_src) [lt_dump_script]: New function.
(func_emit_cwrapperexe_src) [main]: Call it.

16 years agoMinor cygwin cleanup
Charles Wilson [Tue, 20 Jan 2009 22:31:43 +0000 (17:31 -0500)] 
Minor cygwin cleanup

libltdl/config/ltmain.m4sh (func_generate_dlsyms): Correct
case pattern for cygwin.

16 years agoAvoid failure due to Cygwin path detection bug.
Ralf Wildenhues [Mon, 19 Jan 2009 22:55:07 +0000 (23:55 +0100)] 
Avoid failure due to Cygwin path detection bug.

* tests/execute-mode.at (execute mode): Ignore noise on stderr;
Cygwin might consider `d\"e' to be a DOS-style path and warn.
Report by Charles Wilson.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoSupport GNU/kOpenSolaris.
Robert Millan [Mon, 19 Jan 2009 22:19:30 +0000 (23:19 +0100)] 
Support GNU/kOpenSolaris.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
GNU/kOpenSolaris.
* libltdl/m4/ltdl.m4 (LT_SYS_DLOPEN_DEPLIBS): Likewise.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAnother LT_AT_EXEC_CHECK fixup.
Ralf Wildenhues [Mon, 19 Jan 2009 20:54:52 +0000 (21:54 +0100)] 
Another LT_AT_EXEC_CHECK fixup.

* tests/shlibpath.at (shlibpath_overrides_runpath): Use
LT_AT_EXEC_CHECK instead of AT_CHECK.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAdd missing $EXEEXT to java test.
Roumen Petrov [Mon, 19 Jan 2009 20:49:58 +0000 (21:49 +0100)] 
Add missing $EXEEXT to java test.

* tests/convenience.at (Java convenience archives): Add $EXEEXT.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoBump copyright years.
Ralf Wildenhues [Mon, 19 Jan 2009 20:31:43 +0000 (21:31 +0100)] 
Bump copyright years.

* ChangeLog.2008: New, rotated from ...
* ChangeLog: ... here.
* Makefile.am (EXTRA_DIST): Add ChangeLog.2008.
* NEWS, libltdl/config/ltmain.m4sh: Bump copyright years.
* libltdl/m4/libtool.m4 (_LT_COPYING, LT_OUTPUT): Likewise.
* libtoolize.m4sh: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>