]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
14 years agoMinor sysroot fixups. sysroot
Charles Wilson [Sat, 28 Aug 2010 22:27:15 +0000 (18:27 -0400)] 
Minor sysroot fixups.

* libltdl/m4/libtool.m4 (_LT_WITH_SYSROOT): Fix typo.
* tests/sysroot.at: Search also for crt0.o to accommodate cygwin.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoAdd ChangeLog entries for the sysroot branch.
Ralf Wildenhues [Sat, 28 Aug 2010 08:16:50 +0000 (10:16 +0200)] 
Add ChangeLog entries for the sysroot branch.

14 years agoMerge branch 'master' into sysroot
Paolo Bonzini [Sun, 22 Aug 2010 07:54:55 +0000 (09:54 +0200)] 
Merge branch 'master' into sysroot

14 years agoFix sed_make_literal_regex.
Paolo Bonzini [Sun, 15 Aug 2010 17:04:08 +0000 (19:04 +0200)] 
Fix sed_make_literal_regex.

* libltdl/config/general.m4sh (sed_make_literal_regex): Fix
definition.

14 years agofix AIX testsuite regression
Ralf Wildenhues [Sun, 22 Aug 2010 07:42:51 +0000 (09:42 +0200)] 
fix AIX testsuite regression

* libltdl/config/ltmain.m4sh (func_resolve_sysroot): Partly
revert v2.2.10-83-gc45a288: Do not absolutize path here, only do
sysroot replacement.
(func_mode_link): Adjust.

14 years agoMerge remote branch 'origin/master' into sysroot
Paolo Bonzini [Sun, 22 Aug 2010 07:29:24 +0000 (09:29 +0200)] 
Merge remote branch 'origin/master' into sysroot

* libltdl/config/ltmain.m4sh (func_mode_finish): Use sed_make_literal_regex.

14 years agofix --mode=finish
Charles Wilson [Sun, 22 Aug 2010 07:39:21 +0000 (09:39 +0200)] 
fix --mode=finish

* libltdl/config/ltmain.m4sh (func_mode_finish): Invert then/else
blocks of the "if $opt_dry_run" conditional.

14 years agoFactor the sed command used to make a regex from a literal.
Paolo Bonzini [Sun, 15 Aug 2010 17:04:08 +0000 (19:04 +0200)] 
Factor the sed command used to make a regex from a literal.

* libltdl/config/general.m4sh (sed_make_literal_regex): New.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms,
func_cygming_dll_for_implib_fallback_core): Use it.  Suggested
by Ralf Wildenhues.

14 years agoAvoid issues with AIX resident shared libraries in old testsuite.
Rainer Tammer [Sat, 21 Aug 2010 08:02:29 +0000 (10:02 +0200)] 
Avoid issues with AIX resident shared libraries in old testsuite.

* tests/defs.m4sh [aix]: Remove file mode permission for others,
so shared libraries are not kept in memory after execution.
Fixes failures of repeated mdemo-inst.test with on AIX 5.3.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoSkip part of versioning test on AIX.
Ralf Wildenhues [Fri, 6 Aug 2010 22:23:22 +0000 (00:23 +0200)] 
Skip part of versioning test on AIX.

* tests/versioning.at (versioning): The AIX linker always
records the unversioned library name, even with runtimelinking,
so skip the execution test for the incompatibly upgraded
library.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoRemove dead code from versioning test.
Ralf Wildenhues [Fri, 6 Aug 2010 21:45:23 +0000 (23:45 +0200)] 
Remove dead code from versioning test.

* tests/versioning.at (versioning): No need to build unused
prog3.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoDon't hide the table of contents in the manual.
Ralf Wildenhues [Fri, 20 Aug 2010 05:02:46 +0000 (07:02 +0200)] 
Don't hide the table of contents in the manual.

* doc/libtool.texi: Move the table of contents to the beginning.
Prompted by patch from Bruno Haible against Automake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoRemove superfluous dependency in Makefile.am.
Ralf Wildenhues [Fri, 20 Aug 2010 05:06:58 +0000 (07:06 +0200)] 
Remove superfluous dependency in Makefile.am.

* Makefile.am (tests/demo-conf.test): Remove dependency on
libtool, this test is a primary source and not generated.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoBump copyright years in manual.
Ralf Wildenhues [Fri, 20 Aug 2010 05:01:20 +0000 (07:01 +0200)] 
Bump copyright years in manual.

* doc/libtool.texi: Bump copyright years.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoimprove code for sysroot --mode=finish
Paolo Bonzini [Sun, 15 Aug 2010 16:54:02 +0000 (18:54 +0200)] 
improve code for sysroot --mode=finish

* libltdl/config/ltmain.m4sh (func_mode_finish): Change sysroot_regex
and sysroot_cmd delimiter from pipe to slash.  Wrap the entire for
loop with "if $opt_dry_run...fi" and print an explanatory message
for the --dry-run case.

14 years agoadd libtool --mode=finish mode for sysroot
Paolo Bonzini [Wed, 11 Aug 2010 19:35:54 +0000 (15:35 -0400)] 
add libtool --mode=finish mode for sysroot

