* libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC, AC_LIBTOOL_PROG_LD_SHLIBS)
[solaris]: Update wl for Sun Studio f77/f90/f95. Fix
whole_archive_flag_spec for cc and f77/f90/f95 to prevent reordering in
case we link with $CC.
Gary V. Vaughan [Fri, 22 Apr 2005 09:05:43 +0000 (09:05 +0000)]
The FSF are moving offices today. Changed their contact address
in all files from `59 Temple Place, Suite 330, MA 02111-1307' to
`51 Franklin Street, Fifth Floor, MA 02110-1301'.
* libtool.m4 (_LT_COMPILER_BOILERPLATE, _LT_LINKER_BOILERPLATE):
New macros: save warnings and boilerplate of simple compile/link tests.
(AC_LIBTOOL_LANG_C_CONFIG, AC_LIBTOOL_LANG_CXX_CONFIG,
AC_LIBTOOL_LANG_F77_CONFIG, AC_LIBTOOL_LANG_GCJ_CONFIG,
AC_LIBTOOL_LANG_RC_CONFIG): Call.
(AC_LIBTOOL_COMPILER_OPTION, AC_LIBTOOL_LINKER_OPTION, AC_LIBTOOL_PROG_CC_C_O):
Fail only if nonempty warnings different from default compile/link.
* NEWS: Update.
* ltmain.in: Don't add files with the same base name to an
archive; rename duplicates instead.
(func_extract_an_archive): Remove section to deal with duplicate
base names in an archive.
* tests/func_extract_archives.test: remove.
* tests/duplicate_members.test: new test.
* tests/Makefile.am: Add new test, remove old.
Fix the order of -L flags added for libtool dep libs.
* ltmain.in (link mode): Add to tmp_libs paths for libtool dep
libs in reverse order as well.
* tests/defs: Set $build to allow to detect cross-compiles.
* tests/Makefile.am, tests/linkorder.test: New test.
Ralf Wildenhues [Tue, 22 Mar 2005 07:40:53 +0000 (07:40 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [solaris]: Use ${wlarc}
and set to empty when using $LD for linking. Fixes regression
introduced in 2004-12-20.
Reported by Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> and
Пухальский Юрий Андреевич <pooh@cryptopro.ru>.
Ralf Wildenhues [Mon, 21 Mar 2005 18:16:49 +0000 (18:16 +0000)]
* libtool.m4 (AC_LIBTOOL_SETUP, AC_LIBTOOL_LANG_CXX_CONFIG,
AC_LIBTOOL_LANG_F77_CONFIG, AC_LIBTOOL_PROG_LD_SHLIBS):
For matching compiler names: Pick only first word, allow leading white
space..
* tests/sh.test: ..and test for missing `*' at end of patterns.
Peter O'Gorman [Fri, 18 Mar 2005 15:33:58 +0000 (15:33 +0000)]
* libtool.m4: The compiler can be a program name with args, so
always check cc_basename against compiler name and a wildcard.
Also, drop unnecessary quotes in `case' argument.
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG) [ solaris2.6+ ]:
When linking convenience libraries on Solaris with the Sun C++
compiler, pass convenience libraries through to the linker with
-Qoption between allextract/defaultextract. The Sun C++ compiler
bundles -Qoption arguments so convenience libraries are linked with
defaultextract otherwise.
Backport of branch-2-0 patch dated 2004-03-14.
Per Bothner [Tue, 15 Mar 2005 14:51:57 +0000 (14:51 +0000)]
Allow special characters in source file names. Will break unless
`-o target' is also given, which must not contain special characters.
En passant, fix source file quoting broken for cygwin/MSVC.
Gary V. Vaughan [Thu, 10 Mar 2005 20:20:41 +0000 (20:20 +0000)]
* libltdl/Makefile.am (install-data-local): Don't force v7 tar
format with the `o' flag in create mode.
Set the umask to 0 when untarring to avoid copied files taking
their mode from the installer's umask.
* libtoolize.m4sh (func_copy_cb): Ditto.
Ignore errors from failed `cd' in the tar processes, since we
may be running in dryrun mode.
* libltdl/Makefile.am (ltdldatafiles): List all files needed to
build a newly libtoolize installed libltdl directory even if the
parent project doesn't use autoconf and automake.
Reported by Noah Misch <noah@cs.caltech.edu>,
Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG,
AC_LIBTOOL_PROG_LD_SHLIBS) [irix*, osf*]: Output -update_registry
information to ${output_objdir} directory, not ${objdir}.
${output_objdir} will work when a project has a single Makefile and
performs builds in subdirectories. ${objdir} expects the source in
the current directory, breaking single-Makefile builds.
Peter O'Gorman [Fri, 25 Feb 2005 14:14:20 +0000 (14:14 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): The Portland group's
compiler does not pass --whole-archive. Move gnu ld check for
the flag to the top so it can be overridden.
(AC_LIBTOOL_LANG_CXX_CONFIG): Unset whole_archive_flag_spec for
the portland group's c++ compiler too.
Reported by Jeff Squyres <jsquyres@lam-mpi.org>
Gary V. Vaughan [Thu, 24 Feb 2005 12:06:04 +0000 (12:06 +0000)]
Using `libtoolize --copy --ltdl' was not preserving timestamps, so
parts of the autoconf bootstrap would be rerun spuriously after
the files had been copied into the source tree:
* libtoolize.in: Use $tar to copy files to preserve timestamps.
(tar): New default tar command.
(cp): Use -p to try and preserve timestamps.
* libltdl/Makefile.am (ltdldatadir): Installation destination for
libltdl sources.
(install-data-local): New rule to install libltdl tree with tar to
preserve timestamps.
(local-install-files): Removed.
Reported by Jeff Squyres <jsquyres@lam-mpi.org>
Peter O'Gorman [Sat, 5 Feb 2005 13:59:49 +0000 (13:59 +0000)]
* ltmain.in (func_extract_archives) [darwin]: This didn't actually
work on a real fat archive, should do now.
* tests/func_extract_archives.test: remove darwin fat tests which
did not actually work.
Charles Wilson [Thu, 3 Feb 2005 15:01:21 +0000 (15:01 +0000)]
Backported from branch-2-0:
* ltmain.in (func_generate_dlsyms): addresses
in _preloaded_symbols[] cannot go into .rdata section
if symbols are DATA imported from DLL, on windows,
because runtime relocations must happen.
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS):
build exports for symbols in .rdata sections
Reid Spencer [Thu, 3 Feb 2005 12:58:07 +0000 (12:58 +0000)]
* ltmain.in (link mode) [cygwin]: Fix broken subdir path
computation, exposed by using `-dlopen self'. Fix broken sed
script exposed by additionally using `-export-symbols FILE'.
Peter O'Gorman [Thu, 3 Feb 2005 03:53:07 +0000 (03:53 +0000)]
* ltmain.in [darwin]: Don't add installed libs to temp_rpath when
building executables on darwin, or other systems which use
hardcode_automatic. It may break our wrapper scripts.
Ralf Wildenhues [Mon, 31 Jan 2005 17:32:18 +0000 (17:32 +0000)]
* libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): Unicos 9 sed rejects
empty parentheses as in 's/x()/1/'.
(AC_LIBTOOL_PROG_COMPILER_PIC) [unicos*]: wl=-Wl,.
Ralf Wildenhues [Wed, 26 Jan 2005 17:53:51 +0000 (17:53 +0000)]
* tests/Makefile.am: also re-export CPP, F77, FFLAGS, CXX,
CXXFLAGS, CXXCPP, and the value of SHELL as CONFIG_SHELL.
Reported by Heinz Salzmann <heinz.salzmann@micronas.com>.
Ralf Wildenhues [Mon, 24 Jan 2005 07:43:51 +0000 (07:43 +0000)]
* libtool.m4 (AC_LIBTOOL_CONFIG) [mingw, cygwin, pw32, os2]:
Add _LT_DECLs for host_os, build_alias, build and build_os.
host_os and build were used in a few occasions in ltmain.in
and affect above-mentioned systems, the others are added for
symmetry.
Peter O'Gorman [Sun, 16 Jan 2005 14:07:07 +0000 (14:07 +0000)]
* ltmain.in: Don't pass through compiler-like thread flags when
using $LD to do the linking. Use compiler_flags instead.
Reported by Mark_Andrews@isc.org.
Peter O'Gorman [Sun, 16 Jan 2005 12:26:54 +0000 (12:26 +0000)]
* libtool.m4 (LT_CMD_MAX_LEN) [osf]: On Tru64 there could
be a kernel panic when testing the maximum command line length
if exec_disable_arg_limit=1. Don't do the tests to figure it
out on *-osf*.
Reported by Dr. Hans Ekkehard Plesser
<hans.ekkehard.plesser@umb.no>
Ralf Wildenhues [Thu, 13 Jan 2005 17:23:39 +0000 (17:23 +0000)]
* libtoolize.in: Back out copying `install-sh' by libtoolize.
* doc/libtool.texi (Distributing): Mention that we distribute
`install-sh', but that non-Automake users will have to copy
it by themselves.
Gary V. Vaughan [Sun, 9 Jan 2005 15:27:19 +0000 (15:27 +0000)]
* m4/libtool.m4, m4/ltdl.m4: RMS says, 'I think the [license of
autoconf macro files] should be:
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is
# preserved.'.
Ralf Wildenhues [Tue, 28 Dec 2004 12:53:35 +0000 (12:53 +0000)]
* ltmain.in (func_extract_archives): Not all shells grok
`read -r' (unnecessary in this case).
Reported by Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>.
Ralf Wildenhues [Tue, 28 Dec 2004 12:39:15 +0000 (12:39 +0000)]
* ltmain.in: New variable quote_scanset to work around SunOS ksh
`case' backslash-escaping bug: protect character class by variable
expansion. Reported by Alexander Kurz <alexander.kurz@qsc.de>.
Ralf Wildenhues [Mon, 20 Dec 2004 13:10:25 +0000 (13:10 +0000)]
* libtoolize.in: Install `install-sh' as well, needed for configure ..
* Makefile.am: .. install, update it.
* NEWS, doc/libtool.texi (Distributing): .. document it.
Reported by Ross Boylan <ross@biostat.ucsf.edu>.
Ralf Wildenhues [Mon, 20 Dec 2004 08:45:46 +0000 (08:45 +0000)]
* libtool.m4 [solaris] (AC_LIBTOOL_PROG_LD_SHLIBS): Use ${wl} for
whole_archive_flag_spec. Missing backport reported by Ralf Menzel
<menzel@ls6.cs.uni-dortmund.de>.
Ralf Wildenhues [Sat, 18 Dec 2004 21:45:59 +0000 (21:45 +0000)]
* libtool.m4 [linux] (AC_LIBTOOL_PROG_COMPILER_PIC): match
$cc_basename, not $CC against icc. Also, for symmetry match
icpc* and ecpc* (ia64 version of icpc).
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG,
AC_LIBTOOL_PROG_LD_SHLIBS): Append -G to link command-line on AIX
to honor -brtl on command-line (runtime linking). Already done
for IBM C/C++ compilers.
Peter O'Gorman [Sat, 11 Dec 2004 14:40:25 +0000 (14:40 +0000)]
* ltmain.in (func_extract_archives,func_extract_an_archive): On
darwin, uniq can not take teh flags -cd together, thanks to Ralf
for the fix, also ar does not accept N, so we use the fact that
ar x libfoo.a foo.o will always extract the first foo.o in the
archive and we then delete foo.o from the archive, which will also
delete only the first foo.o, then rinse and repeat.
* tests/func_extract_archives.test: Test this feature.
* tests/Makefile.am: Add the test.
* ltmain.in: Preserve -model [arg] option, used
with the Tru64 UNIX C++ compiler. This option selects the
layout of C++ classes, name mangling, and exception handling.
Jeff Squyres [Wed, 24 Nov 2004 17:22:03 +0000 (17:22 +0000)]
* libtool.m4 [linux] (AC_LIBTOOL_LANG_CXX_CONFIG,
AC_LIBTOOL_PROG_COMPILER_PIC, AC_LIBTOOL_PROG_LD_SHLIBS),
NEWS, THANKS: Support for Portland Group (aka "pgi") compilers.