Commit Graph

2806 Commits

Author SHA1 Message Date
Ralf Wildenhues
1ef097dbf6 * libltdl/config/general.m4sh (func_show_eval):
Rewrite use the failure expression, because the exit status of
the previous command may not be preserved in the next `eval' by
some shells, such as pdksh.
* libltdl/config/ltmain.m4sh (func_extract_an_archive):
Use func_show_eval correctly.
(func_mode_link): Likewise.  Also, do not use `$status'.
* tests/fail.at: New set of tests to ensure libtool fails.
* Makefile.am, tests/testsuite.at: Adjusted.
2005-12-03 08:33:48 +00:00
Peter O'Gorman
efbbaaaf16 * libltdl/m4/libtool.m4 [darwin]: Use $LTCC $LTCFLAGS to create
reloadable objects.
2005-11-27 15:18:09 +00:00
Ralf Wildenhues
fe39aca14e * libltdl/Makefile.inc (libltdl/argz.h): Create libltdl
directory if it does not exist yet.  Take care that munging
of the file will not mess up the build rule.
Reported by Peter O'Gorman <peter@pogma.com>.
2005-11-25 18:54:08 +00:00
Eric Blake
794a900c74 * libltdl/loaders/loadlibrary.c (iface_id): New variable.
(get_vtable): Get an `iface_id' from `lt_dlinterface_register'.
(get_vtable): Rewrite to catch up with lt_dlhandle_iterate
interface change.  Append dot only after w32 path conversion
so it works on cygwin managed mounts.
2005-11-25 18:44:43 +00:00
Eric Blake
a0d0a9adc0 * libltdl/ltdl.h, libltdl/ltdl.c (lt_dlinterface_free): New
function.
* doc/libtool.texi (User defined module data): Document it.
2005-11-25 18:42:28 +00:00
Ralf Wildenhues
96a89e9c51 * libltdl/m4/libtool.m4 [aix] <archive_expsym_cmds>
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG): Always move -bnoentry
before $compiler_flags, so it can be overridden.
2005-11-25 18:17:49 +00:00
Ralf Wildenhues
d90ab8c89c * libltdl/config/ltmain.m4sh (func_mode_link): Allow GCC
response files through.
2005-11-25 18:13:53 +00:00
Peter O'Gorman
36e0337870 * libltdl/config/ltmain.m4sh (link mode): Pass through -isysroot
for cross architecture builds on darwin.
2005-11-25 12:50:54 +00:00
Ralf Wildenhues
2b5012fda1 * libltdl/config/ltmain.m4sh (func_mode_uninstall): In clean
mode, don't remove non-existent libfoo.lai.
2005-11-24 16:00:27 +00:00
Ralf Wildenhues
1ecf2190b7 * Makefile.am (aclocalfiles): Also install lt~obsolete.m4.
* libtoolize.m4sh (func_check_macros): Updated.
* tests/libtoolize.at: Adjusted.
2005-11-20 10:33:27 +00:00
Eric Blake
c689cdac6c * bootstrap (--help): Provide some help. 2005-11-20 09:14:51 +00:00
Todd Vierling
7389434efe * libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN, _LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [ interix3 ]: Support for Interix/Microsoft
Services for Unix.
* libltdl/m4/ltdl.m4 (LT_SYS_DLOPEN_DEPLIBS): Likewise.
* NEWS: Updated.
2005-11-20 08:45:54 +00:00
Ralf Wildenhues
5b3175a401 * tests/link-order.at [ interix ]: Skip command line grep.
* tests/deplibs-ident.at [ interix ]: Not broken here.
Reported by Thorsten Glaser <tg@66h.42h.de>.
2005-11-20 08:17:22 +00:00
Ralf Wildenhues
b5ae8b1212 * libtoolize.m4sh (func_copy_all_files)
(func_massage_aclocal_DATA, func_massage_pkgltdl_files)
(func_massage_pkgconfig_files): Work around ksh limitation.
Reported by Thorsten Glaser <tg@66h.42h.de>.
2005-11-18 17:37:40 +00:00
Albert Chin
320cf1412f * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
[ hpux11 ]: Pass +nodefaultrpath when linking on ia64*.
2005-11-14 22:49:57 +00:00
Ralf Wildenhues
bbfe62c669 Testsuite portability update round.
* tests/inherited_flags: skip when shared libs are disabled.
* tests/deplibs-ident.at [ aix ]: No unexpected failure here.
* tests/libtoolize.at: Fix for distcheck (readonly sources).
* tests/nonrecursive.at, tests/recursive.at, tests/subproject.at
(foo.c): Actually export a symbol, for AIX.
* tests/old-m4-iface.at: Use AC_LIBTOOL_DLOPEN, for AIX.
* tests/nonrecursive.at: Set foo_la_SOURCES, for automake-1.7.
* tests/subproject.at: Require automake-1.9, we use indirect
subdirs.
* tests/am-subdir.at: Move AT_KEYWORDS settings..
* tests/testsuite.at: ..here, in respective macros.
(LT_AT_AUTOMAKE): Skip if we detect failure due to old version.
(PREPARE_TESTS): Set autotool variables to `no' if not present.
(LT_AT_ACLOCAL, LT_AT_AUTOCONF, LT_AT_AUTOMAKE)
(LT_AT_AUTOHEADER, LT_AT_AUTORECONF): Use to XFAIL tests.
Reported by Tim Rice <tim@multitalents.net>.
(LT_AT_MAKE): Do not use `make -e'.
(_LTDL_PROJECT_FILES): Adjust sub-make call.  Work around `make'
which does not set `MAKE' or `SHELL'.  Fix for user-set
`CONFIG_SHELL'.
Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
2005-11-14 22:19:40 +00:00
Ralf Wildenhues
7f20fac17f * libltdl/m4/lt~obsolete.m4 (_LT_CC_BASENAME)
(_LT_COMPILER_BOILERPLATE, _LT_LINKER_BOILERPLATE):
Added because they were added to branch-1-5 AC_DEFUNed.
* HACKING: Add note about lt~obsolete.m4.
2005-11-14 20:48:15 +00:00
Ralf Wildenhues
7ddbaa343a * Makefile.am, libltdl/Makefile.inc (INSTALL_LTDL):
For nonrecursive mode, add to include_HEADERS as well.
* doc/libtool.texi (Invoking libtoolize, Distributing libltdl),
tests/nonrecursive.at: Adjusted, and removed TABS from .texi.
2005-11-14 20:39:27 +00:00
Ralf Wildenhues
8b84e7e3d3 * libtoolize.m4sh: Revert use of `$tst_aclocaldir'. 2005-11-14 20:33:55 +00:00
Eric Blake
67e7c9e8e1 * libltdl/ltdl.c (lt_dlhandle_iterate): Fix endless loop.
(lt_dlinterface_register): Fail if lt__strdup did.
2005-11-13 21:59:54 +00:00
Ralf Wildenhues
1a8774d4f1 * libltdl/m4/libtool.m4 (_LT_LANG_C_CONFIG):
Removed `lt_prog_cc_shlib' cruft, not needed any more.
2005-11-13 19:35:43 +00:00
Kean Johnston
779e67e773 * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_C_CONFIG, _LT_LANG_CXX_CONFIG)
[ sco3.2v5, sysv4, sysv4.3, sysv5, sco3.2v5, sco5v6, unixware,
OpenUNIX, sysv4*uw2 ]: Complete overhaul of SCO support.
* THANKS: Updated.
2005-11-13 19:04:42 +00:00
Ralf Wildenhues
c0674ddfdd * tests/quote.test: Do not fail on harmless shell bug present
in some ksh88 versions.
Reported by Tim Rice <tim@multitalents.net> and others.
2005-11-13 15:15:50 +00:00
Ralf Wildenhues
8dda99be58 * libltdl/m4/ltoptions.m4 (_LT_SET_OPTION): Use m4_warning
instead of m4_warn.
2005-11-12 12:08:14 +00:00
Ralf Wildenhues
a239315342 * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC): `wl' is tagged here. 2005-11-12 11:54:13 +00:00
Ralf Wildenhues
edef0a4297 * libltdl/m4/libtool.m4 (LT_SYS_DLOPEN_SELF, _LT_COMPILER_PIC):
Make sure `$wl' is properly expanded for tests involving
`export_dynamic_flag_spec', `lt_prog_compiler_static'.
2005-11-12 10:41:09 +00:00
Ralf Wildenhues
cf0824decb * tests/defs.m4sh (func_configure_nofail): Actually pass
options (like --disable-shared) to func_configure.
2005-11-12 09:16:56 +00:00
Ralf Wildenhues
1d83a0c4cd * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ freebsd ]:
Fix shlibpath_overrides_runpath settings.
Reported by Dave Benson <daveb@idealab.com>.
2005-11-11 22:04:52 +00:00
Charles Wilson
28c731ebfa * libltdl/config/ltmain.m4sh (func_win32_libid): use $SED not
sed.
2005-11-10 18:32:44 +00:00
Albert Chin-A-Young
e5a66bd4cd * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG)
<hppa*64,ia64, aCC,g++>:
Use C++ compiler for linking rather than ld.
2005-11-10 18:29:03 +00:00
Ralf Wildenhues
ce92bfea3d * libltdl/m4/ltsugar.m4 (lt_join, lt_combine, lt_dict_filter):
Rewrite to eliminate tail recursion; use ..
(lt_unquote): New trivial helper macro.
* libltdl/m4/libtool.m4 (_lt_decl_filter): Document.
2005-11-10 18:20:05 +00:00
Gary V. Vaughan
debe288c52 * tests/testsuite.ac (macrodir): Don't set it here...
* Makefile.am (BUILDCHECK_ENVIRONMENT, INSTALLCHECK_ENVIRONMENT):
...set it here to pick up files from the right place in context.
* tests/libtoolize.at, tests/old-m4-iface.at: Adjust.
* libtoolize.m4sh: Take tst_aclocaldir into account when running
inside the test harness.
2005-11-10 17:51:37 +00:00
Gary V. Vaughan
22c493ed4f Doh, fluffed the ChangeLog entry. 2005-11-10 16:31:33 +00:00
Gary V. Vaughan
3a95c2eb57 * tests/am-subdir.at: Now that we don't run autoreconf, we have to
explicitly tell aclocal what flags to use.
2005-11-10 15:31:32 +00:00
Gary V. Vaughan
e6f1cb457f * tests/testsuite.at (LT_AT_BOOTSTRAP): Allow passing arguments to
configure.
* tests/old-m4-iface.at, tests/subproject.at: Use LT_AT_BOOTSTRAP.
2005-11-10 14:57:50 +00:00
Ralf Wildenhues
c0bb251e2a * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS): Also set pic_flag.
(_LT_LANG_CXX_CONFIG): Use $as_unset, not unset.
(_LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG): Remove bogus
ld_shlibs tests.
2005-11-09 22:36:22 +00:00
Ralf Wildenhues
23f11d17fd * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS): Move setting of
`variables_saved_for_relink'..
(_LT_SYS_DYNAMIC_LINKER): here, when both `shlibpath_var'
and `runpath_var' have been set.
Reported by Mike Frysinger <vapier@gentoo.org>.
2005-11-09 22:18:44 +00:00
Ralf Wildenhues
e338c14da6 * libltdl/Makefile.inc (AM_CPPFLAGS): Do not define
HAVE_CONFIG_H.
* libltdl/m4/ltdl.m4 (LTDL_INIT): Do not invoke
AC_CONFIG_HEADERS ourselves, we can build with or without now.
2005-11-09 21:38:09 +00:00
Kean Johnston
f35263fbb8 * libltdl/config/ltmain.m4sh (func_mode_link) [ sysv4*uw2*,
unixware7* ]: Work around linker bug on older SCO systems.
2005-11-07 22:53:46 +00:00
Albert Chin-A-Young
9ec27df786 * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [ hpux10, hpux11 ]:
hardcode_libdir_flag_spec and hardcode_minus_L are the same for
hppa*64 and ia64*. Don't set
hardcode_libdir_flag_spec='-L$libdir' on ia64* because if you
specify +b and -L, +b overrides what is set into DT_RPATH.
2005-11-07 18:28:25 +00:00
Gary V. Vaughan
8e4c3b06e6 * tests/testsuite.at (_LTDL_PROJECT_FILES): Factored out from
common code to build a basic libltdl using project.
* tests/old-m4-iface.at, tests/standalone.at, tests/subproject.at:
Use it.
2005-11-07 15:37:11 +00:00
Gary V. Vaughan
b61ef459cb * doc/libtool.texi (Distributing libltdl): Document correct use of
LT_CONFIG_LTDL_DIR mode argument with Autoconf and Automake.
2005-11-07 14:35:35 +00:00
Gary V. Vaughan
746e5a476a Support 'recursive' mode for building libltdl: Automake will
recursively descend into the libltdl directory, and use libltdl's
Makefile.am code to build libltdl:
* ltdl.m4 (LT_CONFIG_LTDL_DIR): Don't barf on 'recursive' mode
for 2nd argument.
(_LTDL_MODE_DISPATCH): Handle recursive mode.
2005-11-07 14:18:15 +00:00
Gary V. Vaughan
a79954af84 * tests/recursive.at: New tests for libltdl as a subdirectory,
configured and compiled from the toplevel project using a
recursive make..
* tests/testsuite.at: Use it.
* Makefile.am (TESTSUITE_AT): Depend on it.
2005-11-07 14:16:15 +00:00
Gary V. Vaughan
1d7d709392 * libltdl/m4/ltdl.m4 (LTDL_INIT): Don't force running
AC_CONFIG_HEADERS for subproject ltdl.
* tests/old-m4-iface.at, tests/subproject.at: Remove workaround.
2005-11-07 12:42:40 +00:00
Gary V. Vaughan
c0d31c3321 * libltdl/m4/ltdl.m4 (LT_CONFIG_LTDL_DIR): Add LTDL-MODE
argument.
* configure.ac: Use it.
2005-11-07 12:34:27 +00:00
Ralf Wildenhues
c284cc00bc * libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): lt_unknown is
lt_dlunknown.
2005-11-06 12:59:53 +00:00
Ralf Wildenhues
e48857e1ed * libltdl/m4/libtool.m4 (LT_SYS_DLOPEN_SELF): Revert
expansion of `$wl'.
(_LT_LANG_C_CONFIG, _LT_LANG_CXX_CONFIG, _LT_LANG_GCJ_CONFIG):
Do not require LT_SYS_DLOPEN_SELF.
(_LT_LANG_C_CONFIG): Instead call it at the right time.
(_LT_LANG_CXX_CONFIG, _LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG)
(_LT_LANG_GCJ_CONFIG): Do not call _LT_CMD_STRIPLIB.
2005-11-06 12:35:28 +00:00
Ralf Wildenhues
580906de04 * Makefile.am: `2>&1' as suggested by Albert Chin.
* libltdl/m4/libtool.m4, libltdl/m4/ltdl.m4:
Two newlines before each macro, fix underlines.
2005-11-06 11:37:25 +00:00
Kean Johnston
f750a60289 * libltdl/config/ltmain.m4sh (func_mode_link) [*-*-sco3.2v5*]:
Don't pass through -lc, nor add it to deplibs.
[*-*-sysv5*]: Ditto.
[*-*-openbsd*, *-*-freebsd*, *-*-dragonfly*]: Remove bogus
`$arg'.
2005-11-05 11:19:53 +00:00