2
0
mirror of git://git.savannah.gnu.org/libtool.git synced 2024-12-27 07:09:26 +08:00
Commit Graph

1433 Commits

Author SHA1 Message Date
Albert Chin-A-Young
1dc12d937c * libtool.m4 (AC_LIBTOOL_PROG_CC_C_O): Correctly remove IRIX C++
template files.
2003-07-30 18:40:25 +00:00
Robert Millan
76768eda80 * libtool.m4: More fixes for the new GNU/FreeBSD triplet. 2003-07-30 15:11:17 +00:00
Bob Friesenhahn
cd56ac9a85 * config.guess, config.sub: Synchronized from ftp.gnu.org since
Robert Millan's patch requires it.


* libtool.m4: Fixed to use the new GNU/FreeBSD triplet.
* ltdl.m4: Fixed to use the new GNU/FreeBSD triplet.
* ltmain.in: Remove GNU/FreeBSD cases, which are no longer needed.
2003-07-15 00:05:21 +00:00
Andreas Schwab
5d478ee2f6 * libtool.m4 (_LT_AC_LOCK): Also match powerpc64-*linux* in
addition to ppc64-*linux*.  From Markus Meissner
<meissner@suse.de>.
2003-07-14 22:51:59 +00:00
Dalibor Topic
11cd33d029 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): For AmigaOS with pdksh,
set the maximum command line length to 8K since otherwise the test
takes over an hour to run.
2003-07-14 21:00:32 +00:00
Alexandre Oliva
139fb24af0 * libtool.m4: Replace mis-uses of path with pathname.
(AC_PROG_LD_GNU): Don't quote $LD when running it.
(_LT_AC_LANG_CXX_CONFIG): Use -nostdlib also when linking with g++
and non-GNU ld.
2003-06-26 06:55:19 +00:00
Gary V. Vaughan
102060efb2 * libtool.m4 (AC_LIBTOOL_COMPILER_OPTION): Require LT_AC_PROG_SED to
ensure $SED is set by the time it is used.
2003-06-11 16:33:49 +00:00
Gary V. Vaughan
2ce5f5b5e8 * ChangeLog: Restore missing entries from 2003-04-22.
* libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on all
mips*-linux* variants.


* libtool.m4 Switch on $CC and add paterns to cases.


* libtool.m4: Move the AC_LIBTOOL_SYS_DYNAMIC_LINKER check
to be before AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH, becuase the
value of shlibpath_overrides_runpath is used in the HARDCODE
test and is set in the DYNAMIC_LINKER test.
* ltmain.in [darwin]: We never need to relink on darwin.


* libtool.m4: Switch on $CC and add patterns to cases.
2003-06-11 15:09:24 +00:00
Gary V. Vaughan
1b8c7b2439 * NEWS: Sychronised from branch-1-5. 2003-06-11 14:23:41 +00:00
Benjamin Reed
80983ca528 * ltmain.in: search libraries in the order of preference, rather
than picking .la's even if they're in a less preferred directory.
2003-06-03 18:20:37 +00:00
Robert Millan
b37c4c3430 * ltdl.m4: Add support for GNU/FreeBSD.
* ltmain.in: Add support for GNU/FreeBSD.
2003-06-03 18:14:08 +00:00
Albert Chin-A-Young
71e3aa326e * libtool.m4: No need to use sed to remove leading comma when
appending to $tagnames.
2003-06-03 17:31:52 +00:00
Albert Chin-A-Young
57c1e5d6dc * tests/defs, tests/demo-conf.test, tests/demo-nofast.test,
tests/demo-nopic.test, tests/demo-pic.test,
tests/demo-shared.test, tests/demo-static.test,
tests/depdemo-conf.test, tests/depdemo-nofast.test,
tests/depdemo-shared.test, tests/depdemo-static.test:
Pass build system type to tests to support environment
where default system type not equal to build system type
(eg. 64-bit HP-UX).
2003-06-03 15:44:14 +00:00
Peter O'Gorman
90233b7fa9 * libtool.m4 (darwin): Remove checks for Apple-specific gcc.
* libltdl/ltdl.c (HAVE_MACH_O_DYLD_H): #define
__private_extern__ for fsf gcc.
* ltmain.in (darwin): Only add new paths to newlib_search_path.
2003-06-03 15:36:58 +00:00
Max Bowsher
e2b9104502 * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Reorder cygwin's
system library search path.
2003-06-03 15:26:53 +00:00
Robert Boehne
8fb6d5a3c9 * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Match all qnx-nto
as recent config.guess returns a slightly different string.
* ltmain.in: Replace use of "od" with tr.
2003-06-02 04:42:34 +00:00
Gary V. Vaughan
a45bccc70d * libltdl/ltdl.c (argz_insert): Corrected an off by one error when
checking that before is not out of range.
2003-05-30 15:25:10 +00:00
Gary V. Vaughan
b6dc76b844 * libltdl/ltdl.c (lt_int_dyld_lib_install_name): Removed unused
variable mh1.
(sys_dyld_close): Removed unused variable size.
2003-05-30 15:21:46 +00:00
Bruno Haible
cf3a644d94 * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Add support for
GNU/FreeBSD.
2003-05-21 04:45:25 +00:00
Richard Dawe
c67e0b02be * doc/libtool.texi: Use @ifnottex instead of @ifinfo,
to allow production of HTML documentation using makeinfo.
2003-04-22 04:57:10 +00:00
Robert Boehne
ed8b88b246 * NEWS: Updated.
* configure.ac: Bumped version to 1.5a.

GNU libtool 1.5 was released.

