Commit Graph

1397 Commits

Author SHA1 Message Date
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 Mller <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
Gary V. Vaughan
a4591395cd * TODO: Removed obsolete comments about RMS' package system. 2002-03-16 18:39:42 +00:00
Robert Boehne
6df1ea79f2 ltmain.in: Touch-up to make testsuite pass, and default tagname
to CC when it isn't explicitly set.
2002-03-14 21:43:50 +00:00
Anthony Green
d4d3dd4518 * libtool.m4 (AC_LIBTOOL_PROG_CC_C_O): Albert Chin's gcj fix.
(AC_LIBTOOL_PROG_COMPILER_PIC): Per Bothner's change for not
using -DPIC with gcj.
2002-03-14 17:40:20 +00:00
Bruce Korb
c36f568694 bring a touch of order to the option processing 2002-03-12 02:30:33 +00:00
Gary V. Vaughan
1cf9d2964d * NEWS: Updated.
* THANKS: Added Rob Collins and Chuck Wilson for their cygwin
work.

From Robert Collins  <robert.collins@itdomain.com.au>:
* configure.ac (AC_EXEEXT): Needed for DOSish systems.
* libtool.m4 (shlibpath_overrides_runpath) [cygwin]: Set to yes
when compiling with gcc.
(lt_prog_compiler_pic) [cygwin]: No longer needs the -DDLL_EXPORT
hack, so we just say the pic is the default.
(AC_LIBTOOL_PROG_LD_SHLIBS) [cygwin]: Extract symbols from a
library normally.
[cygwin]: Declare C++ compiler characterisics for g++, taking into
account the new auto-import support in cygwin ld.
* ltmain.in (specialdeplibs) [cygwin]: Be careful about
eliminating duplicate -lgcc's from the link line.
[cygwin]: Be smarter about .exe suffixes.
* demo/configure.ac (AC_EXEEXT, AC_LIBTOOL_WIN32_DLL):  Support
DOSish systems properly.
* depdemo/configure.ac (AC_EXEEXT, AC_LIBTOOL_WIN32_DLL):  Ditto.
* demo/Makefile.am (deplibs-check): Allow for .exe suffix.  Use
hell_static instead of hell.static for multi-`.' inhibited OSes.
* tests/demo-exec.test: Ditto.
* tests/demo-inst.test: Ditto.
* demo/foo.h [cygwin]: Sanitize cygwin dll support.
* demo/foo.c (_LIBFOO_COMPILATION_): No longer required.
* demo/hello.c (_LIBFOO_COMPILATION_): Ditto.
* depdemo/Makefile.am (bin_PROGRAMS): Use depdemo_static instead
of depdemo.static for multi-`.' inhibited OSes.
* tests/depdemo-exec.test: Ditto.
* tests/depdemo-inst.test: Ditto.
* mdemo/Makefile.am (bin_PROGRAMS):  Ditto for mdemo.static.
* tests/dryrun.test: Ditto.
* tests/mdemo-exec.test: Ditto.
* tests/mdemo-inst.test: Ditto.
* tests/build-relink.test:  Be careful about possible .exe
suffixes.
* tests/noinst-link.test: Allow for .exe suffix.
2002-03-03 03:19:55 +00:00
Alexandre Oliva
c2c0bd8ada Reverted incorrect patch:
2001-10-24  H.J. Lu  <hjl@gnu.org>
* ltmain.sh: Allow link against an archive when building a
shared library.
* libtool.m4 (lt_cv_deplibs_check_method): Always use
file_magic for Linux ELF.
2002-02-07 19:54:36 +00:00
Robert Boehne
558143b58d * libtool.m4 (LT_AC_PROG_SED): Removed a mysterious newline. 2002-01-30 16:39:24 +00:00
Robert Boehne
f38781e05b * libtool.m4 (LT_AC_PROG_SED): New macro tests sed for truncation of
output.  AC_REQUIRE the new macro.
* ltmain.in: Use $SED rather than plan old sed, as set by the new
macro LT_AC_PROG_SED.
2002-01-29 22:58:35 +00:00
Volker Christian
bc88ff43b1 * libltdl/ltdl.c (find_handle_callback): treat the result of a call
to access(2) correctly when deciding whether a library can be found
in a directory from user_search_path.
2002-01-11 00:25:19 +00:00
Robert Boehne
cfac19ba4f * NEWS: Fixed wrong path for texinfo.tex.
* configure.ac: Bumped version to 1.4e.

GNU libtool 1.4d was released.

