]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
20 years ago* libltdl/lt_dlloader.c (lt_dlloader_remove): Since the return
Gary V. Vaughan [Mon, 30 Aug 2004 12:33:09 +0000 (12:33 +0000)] 
* libltdl/lt_dlloader.c (lt_dlloader_remove): Since the return
value of this function is often passed to free, don't declare it
`const'. Responsibility for this memory is given back to the
caller on return.
* libltdl/lt_dlloader.h (lt_dlloader_remove): Ditto.
* libltdl/ltdl.c (lt_dlexit): Adjust.
* NEWS: Updated.

20 years ago* libltdl/ltdl.c (lt_dlexit): Remove lvalue cast.
Andreas Schwab [Mon, 30 Aug 2004 11:46:39 +0000 (11:46 +0000)] 
* libltdl/ltdl.c (lt_dlexit): Remove lvalue cast.

20 years ago* libltdl/slist.h (SListCallback): Fix missing type.
Andreas Schwab [Mon, 30 Aug 2004 11:42:21 +0000 (11:42 +0000)] 
* libltdl/slist.h (SListCallback): Fix missing type.

20 years ago* config/ltmain.in: Accept --mode=relink.
Andreas Schwab [Mon, 30 Aug 2004 11:36:05 +0000 (11:36 +0000)] 
* config/ltmain.in: Accept --mode=relink.

20 years ago* NEWS: Updated.
Gary V. Vaughan [Sun, 29 Aug 2004 21:42:15 +0000 (21:42 +0000)] 
* NEWS: Updated.
* configure.ac: Bumped version to 1.9c.

20 years ago* configure.ac: Bumped version to 1.9b. release-1-9b
Gary V. Vaughan [Sun, 29 Aug 2004 20:36:32 +0000 (20:36 +0000)] 
* configure.ac: Bumped version to 1.9b.
* NEWS: Updated.
* INSTALL, config/config.guess, config/config.sub,
config/texinfo.tex: Updated from canonical source.
* Makefile.maint, HACKING: Update instructions for releasing in a
VPATH build.

20 years ago* Makefile.am (dist-hook): Only run if README-alpha exists.
Gary V. Vaughan [Sun, 29 Aug 2004 19:52:20 +0000 (19:52 +0000)] 
* Makefile.am (dist-hook): Only run if README-alpha exists.
* README.alpha: Renamed from README-alpha to stop automake from
automatically adding it to DIST_COMMON.

20 years ago* NEWS: Merge changes from branch-1-5.
Gary V. Vaughan [Sun, 29 Aug 2004 17:06:25 +0000 (17:06 +0000)] 
* NEWS: Merge changes from branch-1-5.

20 years ago* Makefile.am (dist-hook): Always distribute just a README file,
Gary V. Vaughan [Sun, 29 Aug 2004 16:59:23 +0000 (16:59 +0000)] 
* Makefile.am (dist-hook): Always distribute just a README file,
but take its contents from README-alpha for alpha releases.

20 years ago* TODO: Reformat. Removed some items that have been implemented.
Gary V. Vaughan [Sun, 29 Aug 2004 16:08:13 +0000 (16:08 +0000)] 
* TODO: Reformat.  Removed some items that have been implemented.

20 years agoAdd a new `-weak' flag to tell libtool when not to propogate
Gary V. Vaughan [Sun, 29 Aug 2004 16:05:34 +0000 (16:05 +0000)] 
Add a new `-weak' flag to tell libtool when not to propogate
dependency libraries from dlpreopened modules to libraries:

* config/ltmain.in: Support new -weak link mode option.  Adjust
help message.
* libltdl/Makefile.am (libltdlc_la_LDFLAGS): Use it.
* doc/libtool.texi (Linking with dlopened modules): Document it.
(Link mode): Mention -weak.
* NEWS: Updated.

20 years ago* config/ltmain.in (opt_help): Defer showing help messages until
Gary V. Vaughan [Sun, 29 Aug 2004 15:09:15 +0000 (15:09 +0000)] 
* config/ltmain.in (opt_help): Defer showing help messages until
after a possible following --mode argument has been parsed, so we
can handle `libtool --help --mode=foo'.

20 years agoWe have had shell functions in ltmain.in for a few years without
Gary V. Vaughan [Sun, 29 Aug 2004 10:29:08 +0000 (10:29 +0000)] 
We have had shell functions in ltmain.in for a few years without
complaint now, and recently a few more have crept in.  Make a
start at refactoring the code with shell functions, and
standardising on option parsing style:

