Commit Graph

1307 Commits

Author SHA1 Message Date
Gary V. Vaughan
f8d415aeef * libtool.m4 (_LT_AC_LTCONFIG_HACK): Deleted a vital `;;'
terminator from a case statement by mistake.
2000-09-06 23:19:18 +00:00
Gary V. Vaughan
e927e43114 libtool.m4 now contains a version of the code that used to run
from ltconfig, so that ltmain.sh and then libtool are
generated at configure time.

* Makefile.am:  Don't generate ltmain.sh or ltconfig anymore.
* bootstrap: ltconfig is no more!
* configure.in: Call AC_PROG_LIBTOOL directly.
(AC_OUTPUT): Generate tmain.sh.
* libtool.m4: Don't build an argument list for ltconfig.
(_LT_AC_LTCONFIG_HACK):  Refactoring of the former contents of
ltconfig.in to take advantage of the m4 macros from autoconf.
* ltmain.in: Don't do a version check against ltconfig.
* tests/assign.test: Remove reference to ltconfig.
* tests/hardcode.test: ditto.
* tests/sh.test: ditto.
2000-09-06 17:31:09 +00:00
Alexandre Oliva
ce4a397e19 * depdemo/main.c: Support -alt.
* tests/build-relink2.test: Try it.
2000-09-05 12:54:02 +00:00
Alexandre Oliva
03d0740c11 * ltconfig.in: Removed all references to what used to be
hardcode_into_libs=all.  2000-09-03's patch was wrong.
* ltmain.in: Likewise.
* tests/build-relink.test, tests/build-relink2.test: Adjust.
* mdemo/Makefile.am (lib_LTLIBRARIES): Move libsub.la before
libfoo2.la, so that they're installed in the right order.
2000-09-05 11:03:06 +00:00
Alexandre Oliva
916ce7a372 * tests/dryrun.test: Build libsub.la along with the object files,
since it is needed by libfoo2.la.
2000-09-04 08:20:02 +00:00
Alexandre Oliva
61e1e15004 * mdemo/Makefile.am: Mark only libfoo2 as -no-undefined.
Explicitly link it with libsub.la.
2000-09-04 08:10:02 +00:00
Alexandre Oliva
85583b7577 * ltconfig.in (need_lc): Preserve allow_undefined_flag. 2000-09-04 08:05:27 +00:00
Alexandre Oliva
bd95e0f762 * tests/*.test (CONFIG_SITE): Ultrix's /bin/sh fails on
`. /dev/null'.  Set CONFIG_SITE to /dev/null/config/site, to make
sure we pick a non-existent file.
2000-09-04 07:46:01 +00:00
Alexandre Oliva
467ffde098 * Makefile.am (libtool, clibtool): Pass CONFIG_SHELL along with
ECHO down to ltconfig.
2000-09-04 07:30:48 +00:00
Alexandre Oliva
ef224f974f * ltconfig.in (hardcode_libdir_flag_spec, export_dynamic_flag_spec):
Use ${wl}, not ${wlarc}.
2000-09-04 07:06:51 +00:00
Alexandre Oliva
5526adb017 * ltmain.in (compile, need_lock): Don't create nor remove lock
files in dry runs.
2000-09-04 06:29:21 +00:00
Alexandre Oliva
6aa6b1b1d9 * libltdl/ltdl.c (load_deplibs): Don't append shlib_ext; use
lt_dlopenext() instead.
2000-09-04 06:09:25 +00:00
Alexandre Oliva
c4c91b5984 * ltmain.in (link -static): Don't add $link_static_flag; only
-all-static should do that.
* mdemo/configure.in: Revert part of the previous delta.
2000-09-04 05:10:30 +00:00
Alexandre Oliva
3244d1b086 * mdemo/configure.in: Don't use -static on AIX4.1.
* mdemo/Makefile.am: Likewise.
2000-09-04 04:33:51 +00:00
Alexandre Oliva
5d15db14ac * ltconfig.in: Get rid of hardcode_into_libs=all; use
hardcode_into_libs=yes && shlibpath_overrides_runpath!=yes
instead.
[FreeBSD 3.[01]] (shlibpath_overrides_runpath): Set to no.
* ltmain.in: Likewise.
* tests/build-relink.test, tests/build-relink2.test: Adjust.
2000-09-04 04:00:48 +00:00
Alexandre Oliva
de70b3ad0c * libtool.m4: Fix typo I introduced in yesterday's patch. 2000-09-04 02:08:51 +00:00
Alexandre Oliva
c82ec3eb1c * libltdl/ltdl.c (lt_dlopen): Set dlname from library_names if
dlname is empty.
2000-09-04 01:52:34 +00:00
Alexandre Oliva
4281dfe395 * ltdl.m4 (HAVE_LIBDL): Look for dlopen in -lsvld.
* ltconfig.in: Likewise.
2000-09-04 01:41:59 +00:00
Alexandre Oliva
39791a20c8 * tests/mdemo-exec.test: Modify failure message. 2000-09-04 01:20:16 +00:00
Alexandre Oliva
19b19ba7ae * ltmain.in (newdlprefiles): Use dlname if it's available and
old_library isn't; use linklib only if dlname is not available.
2000-09-04 01:18:13 +00:00
Alexandre Oliva
f4ae56e298 * ltconfig.in (enable_dlopen): Set to no when lt_cv_dlopen is no. 2000-09-04 01:12:47 +00:00
Alexandre Oliva
deaa5c5eec * libtool.m4: Don't quote CONFIG_SHELL nor ORIGINAL_CONFIG_SHELL.
Quote $@ properly so that the shell expands it, not m4.
2000-09-03 23:02:25 +00:00
Alexandre Oliva
76a616e4fb * libtool.m4: Don't quote SHELL when `re-exec'ing, so that SHELL
can be `/path/to/shell -x'.
2000-09-03 21:53:03 +00:00
Alexandre Oliva
51edf45910 * tests/quote.test: Move the match test out of case statements, to
work around bug in /bin/sh of several OSs.
2000-09-03 21:37:32 +00:00
Alexandre Oliva
dc692acce6 * ltmain.in (variables_saved_for_relink): Attempt to unset them
instead of setting them to an empty string.
2000-09-03 03:13:56 +00:00
Alexandre Oliva
b544397637 * ltconfig.in [with_gnu_ld] (archive_cmds, archive_expsym_cmds)
<solaris*, sysv5*, beos*>: Use compiler_flags instead of linker
flags.
Reported by Alex Hornby <alex@anvil.co.uk>
2000-09-02 23:27:56 +00:00
Makoto Ishisone
49958438c9 * libtool.m4 (lt_cv_deplibs_check_method, freebsd): Fix typo,
add support for compact format library.
2000-09-02 23:15:57 +00:00
Alexandre Oliva
d098088cd9 * ltdl.m4: Oops, I had forgotten to commit this part of Syd Polk's
patch from 2000-06-17.
2000-09-02 23:06:57 +00:00
Tom Kacvinsky
ba241e155d * libtool.m4: Ignore Tru64's nm's complaint. 2000-09-02 22:50:13 +00:00
Pavel Roskin
f84b61cb49 * ltconfig.in: only load $cache_file if it's a regular file 2000-09-02 22:35:12 +00:00
Assar Westerlund
098893dc99 * ltconfig.in: Add back ranlib calls for static libraries if there
is a ranlib.
2000-09-02 22:32:26 +00:00
Gary V. Vaughan
0e072fa33e Move the echo detection code to a macro in libtool.m4. The code
at the top ofltconfig.in is ugly, but will go away when the rest
of ltconfig is migrated.

* Makefile.am (libtool):  Pass the value of $ECHO to ltconfig as
an environment variable.
* libtool.m4 (_LT_AC_PROG_ECHO_BACKSLASH): Quote the ECHO value
correctly so that it inserts the correct code into configure.in
suitably quoted for M4 expansion.  This code needs to be near
the top of configure.in as it calls itself recursively, so I
am using AC_DIVERSION_NOTICE (or simply NOTICE on CVS
Autoconf).  The value of ECHO is also substitued into the
Makefile to be used when Make calls ltconfig to generate
libtool, so another layer of quotation is required for the
Makefile.
(AC_LIBTOOL_SETUP):  Use it.
* ltconfig.in: Accept a value for ECHO from the environment, and
carefully substitue for $0 if it is present in the ECHO value.
Because ECHO was quoted for Make, when ltconfig is called by
configure, it is overquoted, and one layer of quotes must be
stripped.
2000-08-31 17:23:44 +00:00
Gary V. Vaughan
39c3bd740b update config.guess and config.sub from ftp://ftp.gnu.org/gnu/config 2000-08-28 02:40:20 +00:00
Gary V. Vaughan
16b2680494 typo 2000-08-27 19:59:10 +00:00
Gary V. Vaughan
656d1ca824 * ltconfig.in (with_gcc): Make the value of this option
available to the generated libtool script.
* ltmain.in (compile_command, finalize_command):  The native C
and C++ compilers on IRIX require the -LANG:std in order to to
compile correctly.   The same options should _not_ be passed
through to gcc on IRIX, or at all on other architectures for
backwards compatibility (among others).
Reported by Bob Freisenhahn <bfreisen@simple.dallas.tx.us>
Reported by Albert Chin-A-Young <china@thewrittenword.com>
2000-08-27 10:50:23 +00:00
Gary V. Vaughan
476d780ec2 * ltconfig.in (old_reload_flag): typo. 2000-08-26 13:10:48 +00:00
Alexandre Oliva
94c658f565 * ltmain.in (shtool): Use echo|grep instead of expr, as in the
original patch.
2000-08-01 04:28:07 +00:00
Alexandre Oliva
e648974086 * ltconfig.in (need_lc): Fix test message. 2000-08-01 03:49:52 +00:00
Mocha
4b57ddf5e8 * ltconfig.in (NetBSD, deplibs_check_method): Use file_magic.
(NetBSD, file_magic_cmd, file_magic_test_file): Set.
2000-07-24 06:15:50 +00:00
Alexandre Oliva
b486b2ae8e * ltmain.in (irix, major): Prepend a `.'.
* ltconfig.in (irix, soname_spec, library_names_spec): Adjust.
2000-07-24 06:09:03 +00:00
Alexandre Oliva
073255d718 * ltmain.in: Support GNU shtool's install. 2000-07-24 05:42:55 +00:00
Alexandre Oliva
471594e90b * ltconfig.in (linkopts): Don't set for test. 2000-07-24 05:27:48 +00:00
Nick Hudson
bd5e08a98a typo 2000-07-24 05:21:09 +00:00
Nick Hudson
403f272e7a * ltconfig.in (linkopts): Replace with linker_flags. 2000-07-24 05:20:06 +00:00
Nick Hudson
a28c34c3ec * ltmain.in (ILD): Fix addition of deplibs in relink case. 2000-07-24 05:15:35 +00:00
H.J. Lu
7bc0e24c4f * ltconfig.in: Check if -lc is necessary for building shared
libary. Set build_libtool_need_lc to indicate it.
* ltmain.in: Add -lc when building shared libary only if
necessary.
2000-07-20 02:28:44 +00:00
Mo DeJong
a58c335936 typo fix from Mo DeJong 2000-07-20 01:59:15 +00:00
Mo DeJong
53779eeb79 * libtool.m4 (AC_PROG_NM): Fix macro so that it
finds a cross NM on the PATH.
2000-07-10 09:42:21 +00:00
Ken Block
9db9629198 Recover data mysteriously replaced with NULs 2000-07-10 07:37:12 +00:00
Ken Block
f523ce38f8 * libltdl/ltdl.h: Also check for __cplusplus, __STDC__ is not
by Compaq C++ compiler
2000-07-10 07:17:35 +00:00