* configure.ac: Bumped version to 1.4d.
* NEWS: updated.
* config.guess, config.sub, texinfo.tex:  Synchronised from
ftp.gnu.org.
2002-01-07 22:09:42 +00:00
Jens Petersen
7a3351cf1b * ltmain.in: Replace all test "-a"s by "&& test"
for portability.
2001-12-06 19:34:36 +00:00
Robert Boehne
21c4662d62 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Change the
factor of saftey as 3/4 of the result was not low enough.
2001-11-28 23:20:53 +00:00
Gary V. Vaughan
57a83d3b93 * libtoolize.in: The test for whether AC_PROG_LIBTOOL is defined
in aclocal.m4 had bitrotted slightly.
Reported by Takahiko Kawasaki <Takahiko_Kawasaki@cii.csk.co.jp>
2001-11-28 00:23:58 +00:00
Donald D. Anderson
89e919b333 * ltmain.in: Treat freebsd like openbsd, in that -lc/-lc_r should
not be explicitly used.  ld handles this depending on the presence
of the -pthread option.
2001-11-27 23:10:22 +00:00
Robert Boehne
5b4575cf0a With help from Michael Matz <matz@kde.org>:
* ltmain.in:  Add a new command line argument
--preserve-dup-deps for preserving duplicate
dependent libraries.
* libtool.texi: Document it.
2001-11-27 19:31:22 +00:00
Kevin Ryde
a9f74104e1 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Send "test"
warnings to /dev/null, helps FreeBSD and maybe others.
2001-11-27 18:49:47 +00:00
Albert Chin-A-Young
b521f8e2b6 * libtool.m4: quote LTCC because autoconf AC_PROG_CC_STDC
macro might add to $CC if options needed by compiler to
grok ANSI.
2001-11-15 01:15:25 +00:00
Gary V. Vaughan
6167b16561 From Joseph S. Myers <jsm28@cam.ac.uk>:
* ltmain.in: Typo.
2001-11-15 01:01:13 +00:00
Mo DeJong
bf264c44ca * ltmain.in: Place parens around a generated relink_command
so it is run is a subshell. This avoids an install error
where libtool ended up in the wrong directory after
relinking a .la file.
2001-11-15 00:59:07 +00:00
Raja R Harinath
3de7e4a53d * configure.ac (pkgdatadir): Move the invocation of AC_INIT_AUTOMAKE
before the use of $PACKAGE in $pkgdatadir.
Reported by Bob Friesenhahn <bfreisen@simple.dallas.tx.us>
2001-10-30 23:35:59 +00:00
Gary V. Vaughan
9e3b311392 From Tom Bates <Tom.Bates@compaq.com>:
* libtool.m4 [mips-compaq-nonstopux]: New port.
* ltmain.in [mips-compaq-nonstopux]: Support
$version_type == nonstopux.
2001-10-28 12:22:39 +00:00
Albert Chin-A-Young
55770c848b * ltdl.c: change some types to size_t from int because
strlen() returns size_t. argz_len changed to size_t in
foreach_dirinpath() because argzize_path() takes 3rd
argument as size_t, not int. Based on lint run from
Bob Friesenhahn <bfriesen@simple.dallas.tx.us>.
2001-10-28 02:35:22 +00:00
Gary V. Vaughan
7e220be5cf * libtool.m4 (_LT_AC_TAGCONFIG): Cray sed does not allow character
sets to contain the separator character.
Reported by Kevin Ryde <user42@zip.com.au>
2001-10-28 00:10:01 +00:00
Gary V. Vaughan
e830175dc7 * ltdl.m4 (AC_WITH_LTDL): New macro to add `--with-included-ltdl'
option to configure, but to find an appropriate ltdl library and
append the right options to link it.
2001-10-28 00:00:00 +00:00
Kevin Ryde
0285781a63 *libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Remove a stray ' quote. 2001-10-24 14:36:57 +00:00
H.J. Lu
c6d8bb2c4b * ltmain.sh: Allow link against an archive when building a
shared library.
* libtool.m4 (lt_cv_deplibs_check_method): Always use
file_magic for Linux ELF.
2001-10-24 14:30:22 +00:00
Guido Draheim
2046e10a30 * ltdl.m4: Changed "underscode to underscore". 2001-10-12 23:32:13 +00:00
Gary V. Vaughan
9c63d67ebe * configure.ac: General modernisation and cleanup.
* cdemo/configure.ac: Ditto.
* demo/configure.ac: Ditto.
* depdemo/configrue.ac: Ditto.
* ltdl/configure.ac: Ditto.
* ltdldemo/configure.ac: Ditto.
* mdemo/configure.ac: Ditto.
* pdemo/configure.ac: Ditto.
* tagdemo/configure.ac: Ditto.
2001-10-06 15:35:17 +00:00
Albert Chin-A-Young
1093bb18a8 * libltdl/ltdl.c: Match function return type with prototype
(add static initializer to file_not_found).
2001-10-04 14:53:19 +00:00
Gary V. Vaughan
ee4a8bb8bd * libtool.m4 (AC_LIBLTDL_CONVENIENCE): s/INCLTDL/LTDLINCL/ for
consistency with gettext's INTLINCL.  Keep the old symbol too for
backwards compatibility.
(AC_LIBLTDL_INSTALLABLE): Ditto.
* doc/libtool.texi (Distributing libltdl):  Adjust documentation.
2001-09-30 10:20:29 +00:00
Albert Chin-A-Young
162fd29773 * ltdl.m4 (AC_LTDL_DLLIB): Even though HP-UX 10.20 and 11.00
support shl_load *and* dlopen, dlopen works correctly only
with a patch. Because we want to avoid the situation where we
build on a system with the patch but deploy on a system without,
use shl_load exclusively if found.
2001-09-22 16:43:43 +00:00
Gary V. Vaughan
e40a083891 * libtool.m4 (_LT_AC_FILE_LTDLL_C): Be carefule that the start
marker searched for by sed must start in column 0.
(_LT_AC_FILE_IMPGEN_C): Ditto.
Reported by Tor Lillqvist <tml@iki.fi>
2001-09-22 14:35:03 +00:00
Tor Lillqvist
f934c69cf4 * libtool.m4 [mingw* cygwin*]: Small improvement for mingw-hosted
tool support (while still running libtool on cygwin). In that case
PATH_SEPARATOR is ':', but gcc -print-search-dirs still prints its
search path with ';' as separator.
(AC_LIBTOOL_RC, AC_LIBTOOL_LANG_RC_CONFIG): Add support for .rc
files (Windows resource files), compiled by the resource compiler
(windres in mingw) to .o files.
(AC_PROG_NM): Minor bug fix for $PATH elements with spaces in
them.
* configure.ac: Use LT_AC_PROG_RC.
* ltmain.in: Check for .rc files.
* NEWS: Updated.
2001-09-22 14:20:17 +00:00
Tor Lillqvist
07ef86f9af * ltmain.in: Add a space to $base_compile in the case statement,
as the case labels checks for trailing spaces, but there aren't
necessarily in $base_compile.
2001-09-22 13:36:32 +00:00
Albert Chin-A-Young
bddba8aeda * libtool.m4: When setting archive_cmds for CC, don't
test for $GXX but for $GCC on HP-UX. Indentation fixes.
2001-09-22 13:24:21 +00:00
Gary V. Vaughan
0cb0784e76 From Tor Lillqvist <tml@iki.fi>:
* ltmain.in [cygwin* mingw*]: Take care of the difference between
wrapper script name and executable name.
2001-09-21 19:49:29 +00:00
Gary V. Vaughan
a8f95641c3 * libtool.m4 (archive_cmds) [darwin1.[0-2]]: Darwin uses zsh-3.1.6
for /bin/sh, and that shell does not handle escaped quotes
properly yet.
Reported by Christopher Pfisterer <cp@chrisp.de>
2001-09-21 18:22:08 +00:00
Albert Chin-A-Young
d4e4eab57e * libltdl/ltdl.c: Match function return type with prototype
(add static initializer to some functions) to prevent warnings
from HP-UX cc.
2001-09-21 17:38:39 +00:00
Gary V. Vaughan
862b3a97d5 * libltdl/ltdl.c: Added support for dmalloc, and uncovered some
memory bugs as a result.
2001-09-21 03:28:39 +00:00
Albert Chin
61afaf7fac * libtool.m4: Don't include main() when testing for command to
parse $NM output because some C++ compilers don't allow you to
take the address of main (e.g. HP-UX aCC).
2001-09-21 03:06:40 +00:00
Albert Chin
0715a0b505 * libtool.m4: Some uses of $GXX were unquoted, but GXX is either
NULL or yes.  Use "$GXX".
2001-09-21 02:40:47 +00:00
Assar Westerlund
1d62bd2c95 typo 2001-09-16 15:48:23 +00:00
Assar Westerlund
aef5eb6a27 * ltdl.m4 (AC_LTDL_DLLIB): call dlopen with arguments so the test
does not fail due to a prototype in dlfcn.h
2001-09-13 19:47:02 +00:00
Gary V. Vaughan
7eba1343df * ltdl.m4 (AC_CHECK_HEADERS): Check for assert.h.
* libltdl/ltdl.c:  If not, disable assertions manually.
2001-09-13 19:43:58 +00:00
Gary V. Vaughan
56245fe9ef * bootstrap: Be robust to having no files that need removing. 2001-09-11 19:13:46 +00:00
Gary V. Vaughan
2d4c83cc36 * libltdl/configure.ac (AM_INIT_AUTOMAKE): Bump libltdl version to
1.2.
* libltdl/Makefile.am (libltdl_la_LDFLAGS):  Bump libtool library
version info to 4:0:1.
2001-09-11 01:26:44 +00:00
Gary V. Vaughan
faba8a2e8f * libtool.m4: No need to undefine([symbols]), proper quotation is
enough.
2001-09-11 00:22:48 +00:00
Gary V. Vaughan
4a57948985 * libtool.m4: CVS Autoconf guarantees a decent default IFS, so
there is no need for us to preset it anymore.
Be careful not to set IFS="${IFS}$PATH_SEPARATOR" for PATH
splitting, otherwise spaces in directory names will be lost.
Use $PATH_SEPARATOR... don't rely on $ac_path_separator, which was
an autoconf internal until just now, when it disappeared!
* ltmain.in: Default IFS once, at the start.
Reported by Akim Demaille <akim@epita.fr>
2001-09-10 23:33:26 +00:00
Brad
cef1f6940a * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Missed an instance of
Autoconf square bracket quoting style normalisation.
2001-09-10 22:41:02 +00:00
Brad
d665cea56b * ltmain.in (-lc_r): Style improvement. 2001-09-10 22:34:40 +00:00
Gary V. Vaughan
8e368fb194 From Brad <brad@comstyle.com>:
* doc/libtool.texi: Remove obsolete references to ltconfig.
* tests/quote.test: s/ltconfig/$0/
2001-09-10 22:27:23 +00:00
Gary V. Vaughan
fbdd982f56 * libtool.m4: Use Autoconf square bracket quoting style
consistently throughout.
2001-09-09 17:11:24 +00:00
Gary V. Vaughan
aac7f0777e * bootstrap: Cleanup autom4te' and libtool' so that we don't
get caught by something from a previous build.
2001-09-08 03:06:31 +00:00
Gary V. Vaughan
eecf26bd2a * libtool.m4 (archive_cmds, archive_expsym_cmds) [solaris*]: Revert
my 2001-09-06 patch.
(no_undefined_flag)i [solaris*]: Revert Alexandre's 2001-04-11 patch.
2001-09-08 03:01:36 +00:00
Gary V. Vaughan
d736ae4d0c * libltdl/ltdl.c (foreach_dirinpath): argz_len should be a size_t.
Reported by Albert Chin <china@thewrittenword.com>
2001-09-06 23:16:04 +00:00
Gary V. Vaughan
144aeca1ee * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [solaris*]: Typo. s/GXX/GCC/. 2001-09-06 21:58:14 +00:00
Gary V. Vaughan
45b41fe058 * libtool.m4 (archive_cmds, archive_expsym_cmds) [solaris*]: Changing
no_undefined_flag from `-z text' to `-z defs' (see entry below at
2001-04-11  Alexandre Oliva  <aoliva@redhat.com>) has a problem.
when linking a shared library with gcc calling /usr/ccs/bin/ld (eg.
the gcc supplied with Solaris 8 companion CD), using the flag
-no-undefined, shared library linking will always fail because of
the unresolved symbols from libgcc.a.  Consequently we have to
provide a path to libgcc.a when linking shared libraries in
conjunction with -no-undefined!
2001-09-06 21:54:16 +00:00
Gary V. Vaughan
adc412c82b From Michael Pruett <mpruett@engr.sgi.com>:
* libltdl/ltdl.c (find_module): `0' valued arguments to
tryall_dlopen_module() must be explicitly cast to avoid compiler
warnings on some environments.
2001-09-06 21:23:59 +00:00
Gary V. Vaughan
bb480f7c43 From Daniel Johnson <danielj7@mac.com>:
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [darwin*]: Move from GNU
ld section to non-GNU ld section.
2001-09-06 21:17:28 +00:00
Robert Boehne
a1dbaeebe2 * pdemo/Makefile.am (helldl): Automake 1.4 can't find the target
if we use helldl$(EXEEXT), and Automake 1.5 barfs unless we do.
Using both targets to the left of the colon seems to work though!
2001-09-05 19:52:17 +00:00
Gary V. Vaughan
7fe636af5e * demo/Makefile.am (helldl): Automake 1.4 can't find the target
if we use helldl$(EXEEXT), and Automake 1.5 barfs unless we do.
Using both targets to the left of the colon seems to work though!
2001-09-03 22:11:02 +00:00
Brad
1d7730cbf1 * ltdl.m4 [AC_LTDL_SYS_DLOPEN_DEPLIBS]: Teach ltdl about the
behavior of OpenBSD's dlopen().
2001-09-03 03:26:55 +00:00
Gary V. Vaughan
cc3dcd152e From Marius Vollmer <mvo@zagadka.ping.de>:
* libltdl/ltdl.c (tryall_dlopen_module): Don't forget to propogate
errors over recurse levels.
2001-09-03 00:22:13 +00:00
Brad
156dd0b807 * libtool.m4 [openbsd*]: More improvements to the OpenBSD port. 2001-09-02 23:32:13 +00:00
Gary V. Vaughan
b1715d0088 From Albert Chin <china@thewrittenword.com>:
* libtool.m4 (_LT_AC_LANG_C_CONFIG) [aix4*]: Be careful with
shared namespaces for static and shared libs.
(AC_LIBTOOL_DLOPEN_SELF): If all else fails, try dld_link from GNU
DLD.
2001-09-02 23:00:44 +00:00
Christopher Pfisterer
2ca59ec1b1 * libtool.m4, ltmain.in: Linker flag and version numbering fixes
for darwin.
2001-09-02 22:07:38 +00:00
Gary V. Vaughan
1a6eb03f74 Based on a patch from Marius Vollmer <mvo@zagadka.ping.de>:
* NEWS: updated.
* ltdl.m4 (AC_LIB_LTDL): Check for unistd.h.
* ltdl.c: Include unistd.h if it exists.
(LTDL_SEARCHPATH_VAR): Macro to prevent hardcoding
"LTDL_LIBRARY_PATH".
(LTDL_ARCHIVE_EXT): Macro to prevent hardcoding ".la".
(archive_ext): Have only one copy of ".la" in the readonly
segment of the compiled library.
(find_handle_callback): Don't bother trying to dlopen the file if
it doesn't exist.
(find_handle): Don't bother searching for files if no search_path
was supplied.
(file_not_found): A new function to determine whether the last
error was due to a file not found condition.
(try_dlopen): Renamed from lt_dlopen() and changed to have the
same footprint as tryall_dlopen.  This involved a minor rewrite of
much of the internals of this function.
(lt_dlopen): A new function wrapped arounf try_dlopen().
(lt_dlopenext): If a file already has a suitable extension, don't
bother adding additional extensions and trying to open those.
Tidy up the rest of the code to prevent continued searching with
an eventual FILE_NOT_FOUND when a genuine failure earlier in the
search process could be legitimately reported.
2001-09-02 17:38:55 +00:00
Gary V. Vaughan
5f659877f7 * demo/Makefile.am (helldl$(EXEEXT)): Automake-1.5 made me change
this from just `helldl'.
2001-09-02 16:58:42 +00:00
Robert Boehne
b9f6feb80b * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) Fixed a problem
with export_symbols_cmds not being set for CXX tags, and
not being properly set for any tag under AIX/Power.
2001-08-31 16:59:56 +00:00
Ossama Othman
354927a468 * libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): Corrected and improved
error message that is displayed when there was a problem
  compiling the C++ test program.  It still mentioned the now
  non-existent `ltcf-cxx.sh' file.

* doc/libtool.texi (LTDL_SET_PRELOADED_SYMBOLS): Removed
  parentheses at end of starting "defmac" line, as pointed out by
  makeinfo.
2001-08-19 20:20:25 +00:00
Brad
d950a2a308 * ltmain.in: Do not remove -lm from deplibs for OpenBSD. 2001-08-18 22:25:17 +00:00
Gary V. Vaughan
63ad459714 * libltdl/ltdl.c (argz_create_sep): Don't forget to include the
terminating '0' when counting argz_len.
(argz_create_sep): When canonicalizing argz, don't forget to copy
the terminating '0', incase canonicalization has shortened argz.
(argz_stringify): Don't covert the final '0' to a separator.
2001-08-16 00:48:52 +00:00
Gary V. Vaughan
196a286bc6 * libltdl/ltdl.c (lt_dlhandle_next): Now we can loop through all
loaded module handles as originally intended.
2001-08-15 00:23:22 +00:00
Gary V. Vaughan
27f0f2ccee * libltdl/ltdl.c (lt_dlseterror): Oops. This never worked
either, due to a pair of typos.  Now fixed.
2001-08-15 00:01:46 +00:00
Gary V. Vaughan
a3c34e5ca2 * libltdl/ltdl.c (N_ELEMENTS): Deleted. How come nobody noticed
there was no way this could have ever worked?
(lt_dlcaller_set_data): Now that valid caller_ids must be
non-zero, allocate an addition entry in the caller_data vector and
use a zero valued key as the end marker.
(lt_dlcaller_get_data): Iterate up to the end marker in one pass.
2001-08-14 23:28:40 +00:00
Gary V. Vaughan
93a734ce9d * libltdl/ltdl.c (lt_dlcaller_register): Caller ids are allocated
starting from value `1', so that clients can use a value of zero
to indicate that libltdl has not yet initialised.
2001-08-14 22:45:21 +00:00
Gary V. Vaughan
79f0167bd3 * ltmain.in (exec_cmd): Fix quoting in execute mode so that the
double quotes added by libtool (to prevent lossage with embedded
spaces in filenames etc.) are not interpreted as literals by the
shell.
2001-08-13 23:11:48 +00:00
Gary V. Vaughan
47491fdaa1 * libltdl/ltdl.c (find_file_callback): Fix a multiple free()
bug.
(tryall_dlopen_module): Remove some unused variables.
2001-08-13 22:53:39 +00:00
Gary V. Vaughan
01d29019a5 * libltdl/ltdl.c (lt_dlinsertsearchdir): Calculate the address
of the end of user_search_path correctly.
2001-08-13 19:51:34 +00:00
Gary V. Vaughan
8fe352b363 * libltdl/ltdl.c (rpl_argz_stringify): New fallback implementation.
* ltdl.m4 (AC_LTDL_FUNC_ARGZ):  Test for argz_stringify in libc.
* libltdl/ltdl.c (lt_argz_insertinorder): Renamed from
lt_argz_insert to make room for...
(lt_argz_insert): Wraps argz_insert with libltdl error handling.
(lt_dlpath_insertdir): Insert new path elements into an
argzized path.
(lt_dlinsertsearchdir): New function to insert new search
directories anywhere into user_search_path using the above.
(lt_dladdsearchdir): Rewritten to use lt_dlpath_insertdir.
* libltdl/ltdl.h (lt_dlinsertsearchdir): Prototype for export.
* doc/libtool.texi (Libltdl interface): Document it.
* NEWS: Updated,
2001-08-13 17:25:49 +00:00
Gary V. Vaughan
f88c1445a6 ltmain.in [irix*]: $with_gcc is either "yes" or "" (empty string)
with current autoconf, so we need to be robust to that when testing
it,
2001-08-07 20:20:14 +00:00
Gary V. Vaughan
15d4e43c85 From Brad <brad@comstyle.com>:
libtool.m4 (deplibs_check_method) [aix*]: Removed redundant setting
of this variable.
2001-08-06 17:52:37 +00:00
Gary V. Vaughan
3539a1bf85 * libltdl/ltdl.c (load_deplibs): Insert missing 1st argument to
LT_EMALLOC.
2001-08-05 16:01:56 +00:00
Tim Van Holder
11fdf927b4 * ltdl.m4: Canonicalize descriptive text used with
AC_DEFINE.
2001-08-05 12:29:40 +00:00
Tim Van Holder
793c5cf5df * libtool.m4 (_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR): Remove.
(_LT_AC_PROG_ECHO_BACKSLASH): Use $ac_path_separator
instead of $PATH_SEPARATOR.
(AC_LIBTOOL_SYS_DYNAMIC_LINKER): Ditto.
(_LT_AC_TAGCONFIG): Ditto.
(AC_ENABLE_SHARED): Ditto.
(AC_ENABLE_STATIC): Ditto.
(AC_ENABLE_FAST_INSTALL): Ditto.
(AC_PATH_TOOL_PREFIX): Ditto.
(AC_PATH_MAGIC): Ditto.
(AC_PROG_LD): Ditto.
(AC_PROG_NM): Ditto.
* ltdl.m4 (AC_LTDL_SYSSEARCHPATH): Ditto.
2001-08-05 12:20:45 +00:00
Gary V. Vaughan
03c9017f79 From Brad <brad@comstyle.com>:
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [openbsd]:  OpenBSD
can build modules without a `lib' prefix and version number.
Move the deplibs check code from here...
(AC_DEPLIBS_CHECK_METHOD): ...to here.
2001-08-05 12:03:06 +00:00
Tim Mooney
6e54c291b2 * libtool.m4 [osf3*, osf4*, osf5*]: Tru64 *can* build modules
without a `lib' prefix to the module name.
2001-08-05 11:33:30 +00:00
Gary V. Vaughan
31093223cb From Guido Draheim <Guido.Draheim@tek.com>:
* ltmain.in: Display better and different error messages when
library linkage fails in various ways.
2001-08-05 11:29:09 +00:00
Albert Chin-A-Young
1f075cd273 * libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Add newline after
terminating '}' grouping character. Change '[0-9][0-9]'
to '0' as we've already matched it.
2001-08-05 11:13:33 +00:00
Gary V. Vaughan
12ed3e72d8 From Brad <brad@comstyle.com>:
* libtool.m4 (archive_cmds) [darwin, newsos, sysv4]: Replace
1.3 era $linkopts references with $linker_flags.
2001-08-05 11:04:59 +00:00
Gary V. Vaughan
9b398f1b1d * libltdl/ltdl.c: Fixed several careless mistakes in the
foreach_dirinpath support functions.
(foreach_dirinpath): Walk path elements with the argz API.
2001-08-05 10:57:03 +00:00
Gary V. Vaughan
4be575c7c3 From Sedi Master Albert Chin <china@thewrittenword.com>:
* libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Replace the awk invocation
with an equivalent bit of sed wizardry.
2001-08-04 19:57:09 +00:00
Gary V. Vaughan
9374d2ebde From Edouard G. Parmelan <egp@free.fr>
* libtool.m4 [darwin, openbsd]: Fix quoting problems with
unquoted [] expressions.
2001-08-04 11:13:12 +00:00
Gary V. Vaughan
257a85a573 * bootstrap: s/ltdldemo // -- This demo soesn't work properly,
so I haven't committed it yet.
2001-08-03 19:18:28 +00:00
Ossama Othman
0b3ed2280b * libtool.m4 (AC_LIBTOOL_SETUP): Require Autoconf-2.50 via the
AC_PREREQ autoconf macro since the new libtool macros utilize
macros from that version of Autoconf.
2001-08-03 18:30:09 +00:00
Gary V. Vaughan
5473bb5e38 * ltdl.m4: Bump serial number.
General reformat and tify up in line with Autoconf-2.50 support.
(AC_LTDL_FUNC_ARGZ): Test for system implementations of a
handful of argz API calls, the error_t type, and the argz.h
header.
* libltdl/configure.ac (AM_INIT_AUTOMAKE): Bump version number.
* libltdl/ltdl.c (rpl_argz_append, rpl_argz_create_sep.
rpl_argz_insert, rpl_rgz_next):  Fallback implementations of
the similarly named functions for machines that don;t use glibc.
(lt_dlrealloc):  New memory function pointer that can be set by
the client.  Defaults to rpl_realloc, which in turn uses only
lt_dlmalloc and lt_dlfree.
(LT_EMALLOC, LT_EREALLOC): Set internal out-of-memory error
inside the functions called by these new macros.  Simplified all
callers by removing explicit client error reporting.
(memmove):  Fallback implementation of overlap safe memory copy
function.
(tryall_dlopen):  Factorized common code into...
(tryall_dlopen_module): ...this new helper function.
(canonicalize_path):  Changed function signature to return success
or failure.  Updated all callers.
(foreachfile_callback):  Make use of argz API.
(LT_DLSTRLEN): Moved from here...
* libltdl/ltdl.h (LT_STRLEN): ...to here.  Updated all callers.
(lt_dlrealloc):  Declare new memory management handle.
2001-08-01 06:50:16 +00:00
Robert Boehne
6bbb1b6197 * libtool.m4 (mingw*) Revert the previous change as it was
applied by mistake.
2001-07-31 22:57:34 +00:00
Guido Draheim
a5b1958691 * libtool.m4 (mingw*) sys_lib_search_path_spec:
Sets the proper path separator for cross-compiling.
2001-07-31 20:35:10 +00:00
Steve Ellcey
9ecd6bdb27 * libtool.m4 (ia64-*-hpux*) Add support for ia64*-*-hpux* platform. 2001-07-31 18:49:43 +00:00
Robert Boehne
e3617023bb * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC) [aix*]: Fixed an
incorrect resetting of lt_prog_compiler_static when using gcc
under AIX Power.
2001-07-31 18:48:11 +00:00
Gary V. Vaughan
531c942ce6 * bootstrap: Remove generated files (incase they are links) before
rerunning the autotools to regenerate them.
2001-07-31 02:30:31 +00:00
Gary V. Vaughan
98f40f9774 * libtool.m4 (AC_LIBTOOL_SETUP): Use Autoconf-2.50 era
quadrigraphs and AC_HELP_STRING to bring AC_ARG_WITH/ENABLE
macros up to date.
(_LT_AC_LOCK): Ditto.
(_LT_AC_TAGCONFIG): Ditto.
(AC_PROG_LD): Ditto.
(AC_ENABLE_SHARED): Ditto.  And eliminate the last remaining
changequote invocations.
(AC_ENABLE_STATIC): Ditto.  And Ditto.
(AC_ENABLE_FAST_INSTALL):  Ditto.  And Ditto.
* ltdl.m4 (AC_LTDL_ENABLE_INSTALL): Use Autoconf-2.50 era
quadrigraphs and AC_HELP_STRING to bring AC_ARG_ENABLE
macro up to date.
* NEWS: Updated.
2001-07-30 19:10:36 +00:00
Gary V. Vaughan
963e0cd11f * libtool.m4 [UnixWare7, OpenUNIX8]: Initial support for
UnixWare7 and OpenUNIX8.  Accept these identifiers from the
latest config.guess/config.sub as pseudonyms for sysv5uw[78].
* NEWS: Updated.
Reported by Boyd Lynn Gerber <gerberb@zenez.com>
2001-07-30 01:39:33 +00:00
Gary V. Vaughan
45ca0c8273 * tests/sh.test: Add a new test to enforce X as the fill
character in `test "X...'.
Beef up the `test' tests to also check `test -.' and `test ! -.'
phrases for compliance.
* ltmain.in: Fix quoting problems uncovered by the new tests.
2001-07-29 16:35:50 +00:00
Andrew C. Feren
ed51dc446f * tests/sh.test: New test to disallow `test $foo', where
`test "$foo"' is much safer.
* ltmain.in: Fix quoting problems uncovered by the new test.
2001-07-29 16:20:45 +00:00
Steve Ellcey
855b0b5cae * libtool.m4 (lt_cv_sys_global_symbol_to_cdecl): Change it from
"extern char" to "extern int" so that GCC 3.0 won't complain and
refuse to compile programs containing "extern char main()".
2001-07-29 14:09:03 +00:00
Gary V. Vaughan
8cd16b1d0d From Guido Draheim <Guido.Draheim@tek.com>:
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [mingw]: Support
cross compilation to mingw by allowing `:' or ';' as a path
separator.
* NEWS: Updated.
2001-07-29 12:13:48 +00:00
NIIBE Yutaka
d79ae2583d * libtool.m4 (lt_cv_deplibs_check_method): Use pass_all
for sh*-*-linux* (SuperH) too.
2001-07-27 16:28:06 +00:00
Ossama Othman
e4a2772406 From Thomas Poindessous <poinde_t@epita.fr>
* ltmain.in (pic_mode):  Added missing quotes around shell
variable in "if test" conditional.