* config/ltmain.in (func_echo, func_verbose, func_error)
(func_fatal_error, func_fatal_help, func_missing_arg)
(func_version, func_usage, func_help): Boiler plate shell
functions mostly copied from libtoolize.in.  Changed *lots* of
shell snippets to call these functions as appropriate, rather than
inlining the same code over and over.
(func_config, func_features, func_enable_tag, func_mode_help):
Factored out from the shared option parsing loop.  Write a new
shared option parser based on the one in libtoolize.in.
(func_check_version_match): Factored out from global scope.
(func_mode_compile, func_mode_execute, func_mode_finish)
(func_mode_install, func_mode_link, func_mode_uninstall): Break
each of the top level mode handlers out into a function.  Adjust
main loop.
(modename, prevopt, prev, optarg, show_help): Removed in the
course of cleaning up the shared option parser.
(opt_duplicate_deps): Use `:' and `false' instead of `yes' and `',
so we can run it directly, rather than calling test.

20 years agoTo help users submit better bug reports, improve the general
Gary V. Vaughan [Sat, 28 Aug 2004 16:15:23 +0000 (16:15 +0000)] 
To help users submit better bug reports, improve the general
instructions, and provide additional useful info alongside the bug
reporting address in --help output:

* Makefile.am (edit): Substitute $host_triplet.
* libtoolize.in: Output useful debug info with --help.
* config/ltmain.in: Ditto.
* README: Rewritten.  Added copyright info.
* README-alpha: Rewritten.  Added copyright info.
* HACKING: New file, partly taken from old README-alpha.

20 years agoTwo things to stop `make distcheck' from trying to rebuild
Gary V. Vaughan [Fri, 27 Aug 2004 18:08:47 +0000 (18:08 +0000)] 
Two things to stop `make distcheck' from trying to rebuild
distributed files (m4/ltversion.m4 and config/ltmain.in) in the
readonly source tree:

* Makefile.am (stamp-vcl): Keep only one copy of stamp-vcl; in
$(top_srcdir), so that an up-to-date version is rolled into the
dist tarball even from a VPATH build.
($(top_srcdir)/config/ltmain.sh): Don't depend on Makefile,
otherwise ltmain.sh needs to be rebuilt after every config.status
run, and then configure needs to be rebuilt, and it all goes
horribly wrong :-/  Unfortunately, we can't depend on Makefile.am
either, because that is a circular dependency.  The downside of
this change is that it is now possible to edit Makefile.am to
change the way ltmain.sh is generated, and the dependency
information can't tell that ltmain.sh needs regenerating.

20 years ago* doc/libtool.texi (Cheap tricks): Escape the `@' for texinfo.
Gary V. Vaughan [Fri, 27 Aug 2004 14:27:35 +0000 (14:27 +0000)] 
* doc/libtool.texi (Cheap tricks): Escape the `@' for texinfo.

20 years ago* doc/libtool.texi (Cheap tricks): Fix the instructions for making
Gary V. Vaughan [Fri, 27 Aug 2004 13:12:51 +0000 (13:12 +0000)] 
* doc/libtool.texi (Cheap tricks): Fix the instructions for making
a ltmain.in wrapping libtool in light of recent changes to the
version checking code.

20 years ago* config/ltmain.in [darwin]: Use the -dylib_file flag and avoid
Peter O'Gorman [Thu, 26 Aug 2004 13:13:03 +0000 (13:13 +0000)] 
* config/ltmain.in [darwin]: Use the -dylib_file flag and avoid
linking to so many libraries on darwin.

20 years ago* m4/libtool.m4 [darwin]: Don't use a libname triplet, a couplet
Peter O'Gorman [Thu, 26 Aug 2004 13:08:08 +0000 (13:08 +0000)] 
* m4/libtool.m4 [darwin]: Don't use a libname triplet, a couplet
is perfectly fine.

20 years ago* m4/ltdl.m4: Don't use the dyld loader on darwin 8 or later.
Peter O'Gorman [Thu, 26 Aug 2004 13:02:35 +0000 (13:02 +0000)] 
* m4/ltdl.m4: Don't use the dyld loader on darwin 8 or later.

20 years ago* config/ltmain.in (piecewise linking): Use a GNU ld script if
Paolo Bonzini [Thu, 26 Aug 2004 09:02:42 +0000 (09:02 +0000)] 
* config/ltmain.in (piecewise linking): Use a GNU ld script if
possible.
* m4/libtool.m4 (_LT_LINKER_SHLIBS): Add per-tag variable
with_gnu_ld.
(_LT_LANG_CXX_CONFIG): Don't set unused variable with_gnu_ldcxx.

20 years agoThe Grand Renaming. In preparation for libtool-2.0, move all of
Gary V. Vaughan [Sun, 22 Aug 2004 22:02:07 +0000 (22:02 +0000)] 
The Grand Renaming.  In preparation for libtool-2.0, move all of
the many and varied m4 symbols accumulated by libtool over the
years, considering also that modern autoconf can detect unexpanded
macros even without AC in the macro name:

* bootstrap: Remove libltdl/config.h from previous releases.
* m4/libtool.m4, m4/ltdl.m4, doc/libtool.texi: Basically, run a
giant sed transformation like this:
s,AC_LIB_LTDL,LTDL_INIT,g
s,AC_LIBLTDL_CONVENIENCE,LTDL_CONVENIENCE,g
s,AC_LIBLTDL_INSTALLABLE,LTDL_INSTALLABLE,g
s,AC_WITH_LTDL,LT_WITH_LTDL,g
s,AC_LTDL_ENABLE_INSTALL,_LT_ENABLE_INSTALL,g
s,AC_DEPLIBS_CHECK_METHOD,_LT_CHECK_MAGIC_METHOD,g
s,AC_LIBTOOL_OBJDIR,_LT_CHECK_OBJDIR,g
s,AC_LTDL_OBJDIR,_LT_CHECK_OBJDIR,g
s,AC_LTDL_DLPREOPEN,_LT_CHECK_DLPREOPEN,g
s,AC_LIBTOOL_SYS_MAX_CMD_LEN,LT_CMD_MAX_LEN,g
s,AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE,_LT_CMD_GLOBAL_SYMBOLS,g
s,AC_LIBTOOL_SYS_OLD_ARCHIVE,_LT_CMD_OLD_ARCHIVE,g
s,AC_PROG_LD_RELOAD_FLAG,_LT_CMD_RELOAD,g
s,AC_LIBTOOL_SYS_LIB_STRIP,_LT_CMD_STRIPLIB,g
s,AC_CHECK_LIBM,LT_LIB_M,g
s,AC_LTDL_DLLIB,LT_LIB_DLLOAD,g
s,AC_LIBTOOL_COMPILER_OPTION,_LT_COMPILER_OPTION,g
s,AC_LIBTOOL_PROG_CC_C_O,_LT_COMPILER_C_O,g
s,AC_LIBTOOL_PROG_COMPILER_NO_RTTI,_LT_COMPILER_NO_RTTI,g
s,AC_LIBTOOL_PROG_COMPILER_PIC,_LT_COMPILER_PIC,g
s,AC_LIBTOOL_SYS_HARD_LINK_LOCKS,_LT_COMPILER_FILE_LOCKS,g
s,AC_LTDL_DLSYM_USCORE,LT_FUNC_DLSYM_USCORE,g
s,AC_LIBTOOL_LINKER_OPTION,_LT_LINKER_OPTION,g
s,AC_LIBTOOL_PROG_LD_SHLIBS,_LT_LINKER_SHLIBS,g
s,AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH,_LT_LINKER_HARDCODE_LIBPATH,g
s,AC_PATH_MAGIC,_LT_PATH_MAGIC,g
s,AC_PATH_TOOL_PREFIX,_LT_PATH_TOOL_PREFIX,g
s,AC_PROG_LD,LT_PATH_LD,g
s,AC_PROG_LD_GNU,_LT_PATH_LD_GNU,g
s,AC_PROG_NM,LT_PATH_NM,g
s,AC_LTDL_SYS_DLOPEN_DEPLIBS,LT_SYS_DLOPEN_DEPLIBS,g
s,AC_LIBTOOL_DLOPEN_SELF,LT_SYS_DLOPEN_SELF,g
s,AC_LIBTOOL_POSTDEP_PREDEP,_LT_SYS_HIDDEN_LIBDEPS,g
s,AC_LTDL_SYSSEARCHPATH,LT_SYS_DLSEARCH_PATH,g
s,AC_LTDL_SHLIBEXT,LT_SYS_MODULE_EXT,g
s,AC_LTDL_SHLIBPATH,LT_SYS_MODULE_PATH,g
s,AC_LTDL_SYMBOL_USCORE,LT_SYS_SYMBOL_USCORE,g
s,AC_LIBTOOL_SYS_DYNAMIC_LINKER,_LT_SYS_DYNAMIC_LINKER,g
s,_LT_AC_TAGVAR,_LT_TAGVAR,g
s,_LT_AC_SYS_COMPILER,_LT_TAG_COMPILER,g
s,_LT_AC_PROG_ECHO_BACKSLASH,_LT_PROG_ECHO_BACKSLASH,g
s,_LT_AC_SYS_LIBPATH_AIX,_LT_SYS_MODULE_PATH_AIX,g
s,_LT_AC_SHELL_INIT,_LT_SHELL_INIT,g
s,_LT_AC_LOCK,_LT_ENABLE_LOCK,g
s,_LT_AC_CHECK_DLFCN,_LT_HEADER_DLFCN,g
s,_LT_AC_TRY_DLOPEN_SELF,_LT_TRY_DLOPEN_SELF,g
s,LT_AC_PROG_EGREP,_LT_DECL_EGREP,g
s,LT_AC_PROG_SED,_LT_DECL_SED,g
* doc/libtool.texi (Autoconf macros): Document exported macros.
* libtoolize.in: Compare ltdl.m4 serial numbers for LTDL_INIT
instead of newly obsoleted AC_LIB_LTDL.
(func_scan_files): Also set seen_ltdl for LTDL_INIT and
LT_WITH_LTDL.

* libltdl/ltdl.c (lt_dlforeachfile): LT_SYS_LIBSEARCH_PATH is not
an environment variable, it is an actual path.
Reported by Noah Mish <noah@cs.caltech.edu>

21 years ago* m4/libtool.m4 [GNU/linux] (AC_DEPLIBS_CHECK_METHOD): Cleanup,
Peter O'Gorman [Thu, 12 Aug 2004 04:14:12 +0000 (04:14 +0000)] 
* m4/libtool.m4 [GNU/linux] (AC_DEPLIBS_CHECK_METHOD): Cleanup,
thanks to Daniel Reed.

21 years ago* tests/demo-nopic.test: Do not run on x86_64 or s390*
Daniel Reed [Thu, 12 Aug 2004 03:36:30 +0000 (03:36 +0000)] 
* tests/demo-nopic.test: Do not run on x86_64 or s390*

21 years ago* bootstrap: Remove `-f Makefile.am' now that we have an actual
Gary V. Vaughan [Fri, 6 Aug 2004 13:02:30 +0000 (13:02 +0000)] 
* bootstrap: Remove `-f Makefile.am' now that we have an actual
Makefile to build ltmain.sh.

21 years ago* bootstrap: Run the bootstrap rules from a file named Makefile,
Gary V. Vaughan [Thu, 5 Aug 2004 15:32:58 +0000 (15:32 +0000)] 
* bootstrap: Run the bootstrap rules from a file named Makefile,
copied from Makefile.am for fresh checkouts.

21 years ago* m4/libtool.m4 (_LT_PROG_LTMAIN): Require ltmain.sh using
Alexandre Duret-Lutz [Thu, 5 Aug 2004 09:34:29 +0000 (09:34 +0000)] 
* m4/libtool.m4 (_LT_PROG_LTMAIN): Require ltmain.sh using
using Autoconf's new AC_REQUIRE_AUX_FILE.

21 years ago* Makefile.am ($(top_srcdir)/config/ltmain.sh): Depends on
Gary V. Vaughan [Thu, 5 Aug 2004 07:54:15 +0000 (07:54 +0000)] 
* Makefile.am ($(top_srcdir)/config/ltmain.sh): Depends on
Makefile.
(timestamp): Factor out timestamp setting and edit it based on the
version number, so that it is empty for release versions.
($(top_srcdir)/config/ltmain.sh): Use it.
(libtoolize): Ditto.

21 years ago* Makefile.am (libtool): Depends on ltmain.sh.
Gary V. Vaughan [Thu, 5 Aug 2004 07:16:13 +0000 (07:16 +0000)] 
* Makefile.am (libtool): Depends on ltmain.sh.
(libtoolize): Set and substitute TIMESTAMP.

21 years ago* Makefile.am ($(top_srcdir)/config/ltmain.sh): Actually run
Gary V. Vaughan [Thu, 5 Aug 2004 06:58:55 +0000 (06:58 +0000)] 
* Makefile.am ($(top_srcdir)/config/ltmain.sh): Actually run
$(MKSTAMP) before changing directories, or it won't be found.
Forgot to save before my last commit :-(

21 years ago* Makefile.am ($(top_srcdir)/m4/ltversion.m4): Since we already did
Gary V. Vaughan [Thu, 5 Aug 2004 06:40:19 +0000 (06:40 +0000)] 
* Makefile.am ($(top_srcdir)/m4/ltversion.m4): Since we already did
`cd $(top_srcdir)' for this rule, we can't mv ltversion.tmp to the
relative $(top_srcdir) again!  Also, run $(MKSTAMP) before changing
directories, or it won't be found.
($(top_srcdir)/config/ltmain.sh): Ditto.
(EXTRA_DIST): We should distribute ltversion.m4 too.