* doc/libtool.texi (Finish mode): Document behavior when *.la files
are passed.
* libltdl/config/ltmain.m4sh (func_mode_finish): Eliminate sysroot
or `=' signs representing it from files in $libs.
* tests/sysroot.at (SYSROOT_TESTS): Test for presence of sysroot
references before running libtool --mode=finish, and for absence
afterwards.

14 years agoreorganize parsing of --mode=finish arguments
Paolo Bonzini [Wed, 11 Aug 2010 19:10:50 +0000 (15:10 -0400)] 
reorganize parsing of --mode=finish arguments

* libltdl/config/ltmain.m4sh (func_mode_finish): Split arguments for
directories and *.la files.

14 years agofix sysroot handling for deplibs of preopened libtool libs
Paolo Bonzini [Thu, 12 Aug 2010 16:06:07 +0000 (12:06 -0400)] 
fix sysroot handling for deplibs of preopened libtool libs

* libltdl/config/ltmain.m4sh: Pass $dependency_libs of preopened libtool
through func_resolve_sysroot.

14 years agofix sysroot tests to pass on Fedora 13
Paolo Bonzini [Fri, 13 Aug 2010 01:04:06 +0000 (21:04 -0400)] 
fix sysroot tests to pass on Fedora 13

* tests/sysroot.at: Link $prefix/include into the sysroot as well, as
required by newer GCC.

14 years agoAllow the use of a listing file if the archiver supports it.
Peter Rosin [Fri, 13 Aug 2010 11:11:54 +0000 (13:11 +0200)] 
Allow the use of a listing file if the archiver supports it.

* libltdl/m4/libtool.m4 (_LT_CMD_OLD_ARCHIVE): Move detection
of a suitable archiver...
(_LT_PROG_AR): ...to here. New macro, also detect if the
archiver supports a listing file with the new variable
archiver_list_spec.
* libltdl/config/ltmain.m4sh: If the archiver supports a listing
file, use it when max_cmd_len is exceeded.  This is needed for
tool chains such as MSVC which do not support piece by piece
linking (-r -o).
* doc/libtool.texi (libtool script contents): Update with
archiver_list_spec description.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoinitial version of the NEWS entry
Paolo Bonzini [Wed, 28 Jul 2010 22:36:21 +0000 (00:36 +0200)] 
initial version of the NEWS entry

* NEWS: Document sysroot support.

14 years agoadd sysroot test
Paolo Bonzini [Wed, 28 Jul 2010 21:56:28 +0000 (23:56 +0200)] 
add sysroot test

* Makefile.am (TESTSUITE_AT): Add tests/sysroot.at.
* tests/sysroot.at: New.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoemit sysrooted paths when installing .la files
Paolo Bonzini [Wed, 28 Jul 2010 22:02:59 +0000 (00:02 +0200)] 
emit sysrooted paths when installing .la files

* libltdl/config/ltmain.m4sh (func_replace_sysroot): New.
(func_mode_link): Prepend paths in $libdir with the sysroot.  Further,
replace the sysroot with = (using func_replace_sysroot) whenever
such a path is written in a .la file.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoprocess postdeps to include sysrooted paths
Paolo Bonzini [Wed, 28 Jul 2010 22:02:15 +0000 (00:02 +0200)] 
process postdeps to include sysrooted paths

* libltdl/m4/libtool.m4 (_LT_FUNC_STRIPNAME_CNF): New (from Charles Wilson).
(_LT_SYS_HIDDEN_LIBDEPS): Require it.  Use func_stripname_cnf to convert
sysroot (-L= and -R=) usage in postdeps.  Adjust the code because -L, -R
and -l flags will now always be separated from the rest of the argument.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agohandle sysrooted paths when reading dependencies to la files
Paolo Bonzini [Wed, 28 Jul 2010 22:00:12 +0000 (00:00 +0200)] 
handle sysrooted paths when reading dependencies to la files

* libltdl/config/ltmain.m4sh (func_mode_execute, func_mode_install,
func_mode_link): Whenever a .la file occurs in another .la file,
expand the sysroot path in it.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
14 years agoteach libtool -L= and -R=
Paolo Bonzini [Wed, 28 Jul 2010 21:59:30 +0000 (23:59 +0200)] 
teach libtool -L= and -R=

* libltdl/config/ltmain.m4sh (func_resolve_sysroot): New.
(func_mode_link): Always pass result of stripping -L and -R to
func_resolve_sysroot before using it.  Remove absolute path expansion
when func_resolve_sysroot subsumes it.  Expand sysroot in -rpath.
When processing dependent libraries also resolve sysroot paths there.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoadd --with-sysroot
Paolo Bonzini [Wed, 28 Jul 2010 21:55:47 +0000 (23:55 +0200)] 
add --with-sysroot

* libltdl/m4/libtool.m4 (_LT_HOST_NONCANONICAL, _LT_WITH_SYSROOT): New.
(LT_SETUP): Require _LT_WITH_SYSROOT.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
14 years agohandle sysroot flags
Paolo Bonzini [Wed, 28 Jul 2010 21:53:19 +0000 (23:53 +0200)] 
handle sysroot flags

* libltdl/config/ltmain.m4sh (func_mode_link): Recognize --sysroot
option.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
14 years agoMake testsuite compatible with Autoconf 2.62 again.
Gary V. Vaughan [Tue, 10 Aug 2010 09:38:03 +0000 (16:38 +0700)] 
Make testsuite compatible with Autoconf 2.62 again.

* tests/getopt-m4sh.at (AT_CHECK): Autotest 2.62 chokes on unquoted
'#' in AT_CHECK, so replace all uses with '@%:@' quadrigraph.
Suggested by Eric Blake <eblake@redhat.com>
Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

14 years agoFix more problematic code from "Add func_append_quoted and do..."
Ralf Wildenhues [Mon, 9 Aug 2010 21:16:12 +0000 (23:16 +0200)] 
Fix more problematic code from "Add func_append_quoted and do..."

* libltdl/config/ltmain.m4sh (func_mode_link): Revert back
func_append instances that as assignments relied on the shell
not performing word splitting on the right hand side of the
assignment.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix another typo on "Add func_append_quoted and do..."
Ralf Wildenhues [Mon, 9 Aug 2010 20:50:45 +0000 (22:50 +0200)] 
Fix another typo on "Add func_append_quoted and do..."

* libltdl/config/ltmain.m4sh (func_mode_link): Fix regression in
computation of finalize_rpath introduced in v2.2.10-40-g0da7d80,
fixing several testsuite failures on AIX.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAvoid unwanted error message in configure output.
Ralf Wildenhues [Sat, 7 Aug 2010 17:16:35 +0000 (19:16 +0200)] 
Avoid unwanted error message in configure output.

* libltdl/m4/libtool.m4 (_LT_PROG_ECHO_BACKSLASH): Try print
in subshell, so eventual `print: not found' is hidden reliably.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix compilation of program sources on AIX.
Ralf Wildenhues [Sat, 7 Aug 2010 17:16:23 +0000 (19:16 +0200)] 
Fix compilation of program sources on AIX.