From Peter Moulder <pmoulder@longford.csse.monash.edu.au>
* ltmain.in (xform): Add support for pre-processed
(e.g. `*.{i,ii}' sources).

* THANKS:  Added Albert Chin-A-Young.
2001-07-25 23:20:15 +00:00
Gary V. Vaughan
be59bd4ad3 From Steve Ellcey <sje@cup.hp.com>:
* libltdl/ltdl.c (foreach_dirinpath): Free unassigned pointer
fix for `canonical'.
2001-07-25 02:52:36 +00:00
Robert Boehne
0a2043ca0e * libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG, AC_LIBTOOL_PROG_LD_SHLIBS)
[aix4*, aix5*]: Fixed a mispelled binder option under AIX.
The option to throw errors for unresolved external references is
-bernotok, not -bnoerok.
2001-07-23 21:22:03 +00:00
Gary V. Vaughan
98cf23f00b * Makefile.am (EXTRA_DIST): Don't forget to distribute
ChangeLog.1.
2001-07-23 21:06:02 +00:00
Gary V. Vaughan
cf60b1211e From Erik Lindahl <E.Lindahl@chem.rug.nl>
* libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Used on aix to discover
the compiler's default library search path so that the MPI
compiler suite is not hosed by the previously hardcoded path.
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [aix4*, aix5*]: Use it.
2001-07-23 21:04:29 +00:00
Andreas Schwab
a25740e4f1 * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use pass_all for
s390*-*-linux* and m68*-*-linux*.
2001-07-23 20:34:21 +00:00
Robert Boehne
7e3f8916bb * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Fix tag support
problems with CXX variables being overwritten by the individual
macros.
(AC_LIBTOOL_PROG_CC_C_O): Ditto.
(AC_LIBTOOL_PROG_COMPILER_PIC): Ditto.
(AC_LIBTOOL_LANG_CXX_CONFIG): Moved call to
AC_LIBTOOL_SYS_HARD_LINK_LOCKS after the call to
AC_LIBTOOL_PROG_CC_C_O as it depends on the result.
(AC_LIBTOOL_LANG_GCJ_CONFIG): Ditto.
(AC_LIBTOOL_LANG_C_CONFIG): Ditto.
(AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH): Used the macro
_LT_AC_TAGVAR to ensure the correct variable is being queried.
(AC_LIBTOOL_SYS_DYNAMIC_LINKER): Changed the naming of shared
objects under IRIX back to what it was in the MLB.
2001-07-23 16:41:49 +00:00
Mark Kettenis
717697b020 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN) [gnu*]: Remove spurious
"break" and bogus comment
(_LT_AC_LANG_CXX_CONFIG): Add support for the Hurd.
* ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): Add support for the Hurd.
2001-07-23 00:30:00 +00:00
Robert Boehne
1840292d8b * ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): add cases and comments for
more platforms, including AIX, Digital/Tru64 UNIX and IRIX.
2001-07-17 20:17:38 +00:00
Gary V. Vaughan
7b207c31e8 * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Fix ia64 AIX
run-time-linking when not using gcc.
(AC_LIBTOOL_LANG_CXX_CONFIG):  Ditto.
Reported by Dan McNichol <mcnichol@austin.ibm.com>
2001-07-16 19:11:34 +00:00
Gary V. Vaughan
706b9e9c36 From dda@sleepycat.com (Don Anderson):
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [qnx]: New
supported architecture.
(AC_DEPLIBS_CHECK_METHOD) [qnx]:  Ditto.
* NEWS: Updated.
2001-07-12 23:36:36 +00:00
Gary V. Vaughan
7e3f4ae209 From Stefan Ondrejicka <ondrej@idata.sk>:
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [cygwin*]: Make
sure that /lib/w32api is searched for system libraries to
match recent versions of cygwin.
* NEWS: Updated.
2001-07-12 19:48:49 +00:00
Dan McNichol
a774fb1a86 From albert chin <china@thewrittenword.com>
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Fix AIX
run-time-linking when using gcc.
(AC_LIBTOOL_LANG_CXX_CONFIG):  Ditto.
2001-07-12 18:20:28 +00:00
Gary V. Vaughan
cafb176ee8 * libtool.m4 (_LT_AC_LANG_CXX_CONFIG) [hpux, linux, osf,
solaris]: Doh!  the evalled variable shouldn't have been
quoted.
2001-07-11 23:16:07 +00:00
Gary V. Vaughan
f70bf484b3 * libtool.m4 (_LT_AC_LANG_CXX_CONFIG) [hpux, linux, osf,
solaris]: output_verbose_link_cmd have unquoted `*' in case
statements for these architectures.  Be sure to quote them
with a sed expression before passing to eval.
Reported by Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
2001-07-11 22:27:31 +00:00
Gary V. Vaughan
aa6e480a61 * README-alpha: s/configure.in/configure.ac.
* configure.ac: Bumped version to 1.4c.
2001-07-09 22:41:58 +00:00
Gary V. Vaughan
16b5ce20cc * configure.ac: Bumped version to 1.4b.
* NEWS: updated.
* config.guess, config.sub, texinfo.tex:  Synchronised from
ftp.gnu.org.
2001-07-09 22:02:09 +00:00
Robert Boehne
9dcb2e57cb From Michael Elizabeth Chastain <chastain@cygnus.com>:
* libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN):  Set max_cmd_len
to a maximum of 512Kb, as it seems some HPUX 11.0 systems
have trouble with 1MB.
2001-07-09 21:36:00 +00:00
Gary V. Vaughan
75ac32bf79 * README-alpha: Upgrade distribution instructions to include
canonical location of texinfo.tex.
2001-07-09 20:22:51 +00:00
Timothy Wall
03278d51cc * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Don't disable shlibs
on AIX5/IA64 with GNU ld.  Keep gnu defaults if using gnu tools
on AIX5/IA64.
2001-07-09 19:19:24 +00:00
Robert Boehne
df9214ecf2 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Set max_cmd_len
to -1 on hurd, it has no command line argument limits.
* ltmain.in Handle max_cmd_len=-1 for systems that don't have
command line argument limits.
2001-07-09 19:11:26 +00:00
Gary V. Vaughan
32f91bf15d * libtool.m4 (_LT_AC_LANG_C_CONFIG): Revert to 1.3.x
sematics, and always build static libs when the host machine
cannot build shared libs.  Even if static libs were explicitly
disabled.
2001-07-06 01:08:58 +00:00
Gary V. Vaughan
63a4771533 Cleanup of libltdl:
* ltdl.c (lt_dladderror): Don't use `index' as a variable name,
since it is a function on BSD based boxes.
(lt_dlseterror): Ditto.
(lt_dlexit): Remove unused errormsg declaration.
(foreach_dirinpath):  Make sure filename is initialised.
(find_handle):  Return NULL for a failed search.
(foreachfile_callback): Don't reuse data2 symbol from prototype
in func declaration to prevent symbol shadowing.
* ltdl.h (lt_dlmutex_seterror): Don't use `error' as a parameter
name, since it is a function on glibc boxes.
2001-07-02 01:21:30 +00:00
Gary V. Vaughan
f9cb0bf8b8 * libtoolize.in: Display --version in the same format as
autoconf and automake.
* ltmain.in: Ditto.
2001-07-01 23:33:12 +00:00
Gary V. Vaughan
6f5427b530 Merge test improvements from multi-language-branch:
* tests/defs: Find and set the value of CC probed by libtool.m4
* tests/link-2.test: Use a .lo wrapper script, and the value of
CC set by defs instead of hardcoding gcc.
* tests/link.test: Use the value of CC set by defs instead of
hardcoding gcc.
* tests/quote.test: Ditto.
* tests/suffix.test: Ditto.
2001-06-30 20:31:34 +00:00
Gary V. Vaughan
c02df12c80 * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC) [aix*]: Always set
lt_prog_compiler_wl to `-Wl'.
Reported by Albert Chin-A-Young  <china@thewrittenword.com>
2001-06-30 02:39:18 +00:00
Gary V. Vaughan
fdec1c1137 * ltdl.m4 (AC_LTDL_DLLIB) [sco3.2*]: When searching for a dlopen
implementation, and adding `-ldl' has failed, try linking a call
to dlopen, #including dlfcn.h, and without -ldl.  On sco3.2 the
header files redefines the interface symbols to point at the
implementation symbols in libc.
Reported by "Golubev I. N." <gin@mo.msk.ru>
2001-06-30 00:40:38 +00:00
Tim Van Holder
4925d0771e General cleanup of autoconf-2.50 upgrade:
* configure.ac: Mark as needing autoconf-mode in
emacs.  Pass arguments to AC_INIT.
* cdemo/configure.ac: Ditto.
* demo/configure.ac: Ditto.
* depdemo/configure.ac: Ditto.
* libtldl/configure.ac: Ditto.
* mdemo/configure.ac: Ditto.
* pdemo/configure.ac: Ditto.
* tagdemo/configure.ac: Ditto.
* ltdl.m4: Mark as needing autoconf-mode in
emacs.
* libtool.m4: Mark as needing autoconf-mode in
emacs.  Don't add () to AS_MESSAGE_LOG_FD.
* libltdl/configure.ac: Use config-h.in as
template for config.h.
* tagdemo/configure.ac: Drop the AC_DIAGNOSTIC. Move
AC_LANG([C++]) after the OBJEXT/EXEEXT check.
2001-06-29 22:56:50 +00:00