21 years ago* m4/libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Since CONFIG_SHELL may
Peter O'Gorman [Wed, 4 Aug 2004 14:10:59 +0000 (14:10 +0000)] 
* m4/libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Since CONFIG_SHELL may
not actually be set, we should use SHELL here, also make darn sure
that SHELL is set to something. Bug from Willem Jan Palenstijn
<wpalenst@math.leidenuniv.nl>.

21 years ago* ltmain.in: Allow some static libraries to be used in generating a
Jacob Meuser [Tue, 3 Aug 2004 14:54:34 +0000 (14:54 +0000)] 
* ltmain.in: Allow some static libraries to be used in generating a
shared library on NetBSD and OpenBSD. match-pattern_regex decides
which are good.

21 years ago* m4/libtool.m4 [darwin]: Don't use -all_load.
Geoffrey Keating [Mon, 2 Aug 2004 04:02:04 +0000 (04:02 +0000)] 
* m4/libtool.m4 [darwin]: Don't use -all_load.

21 years ago* m4/libtool.m4 (LT_AC_PROG_SED): Set SED when running from cache as
Maciej W. Rozycki [Sun, 1 Aug 2004 09:06:00 +0000 (09:06 +0000)] 
* m4/libtool.m4 (LT_AC_PROG_SED): Set SED when running from cache as
well.

21 years agoAlthough libtool is optimised to not need to subconfigure libltdl,
Gary V. Vaughan [Sat, 31 Jul 2004 00:17:02 +0000 (00:17 +0000)] 
Although libtool is optimised to not need to subconfigure libltdl,
the installed libltdl sources for libtoolize need to put
libltdl/configure.ac in the parent package so that *it* can
subconfigure libltdl.  That way we don't put any constraints on
the build system used by the parent package because the
libtoolized libltdl subtree is a self-contained sub-project:

* libltdl/Makefile.am (EXTRA_DIST): Add configure.ac.
(nobase_ltdldata_DATA): Change back to libltdl's own
configure.ac.

21 years agoMy thanks to Alexandre Duret-Lutz <adl@gnu.org> for the insight
Gary V. Vaughan [Fri, 30 Jul 2004 23:02:39 +0000 (23:02 +0000)] 
My thanks to Alexandre Duret-Lutz <adl@gnu.org> for the insight
required to write this changeset -- especially that ltmain.sh is
the same on any machine for a given release, which I hadn't
noticed for some bizarre reason: It turns out that generating
distributed files from configure causes no end of hassle, as
evidenced by the many patches I've generated over the last few
days to try and get the dist and distcheck make rules to work.
Instead of all that hair, we now simply generate our distributed
files (now including ltmain.sh) with make rules -- and since
automake creates make variables for all AC_SUBSTs, that is really
easy.  The code looks a lot more like automake and autoconf
Makefile.ams now, and doesn't have all the rough edges the earlier
hacky solution suffered from.  We still generate libtool from
config.status, but that is not a distributed file, and doesn't
break the golden rule.  Besides, there is way more going on there
than a bunch of substitutions:

* Makefile.am (edit): New common sed substitutions for files now
generated by make instead of config.status.
(CLEANFILES): Clean new tmp files.
(EXTRA_DIST): Add ltmain.sh.
(vcl-tmp): Reinstated.
(m4/ltversion.m4, config/ltmain.sh): New rules.  Generate from
here instead of config.status.
(libtoolize): Ditto.
(libtool): Call config.status to regenerate if necessary.
(dist-hook): Removed.
* config/ltmain.in: Moved here from top_srcdir.
* README-alpha: Update instructions to check AS_SHELL_SANITIZE is
up to date.
* bootstrap: Rewritten.  Generate m4/ltversion.m4 and
config/ltmain.sh because configure depends on them.
* configure.ac (AC_CONFIG_SRCDIR): Use libtoolize.in now that
ltmain.in has moved.
(AC_CONFIG_FILES): Don't generate distributed files,
config/ltmain.sh and libtoolize from config.status.  We have make
rules to do that now.

21 years ago* m4/libtool.m4, ltmain.in: readd the comments that I erased.
Peter O'Gorman [Fri, 30 Jul 2004 14:20:26 +0000 (14:20 +0000)] 
* m4/libtool.m4, ltmain.in: readd the comments that I erased.

21 years ago* ltmain.in [darwin]: We already had a module var, there can be
Peter O'Gorman [Fri, 30 Jul 2004 13:41:48 +0000 (13:41 +0000)] 
* ltmain.in [darwin]: We already had a module var, there can be
only one.

21 years ago* m4/libtool.m4, ltmain.in: autoconf now says the best thing to do
Peter O'Gorman [Fri, 30 Jul 2004 13:35:30 +0000 (13:35 +0000)] 
* m4/libtool.m4, ltmain.in: autoconf now says the best thing to do
with CDPATH is to (unset CDPATH) >/dev/null 2>&1 && unset CDPATH,
so do it.

21 years ago* Makefile.am ($(top_srcdir)/config/ltmain.sh): Ugh. More hair to
Gary V. Vaughan [Thu, 29 Jul 2004 19:34:23 +0000 (19:34 +0000)] 
* Makefile.am ($(top_srcdir)/config/ltmain.sh): Ugh. More hair to
help `make distcheck'; not only do we have to make a copy of
ltmain.sh available in the source tree, but we have to be really
careful about permission bit twiddling when we copy it across into
the possible read-only $(top_srcdir)/config directory!

21 years ago* tests/tagtrace.test: Skip this test when running a VPATH build
Gary V. Vaughan [Thu, 29 Jul 2004 18:13:37 +0000 (18:13 +0000)] 
* tests/tagtrace.test: Skip this test when running a VPATH build
against a read-only source tree (as in distcheck for example),
since autoconf wants to write temporary files in $top_srcdir
otherwise.

21 years ago* Makefile.am ($(top_srcdir)/config/ltmain.sh): Automake assumes,
Gary V. Vaughan [Thu, 29 Jul 2004 16:49:27 +0000 (16:49 +0000)] 
* Makefile.am ($(top_srcdir)/config/ltmain.sh): Automake assumes,
quite rightly for every project except libtool, that there will be
an ltmain.sh in the source tree.
(EXTRA_DIST): As do the dist rules it generates.
(dist-hook): Even though we definitely don't want to distribute
our local ltmain.sh.

21 years ago* config/config.guess, config/config.sub: Don't check these in,
Gary V. Vaughan [Thu, 29 Jul 2004 16:40:08 +0000 (16:40 +0000)] 
* config/config.guess, config/config.sub: Don't check these in,
they cause spurious conflicts on cvs commit and update, and are
added by bootstrap in any case.

21 years ago* configure.ac (AC_INIT): Revert an accidental commit from my
Gary V. Vaughan [Thu, 29 Jul 2004 10:34:35 +0000 (10:34 +0000)] 
* configure.ac (AC_INIT): Revert an accidental commit from my
testing of package_revision.

21 years ago* doc/libtool.texi (Tags): Document CC.
Alexandre Duret-Lutz [Thu, 29 Jul 2004 09:34:00 +0000 (09:34 +0000)] 
* doc/libtool.texi (Tags): Document CC.
* m4/libtool.m4 (_LT_SETUP): Register CC as supported tag so that
Automake uses it.

21 years agoFix a long-standing bug where macro_version was always empty in
Gary V. Vaughan [Wed, 28 Jul 2004 16:14:01 +0000 (16:14 +0000)] 
Fix a long-standing bug where macro_version was always empty in
the generated m4/ltversion.m4.  Except for CVS revisions:

* ltmain.in (package_revision): Don't try to deduce it from
TIMESTAMP, since that is empty for release versions; simply
substitute it...
* configure.ac (package_revision): ...from here, having
precalculated it before resetting TIMESTAMP for release versions.
* bootstrap: Force regeneration of m4/ltversion.m4, but retain
timestamps if there is no change to the content.

21 years agoTo take full advantage of this, libtool must be bootstrapped with
Gary V. Vaughan [Wed, 28 Jul 2004 14:57:28 +0000 (14:57 +0000)] 
To take full advantage of this, libtool must be bootstrapped with
CVS autoconf, otherwise pdksh chokes on some nested escaped quotes
from libtool.m4.  Using CVS autoconf protects configure from
non-bourne compatible shells in the same way this changeset
protects libtool and libtoolize:

* libtoolize.in: Include latest CVS autoconf AS_SHELL_SANITIZE
expansion to make various shells fully bourne compatible.
* ltmain.in: Ditto.
* m4/libtool.m4 (AC_PATH_TOOL_PREFIX): Remove spurious quotes, the
RHS of = assignment is not IFS split.
(_LT_LANG_CXX_CONFIG): Ditto.
(AC_LIBTOOL_POSTDEP_PREDEP): Ditto.

21 years agoThis change fixes another VPATH build bug, where the vcl.tmp
Gary V. Vaughan [Tue, 27 Jul 2004 12:51:31 +0000 (12:51 +0000)] 
This change fixes another VPATH build bug, where the vcl.tmp
target forced a rebuild of stamp-vcl in the build tree (and
hence regeneration of m4/ltversion.m4, thus an automake driven
rebootstrap that doesn't know about $fakes) requiring a fresh
./bootstrap after every cvs/tla update:

* Makefile.am (vcl.tmp): Removed.
(stamp-vcl): Adopt former vcl.tmp target rules.

21 years ago* ltmain.in: Make sure that dependency libraries of -dlpreopened
Gary V. Vaughan [Sun, 25 Jul 2004 20:36:43 +0000 (20:36 +0000)] 
* ltmain.in: Make sure that dependency libraries of -dlpreopened
libraries are propogated properly.

21 years ago* libtool.m4: Treat bsdi5* like bsdi4*.
Joe Orton [Fri, 23 Jul 2004 14:12:44 +0000 (14:12 +0000)] 
* libtool.m4: Treat bsdi5* like bsdi4*.

21 years ago* ltmain.in [darwin](func_extract_archives): $SED not sed.
Peter O'Gorman [Thu, 22 Jul 2004 13:59:19 +0000 (13:59 +0000)] 
* ltmain.in [darwin](func_extract_archives): $SED not sed.

21 years ago* ltmain.in [darwin](func_extract_archives): Clean up last commit
Peter O'Gorman [Thu, 22 Jul 2004 13:37:52 +0000 (13:37 +0000)] 
* ltmain.in [darwin](func_extract_archives): Clean up last commit
a little, some suggestions are from Albert Chin, those that are
broken are mine.

21 years ago* libltdl/Makefile.am, libltdl/loaders/Makefile.am: Look for
Peter O'Gorman [Thu, 22 Jul 2004 13:03:47 +0000 (13:03 +0000)] 
* libltdl/Makefile.am, libltdl/loaders/Makefile.am: Look for
included files in the right places.

21 years ago* ltmain.in [darwin](func_extract_archives): Because fat archives
Peter O'Gorman [Tue, 20 Jul 2004 14:53:11 +0000 (14:53 +0000)] 
* ltmain.in [darwin](func_extract_archives): Because fat archives
on darwin can not be extracted using ar, we need to use lipo to
extract the thin archives and then use lipo again to generate the
individual fat objects. This should allow people to run configure
with CC set to "cc -arch ppc -arch ppc64" or "cc -arch ppc -arch
i386" or whatever to match the toolchain they have available.

21 years agoCommit to match previous ChangeLog without actual changes entry
Greg Eisenhauer [Sun, 18 Jul 2004 14:52:17 +0000 (14:52 +0000)] 
Commit to match previous ChangeLog without actual changes entry

21 years ago* libltdl/loaders/Makefile.am: Use AM_MAKEFLAGS not MAKEFLAGS.
Greg Eisenhauer [Sun, 18 Jul 2004 14:27:08 +0000 (14:27 +0000)] 
* libltdl/loaders/Makefile.am: Use AM_MAKEFLAGS not MAKEFLAGS.

21 years ago* libltdl/Makefile.am: Ensure that lt__dirent.h is part of the dist,
Peter O'Gorman [Sun, 18 Jul 2004 14:13:04 +0000 (14:13 +0000)] 
* libltdl/Makefile.am: Ensure that lt__dirent.h is part of the dist,
also make failed looking for configure.ac, look for
$(top_srcdir)/configure.ac instead.

21 years ago* libltdl/lt__private.h (lt_dlhandle_struct): Renamed to
Gary V. Vaughan [Thu, 15 Jul 2004 12:37:15 +0000 (12:37 +0000)] 
* libltdl/lt__private.h (lt_dlhandle_struct): Renamed to
lt__handle to better reflect the naming scheme.
* libltdl/ltdl.h (lt_dlhandle): Be truly opaque with a void *.
* libltdl/lt_dlloader.c (lt_dlloader_remove): Party to
lt__private.h, so use internal lt__handle instead of opaque
lt_dlhandle.
* libltdl/ltdl.c (LT_DLGET_FLAG, LT_DLSET_FLAG): Add a cast to
internal lt__handle type.
(try_dlopen, tryall_dlopen, load_deplibs, unload_deplibs): Ditto.
(lt_dlexit, lt_dlclose, lt_dlsym): Use lt__handle to iterate
throught the handle list.
(try_dlopen): Use lt__zalloc instead of MALLOC and memset.
* libltdl/ltdl.h (lt_dlcaller_id): Be truly opaque with a void *.
(lt_dlhandle_interface): New callback type for filtering handles
according to the interface they present.
* libltdl/ltdl.c (lt_dlcaller_register): Take an id and an
interface check callback, and generate a caller_id.
(iterator): New static variable for the use of...
(lt_dlhandle_first): New function.  Set the iterator for
subsequent calls to lt_dlhandle_next.
(lt_dlhandle_next): Either work as before when iterator is unset,
or else skip handles that fail the interface check in iterator set
by lt_dlhandle_first.
* libltdl/ltdl.h (lt_dlhandle_first): Declaration.
* doc/libtool.texi (User defined module data): Document the new
APIs.
* NEWS: Updated.

21 years agoSplit lt_dlloader management into a separate file, and factor
Gary V. Vaughan [Thu, 15 Jul 2004 12:33:20 +0000 (12:33 +0000)] 
Split lt_dlloader management into a separate file, and factor
`loaders' list management into a new SList ADT.  In the process,
the API for writing loaders is a little cleaner, so all the
existing loaders were tweaked to take advantage of that:

* libltdl/slist.h, libltdl/slist.c: New files implementing a
generic singly linked list container ADT.  The ADT is purely
internal, and none of its API's are visible from an installed
libltdl.
* libltdl/lt_dlloader.h (lt_dlloader): Removed next field again
:-) Renamed to lt_dlvtable for API.  Changed all callers.
(lt_dlloader_get): New function to turn an lt_dlloader into its
associated lt_dlvtable.
(lt_dlloader_add): Removed unused data parameter.  The caller
data belongs to (and is set by) the loader itself, not the
loader's client.  Changed all callers.
(lt_dlloader_name, lt_dlloader_data): Removed.  Use
lt_dlloader_get instead!
* libltdl/lt__private.h: Include slist.h.
(lt__alloc_die_callback): Add missing LT_SCOPE to declaration.
(lt_dlhandle_struct): Use lt_dlvtable instead of opaque
lt_dlloader.
* libltdl/ltdl.c (lt_dlexit): Rewritten for the new loader API.
(loaders, lt_dlloader_add, lt_dlloader_remove, lt_dlloader_next,
lt_dlloader_find): Moved from here...
* libltdl/lt_dlloader.c ((loaders, lt_dlloader_add,
lt_dlloader_remove, lt_dlloader_next, lt_dlloader_find): ...to
here.  And rewritten in terms of new SList interface.
* libltdl/ltdl.c (lt_dlexit, tryall_dlopen): Rewritten in terms of
new lt_dlloader interface.
* libltdl/Makefile.am (libdlloader_la_SOURCES): Add slist.h and
slist.c.  Move lt_dlloader.h from here...
(pkginclude_HEADERS): ...to here.
(libltdl_la_SOURCES): Add lt_dlloader.c and lt_dlloader.h.

21 years agoCollapse two almost identical structures into one:
Gary V. Vaughan [Thu, 15 Jul 2004 12:26:28 +0000 (12:26 +0000)] 
Collapse two almost identical structures into one:

* libltdl/lt_dlloader.h (lt_dlloader): Add next field.
* libltdl/ltdl.c (lt_user_dlloader): Remove entirely.  Change all
callers to use lt_dlloader instead.  Add a compatibility macro.
(lt_dlloader_add): Remove copy and allocate stage, just hook
directly into the loaders list.

21 years agoA cleaner way to access the private fields of an lt_dlhandle
Gary V. Vaughan [Thu, 15 Jul 2004 12:22:48 +0000 (12:22 +0000)] 
A cleaner way to access the private fields of an lt_dlhandle
than my move of the module field into lt_dlinfo:

* libltdl/ltdl.c (lt_caller_data, lt_dlhandle_struct): Move from
here...
* libltdl/lt__private.h (lt_caller_data, lt_dlhandle_struct):
...to here.  And put the module field back here...
* libltdl/ltdl.h (lt_dlinfo): ...instead of here.
* libltdl/loaders/loadlibrary.c (vm_open): Adjust.

21 years ago* libltdl/lt__private.h (streq, strneq): New macros to make strcmp
Gary V. Vaughan [Thu, 15 Jul 2004 12:20:15 +0000 (12:20 +0000)] 
* libltdl/lt__private.h (streq, strneq): New macros to make strcmp
calls as used for simple comparison easier to read.
* libltdl/loaders/dyld.c, libltdl/loaders/preopen.c,
libltdl/ltdl.c: Use them!

21 years agoThis pervasive changeset makes two intertwined deep changes to the
Gary V. Vaughan [Thu, 15 Jul 2004 12:14:48 +0000 (12:14 +0000)] 
This pervasive changeset makes two intertwined deep changes to the
operation of libtool (neither would work alone).  First, there is
a new feature that allows libraries to preopen modules.  This
entails a backwards incompatible change to the libltdl API for
separating out the preloaded symbol lists by owner.  Second, in
the tradition of "eating our own dogfood", libltdl now preloads
its own dlloaders.  The internal API for dlloaders has also had to
change in a backwards incompatible way in support of the new
library preloading feature.  If you don't use preloaded libraries,
you needn't change your project sources, though you will need to
recompile against the new libltdl.  The API changes are mostly
confined to dlloaders, so you probably needn't worry about those
(unless you have written a custom loader that you want libltdl to
use):

* configure.ac (AC_CONFIG_FILES): Add libltdl/loaders/Makefile.
* libltdl/configure.ac (AC_CONFIG_FILES): Add loaders/Makefile.
* libltdl/loaders: New directory for module loaders, to simplify
Makefile rules, and to give the loaders themselves names that are
unique in the first few characters.
* libtoolize.in (func_copy_all_files): Copy recursively to pick up
the loaders directory contents.
* libltdl/loaders/Makefile.am: New file.  Move module building
rules to here...
* libltdl/Makefile.am: ...from here.
(VERSION_INFO): Bumped version info to signify interface changes.
(libltdl_la_CPPFLAGS, libltdlc_la_CPPFLAGS): Set LTDLOPEN
appropriately for each library.
* libltdl/loader-dld_link.c, libltdl/loader-dlopen.c,
libltdl/loader-dyld.c, libltdl/loader-load_add_on.c,
libltdl/loader-loadlibrary.c libltdl/loader-preopen.c,
libltdl/loader-shl_load.c: Moved from here...
* libltdl/loaders/dld_link.c, libltdl/loaders/dlopen.c,
libltdl/loaders/dyld.c, libltdl/loaders/load_add_on.c,
libltdl/loaders/loadlibrary.c libltdl/loaders/preopen.c,
libltdl/loaders/shl_load.c: ...to here.
(get_vtable): New entry function for each.
* libltdl/loaders/preopen.c (lt_dlsymlists_t): Replaced by...
(symlist_chain): ...a new structure which maps lists of preloaded
symbols from the object that loads them.
(lt_dlpreload_open): New function to automatically open all
preloaded modules belonging to a named object (ORIGINATOR).
* libltdl/lt__alloc.c (lt__zalloc): New function to return a block
of zeroed out new memory.
* libltdl/lt__alloc.h (lt__zalloc): Prototype it.
* libltdl/lt__private.h (lt__alloc_die_callback): Add missing
prototype.
(lt__error_strings): Make this opaque to callers.
* libltdl/lt_error.c (lt__error_strings): Move the implementation
to here.
* libltdl/lt_dlloader.h (lt_user_dlloader): Add extra fields to
make originator focused preloading possible.  *BREAKS BACKWARDS
COMPATIBILITY*
(lt_dlloader_add): Take advantage of new fields to simplify
paramater list.
* libltdl/lt_system.h (LT_STR): New ANSI stringification macro.
(LT_CONC): Fix it to work from within macros.
* libltdl/ltdl.c (loader_init, loader_init_callback): Simplify
dlloader loading.
(get_vtable, preloaded_symbols): Point these at the preopen.c
symbols to bootstrap the loader chain.
(lt_dlinit): Load the preopen dlloader manually, and then use it
to load any other preloaded dlloaders.
(lt_dlloader_add): Simplify parameter list. Populate new
fields. Chain new loaders according to priority field.
* libltdl/ltdl.h (lt_dlsymlist): Add a new originator field.
(lt_dlpreload_callback_func): Type of a callback for automatic
lt_dlpreload_open loading.
(LTDL_SET_PRELOADED_SYMBOLS): Adjust to hook into preloaded
symbols from the "@PROGRAM@" originator.
* tests/demo/dlmain.c (main): Use mangled preloaded_symbols symbol.
* tests/pdemo/longer_file_name_dlmain.c (main): Ditto.
* ltmain.in: Don't spew spurious warnings when dlopening and
dlpreopening modules.
(func_generate_dlsyms): Factored out from multiple copies in the
rest of the code. Generate originator keyed symbol lists.
(func_extract_archives): Also factored.  Extract the contents of
convenience archives for linking with dependent libraries when
--whole-archive is not available.
[darwin]: Don't try to link $old_library unless it exists, and
$lib is a bundle.
* m4/ltdl.m4 (AC_LTDL_DLLIB): Check for all possible dynamic
loading libraries/apis rather that stopping when an acceptable one
is discovered.
(LT_DLLOADERS): New variable for holding dlloaders that can be
preloaded.
* doc/libtool.texi: Document interface changes.
* NEWS: Updated.

21 years ago* m4/libtool.m4 [darwin]: Set whole_archive_flag_spec to '' for xlc,
Peter O'Gorman [Mon, 12 Jul 2004 14:08:05 +0000 (14:08 +0000)] 
* m4/libtool.m4 [darwin]: Set whole_archive_flag_spec to '' for xlc,
or it does not pass it's tests. xlc passes -noall_load (the default)
and when -all_load is also specified Apple's /usr/bin/libtool barfs
and dies.

21 years ago* libltdl/ltdl.h (lt_dlinfo): Move private module field to here...
Gary V. Vaughan [Thu, 8 Jul 2004 09:35:51 +0000 (09:35 +0000)] 
* libltdl/ltdl.h (lt_dlinfo): Move private module field to here...
* libltdl/ltdl.c (lt_dlhandle_struct): ...from here.  Changed all
callers.
* libltdl/loader-loadlibrary.c (sys_wll_open): Use new inteface to
scan loaded handle->info.module fields for previously loaded
modules.
* doc/libtool.texi (User defined module data): Document changes to
the interface.
* NEWS: Updated.
Reported by Chuck Wilson <cwilson@ece.gatech.edu>

21 years ago* m4/libtool.m4: Fixes for the OpenBSD support
Brad [Wed, 7 Jul 2004 13:45:06 +0000 (13:45 +0000)] 
* m4/libtool.m4: Fixes for the OpenBSD support

21 years ago* ltmain.in: Unset the zsh GLOB_SUBST option, which makes zsh
Noah Misch [Thu, 24 Jun 2004 12:21:41 +0000 (12:21 +0000)] 
* ltmain.in: Unset the zsh GLOB_SUBST option, which makes zsh
handle backslash quoting poorly, before doing anything else.
* tests/defs: Likewise.

21 years ago* libtoolize.in (libtoolize_flags): With the --ltdl option, we
Gary V. Vaughan [Mon, 21 Jun 2004 16:40:01 +0000 (16:40 +0000)] 
* libtoolize.in (libtoolize_flags): With the --ltdl option, we
libtoolize the libltdl subdirectory automatically.
* m4/ltdl.m4 (AC_WITH_LTDL): Fix overquoted args.

21 years ago* ltmain.in (dependency_libs) [darwin]: Remove -framework stuff from
Peter O'Gorman [Mon, 21 Jun 2004 14:52:57 +0000 (14:52 +0000)] 
* ltmain.in (dependency_libs) [darwin]: Remove -framework stuff from
dependency_libs. Instead, invent a new .la var "inherited_linker_flags"
to keep any linker flags which should be used when linking the library,
but are outside the usual -L -l, -R etc that can be used in
dependency_libs. Any unusual flags in dependency_libs cause recent
versions of libtool to die with "cannot find the library `'", so
it is required to move frameworks out of there. :(

21 years agoFrom Ralf Wildenhues <Ralf.Wildenhues@gmx.de>:
Gary V. Vaughan [Mon, 21 Jun 2004 13:44:14 +0000 (13:44 +0000)] 
From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>:
* libtoolize.in: Quote $# to make sh.test happy again.

21 years ago* m4/ltdl.m4 (AC_WITH_LTDL): Remove redundant AC_REQUIRE calls.
Gary V. Vaughan [Mon, 21 Jun 2004 10:17:27 +0000 (10:17 +0000)] 
* m4/ltdl.m4 (AC_WITH_LTDL): Remove redundant AC_REQUIRE calls.
Either set variables to allow a client to link with the installed
libltdl, or else compile a local libltdl as a convenience library.
* libtoolize.in (opt_ltdl): Removed in favour of...
(ltdldir): ...this, which is defaulted to "libltdl" or can be set
by the user with an argument to --ltdl.
(Main): Use it!
* doc/libtool.texi (Distributing libltdl): Improved documentation
on libltdl.
(Invoking libtoolize): Document new optional --ltdl target
directory argument.

21 years ago* m4/libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [darwin*]: Fix a typo
Gary V. Vaughan [Thu, 17 Jun 2004 11:54:22 +0000 (11:54 +0000)] 
* m4/libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [darwin*]: Fix a typo
in allow_undefined_flag: s,${Wl},${wl},g

21 years ago* libtoolize.in (func_scan_files): Accept AC_WITH_LTDL as an
Gary V. Vaughan [Thu, 17 Jun 2004 08:03:49 +0000 (08:03 +0000)] 
* libtoolize.in (func_scan_files): Accept AC_WITH_LTDL as an
indication that libltdl is being used.
(Main): Without AC_CONFIG_MACRO_DIR, don't just dump all the
macro files in `.' since they are never used, and aclocal will
copy them from $aclocaldir into aclocal.m4 anyway.
Reported by Alexandre Duret-Lutz <adl@gnu.org>

21 years agolibltdl uses LIBOBJS, which leak out into a parent project if both
Brad [Wed, 16 Jun 2004 17:17:40 +0000 (17:17 +0000)] 
libltdl uses LIBOBJS, which leak out into a parent project if both
share the same configure.ac.  Libtool itself doesn't compile any
code, so it is okay to do it during bootstrap, but other projects
need to treat libltdl as a configurable subproject to keep their
respective LIBOBJS separate:

* libltdl/configure.ac: New file, based on configure.ac.
* libltdl/Makefile.am (AC_LOCAL_AMFLAGS): Use our own m4
directory.
(ltdldata_DATA): List *all* the files that libtoolize --ltdl will
install.

21 years ago* m4/libtool.m4: More improvements to OpenBSD support.
Brad [Wed, 16 Jun 2004 15:44:44 +0000 (15:44 +0000)] 
* m4/libtool.m4: More improvements to OpenBSD support.
* NEWS: Updated.

21 years agoAutomake 1.9 won't have the AC_PROG_EGREP bug (aclocal used to
Gary V. Vaughan [Wed, 16 Jun 2004 15:08:28 +0000 (15:08 +0000)] 
Automake 1.9 won't have the AC_PROG_EGREP bug (aclocal used to
pull an old installed libtool.m4 as well as the bootstrap
m4/libtool.m4 if an AC_DEFUN was removed), and we have
lt~obsolete.m4 to work around it in the mean time.  libtoolize
can install macro files from $prefix/share/aclocal perfectly well
without us needing to move to a whole other directory:

* Makefile.am (pkgmacro_DATA): Renamed to aclocal_DATA, so m4
files are installed to $prefix/share/aclocal again.
(install-data-local): Don't remove just installed macros!
* libtoolize.in (pkgmacrodir): Renamed to aclocaldir.
(func_copy_some_files): New function factored out of...
(func_copy_all_files): ...here.  Adjust to use func_copy_some_files.
(re_pkgaux_files): Renamed to glob_pkgaux_files, since it is not
a regular expression.
(re_pkgmagro_files): Replaced with...
(pkgmacro_files): ...a colon delimited list of libtool installed
m4 files from aclocaldir.
(Main): Copy macro files from aclocaldir again.
* NEWS: Updated.

21 years ago* ltmain.sh (check_executable): The WIN32 API and MinGW do not support
Bob Friesenhahn [Fri, 21 May 2004 22:27:07 +0000 (22:27 +0000)] 
* ltmain.sh (check_executable): The WIN32 API and MinGW do not support
S_IXOTH and S_IXGRP so use of these modes should be conditional.

21 years ago* tests/tagtrace.test: Forgot to add this file to the repository
Gary V. Vaughan [Fri, 21 May 2004 20:18:20 +0000 (20:18 +0000)] 
* tests/tagtrace.test: Forgot to add this file to the repository
for Alexandre's 2004-05-16 patch below.

21 years ago* m4/libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Make this an m4_defun,
Peter O'Gorman [Tue, 18 May 2004 04:49:58 +0000 (04:49 +0000)] 
* m4/libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Make this an m4_defun,
test the tags compiler to see if it is GCC, not the CC compiler.

21 years ago* doc/libtool.texi (Invoking libtool): Mention --tag=TAG.
Alexandre Duret-Lutz [Mon, 17 May 2004 17:42:44 +0000 (17:42 +0000)] 
* doc/libtool.texi (Invoking libtool): Mention --tag=TAG.
(Tags, Trace interface): New nodes.
* m4/libtool.m4 (LT_SUPPORTED_TAG): New macro.
(_LT_LANG): Call it.
* tests/tagtrace.test: New file.
* tests/Makefile.am
(TESTS): Add tagtrace.test.
* tests/defs: Define AUTOCONF.

21 years ago* ltmain.in: Add new qnx version type support.
Mike Gorchak [Mon, 17 May 2004 16:41:23 +0000 (16:41 +0000)] 
* ltmain.in: Add new qnx version type support.
* m4/libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Use it.  Set
ldqnx.so linker type.
(AC_DEPLIBS_CHECK_METHOD): QNX6 uses GNU C++, with deplib
checking, so use pass_all.
(AC_LIBTOOL_PROG_COMPILER_PIC): Use -shared for QNX.
(_LT_LANG_CXX_CONFIG): QNX can make shared libraries.
* m4/ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): QNX opens deplibs on
dlopen.
* NEWS: Updated.

21 years ago* m4/libtool.m4 (AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH): Insert space
Peter O'Gorman [Wed, 5 May 2004 13:16:52 +0000 (13:16 +0000)] 
* m4/libtool.m4 (AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH): Insert space
around = for a test and a comma between runpath_var and $1. Bug
reported by Max Bowsher.

21 years ago* libltdl/argz.h: Moved from here...
Gary V. Vaughan [Thu, 22 Apr 2004 22:47:20 +0000 (22:47 +0000)] 
* libltdl/argz.h: Moved from here...
* libltdl/argz_.h: ...to here, so as not to shadow system
argz.h when we `#include <argz.h>' for example.
#include stdlib.h and sys/types.h to ensure we get a size_t
definition.
* libltdl/argz.c (HAVE_CONFIG_H): Set it up how ltdl likes it when
used by another client.
* m4/argz.m4: New file.
(gl_FUNC_ARGZ): Try to find an error_t definition, and a system
argz.h.
* m4/ltdl.m4: Use it.
(AC_LTDL_FUNC_ARGZ): Removed.
* libltdl/lt__glibc.h: #include <argz.h> to pick up either the
system argz.h or our libltdl/argz.h if necessary.
* libltdl/Makefile.am (libltdl_la_SOURCES): Move argz.h from
here...
(ltdldata_DATA): ...here. Along with argz.c.
(argz.h): Generate from argz_.h if the system file is missing.
Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

21 years agoforgot to cvs rm -f libltdl/lt_mutex.[ch]
Gary V. Vaughan [Thu, 22 Apr 2004 22:11:34 +0000 (22:11 +0000)] 
forgot to cvs rm -f libltdl/lt_mutex.[ch]

21 years agoAccording to Howard Chu <hyc@highlandsun.com>:
Gary V. Vaughan [Thu, 22 Apr 2004 22:08:19 +0000 (22:08 +0000)] 
According to Howard Chu <hyc@highlandsun.com>:
Applications should assume that the native dlopen is NOT
thread-safe, and take care of locking themselves. All application
calls into libltdl should thus be protected by the caller.

* libltdl/lt_mutex.c, libltdl/lt_mutex.h: Removed.
* libltdl/Makefile.am (pkginclude_HEADERS): Removed lt_mutex.h.
(libltdl_la_SOURCES): Removed lt_mutex.c and lt_mutex.h.
* libltdl/ltdl.h: Don't include lt_mutex.h.
* libltdl/lt__private.h (LT__MUTEX_GETERROR, LT__MUTEX_SETERROR)
(LT__MUTEX_SETERRORSTR): Renamed to...
(LT__GETERROR, LT__SETERROR, LT__SETERRORSTR): ...this.  Changed
all callers.
(LT__MUTEX_LOCK, LT__MUTEX_UNLOCK, lt_dlmutex_lock)
(lt_dlmutex_unlock, lt_dlmutex_seterror, lt_dlmutex_geterror):
Removed.  Changed all callers.
* doc/libtool.texi (Thread Saftey in libltdl):
* NEWS: Updated.

21 years ago* m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Detect Intel C++ compiler
Gary V. Vaughan [Mon, 19 Apr 2004 15:04:17 +0000 (15:04 +0000)] 
* m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Detect Intel C++ compiler
version more idiomatically.

21 years ago* m4/libtool.m4: Use cc rather than ld to created
Albert Chin-A-Young [Mon, 19 Apr 2004 14:47:29 +0000 (14:47 +0000)] 
* m4/libtool.m4: Use cc rather than ld to created
a shared library on HP-UX 11.x. On HP-UX 10.x, the
C compiler doesn't grok -b so we continue to use ld.

21 years ago* m4/libtool.m4: Use cc rather than ld to create a
Albert Chin-A-Young [Mon, 19 Apr 2004 14:37:35 +0000 (14:37 +0000)] 
* m4/libtool.m4: Use cc rather than ld to create a
shared library on Solaris. When using the Sun
Workshop compiler 5.0 (and I presume any previous
version), revert to ld due to compiler errors.

21 years ago* m4/libtool.m4: Use cc rather than ld to create
Albert Chin-A-Young [Mon, 19 Apr 2004 13:31:28 +0000 (13:31 +0000)] 
* m4/libtool.m4: Use cc rather than ld to create
a shared library on Tru64 UNIX.

21 years ago* m4/libtool.m4: Use cc rather than ld to created
Albert Chin-A-Young [Mon, 19 Apr 2004 13:19:11 +0000 (13:19 +0000)] 
* m4/libtool.m4: Use cc rather than ld to created
a shared library on IRIX.

21 years ago* libltdl/loader-shl_load.c: Fix typos during reorg.
Albert Chin-A-Young [Mon, 19 Apr 2004 13:05:24 +0000 (13:05 +0000)] 
* libltdl/loader-shl_load.c: Fix typos during reorg.

21 years ago* doc/libtool.texi (LT_INIT): Properly display options in a table.
Alexandre Duret-Lutz [Mon, 19 Apr 2004 12:57:25 +0000 (12:57 +0000)] 
* doc/libtool.texi (LT_INIT): Properly display options in a table.

21 years ago* m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Intel C++ compiler 8.0 and
Gary V. Vaughan [Mon, 19 Apr 2004 12:49:56 +0000 (12:49 +0000)] 
* m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Intel C++ compiler 8.0 and
newer adds predep_objects and postdep_objects itself, so don't
duplicate them in $archive_cmds and $archive_expsym_cmds.
* NEWS: Updated.
Reported by Roberto Bagnare <bagnara@cs.unipr.it>

21 years ago* libltdl/loader-dyld.c: Fix compilation issues. Set Original author
Peter O'Gorman [Sat, 17 Apr 2004 16:07:42 +0000 (16:07 +0000)] 
* libltdl/loader-dyld.c: Fix compilation issues. Set Original author
to me.

21 years agoPeter O'Gorman <peter@pogma.com>
Todd Vierling [Sat, 17 Apr 2004 15:30:40 +0000 (15:30 +0000)] 
Peter O'Gorman  <peter@pogma.com>

* m4/libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use sysctl to get the
max cmd length on BSD* and darwin. Make sure that there is a safety
factor too.

21 years ago* m4/libtool.m4 (_LT_LANG_DEFAULT_CONFIG): Remove code to handle 'none'
Scott James Remnant [Thu, 15 Apr 2004 17:05:26 +0000 (17:05 +0000)] 
* m4/libtool.m4 (_LT_LANG_DEFAULT_CONFIG): Remove code to handle 'none'
and 'all' options, this now always assumes automatic mode as that
works so well.
(_LT_LANG_DEFAULT): Remove definition
* m4/ltoptions.m4: Remove 'no-lang', 'auto-lang' and 'all-lang' options.
* configure.ac: Invoke LT_LANG for each desired supported language.
* doc/libtool.texi: Remove documentation for the LT_INIT options,
rewrite LT_LANG documentation.

21 years ago* bootstrap: Delete acinclude.m4.
Alexandre Duret-Lutz [Wed, 14 Apr 2004 10:40:46 +0000 (10:40 +0000)] 
* bootstrap: Delete acinclude.m4.

21 years ago* libltdl/lt_dlloader.h: Forgot to cvs add this file earlier.
Gary V. Vaughan [Wed, 14 Apr 2004 10:27:11 +0000 (10:27 +0000)] 
* libltdl/lt_dlloader.h: Forgot to cvs add this file earlier.

21 years ago* libtoolize.in (configure_ac): Don't complain about the lack of
Gary V. Vaughan [Wed, 14 Apr 2004 10:24:25 +0000 (10:24 +0000)] 
* libtoolize.in (configure_ac): Don't complain about the lack of
aclocal.m4.
Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>