* tests/lt_dlopenext.at (lt_dlopenext error messages): Do not
use $LIBTOOL when compiling plain object, AIX by default does
not enable static archives.
* tests/ltdl-libdir.at (libdir of installed modules): Likewise.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoDo not call toplevel configure in non-VPATH build.
Ralf Wildenhues [Sat, 7 Aug 2010 11:07:42 +0000 (13:07 +0200)] 
Do not call toplevel configure in non-VPATH build.

* tests/deplibs-mingw.at (deplibs without file command): Use
LT_AT_CONFIGURE for consistency, update comment about why it
might fail.
* tests/pic_flag.at (override pic_flag at configure time): Skip
test if we are building in-tree.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAllow running pic_flag test with different shell.
Ralf Wildenhues [Sat, 7 Aug 2010 11:03:37 +0000 (13:03 +0200)] 
Allow running pic_flag test with different shell.

* tests/testsuite.at (LT_AT_CONFIGURE): Accept optional second
argument specifying the configure script to run.
* tests/pic_flag.at (override pic_flag at configure time):
Use LT_AT_CONFIGURE.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoEnsure not to reverse preserving of --debug for relinking/finish.
Ralf Wildenhues [Sat, 7 Aug 2010 05:41:12 +0000 (07:41 +0200)] 
Ensure not to reverse preserving of --debug for relinking/finish.

* libltdl/config/ltmain.m4sh (func_check_version_match): Only
preserve '--debug' switch if $opt_debug is not equal to ':'.
* tests/help.at (debug tracing): New test group.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix AC_NO_EXECUTABLES test failure on AIX.
Ralf Wildenhues [Fri, 6 Aug 2010 20:03:19 +0000 (22:03 +0200)] 
Fix AC_NO_EXECUTABLES test failure on AIX.

* libltdl/m4/libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Wrap link
test in AC_CACHE_VAL, using cache variable $lt_cv_aix_libpath.
* tests/no-executables.at (AC_NO_EXECUTABLES): Preset it, to
avoid link test.
Bug report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix ltdl-libdir test for C++ compilers.
Ralf Wildenhues [Fri, 6 Aug 2010 19:41:11 +0000 (21:41 +0200)] 
Fix ltdl-libdir test for C++ compilers.

* tests/ltdl-libdir.at (libdir of installed modules): Declare
module function as extern "C".

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoLet `libtool' without arguments point to `--help' again.
Ralf Wildenhues [Wed, 4 Aug 2010 20:30:48 +0000 (22:30 +0200)] 
Let `libtool' without arguments point to `--help' again.

* libltdl/config/ltmain.m4sh (func_check_version_match):
Remove duplicate and wrong error check.
* tests/help.at (standard command line options): Extend test.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAvoid syntax error due to shift of nonexistent parameter.
Ralf Wildenhues [Wed, 4 Aug 2010 20:30:01 +0000 (22:30 +0200)] 
Avoid syntax error due to shift of nonexistent parameter.