* configure.ac: Bumped version to 1.5.
* NEWS: updated.
* README-alpha: Updated upload instructions.
* README: Changed typo in version description.
* config.guess, config.sub, texinfo.tex:  Synchronized from
ftp.gnu.org.
2003-04-15 05:48:18 +00:00
Alexandre Oliva
6a024456d4 * libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on all
mips*-linux* variants.
2003-04-11 02:15:48 +00:00
Samuel Meder
24d6c1b8a3 * libtool.m4 Switch on $CC and add paterns to cases. 2003-04-10 03:49:44 +00:00
Peter O'Gorman
40369e4a7b * libtool.m4: Move the AC_LIBTOOL_SYS_DYNAMIC_LINKER check
to be before AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH, becuase the
value of shlibpath_overrides_runpath is used in the HARDCODE
test and is set in the DYNAMIC_LINKER test.
* ltmain.in(darwin): We never need to relink on darwin.
2003-04-09 17:54:06 +00:00
Samuel Meder
98dab60b5c * libtool.m4 Switch on basename $CC not $CC 2003-04-09 16:32:12 +00:00
Peter O'Gorman
d0a64f0b50 * libtool.m4: if ZSH_VERSION is set then setopt NO_GLOB_SUBST so
libtool works. Remove zsh echo test code, don't bother checking
for zsh anymore in the darwin archive_expsym_cmds.
2003-04-05 19:32:58 +00:00
Allan Sandfeld Jensen
34477dc333 * libtool.m4: Switch on $CC not $cc_basename. 2003-04-05 19:30:34 +00:00
Robert Boehne
4526a66edd * tests/defs: Quote $DJGPP to prevent problems with some shells.
Pointed out by Albert Chin <libtool@thewrittenword.com>
2003-04-03 05:45:22 +00:00
Peter O'Gorman
a7fd37b420 * libtool.m4: Fix the echo test which I broke earlier.
* ltmain.in: Make DESTDIR work on darwin, don't use otool.
2003-04-02 16:44:38 +00:00
Keith Packard
a2ae9334a9 Fixed typo. 2003-03-31 17:36:26 +00:00
Keith Packard
ba98d73f18 * ltmain.in: New flag -version-number to be used for maintaining
compatability with a previously non-Libtool versioning scheme.
* doc/libtool.texi: Document it.
2003-03-31 17:36:01 +00:00
Naofumi Yasufuku
363b0083e0 * ltmain.in (win32_libid): Fixed sed expression error in
win32_nmres evaluation.
2003-03-31 16:06:45 +00:00
Albert Chin
b73fbd17b3 * ltmain.sh: Don't pass -R flags found in a .la's dependency_libs
variable directly down to the linker.
Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
2003-03-31 15:44:14 +00:00
Richard Dawe
b9f8f1036e * Makefile.am: Define CONF_SUBDIRS.
* tests/defs: Set CONFIG_SITE to /nonexistent, except on DJGPP,
which requires its config.site, to work correctly.
* tests/cdemo-conf.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/demo-conf.test,
tests/demo-nofast.test, tests/demo-nopic.test,
tests/demo-pic.test, tests/demo-shared.test,
tests/demo-static.test, tests/depdemo-conf.test,
tests/depdemo-nofast.test, tests/depdemo-shared.test,
tests/depdemo-static.test, tests/f77demo-conf.test,
tests/f77demo-shared.test, tests/f77demo-static.test,
tests/mdemo-conf.test, tests/mdemo-shared.test,
tests/mdemo-static.test, tests/pdemo-conf.test,
tests/tagdemo-conf.test, tests/tagdemo-shared.test,
tests/tagdemo-static.test: Don't set CONFIG_SITE, now that
tests/defs sets it.
* tests/cdemo-exec.test, tests/demo-exec.test,
tests/demo-inst.test, tests/depdemo-exec.test,
tests/depdemo-inst.test, tests/f77demo-exec.test,
tests/mdemo-exec.test, tests/mdemo-inst.test,
tests/pdemo-exec.test, tests/pdemo-inst.test,
tests/tagdemo-exec.test: When checking for the existence
of executables, use the executable file extension from $EXEEXT.
2003-03-29 05:06:46 +00:00
Peter O'Gorman
eeb3d9cc7c * libltdl/ltdl.c (dyld): Remove some debug printf's, fix a bug.
* ltmain.in (darwin): Only link against shared libraries when doing
link_all_deplibs.
2003-03-29 04:09:00 +00:00
Robert Boehne
cd04eb7011 * bootstrap: Add f77demo to the directories that AUTOHEADER
is run in.
2003-03-25 23:53:38 +00:00
Wesley W. Terpstra
a986ae20e5 * ltmain.in: Don't accumulate directory information in clean mode.
Include properly pathed wrapper script.
2003-03-22 06:46:07 +00:00
Peter O'Gorman
2a0c045721 * README: Remove "Important" information about patching automake.
* configure.ac: Fix misapplied patch in last commit
* libtool.m4 (darwin): Check compiler is apple gcc, add -single_module
support so that dyloading c++ shared libraries will work.
* libtool.m4 (_LT_AC_TAGCONFIG): Add test -n to the tests so that
it will work outside of libtool.
* doc/PLATFORMS: Add darwin
* f77demo/configure.ac: Add config.h which was misapplied previously.
2003-03-22 06:34:27 +00:00
Peter O'Gorman
97ade8120f * ltmain.in: Always use $echo not echo for consistency.
Changes for darwin building. Warn if linking against libs linked
with -module. Use module_cmds if available and building a module,
move convenience double lib check,
* libltdl/ltdl.c: ltdl support for darwin (first blush)
* libltdl/README: note that darwin is supported
* ltdl.m4: Changes for darwin, and for new shrext
* libtool.m4: Changed the way darwin builds stuff (make check passes)
added module_cmds, module_expsym_cmds and hardcode_automatic and put
them in the libtool script. check for zsh's removal of escapes. Allow
libraries to be stripped on darwin.
* TODO: Remove the todo about zsh's removal of excapes. note that zsh
echo works perfectly well, eval is screwed up. Seems to be fixed in
latest zsh.
* THANKS: added self :)
* f77demo/configure.ac: Use config.h or it doesn't work.
2003-03-20 20:24:21 +00:00
Robert Boehne
49f2fd2f72 * libtool.m4 (_LT_AC_TAGCONFIG): Add test around the macro that
adds tags to the libtool script so that they won't run when not
needed.
* configure.ac: Set F77 to no when no Fortran compiler is found.
2003-03-20 18:02:05 +00:00
Charles Wilson
1eadbc5376 * ltmain.in (win32_libid): use $SED, not head. 2003-03-17 00:52:48 +00:00
Alexandre Oliva
ba8c5e6f00 * libtool.m4 (AC_PROG_LD): Use $CC instead of GCC.
(_LT_AC_LANG_CXX_CONFIG): Preserve variables used by AC_PROG_LD,
and reset them for a C++ environment.  Use the with_gnu_ld setting
from AC_PROG_LD.
2003-03-02 10:13:46 +00:00
Ralph Schleicher
859d6cacc0 * ltmain.in: Only append a dot to the wrapper script when
building on cygwin/MSYS (check for $build, not $host).
2003-02-28 15:27:35 +00:00
Samuel Meder
9bf3d0dd98 * libtool.m4 (ia64): Add support for Intel compiler (ecc) on IA64
Linux.
2003-02-28 03:01:33 +00:00
Benjamin Reed
93b66411ca * THANKS: Added people who have submitted 3 or more patches
to libtool to the THANKS file.
* README: Added notes about the Darwin (MacOSX) support.
2003-02-28 02:57:07 +00:00
Bob McElrath
98eaee035f * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Add support for
the Compaq C compiler for Alpha Linux.
2003-02-26 07:01:40 +00:00
Benjamin Reed
f5b73023e8 * libtool.m4 (darwin): Disable hardcoding library paths to
make relinking unnecessary.
2003-02-26 04:26:10 +00:00
Robert Boehne
65c07ebba9 * libltdl/configure.ac: Use AC_CONFIG_AUX_DIR([.]) to place
auxilary files in the libltdl directory.
* Makefile.am: Add to the ltmain.sh rule to copy it into the
libltdl subdirectory.
* bootstrap: Explicitly handle ltmain.sh in libltdl, and pass
--copy to automake.
2003-02-25 00:30:28 +00:00
Ralph Schleicher
61fddef7f4 * libtool.m4 (AC_LIBTOOL_SETUP): Check for ar. 2003-02-24 23:49:07 +00:00
Peter O'Gorman
cd9876b418 * libtool.m4 (darwin): Revamp darwin platform support.
* ltdl.m4 (darwin): Support dlcompat if found.
* ltmain.in: Make sure ranlib is run if needed when piecewise
linking.
2003-02-23 23:49:34 +00:00
Alexandre Duret-Lutz
02d4bdf39e * ltmain.in (--help): Show mailing-address for bug reports.
(--version): Mention only the most recent copyright year.
* libtoolize.in (--help): Show mailing-address for bug reports.
(--version): Mention only the most recent copyright year.
2003-02-23 16:15:49 +00:00
Alexandre Oliva
aa2ef657b5 * libtool.m4: Replace $linker_flags with $compiler_flags wherever
it is used as argument to $CC.
2003-02-19 23:29:40 +00:00
Alexandre Oliva
097ba484d1 * libtool.m4: Use linux version_type on IRIX with GNU ld.
Prefix -soname, -set_version and their arguments with ${wl}.  Add
-melf* linker scripts to LD, and use them to determine libsuff,
shlibsuff and libmagic.
2003-02-19 23:27:46 +00:00
Allan Sandfeld Jensen
9a25ee0157 * libtool.m4: Intel icc fixups for version 7.0. 2003-02-18 05:15:03 +00:00
Ralph Schleicher
72dd3b472d * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Prepend a dot to
the value of the shrext (aka shared_ext) variable and delete it
from the library_names_spec and soname_spec definitions.  That
way the user can omit the shared library suffix by setting it
to the empty string.
(AC_LIBTOOL_LANG_CXX_CONFIG): Strengthen renaming commands for
the KCC compiler.
* doc/libtool.texi (Link mode): Update the manual.
2003-02-17 21:14:24 +00:00
Charles Wilson
709bbb1731 * ltmain.in (win32_libid): Rewritten to improve speed. 2003-02-17 18:55:45 +00:00
Richard Dawe
9673b55453 * libtoolize.in: Use the program found by AC_PROG_LN_S
to create symlinks.
2003-02-12 05:54:20 +00:00
Jan Kratochvil
840a6c4903 * ltmain.in: Handle duplicate object file names when performing
piecewise archive linking by renaming object files when needed.
2003-02-08 16:43:00 +00:00
Robert Boehne
e3c603ee55 * libtool.m4 (AC_CHECK_LIBM): Search for a real symbol in
the math library rather than 'main', it causes problems for
C++ compilers with certain Auto* tools.
(AC_LIBLTDL_INSTALLABLE): ditto.
2003-02-06 04:51:20 +00:00
Christian Cornelssen
306c939a38 * libtool.m4 (_LT_AC_LANG_CXX_CONFIG)
(AC_LIBTOOL_PROG_LD_SHLIBS): Rewrite printf commands so
that the format string cannot be mistaken as an option.
Reported by Martin MOKREJS.
2003-02-05 07:03:55 +00:00
Robert Boehne
976b3c3e34 * libtool.m4: Modify the sys_lib_search_path_spec to allow
for either native sed or GNU sed to be used.
2003-02-05 06:58:45 +00:00
Nick Hudson
f716de6648 * libtool.m4: don't use -nodefaultlibs in archive_commands
or archive_expsym_commands on NetBSD.
2003-02-04 15:15:45 +00:00
Albert Chin-A-Young
9f64766d0f * libtool.m4: Change setting of archive_cmds_need_lc
so that it doesn't overwrite the previous setting.
2003-02-04 15:08:34 +00:00
Albert Chin-A-Young
e7a2949557 * libtool.m4: Allow compiler variable, CC, CXX, etc. to
be a program name with arguments. Original version stripped
arguments for CC.
2003-01-29 04:57:52 +00:00
Charles Wilson
6ab1e4099d * ltmain.in: add code for a binary wrapper
to use with uninstalled executables on cygwin/mingw.
Make sure that --mode=clean gets shell wrapper and
binary wrapper.  When sourcing the shell wrapper,
invoke using a terminal `.' on cygwin/mingw to
avoid the automatic append-.exe behavior.
2003-01-29 04:53:18 +00:00
Albert Chin-A-Young
1f2222e418 * libtool.m4: Hardcode library paths into libraries on IRIX. 2003-01-28 22:34:27 +00:00
Robert Boehne
a122ac5319 * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Don't add -DPIC
for languages other than C and C++.
2003-01-19 00:18:06 +00:00
Albert Chin-A-Young
aeaa38d6ed * libtool.m4, ltmain.in: Add support for hppa*64* based on
a patch by Ross Alexander <ross.alexander@uk.neceur.com>.
Credit to Ross! Use +b to hardcode library runtime path.
Add new variable, $hardcode_libdir_flag_spec_ld, that
is equivalent to $hardcode_libdir_flag_spec but is used
when ld is used for linking. This works around having to
set wl=''.
2003-01-15 02:55:34 +00:00
Robert Boehne
4f7134ae45 * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Revert an
accidental rearranging of dylib and so for darwin.
2003-01-12 07:04:27 +00:00
Robert Boehne
68e66c70d2 * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Modify the
"-shrext" option so that is works properly under Darwin.
Modify the processing of 'gcc -print-search-dirs' under
Darwin to make it behave like GNU gcc does.
(AC_LIBTOOL_CONFIG): Single quote $shrext.
* ltimain.in: Expand shared_ext just before it is used
so that it can be conditional on the value of $module.
2003-01-11 05:52:49 +00:00
Benjamin Reed
7d9ab948d8 * ltmain.in [darwin]: disable lazy linking, needed
to resolve C++ global constructor issues
2003-01-01 01:57:47 +00:00
Ralph Schleicher
a393b5c0fd Fixed a few format problems and incorrect dates. 2002-12-31 05:46:43 +00:00
Ralph Schleicher
46ed70ab97 Rework by Robert Boehne <rboehne@gnu.org>
* ltmain.in: New link option -shrext.
* libtool.m4 (AC_LIBTOOL_CONFIG): New libtool variable shrext.
(AC_LIBTOOL_SYS_DYNAMIC_LINKER): Replace all hard coded shared
library file name extensions in library_names_spec and
soname_spec with $shrext.
* doc/libtool.texi (Link mode): Document it.
2002-12-31 05:43:24 +00:00
Charles Wilson
45f1e8581a * libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): modify
$archive_expsym_cmds to restore support for using
.def files via the -export-symbols switch.
(AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]): in both the [CXX]
branch and the default branch, improve $export_symbols_cmds
so that DATA symbols are properly  labelled.  In the default
branch, duplicate the _CXX_CONFIG correction for
$archive_expsym_cmds.
2002-12-31 05:28:47 +00:00
Charles Wilson
c3c2a90f1d * libtool.m4 (AC_LIBTOOL_RC): AC_PROG_RC doesn't exist --
but we do AC_DEFUN something called LT_AC_PROG_RC.
Call that instead.
2002-12-31 05:24:28 +00:00
Robert Boehne
e30c49e673 * libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): Copy the section
for Darwin from AC_LIBTOOL_PROG_LD_SHLIBS so that the CXX
tag doesn't use the g++ defaults for the OS X compiler.
2002-12-31 05:19:00 +00:00
Albert Chin-A-Young
1391f5d2fe * libtool.m4: Sync methods used to detect GNU ld. 2002-12-30 16:30:22 +00:00
Robert Boehne
947bf98e10 * libtool.m4 (AC_LIBTOOL_COMPILER_OPTION,
AC_LIBTOOL_PROG_CC_C_O): Do not escape } or ? in sed argument.
2002-12-21 01:07:54 +00:00
Robert Boehne
4f17e338d2 * ltmain.in: Use the sed program found by LT_AC_PROG_SED
so that relink commands don't get truncated.
2002-12-20 04:56:26 +00:00
Robert Boehne
33fc755714 * libtool.m4: Move AC_REQUIRE([LT_AC_PROG_SED]) to AC_PROG_LD
so it is invoked earlier.
2002-12-18 21:04:45 +00:00
Allan Sandfeld Jensen
9980ffc894 * libtool.m4: Add support for Intel icc compiler for Linux. 2002-12-11 19:44:59 +00:00
Robert Boehne
9fdc16a497 Format change, forgot the "*". 2002-12-11 19:02:34 +00:00
Robert Boehne
a6586edd03 ltmain.in: Revert the version +1 change for IRIX, it could
cause compatibility problems.
2002-12-11 16:05:24 +00:00
Christian Cornelssen
ce55211c8b * libtool.m4 (AC_LIBTOOL_COMPILER_OPTION,
AC_LIBTOOL_PROG_CC_C_O): Changed method for compilation with
custom flags to be language-independent.  Thereby removed
CFLAGS/GCJFLAGS mixup bug.  Imitate Autoconf-style logging.
Log entries no longer discarded by compilation failures.
(_LT_AC_LANG_C_CONFIG, _LT_AC_LANG_CXX_CONFIG,
_LT_AC_LANG_GCJ_CONFIG): Tuned settings of
lt_simple_compile_test_code and lt_simple_link_test_code
to avoid warnings that could break some option detections.
(AC_LIBTOOL_PROG_COMPILER_NO_RTTI): Removed
redundant "-c conftest.$ac_ext" in the argument to
AC_LIBTOOL_COMPILER_OPTION.
(AC_LIBTOOL_PROG_LD_SHLIBS): Replaced C-specific conftest
source code with $lt_simple_compile_test_code, to support
the "-lc" test with other languages.
2002-11-22 22:36:25 +00:00
Paul Eggert
757646d28b Don't assume that egrep and fgrep exist. POSIX 1003.1-2001 no
longer requires them; you're supposed to use grep -E and grep -F
instead.  Also, don't assume that "test -a" works, since POSIX
doesn't require it.
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER, _LT_AC_LANG_C_CONFIG,
_LT_AC_LANG_CXX_CONFIG, AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE,
AC_LIBTOOL_PROG_LD_SHLIBS):
egrep -> grep, when that makes no difference.
* libtoolize.in: Likewise.
* ltdl.m4 (AC_LTDL_SYMBOL_USCORE): Likewise.
* ltmain.in: Likewise.
* demo/Makefile.am (hc-direct): Likewise.
* pdemo/Makefile.am (hc-direct): Likewise.
* tests/build-relink.test, tests/build-relink2.test,
tests/cdemo-conf.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/demo-conf.test,
tests/demo-nofast.test, tests/demo-shared.test,
tests/demo-static.test, tests/depdemo-conf.test,
tests/depdemo-nofast.test, tests/depdemo-shared.test,
tests/depdemo-static.test, tests/hardcode.test,
tests/mdemo-conf.test, tests/mdemo-shared.test,
tests/mdemo-static.test, tests/pdemo-conf.test,
tests/tagdemo-conf.test, tests/tagdemo-shared.test,
tests/tagdemo-static.test: Likewise.
* libtool.m4 (AC_PROG_EGREP):
New macro, defined if Autoconf doesn't define.
(AC_PATH_TOOL_PREFIX, AC_PROG_LD_GNU): Use it.
(AC_PROG_LD, AC_PROG_NM, AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE):
Use shell pattern matching rather than egrep.
(AC_LIBTOOL_CONFIG): Set lt_EGREP and EGREP.
* demo/Makefile.am (SET_HARDCODE_FLAGS): Use sed instead of egrep.
* pdemo/Makefile.am (SET_HARDCODE_FLAGS): Likewise.
* tests/defs (EGREP, FGREP): New vars.
* ltmain.in: egrep -> $EGREP
* tests/assign.test, tests/demo-exec.test, tests/demo-inst.test,
tests/pdemo-exec.test, tests/pdemo-inst.test, tests/sh.test:
Likewise.
* tests/hardcode.test: fgrep -> $FGREP
* tests/f77demo-exec.test: test -a -> test &&
2002-11-19 09:42:39 +00:00
Bob Friesenhahn
5a65bbcb7a * ltmain.in: When using gcc, pass -mfoo to the linker
via $compiler_flags in order to pass architecture information to
the linker (e.g. 32 vs 64-bit). This may also be accomplished via
-Wl,-mfoo but this is not reliable with gcc because gcc may use
-mfoo to select a different linker, different libraries, etc, while
-Wl,-mfoo simply passes -mfoo to the linker. If there is a better
solution, please let me know what it is.
2002-11-19 04:42:08 +00:00
Bob Friesenhahn
e91a371d46 * tests/Makefile.am: Conditional assignment of FFLAGS = @FFLAGS@
does not appear to be necessary given that Automake makes this
assignment by default.  The condition is removed since Automake
1.7.1 complains about it.
2002-11-18 18:59:44 +00:00
Jakub Jelinek
16b9d2d4c5 * libtool.m4: Support linking of 64-bit libraries on
sparc{,v[789]}-*linux*, s390*-*linux*, ppc*-*linux*
GNU/Linux systems when the platform default is to build
32-bit libraries.
2002-11-18 18:06:20 +00:00
Andreas Jaeger
74985457c0 * libtool.m4: Support linking of 32-bit libraries with ld
on the x86-64, ppc64, s390x and sparc64 GNU/Linux systems.
2002-11-18 17:41:29 +00:00
Akim Demaille
700774eef3 * ltmain.in: Do not change the PATH in the wrappers: let them
launch the real binary using its path.
2002-11-18 16:40:59 +00:00
Kevin Ryde
4551d055b6 * doc/libtool.texi (Library tips): Note array dimensions. 2002-11-18 16:09:42 +00:00
Bob Friesenhahn
a91ddab4f6 * tests/*.test: MinGW's MSYS treats files under /dev
specially. This causes 'test -r /dev/null/config/site' to
improperly report success, causing configure to fail. Change the
CONFIG_SITE definition from "/dev/null/config/site" to
"/nonexistent" to avoid this problem.
2002-11-18 15:37:05 +00:00
Charles Wilson
c93daf5c91 * libtool.m4 (_LT_AC_LOCK): remove support for ancient
versions of mingw and cygwin.
(AC_LIBTOOL_POSTDEP_PREDEP): new function.
moved the "find hidden library dependencies" code here
from AC_LIBTOOL_LANG_CXX_CONFIG.  Attempted to make it
multi-tag compatible, but currently only CXX calls it.
(AC_LIBTOOL_LANG_CXX_CONFIG): set
enable_shared_with_satic_runtimes to 'no' by default
Set it to 'yes' for cygwin, mingw, pw32. Replace
"find hidden library dependencies" code with a call
to the new function AC_LIBTOOL_POSTDEP_PREDEP.
Consolidate cygwin and mingw/pw32 stanzas.
(AC_LIBTOOL_LANG_F77_CONFIG): set
enable_shared_with_static_runtimes to 'no' by default
(AC_LIBTOOL_CONFIG): add
enable_shared_with_static_runtimes to the list of variables
to write into ltmain.sh; include it in the libtool script
template as allow_libtool_libs_with_static_runtimes.
(AC_LIBTOOL_PROG_LD_SHLIBS): set
enable_shared_with_static_runtimes to 'no' by default
Set it to 'yes' for cygwin, mingw, pw32.
(AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): only put cr in regexp
if the build_os is mingw, not host_os

* ltmain.in (case deplibs_check_method): for all appropriate
cases, if allow_libtool_libs_with_static_runtimes, then remove
predeps and postdeps from the list of dependencies that must
be checked for "dynamicness".  For the "none" case, the
presence of compiler-generated postdeps and predeps should
not trigger "inter-library dependencies not supported" error.
(initial setup after arg processing): on cygwin/mingw, allow
compiler-generated dependent libs to be duplicated without
elimination.
(initial search loop for deplibs): if the deplib in question
is a libtool lib, then if
allow_libtool_libs_with_static_runtimes then parse the .la file.
If the .la file only has an "old_library", add the deplib
directly to the deplibs list (-lstdc++) and DON'T use the .la
file; this allows the (case deplibs_check_method) change above
to take effect.
* ltmain.in (for pass in $passes loop): remove predeps,
postdeps, and compiler_lib_search_path from dependency_libs.
2002-11-18 15:26:17 +00:00
Robert Boehne
f0378efa1f * doc/libtool.texi: Add --mode=* to every example using libtool. 2002-11-08 19:38:42 +00:00
Ossama Othman
d2c4f8f8fc * ltmain.in: add support for installing into temporary
staging area (e.g. 'make install DESTDIR=...')


* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): restore setting
allow_undefined_flag=unsupported for cygwin and mingw.
(AC_LIBTOOL_PROG_LD_SHLIBS): ditto, for both "normal" gcc/ld
and for the (unmaintained?) MSVC case.


* doc/libtool.texi (Install mode): document new
-inst-prefix option.
2002-11-03 17:35:37 +00:00
Robert Boehne
900d3d6911 * ltmain.in: Print a warning if the mode is not specified.
* doc/libtool.texi: Document the change that the mode must be
specified.
2002-11-03 02:16:06 +00:00
Charles Wilson
6da15e03aa * libtool.m4 (AC_LIBTOOL_PROG_CC_C_O): use printf, not
echo. (AC_DEPLIBS_CHECK_METHOD): use new shell function
win32_libid on w32 platforms
* ltmain.in: add new section for shell functions. Add
win32_libid() shell function.
* f77demo/Makefile.am: add -no-undefined flag


* ltdl.c (realloc): Remove custom realloc. (#define
rpl_realloc realloc) and comment out later code for custom
realloc. You can't define your own malloc unless you know
enough about the malloc in use to be able to tell how big
the src ptr is. The disabled code incorrectly used the
*destination* ptr to decide how much to copy. This
sometimes results in out-of-bound accesses which cause
segfaults. This is a quick hack for now; we may want
something cleaner later. (tryall_dlopen_module): check to
be sure (dirname_len > 0) before testing first character
against '/'. (try_dlopen): check for feof(file) in read
loop -- otherwise infloop?
2002-10-31 00:52:39 +00:00
Robert Boehne
4102e43461 * ltmain.in (-XCClinker): New flag passes a linking option
directly to the compiler driver without appending ${wl}.
2002-10-28 15:38:37 +00:00
Gary V. Vaughan
49cf16560b * README-alpha: Add some release not templates for inspiration and
consistency at release time.
2002-10-25 03:28:43 +00:00
Gary V. Vaughan
06ac89dc02 * Makefile.am (cvs-diff): Compress the generated diff file, ready
for upload to ftp.gnu.org.
2002-10-25 01:14:07 +00:00
Howard Chu
ac414296ee * ltmain.in [aix]: Be sure to deal with xlc_r, cc_r and other
compiler variants.
2002-10-25 00:23:24 +00:00
Gary V. Vaughan
1340085c57 * libtool.m4 (_LT_AC_FILE_IMPGEN_C): Removed. No longer used.
(_LT_AC_FILE_LTDLL_C): Ditto.
(AC_LIBTOOL_CONFIG) [cygwin, mingw, pw32, os2]: Don't call
_LT_AC_FILE_LTDLL_C or _LT_AC_FILE_IMPGEN_C.
2002-10-25 00:16:08 +00:00
Albert Chin-A-Young
35f161c0db * libtool.m4: When LDFLAGS="-Wl,-brtl,[other options]", the
-brtl special-case code for AIX never gets triggered because
were are being too specific about how we search for -brtl.
Use case statement to avoid this. Remove extraneous
semicolon.
* ltmain.in: Recognize the IBM xlc compiler.
2002-10-24 23:59:11 +00:00
Andrew Suffield
6487bfdcb5 Correct sense of libltdl file not found check. 2002-10-24 21:28:34 +00:00
Ossama Othman
38bc3fc41e Support compiler names matching g++* 2002-10-24 21:20:13 +00:00
Bob Friesenhahn
312b3fcbac Cleaned up pw32 target. 2002-10-24 03:42:54 +00:00
Robert Boehne
4f99ce4c60 ltmain.in: Do not add 1 to the version under IRIX, it is
not necessary.
2002-10-23 14:36:30 +00:00
Charles Wilson
9d0f9dce09 Apply Cygwin patches from Charles Wilson. 2002-10-22 19:29:28 +00:00
Bob Friesenhahn
448a197074 MinGW patches from Elizabeth Barham and Bob Friesenhahn. 2002-10-15 22:50:58 +00:00
Albert Chin-A-Young
81f37578f2 AIX module name patch from Albert Chin-A-Young. 2002-10-15 21:01:56 +00:00
Christoph Egger
b821d447f0 * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS, darwin): Add
-install_name to the link line only when -dynamiclib is
specified for a module.  Use -bind_at_load when linking C++
shared libraries.
2002-10-11 15:52:08 +00:00
Elizabeth Barham
14a18a2500 * libtool.m4 (AC_LIBTOOL_SETUP): GCC now checks -shared to
create a dll for Windows targets.
2002-10-04 15:34:50 +00:00
Robert Boehne
dec5788036 * ltmain.in: Fixed a few spelling errors. 2002-09-25 04:26:20 +00:00
Robert Boehne
c2b67f1043 * libltdl/ltdl.c: Commented out access() call that checks for a
library file's existence and permissions, as it appears to fail
in every case.
2002-09-24 14:06:50 +00:00
Albert Chin-A-Young
9329b60417 * libtool.m4: Custom $symcode for Tru64 UNIX to catch 'Q',
read-only constants.
2002-09-10 13:50:06 +00:00
Rainer Orth
c2132510d8 * libtool.m4 (osf[345]): Append $major to soname_spec.
Reflect this in library_names_spec.
* ltmain.in (osf): Prefix $major with '.' for use as extension.
2002-09-09 18:26:34 +00:00
Bob Friesenhahn
d036ca584c Port libltdl fully to native Win32 API. 2002-08-28 20:40:28 +00:00
Robert Boehne
8d94a80c92 * f77demo/.cvsignore: New file, forgotten in the last commit. 2002-07-31 20:31:13 +00:00
Eric Lindahl
c466be90b3 * libtool.m4 (AC_PROG_LIBTOOL): Added support for the new F77
Fortran support tag.
(AC_LIBTOOL_PROG_CC_C_O, _LT_AC_TAGCONFIG): Support F77 tag.
(AC_LIBTOOL_F77, _LT_AC_LANG_F77, AC_LIBTOOL_LANG_F77_CONFIG):
New macros for F77 tag Fortran support.
* configure.ac: Add support for creating the new F77 tag.
* bootstrap: Add f77demo directory to the list to be processed.
* Makefile.am: Add support for FFLAGS and FLIBS.
* tests/Makefile.am: Add new Fortran tests.
* tests/f77demo-*.test: New files.
* f77demo/configure.ac, f77demo/cprogram.c, f77demo/fooc.c
* f77demo/foof.f, f77demo/foo.h, f77demo/fprogram.f
* f77demo/Makefile.am, f77demo/README: New files.
2002-07-31 20:15:28 +00:00
Gary V. Vaughan
f57ca23232 * libltdl/ltdl.c (tryall_dlopen): We need to catch missing file
errors early so that file_not_found() can detect what happened.
2002-07-16 09:12:30 +00:00
Gary V. Vaughan
d3fedfe52d * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [mingw]: Remove
extraneous '=' character which appears in gcc 3.1
-print-search-dirs output.
Handle both upper and lower case drive letters when testing for
Windows vs POSIX style path output from -print-search-dirs
output.
2002-06-26 07:15:36 +00:00
Robert Boehne
746b7cba7b * ltmain.in (Piecewise linking): Add a clause to skip creating
the export file until the reloadable object file(s) have been
created, then use them as input for $export_symbols_cmds.
2002-06-24 19:32:41 +00:00
Albert Chin-A-Young
f94ffc7bf1 * ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): HP/UX needs
libltdl_cv_sys_dlopen_deplibs set to yes.
2002-06-23 22:43:39 +00:00
Albert Chin-A-Young
d112d1ed7c * ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): Need to quote [ and ] for
Autoconf.
2002-06-23 22:39:50 +00:00
Kevin Ryde
278cef5270 * libtool.m4 (AC_LIBTOOL_SETUP, _LT_AC_LOCK): Use
AC_PROVIDE_IFELSE to test AC_LIBTOOL_WIN32_DLL and
AC_LIBTOOL_DLOPEN, necessary for autoconf 2.53.
2002-06-23 21:42:57 +00:00
Gary V. Vaughan
a6eb30bff0 * libltdl/ltdl.c (argz_insert): Actually, BEFORE can be NULL
when *PARGZ_LEN is non-NULL, so the assertion to the contrary was
bogus.
Reported by Bob Friesenhahn <bfreisen@simple.dallas.tx.us>
and Albert Chin-A-Young <china@thewrittenword.com>
2002-06-23 21:35:58 +00:00
Gary V. Vaughan
762853d3e2 * libltdl/ltdl.c (foreach_dirinpath): Ensure that filename is '0'
terminated by all code paths.
Reported by Lutz M�ller <lutz@users.sourceforge.net>
2002-06-22 14:47:24 +00:00
Gary V. Vaughan
1d69b1c81b From Kevin Ryde <user42@zip.com.au>:
* doc/libtool.texi (Platform quirks): s/dependan/dependen/
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Ditto.
* TODO: Ditto.
2002-06-20 06:58:38 +00:00
Rainer Orth
40bcc7f92c * ltmain.in (irix, nonstopux): Set major before use. 2002-06-13 11:01:47 +00:00
Daniel Kobras
9fb013ff55 * libltdl/ltdl.c (try_dlopen): Don't return bogus handle to user
if tryall_dlopen() fails.
2002-06-11 16:09:22 +00:00
Gary V. Vaughan
8a52a21e28 * tests/pdemo-exec.test: Typo. s/hell-static/hell_static/ 2002-06-01 14:54:51 +00:00
Charles Wilson
7cb0a065a5 * NEWS: Updated.
* libtool.m4: use $NM to create the symbol list on cygwin, not
$ltdll_cmds as on mingw.  For all tags, (and host=cygwin) set
allow_undefined_flag="" so that the --auto-import magic
works properly.  For all tags (and host=cygiwn) set
always_export_symbols=no -- it is unnecessary thanks to
binutils' auto-export magic.
* libltdl/ltdl.c: Don't force cygwin to use the LoadLibrary
wrapper; use cygwin's builtin implementatino of dl*.
* cdemo/Makefile.am: the downside of unsetting
'allow_undefined_flag' -- we must include -no-undefined
in the _la_LDFLAGS variable.
* depdemo/l1/Makefile.am: ditto.
* depdemo/l2/Makefile.am: ditto.
* depdemo/l3/Makefile.am: ditto.
* depdemo/l4/Makefile.am: ditto.
* mdemo/Makefile.am: ditto.
* tagdemo/Makefile.am: ditto.
* demo/Makefile.am: ditto.  But also, we must make special
provision to clean up the hell0 wrapper script.
* pdemo/Makefile.am: ditto -no-undefined.  ditto hell0.
And use 'hell_static' instead of 'hell.static'.
* tests/pdemo-inst.test: use 'hell_static' instead
of 'hell.static'.
* tests/pdemo-exec.test: ditto.
2002-06-01 14:09:50 +00:00
Charles Wilson
c8ffe65a48 * tests/build-relink2.test: look for installed libl3.la
in $prefix/lib/ as well as $prefix/lib/extra/.
2002-05-31 06:56:10 +00:00
Gary V. Vaughan
dfa37ebe56 * tests/hardcode.test: Use libtool --config to collect the
variable values for the test, otherwise the tag values interfere
with a straight grep.
2002-05-30 20:35:43 +00:00
Gary V. Vaughan
e00af245ec Finally fix the annoying bug which always adds all tags to the
libtool script built by your project configure.  Now we set the
default tags depending on whether AC_PROG_CXX et. al. are actually
called from configure.ac.

* libtool.m4 (_LT_AC_TAGCONFIG): Don't default the tagnames when
no --with-tags argument is given.
(_LT_AC_SHELL_INIT): Factored out from the AC_DIVERT_PUSH code
in...
(_LT_AC_PROG_ECHO_BACKSLASH): ...which now calls the macro
instead.
(AC_LIBTOOL_CXX): Use _LT_AC_SHELL_INIT to add CXX to the
initialisation sequence for tagnames.
(AC_LIBTOOL_GCJ): Similarly for GCJ tag.
(AC_LIBTOOL_RC): Likewise for RC tag.
2002-05-30 20:20:04 +00:00
Jon Meredith
d08d73a5ba * ltmain.in: Fix a problem on SCO OpenServer5 that caused a
failure in three depdemo-make tests. For some reason the linker
tries to find the dependent libraries using the library search
path before it has read the libraries specified with absolute
paths in the full commandline. This patch add -L's for each of
the dependent library directories so that they can be resolved.
2002-05-21 14:05:20 +00:00
Nick Hudson
b71067fa79 * libtool.m4: Update support for NetBSD
* ltdl.m4: Make sure that libltdl_cv_func_dlopen and
libltdl_cv_lib_dl_dlopen are set and used instead of the
ac_cv_ versions. Also, use lt_cv_sys_global_symbol_pipe
instread of global_symbol_pipe. This fixes the detection of
dlopen on BSD derived plaforms and more importantly fixes
need_uscore detection.
2002-05-17 16:07:25 +00:00
Paul Eggert
848eb97e24 Fixed a typo in ChangeLog. s/ltmain.sh/ltmain.in/ 2002-05-06 15:08:31 +00:00
Paul Eggert
001be2972d * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): head -1 -> sed 1q to
port to POSIX 1003.1-2001 hosts, like textutils 2.0.21 with
_POSIX2_VERSION=200112.
2002-05-06 15:03:29 +00:00
Paul Eggert
d197caf0e1 * ltmain.in: Don't assume that "sort +2" works, as POSIX
1003.1-2001 says that "sort +2" is supposed to sort the file
named "+2".  An example host that behaves like this is
textutils 2.0.21 with _POSIX2_VERSION=200112.
2002-05-06 14:51:40 +00:00
Loren James Rittle
338e2996c6 * ltmain.sh: Detect and handle object name conflicts while
piecewise linking a static library.
2002-05-06 13:38:11 +00:00
Dave Vasilevsky
7b689a89ce * ltmain.in: Remove convenience libraries from deplibs for Darwin. 2002-05-02 20:38:11 +00:00
Fritz Elfert
105b635470 * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Modify archive_expsym_cmds
to catch properly handle dll alias symbols.
2002-05-02 14:22:51 +00:00
Kevin Ryde
d10ecadbb9 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use $build_os not $host_os. 2002-04-24 14:39:31 +00:00
Robert Boehne
58f6692c38 * doc/libtool.texi (C++ libraries): Finally updated to reflect
Libtool's support for C++.
2002-04-19 19:22:45 +00:00
Jean-Frederic Clere
dc2fdec4f4 * libtool.m4: Update support for Fujistu-Siemens Computers (FSC).
* ltmain.in: Add support for EBCDIC based systems.
2002-04-14 21:34:04 +00:00
Robert Boehne
d79b26bdb7 * libtool.m4 (LT_AC_PROG_SED): Refactor, removing temporary directory
and consistent use of the shell variable namespace "lt_ac_".
2002-04-08 00:25:56 +00:00
Robert Boehne
8061bf2a80 * ltmain.in: Finish the tag matching logic started yesterday and
refactor it a bit.
2002-04-02 16:46:56 +00:00
Robert Boehne
77082a4f97 * ltmain.in: Handle the case when no tag is explicitly set, and
$base_compile has a space in front of $CC, and revert the setting
of tagname checked in on 2002-3-14.
2002-04-01 22:49:08 +00:00
Robert Boehne
ba7de179d0 * tagdemo/foo.cpp: Use C++ IO to catch problems linking to C++
runtime libraries.
* tagdemo/main.cpp: Ditto.
2002-04-01 21:59:09 +00:00