* libltdl/config/ltmain.m4sh <command-line handling>: Only shift
if there is a positional parameter to shift.  Fixes `libtool
--help' when dash is used.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix testsuite errors due to shell quoted parameter expansion issue.
Ralf Wildenhues [Tue, 3 Aug 2010 20:27:23 +0000 (22:27 +0200)] 
Fix testsuite errors due to shell quoted parameter expansion issue.

* tests/getopt-m4sh.at (_LT_AT_GETOPT_M4SH_SETUP): Insert space
between double-quoted and unquoted shell parameter, as bash
4.0.28 doesn't add one in its output if the expansion of the
second one starts with a space.
(short option splitting, enhanced shell short option splitting)
(long option splitting, XSI long option splitting): Add space in
expected output.
Fixes testsuite failures on AIX, FreeBSD, etc.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix build failure with AIX sh due to shell quoting error.
Ralf Wildenhues [Tue, 3 Aug 2010 19:49:10 +0000 (21:49 +0200)] 
Fix build failure with AIX sh due to shell quoting error.

* libltdl/config/ltmain.m4sh (func_append_quoted): Document
that this function inserts a separator space.
(func_mode_compile): Do not pass extra space here.
Fixes regression introduced in v2.2.10-49-gc13532a.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix pic_flag test unportabilities.
Ralf Wildenhues [Mon, 2 Aug 2010 20:21:05 +0000 (22:21 +0200)] 
Fix pic_flag test unportabilities.

* tests/pic_flag.at (override pic_flag at configure time): Skip
test if the compiler produces a warning containing `fpic'.
Do not use nonportable `grep -e', for Solaris.
Report by Charles Wilson.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agofix bug in postdeps computation
Paolo Bonzini [Wed, 28 Jul 2010 21:55:24 +0000 (23:55 +0200)] 
fix bug in postdeps computation

* libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Actually concatenate
$prev and $p.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
14 years agoDon't always skip XSI tests
Charles Wilson [Mon, 26 Jul 2010 04:03:07 +0000 (00:03 -0400)] 
Don't always skip XSI tests

tests/getopt-m4sh.at: Use new signature as implemented by
de8a0992b21b76a13c302cf48588ad5f6042595c, when determining
whether to test Extended-shell functions.

14 years agodllimport when the lib is shared and not linking with -static
Peter Rosin [Sun, 18 Jul 2010 15:17:15 +0000 (17:17 +0200)] 
dllimport when the lib is shared and not linking with -static

* tests/stresstest.at: Link with main.lo when liba is shared
and linking main with -no-install.

14 years agodllimport variables for MSVC in stresstest.at
Peter Rosin [Sun, 18 Jul 2010 15:17:06 +0000 (17:17 +0200)] 
dllimport variables for MSVC in stresstest.at

* tests/stresstest.at [MSVC]: dllimport all imported
variables.

14 years agodllimport the variable for MSVC in link-order.at
Peter Rosin [Sat, 17 Jul 2010 02:05:33 +0000 (04:05 +0200)] 
dllimport the variable for MSVC in link-order.at

* tests/link-order.at [MSVC]: Makes the test pass by dllimporting
imported variables when working with shared libraries.

15 years agoMake preloading heed libname_spec.
Peter Rosin [Thu, 8 Jul 2010 16:12:02 +0000 (18:12 +0200)] 
Make preloading heed libname_spec.

Fixes testsuite failure for lt_dladvise.at on MSYS/MSVC.

* libltdl/ltdl.c (libprefix): New static variable describing
the prefix of static archives.
(try_dlopen): Use libprefix.
* libltdl/m4/ltdl.m4 (_LTDL_SETUP): Export prefix of static
archives to config.h. Also fix assignment of LTDLOPEN to be more
efficient and less error prone while at it.

15 years agoFix a spurious trailing space and a botched merge.
Gary V. Vaughan [Thu, 8 Jul 2010 11:47:59 +0000 (18:47 +0700)] 
Fix a spurious trailing space and a botched merge.

* libltdl/m4/libtool.m4 (_LT_PROG_FUNCTION_REPLACE): Remove
spurious trailing space.
* ChangeLog: Reorder to match commit order after botched
merge.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoRename _LT_PROG_XSI_REPLACE macro to _LT_PROG_FUNCTION_REPLACE.
Gary V. Vaughan [Thu, 8 Jul 2010 11:47:59 +0000 (18:47 +0700)] 
Rename _LT_PROG_XSI_REPLACE macro to _LT_PROG_FUNCTION_REPLACE.

* libltdl/m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Rename to
_LT_PROG_REPLACE_SHELLFNS.
(_LT_PROG_XSI_REPLACE): Rename to _LT_PROG_FUNCTION_REPLACE.
(_LT_PROG_FUNCTION_REPLACE): Change decorator comment to use
'Extended shell' rather than 'XSI' on successful replacement.
* libltdl/config/general.m4sh (func_dirname, func_basename)
(func_dirname_and_basename, func_stripname): Change decorator
comment to use 'extended shell' rather than 'XSI' on fallback
implementations.
* libltdl/config/getopt.m4sh (func_split_short_opt)
(func_split_long_opt): Ditto.
* libltdl/config/ltmain.m4sh (func_append, func_append_quoted)
(func_arith, func_len, func_lo2o, func_xform): Ditto.
* tests/getopt-m4sh.at (_LT_AT_XSI_FUNC_EXTRACT): Rename to
_LT_AT_EXTENDED_SHELL_FUNC_EXTRACT.
(_LT_AT_EXTENDED_SHELL_FUNC_EXTRACT): Change regular expression to
match new replacable function decorator comments.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoOptimize assignment of output_la.
Peter Rosin [Thu, 8 Jul 2010 12:23:02 +0000 (14:23 +0200)] 
Optimize assignment of output_la.

* libltdl/config/ltmain.m4sh (func_mode_link): Save two fork/exec
instances.
Report by Ralf Wildenhues.

15 years agoFix a cut-n-pasto in "2010-07-07 Charles Wilson" patch.
Gary V. Vaughan [Thu, 8 Jul 2010 11:33:31 +0000 (18:33 +0700)] 
Fix a cut-n-pasto in "2010-07-07 Charles Wilson" patch.

* libltdl/config/ltmain.m4sh (func_mode_link): Remove spurious
variable dereference.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoTidy m4 comment header underline.
Gary V. Vaughan [Wed, 7 Jul 2010 08:02:07 +0000 (15:02 +0700)] 
Tidy m4 comment header underline.

* libltdl/m4/libtool.m4 (_LT_CHECK_SHAREDLIB_FROM_LINKLIB): Make
sure hyphens in function name comment header underline line up.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years ago[cygwin|mingw] fix dlpreopen with --disable-static
Charles Wilson [Sat, 3 Jan 2009 01:39:15 +0000 (20:39 -0500)] 
[cygwin|mingw] fix dlpreopen with --disable-static

* libltdl/config/general.m4sh (func_tr_sh): New function.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms) [cygwin|mingw]:
Obtain DLL name corresponding to import library by using value
stored in unique variable libfile_$(transliterated implib name).
If that fails, use $sharedlib_from_linklib_cmd to extract DLL
name from import library directly. Also, properly extract dlsyms
from the import library.
(func_mode_link) [cygwin|mingw]: Prefer to dlpreopen DLLs
over static libs when both are available.  When dlpreopening
DLLs, use linklib (that is, import lib) as dlpreopen file,
rather than DLL. Store name of associated la file in
unique variable libfile_$(transliterated implib name)
for later use.
(func_win32_libid): Accomodate pei-i386 import libs
as well as pe-i386.
(func_cygming_dll_for_implib): New function.
(func_cygming_dll_for_implib_fallback): New function.
(func_cygming_dll_for_implib_fallback_core): New function.
(func_cygming_gnu_implib_p): New function.
(func_cygming_ms_implib_p): New function.
* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust sed
expressions for lt_cv_sys_global_symbol_to_c_name_address and
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
as trailing space after module name is optional.
(_LT_LINKER_SHLIBS) [cygwin|mingw][C++]:
Set exclude_expsyms correctly for $host. Simplify regular
expression in export_symbols_cmds.
(_LT_LINKER_SHLIBS) [cygwin|mingw|pw32][C]: Set exclude_expsyms
correctly for $host. Enable export_symbols_cmds to identify
DATA exports by _nm_ prefix.
(_LT_CHECK_SHAREDLIB_FROM_LINKLIB): New macro sets
sharedlib_from_linklib_cmd variable.
(_LT_DECL_DLLTOOL): New macro ensures DLLTOOL is always set.

15 years ago* tests/export.at [MSVC]: dllimport all imported variables.
Peter Rosin [Mon, 5 Jul 2010 11:02:54 +0000 (13:02 +0200)] 
* tests/export.at [MSVC]: dllimport all imported variables.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoSupport for response files with $NM.
Peter Rosin [Thu, 1 Jul 2010 09:36:05 +0000 (11:36 +0200)] 
Support for response files with $NM.

* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS)
<nm_file_list_spec>: New tag variable. Set it to '@' if input
files can be passed to $NM in a file named with the '@' option.
* libltdl/config/ltmain.m4sh (func_mode_link): When
nm_file_list_spec is nonempty, use it to avoid skipped_export.
* doc/libtool.texi (libtool script contents): Document
new variable.

15 years agoFix ccache test for MSVC.
Ralf Wildenhues [Sat, 16 Aug 2008 16:19:43 +0000 (18:19 +0200)] 
Fix ccache test for MSVC.

* tests/static.at (ccache -all-static): Ignore compiler stderr.
Reported by Peter Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAvoid false failures caused by filesystem interaction
Charles Wilson [Fri, 25 Jun 2010 04:06:30 +0000 (00:06 -0400)] 
Avoid false failures caused by filesystem interaction

* tests/dlloader-api.at (dlloader API): Use uglified names for
pseudo-modules.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
15 years agoFix typo in "Add func_append_quoted and do..."
Peter Rosin [Sat, 3 Jul 2010 08:14:35 +0000 (10:14 +0200)] 
Fix typo in "Add func_append_quoted and do..."

* libltdl/config/ltmain.m4sh (func_mode_compile): Use
func_append_quoted instead of func_append.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoDon't trigger file name expansion when embedding manifests.
Peter Rosin [Fri, 2 Jul 2010 06:17:19 +0000 (08:17 +0200)] 
Don't trigger file name expansion when embedding manifests.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
[ cygwin, mingw, cegcc ] <cl*>: Remove all spaces in the
case statement of postlink_cmds to make file name expansion
more unlikely.
(_LT_LANG_CXX_CONFIG): Likewise, but also add the missing |.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoFix regression caused by "Add func_append_quoted and do..."
Peter Rosin [Thu, 1 Jul 2010 17:22:29 +0000 (19:22 +0200)] 
Fix regression caused by "Add func_append_quoted and do..."

* libltdl/config/ltmain.m4sh (func_mode_link): Remove leftover
"_libs" trash.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoFor MSVC, embed the manifest as a resource in the executable.
Peter Rosin [Mon, 28 Jun 2010 07:31:11 +0000 (09:31 +0200)] 
For MSVC, embed the manifest as a resource in the executable.

Fixes a lot of testsuite failures with MSVC 2003 (v8.0) and
above (and perhaps also MSVC .Net) related to running programs
that have been moved (e.g. installed) without their manifests
also having been moved.

* libltdl/m4/libtool.m4 (_LT_PATH_MANIFEST_TOOL): New macro
that locates the Manifest Tool (mt) and verifies that it is
indeed the manifest tool. The result is stored in the new
variable MANIFEST_TOOL.
(_LT_LINKER_SHLIBS) <postlink_cmds>: New tag variable.
[ cygwin, mingw, cegcc ] <cl*>: Embed the manifest file as a
resource. Make sure the embedding work regardless of if the
@OUTPUT@ file name includes a trailing $EXEEXT.
(_LT_LANG_CXX_CONFIG): Likewise.
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG): Require the above
_LT_PATH_MANIFEST_TOOL.
* libltdl/config/ltmain.m4sh (func_mode_link): After linking
a program, replace @OUTPUT@ in $postlink_cmds and then execute
the commands.
* doc/libtool.texi (libtool script contents): Document
new postlink_cmds variable.
(LT_INIT): Add that the MANIFEST_TOOL environment variable can
be used to override the manifest tool to use.
* tests/exeext.at: New. Make sure linking with both -o prog
and -o prog$EXEEXT works.
* Makefile.am (TESTSUITE_AT): Update.
(TESTS_ENVIRONMENT): Propagate $(MANIFEST_TOOL) to the
testsuite.
* NEWS: Add note of the new MANIFEST_TOOL environment variable.

15 years agoAdd MSVC support.
Peter Rosin [Thu, 24 Jun 2010 05:28:16 +0000 (07:28 +0200)] 
Add MSVC support.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG) [mingw, cygwin]: Add
support for the Microsoft C/C++ Compiler (cl) relying on help
from the compile script in Automake.
* NEWS: Add note of the above.

15 years agoSkip `enhanced shell option appending' test when not available.
Gary V. Vaughan [Thu, 1 Jul 2010 03:44:12 +0000 (10:44 +0700)] 
Skip `enhanced shell option appending' test when not available.

* tests/getopt-m4sh.at [enhanced shell option appending]:
_LT_AT_XSI_FUNC_EXTRACT will not be able to find the enhanced
libtool func_append function if the replacement wasn't substituted
by configure, since the decorator comments will be different - in
that case simply skip the test.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoAdd func_append test cases for smart and retarded implementations.
Gary V. Vaughan [Tue, 29 Jun 2010 22:12:42 +0000 (05:12 +0700)] 
Add func_append test cases for smart and retarded implementations.

* tests/getopt-m4sh.at (_LT_AT_FALLBACK_FUNC_EXTRACT): New
macro to extract a fallback function implementation from
ltmain.m4sh.
[option appending]: Use it for a test of the fallback
implementation of func_append.
[enhanced shell option appending]: And also test the enhanced
implementation.
* libltdl/config/ltmain.m4sh (func_append_quoted): Fix missing \
to escape a quoted space for eval.
* libltdl/m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Fix missing $ in
dereference of func_append inline replacement for retarded
shells.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoCorrect func_split_short_opt comment cut-n-pasto.
Gary V. Vaughan [Tue, 29 Jun 2010 09:32:46 +0000 (16:32 +0700)] 
Correct func_split_short_opt comment cut-n-pasto.

* libtool/config/getopt.m4sh (func_split_short_opt): Fix
the function comment.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoUse a real XSI compliant func_split_short_opt substitution.
Gary V. Vaughan [Tue, 29 Jun 2010 09:29:30 +0000 (16:29 +0700)] 
Use a real XSI compliant func_split_short_opt substitution.

* libtool/m4/libtool.m4 (_LT_CHECK_SHELL_FEATURES): Remove
test ${foo:n:m} substrings, instead adding a ${foo%??} check
to the existing XSI tests.
(_LT_PROG_XSI_SHELLFNS): Remove the ${foo:n:m} based
func_split_short_opt substitution in favour of a properly
XSI compliant substitution.
Suggested by Paolo Bonzini.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoAdd func_append_quoted and do inline func_append substitutions.
Gary V. Vaughan [Sun, 27 Jun 2010 23:06:22 +0000 (06:06 +0700)] 
Add func_append_quoted and do inline func_append substitutions.

* libtool/config/ltmain.m4sh: Replace all occurrences of
`foo="$foo bar"' with func_append. No decorator comment was
added since /func_append [a-zA-Z0-9_]* "/ is already an
excellent match regexp, and additional comments would only
complicate things.
(func_append_quoted): New function that quotes a value with
func_quote_for_eval before appending it.  To avoid quoting the
whitespace in the passed value, a single whitespace is added
automatically.  Changed callers where possible.
* libtool/m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Perform a
`+=' implementation substitution for func_append_quoted.  More
importantly, systematically replace matching func_append calls
with inline `+=' when supported (for maximum speed), and
longhand `foo="$foo bar"' otherwise to avoid the function
overhead.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoAdd an XSI replacement for func_split_short_opt, with test cases.
Gary V. Vaughan [Sun, 27 Jun 2010 10:21:59 +0000 (17:21 +0700)] 
Add an XSI replacement for func_split_short_opt, with test cases.

* libltdl/config/getopt.m4sh (m4go_shortnoargs): Remove 'v' now
that getopt.m4sh doesn't steal that letter for the --version
short option.
* libltdl/config/ltmain.m4sh (M4SH_GETOPTS): We can now use 'v'
as a short option for '--verbose'.
* libltdl/config/getopt.m4sh (m4go_printopts): Add back in the
leading '-' for remaining non-argument short options.
(func_split_short_opt): Use the correct sed script variable.
* libltdl/m4/libtool.m4 (_LT_CHECK_SHELL_FEATURES): Also ensure
that XSI substring extraction is supported.
(_LT_PROG_XSI_SHELLFNS): Use XSI substring extraction to split
short options to avoid unnecessary forks if the host shell
supports that.
* tests/getopt-m4sh.at: New tests for getopt.m4sh coverage.
* Makefile.am (TESTSUITE_AT): Add getopt-m4sh.at.
(TESTS_ENVIRONMENT): Pass M4SH and SED for substition into the
m4sh expansion performed in tests/getopt-m4sh.at.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoAdd missing case branch terminators.
Gary V. Vaughan [Sun, 27 Jun 2010 12:19:18 +0000 (19:19 +0700)] 
Add missing case branch terminators.

* libltdl/config/ltmain.m4sh: Fixed everal case branches with
missing ';;' terminators.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoUse TAB-SPACE in preference to SPACE-TAB.
Gary V. Vaughan [Sun, 27 Jun 2010 10:19:35 +0000 (17:19 +0700)] 
Use TAB-SPACE in preference to SPACE-TAB.

* libltdl/m4/libtool.m4 (_LT_PROG_XSI_REPLACE): Some editors
might optimise away the SPACE in SPACE-TAB sequences, so use
TAB-SPACE just in case.
Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoAmend a missed opt_mode rename instance in ltmain.m4sh.
Gary V. Vaughan [Sun, 27 Jun 2010 07:54:57 +0000 (14:54 +0700)] 
Amend a missed opt_mode rename instance in ltmain.m4sh.

* libltdl/config/ltmain.m4sh <mode>: Rename to opt_mode.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoFix portability regressions in today's earlier changeset.
Gary V. Vaughan [Sun, 27 Jun 2010 06:57:50 +0000 (13:57 +0700)] 
Fix portability regressions in today's earlier changeset.

* libltdl/m4/libtool.m4 (_LT_PROG_XSI_REPLACE): `sed -i' is not
portable; use `mv -f ...|| cp -f ...' instead.
Add an initial backslash to sed `c' substitutions with leading
whitespace, so that indentation is not removed by some non-POSIX
compliant sed implementations.
(_LT_PROG_XSI_SHELLFNS): Display a diagnostic warning message if
one or more XSI function replacements failed.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agogetopt.m4sh generated libtool option parser, and XSI improvements.
Gary V. Vaughan [Fri, 11 Jun 2010 17:12:09 +0000 (00:12 +0700)] 
getopt.m4sh generated libtool option parser, and XSI improvements.

* libltdl/m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Moved portable
shell versions of various utility functions from here...
* libltdl/config/getopt.m4sh (func_split_long_opt): ...to here...
* libltdl/config/general.m4sh (func_dirname, func_basename)
(func_dirname_and_basename, func_strip_name): ...here...
* libltdl/config/ltmain.m4sh (func_append, func_arith, func_len)
(func_lo2o, func_xform): ...and here.
* libltdl/config/libtool.m4 (_LT_PROG_XSI_REPLACE): New macro that
expands into a sed command for replacing the contents of a
suitably decorated shell function with an alternate XSI
implementation.
(_LT_PROG_XSI_SHELLFNS): Use it to replace the portable shell
versions of the functions above with equivalent XSI
implementations that avoid unnecessary forks if the host shell
supports that.
* libltdl/config/ltmain.m4sh: Replace hand written shell code
with a call to M4SH_GETOPTS. Rename some option variables in
the client code to match the generated option parser settings.
* libltdl/config/general.m4sh (func_echo, func_error)
(func_warning): Use $opt_mode instead of obsoleted $mode in
message leader.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years ago[cygwin] Refactor C++ exception handling for Win32 correctness
Charles Wilson [Sun, 20 Jun 2010 04:59:02 +0000 (00:59 -0400)] 
[cygwin] Refactor C++ exception handling for Win32 correctness

* tests/exception.at (common.h): New file, refactored from
(module.h): Move declaration of modexc to libcommon.
Include common.h. Use explicit import/export markings for
symbols when building on win32 or cygwin.
(common.cpp): New file.
(module.cpp): Ensure correct symbols markings when including
module.h.
(lib.h): Use explicit import/export markings for symbols
when building on win32 or cygwin.
(lib.cpp): Ensure correct symbol markings when including lib.h.
(main.cpp): Include common.h.
(commands): Ensure correct symbol markings when compiling
main.cpp, and lib.cpp, and module.cpp. Add command to compile
common.cpp, and to link libcommon.la.  Add libcommon.la when
linking module.la and main.  Add command to install libcommon.la.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
15 years agoEnsure getopts.m4sh is compatible with Autoconf-2.61 and newer.
Gary V. Vaughan [Mon, 21 Jun 2010 12:49:29 +0000 (19:49 +0700)] 
Ensure getopts.m4sh is compatible with Autoconf-2.61 and newer.

* libltdl/config/getopt.m4sh (m4_chomp): Ensure this macro is
implemented even if Autoconf's m4sugar.m4 doesn't provide it.
(m4go_expand): New macro based on Autoconf-2.64 m4_expand. Use
it everywhere incase m4sugar.m4 doesn't have an implementation.
(m4_ifnblank): Replace all uses with m4_ifval, which was
available long before m4_ifnblank was introduced.

15 years agoFix clean mode for HP-UX 11.31 sh.
Ralf Wildenhues [Sat, 19 Jun 2010 21:59:45 +0000 (23:59 +0200)] 
Fix clean mode for HP-UX 11.31 sh.

* libltdl/config/ltmain.m4sh (func_mode_uninstall): Do not try
to match a null string in a case pattern, even with surrounding
spaces.  Fixes `lt_dlopenadvise library loading' test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAdd comment for exception handling module unloading issue.
Ralf Wildenhues [Sun, 20 Jun 2010 17:10:38 +0000 (19:10 +0200)] 
Add comment for exception handling module unloading issue.

* tests/exceptions.at (C++ exception handling): Add comment
for last patch.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix flags test failure when ld is used as linker.
Ralf Wildenhues [Sat, 19 Jun 2010 19:07:50 +0000 (21:07 +0200)] 
Fix flags test failure when ld is used as linker.

* tests/flags.at (passing CC flags through libtool): When $LD
is used for linking libraries, ensure flags passed with `-Wc,'
are not passed through to $LD, but flags passed with `-Wl,' use
$wl when linking programs.  Fixed testsuite failure on HP-UX
10.20.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years ago[cygwin] Fix segfault in C++ exception handling test
Charles Wilson [Sat, 19 Jun 2010 20:29:45 +0000 (16:29 -0400)] 
[cygwin] Fix segfault in C++ exception handling test

* tests/exceptions.at (main.cpp:exceptions_in_module):
Move dlclose outside catch block; otherwise __cxa_end_catch
(part of the cygwin g++ ABI) accesses pointers to data inside
unloaded DLL. This is a platform ABI-specific bug, but is
likely common to many platforms' g++ and/or other C++
compilers.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
15 years agoFix srcdir computation for manual runs of old tests.
Ralf Wildenhues [Sat, 19 Jun 2010 15:06:33 +0000 (17:06 +0200)] 
Fix srcdir computation for manual runs of old tests.

* tests/defs.m4sh: Strip trailing `/tests' from srcdir, to allow
`$srcdir/tests/FOO.test' to be run from the top build directory.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoClean up @var handling in the manual.
Ralf Wildenhues [Sat, 19 Jun 2010 14:40:51 +0000 (16:40 +0200)] 
Clean up @var handling in the manual.

* doc/libtool.texi: Throughout the manual, replace @var with
@samp or @code as appropriate, ensure the argument of remaining
@var uses are lower-case.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoLet the bootstrap script fail upon errors.
Ralf Wildenhues [Sat, 19 Jun 2010 09:22:18 +0000 (11:22 +0200)] 
Let the bootstrap script fail upon errors.

* bootstrap: Enable errexit.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFixup botched ChangeLog entry, fix name added to THANKS.
Ralf Wildenhues [Sat, 19 Jun 2010 08:54:35 +0000 (10:54 +0200)] 
Fixup botched ChangeLog entry, fix name added to THANKS.

15 years agoFix execute mode test for OSF/1 5.1.
Ralf Wildenhues [Wed, 9 Jun 2010 18:09:37 +0000 (20:09 +0200)] 
Fix execute mode test for OSF/1 5.1.

* tests/execute-mode.at (execute mode): Do not use grep -F
with an empty pattern.
* THANKS: Update.
Report by Jay K.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUse config.cache variable for PIC flag, to allow override.
Ralf Wildenhues [Sat, 19 Jun 2010 04:47:42 +0000 (06:47 +0200)] 
Use config.cache variable for PIC flag, to allow override.

* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) <lt_prog_compiler_pic>:
Save result, and allow override, through cache variable
lt_cv_prog_compiler_pic{,_CXX,_F77,_FC}.  The cache variable
needs to contain an eventual -DPIC.
* doc/libtool.texi (): Document it.
* tests/pic_flag.at (override pic_flag at configure time):
New file, new test.
* Makefile.am (TESTSUITE_AT): Update.
* NEWS, THANKS: Update.
Suggestion by Joakim Tjernlund and Paolo Bonzini.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoOptimize func_ltwrapper_scriptname to assume a cwrapper.
Ralf Wildenhues [Wed, 16 Jun 2010 04:03:27 +0000 (06:03 +0200)] 
Optimize func_ltwrapper_scriptname to assume a cwrapper.

* libltdl/config/ltmain.m4sh (func_ltwrapper_scriptname): Do not
call func_ltwrapper_executable_p again here, this function is
documented to allow being called with wrapper executables.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix bootstrap script to cope with changed AC_INIT arguments.
Ralf Wildenhues [Tue, 15 Jun 2010 17:23:16 +0000 (19:23 +0200)] 
Fix bootstrap script to cope with changed AC_INIT arguments.

* bootstrap: When extracting PACKAGE and VERSION from AC_INIT
arguments, be sure to remove a 'GNU ' prefix and lowercase the
package name for PACKAGE.  Also set PACKAGE_NAME and PACKAGE_URL
appropriately for GNU software.  Pass these variables to the
make commands creating tests/package.m4 and other files.
* Makefile.am (edit): Fix substitution of PACKAGE_NAME and
PACKAGE_STRING.
* libltdl/config/announce-gen.m4sh: Use @PACKAGE@ not
@PACKAGE_STRING@.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoOn Windows, find potential libs regardless of file name case.
Peter Rosin [Tue, 15 Jun 2010 20:52:33 +0000 (22:52 +0200)] 
On Windows, find potential libs regardless of file name case.

* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD),
libltdl/config/ltmain.m4sh (func_mode_link): On Windows,
find potential libs regardless of file name case.
* tests/nocase.at: New test, to check for regressions
of the above.
* Makefile.am: Add above new test.
* doc/libtool.texi (libtool script contents): Document
new variables.
* NEWS: Updated.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAvoid GCC -Wall compiler warning in dlopen self test.
Philip Allison [Tue, 15 Jun 2010 18:09:48 +0000 (20:09 +0200)] 
Avoid GCC -Wall compiler warning in dlopen self test.

* libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Fix unused
variable warning in test program.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix cleaning of uninstalled w32 shell wrapper in subdirs.
Ralf Wildenhues [Tue, 15 Jun 2010 03:19:45 +0000 (05:19 +0200)] 
Fix cleaning of uninstalled w32 shell wrapper in subdirs.

* libltdl/config/ltmain.m4sh (func_mode_uninstall): Do not
override global objdir variable, instead use odir for the
directory of to-be-removed files.  Drop unneeded origobjdir.
Report by Charles Wilson.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoEnable colored Autotest testsuite output if available.
Ralf Wildenhues [Sun, 13 Jun 2010 09:46:16 +0000 (11:46 +0200)] 
Enable colored Autotest testsuite output if available.

* tests/testsuite.at: Move AT_INIT call down to late in the
file, all prior code can go beforehand.
Call AT_COLOR_TESTS if defined.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoPass resident test with --disable-shared too.
Peter O'Gorman [Mon, 14 Jun 2010 16:04:17 +0000 (11:04 -0500)] 
Pass resident test with --disable-shared too.

* tests/resident.at: use LTDL_SET_PRELOADED_SYMBOLS.

15 years agoTest with --disable-shared at release time too.
Peter O'Gorman [Mon, 14 Jun 2010 03:27:31 +0000 (22:27 -0500)] 
Test with --disable-shared at release time too.

* HACKING: Note it.

15 years agoAvoid failure for --disable-shared.
Peter O'Gorman [Mon, 14 Jun 2010 03:26:48 +0000 (22:26 -0500)] 
Avoid failure for --disable-shared.

* tests/lt_dladvise.at: Hack.

15 years agoUse LTDL_SET_PRELOADED_SYMBOLS to avoid failure.
Peter O'Gorman [Mon, 14 Jun 2010 03:21:54 +0000 (22:21 -0500)] 
Use LTDL_SET_PRELOADED_SYMBOLS to avoid failure.

* tests/exceptions.at: Use it.

15 years agoPrint Libtool project URL in program --help output.
Ralf Wildenhues [Sun, 13 Jun 2010 10:28:58 +0000 (12:28 +0200)] 
Print Libtool project URL in program --help output.

* configure.ac (AC_INIT): Set PACKAGE argument to `GNU Libtool',
so Autoconf knows this is GNU software.  For Autoconf < 2.64,
if AC_PACKAGE_URL is not defined, substitute PACKAGE_URL.
* Makefile.am (edit): Substitute PACKAGE_URL.
($(srcdir)/tests/package.m4): Also depend on Makefile.am.
Define AT_PACKAGE_URL, for `tests/testsuite --help' output.
* libltdl/config/getopt.m4sh (func_help): Also extract comment
lines that mention a home page and general GNU help.
* libltdl/config/ltmain.m4sh: Use @PACKAGE_BUGREPORT@ instead of
hard-coded list address.  Also mention Libtool home page and
general GNU help web page.
* libtoolize.m4sh: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoImprove libdir usage from within ltdl on MinGW.
Peter Rosin [Thu, 10 Jun 2010 17:53:39 +0000 (19:53 +0200)] 
Improve libdir usage from within ltdl on MinGW.

* libltdl/ltdl.c (parse_dotla_file) [__WINDOWS__]: Read the
libdir entry in the .la file, but accept it only if it is not
a unix-style absolute name.
* tests/ltdl-libdir.at: New test that checks if ltdl finds an
installed module via the libdir variable in the .la file.  On
MinGW, use a Windows-style libdir name including drive spec.
* Makefile.am: Add above.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSkip bindir install test if we're not building shared.
Peter O'Gorman [Fri, 11 Jun 2010 19:22:55 +0000 (14:22 -0500)] 
Skip bindir install test if we're not building shared.

* tests/bindir.at: Skip install test if necessary.
* THANKS: Update.
Report by Michael E Faenza.