Commit Graph

762 Commits

Author SHA1 Message Date
Alexandre Oliva
e578da5e16 * libltdl/configure.in: add a DESCRIPTION argument to AC_DEFINEs
where appropriate, so as to get rid of acconfig.h
* libltdl/acconfig.h: removed
1999-02-13 19:55:58 +00:00
Thomas Tanner
6d34bd85f0 * *demo/Makefile.am: use $(MATHLIB)
* *demo/configure.in: use AC_CHECK_LIBM
* doc/libtool.texi: renamed file_magic_command to file_magic_cmd,
  renamed archive_sym_cmds to archive_expsym_cmds
* ltconfig.in: ditto
* ltmain.in: ditto
* libltdl/ltdl.c: use lt_dlmalloc/free
* libltdl/ltdl.h: define lt_dlmalloc/free
* libtool.m4: added AC_CHECK_LIBM macro
* ltconfig.in: renamed archive_sym_cmds to archive_expsym_cmds,
  added always_export_symbols, export_symbols_cmd, exclude_expsyms,
  include_expsyms, removed archive_cmds for cygwin/mingw and AIX,
  on Solaris store the exported symbols list in objdir
* ltmain.in: allow -export-symbols for modules, use thread_safe flag,
  add include_expsyms to the exported symbols
1999-02-13 15:43:04 +00:00
Gary V. Vaughan
ec379bc0dc * libltdl/ltdl.h (_LTDLL_EXTERN): libltdl is no longer linked as a
shared library, so the _declspec's were preventing the linker from
resolving symbols on win32.  They have been removed now.
1999-02-12 17:35:39 +00:00
Alexandre Oliva
9d3dd65937 * ltmain.in: don't try to read objdir/libname.la before it is
created!
1999-02-12 16:24:15 +00:00
Alexandre Oliva
fcf1aa777f * ltmain.in: create libname.lai at link time, not at install time,
Reported by Akim Demaille <demaille@inf.enst.fr>
1999-02-12 13:13:54 +00:00
Alexandre Oliva
b37f61a8d4 * libltdl/ltdl.c (tryall_dlopen): strcmp filenames was reversed 1999-02-12 12:59:32 +00:00
Thomas Tanner
c8b71d5f7f added automake stamp files 1999-02-12 12:56:06 +00:00
Thomas Tanner
2754b5e474 updated the ILD patch 1999-02-11 23:53:07 +00:00
Thomas Tanner
b35a0be8c3 added acconfig.h 1999-02-11 23:50:17 +00:00
Thomas Tanner
17915a088c * autogen: libltdl needs autoheader
* demo/Makefile.am: renamed hell.debug to hell.static
  (we're demonstrating static linking, not debugging)
* tests/demo*: ditto
* doc/libtool.texi (libltdl): documented new lt_dlopen(NULL)
  feature
* libltdl/acconfig.h: required for config.h
* libltdl/configure.in: use config.h
* libltdl/ltdl.c: use config.h, support lt_dlopen(NULL)
  (returns a handle for the program itself)
* ltconfig.in: minor reformatting
* ltmain.in: in lt_preloaded_symbols always define
  the program's symbols first, for -export-dynamic list all
  program symbols together, -export-symbols was broken for
  programs, minor reformatting
* mdemo/Makefile.am: renamed mdemo.debug to mdemo.static
* tests/mdemo*: ditto, mdemo.test was completely broken
1999-02-11 23:48:25 +00:00
Alexandre Oliva
ebd5366e02 * ltconfig.in (irix5*, irix6*, osf3*, osf4*): do not use
-set_version in archive_cmds if verstring is empty
(irix6*, shlibpath_var, sys_lib_search_path-spec,
deplibs_check_method): set appropriate values depending on
selected ABI, -32, -n32 or -64, as set in LD by libtool.m4
(uts4*): remove dot between .so and versuffix
1999-02-10 16:27:52 +00:00
Alexandre Oliva
bc11e86b35 * ltconfig.in (irix5*, irix6*, deplibs_check_method): use
file_magic for inter-library dependency tracking
1999-02-08 22:01:31 +00:00
Alexandre Oliva
b103f3d203 * ltconfig.in (irix5*, hardcode_libdir_separator): set it to a
colon, because on IRIX 5 only the last -rpath switch prevails, and
it can be a list of colon-separated directories.  This change will
affect irix6 too, but that's not a problem.
1999-02-08 21:33:17 +00:00
Alexandre Oliva
5928e7de8f *** empty log message *** 1999-02-08 10:53:45 +00:00
Alexandre Oliva
2e55a128fd * ltconfig.in (irix5*, library_names_spec): add soname_spec,
otherwise we can't dlopen
1999-02-08 09:33:38 +00:00
Thomas Tanner
36f9c4b71d * ltconfig.in: according to Marcus Sundberg <mackan@stacken.kth.se>
HP/UX, IRIX, OpenBSD, Digital Unix and SunOS support
  need_version=no and need_lib_prefix=no,
  fixed a bug in Solaris' archive_sym_cmds
1999-02-08 00:10:28 +00:00
Alexandre Oliva
54ee3fb2b1 * libtool.m4 (ac_cv_sys_global_symbol_pipe): accept TAB in
addition to space as separator, and allow more than one space
between the symbol code and the symbol name; HP/UX's nm, for
example, uses two spaces
* ltconfig.in (global_symbol_pipe): ditto
(bsdi4, deplibs_check_method): variable name was misspelled
* libltdl/configure.in (libltdl_cv_preloaded_symbols): rewrite
test, so as not to depend on the way global_symbol_pipe is
initialized; the current test would get false positives, as
global_symbol_pipe was initialized `x=""', not `x='
1999-02-04 15:09:14 +00:00
Alexandre Oliva
425940e0ab * libltdl/ltdl.c (find_module): initialize filename if dir is NULL
Reported by Godmar Back <gback@cs.utah.edu>

1999-02-04  Godmar Back  <gback@cs.utah.edu>

* libltdl/ltdl.c (lt_dlopenext): missing space for terminator when
allocating memory for shlib_ext
1999-02-04 12:39:24 +00:00
Alexandre Oliva
3fe7947205 * ltconfig.in: new config.guess returns *-*-cygwin now instead of
*-*-cygwin32.  sed -e 's%(cygwin|mingw)32%1%g' ltconfig.in
* ltmain.in:   sed -e 's%(cygwin|mingw)32%1%g' ltmain.in

* ltconfig.in (hardcode_libdir_flag_spec, allow_undefined_flag,
archive_cmds, archive_sym_cmds, old_archive_from_new_cmds):
removed duplication of config by assuming that `test $with_gcc =
yes' implies gnu ld, otherwise MSVC++ (which I haven't tested
since I inheritted the code from Ian Lance Taylor btw!) is implied.
1999-02-03 11:34:52 +00:00
Alexandre Oliva
b579b04417 * ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was
longer than 3 characters
1999-02-03 07:55:40 +00:00
Gary V. Vaughan
176e4be3c5 * ltmain.in: Reverted this change of Alexandre's from the
1999-01-25; "don't try to use .o instead of .lo just because
there's no PIC flag.  It loses if --disable-static, and there's
not much point if we're referring to the same file anyway...",
because not all linkers will accept .lo object names.
* ltmain.in: In the case where --disable-static is specified (as
noted in Alexandre's log entry), we just link some .o files to
prevent the original error.
Reported by Andrey Slepuhin <pooh@msu.ru>
1999-01-28 13:33:33 +00:00
Alexandre Oliva
baeca5233a * libtoolize.in: search for A[MC]_PROG_LIBTOOL, not
AM_PROG_LIBTOOL
Reported by Jeff Garzik <jgarzik@pobox.com>
1999-01-27 19:38:13 +00:00
Alexandre Oliva
2c993177db add *** to warning messages 1999-01-27 14:50:02 +00:00
Gary V. Vaughan
831dbd149e * THANKS: Now that we have a policy, applied it to the existing
list.  This in no way demeans the work of those people removed
from the THANKS file, who are still credited in the ChangeLogs and
without who's work, libtool would not work so well on many
platforms, but serves to highlight the outstanding and continued
contribution the remaining people have made.  And I quote, "We
reserve THANKS for people who have made major contributions, and
leave the credit to the others for the ChangeLog only."
1999-01-27 13:41:08 +00:00
Gary V. Vaughan
a503e958aa * THANKS: added Sam Vilain. 1999-01-27 11:51:08 +00:00
Gary V. Vaughan
9cc1cd7f09 * ltconfig.in ($echo): When using printf to replace echo the shell
expands %sn to %sn.  Changed to use "%sn" (with quotes).
Reported by Sam Vilain <sam.vilain@nz.unisys.com>
1999-01-27 11:14:35 +00:00
Alexandre Oliva
0e57eec185 * libltdl/ltdl.c (find_file): fix endless loop condition
(find_module): filename allocation was off by 1
1999-01-27 07:41:15 +00:00
Alexandre Oliva
dc07a72c9a * libltdl/Makefile.am (distclean-local): renamed from
distclean-hook, that didn't work
1999-01-27 07:22:04 +00:00
Alexandre Oliva
09616d6977 * libltdl/ltdl.c (lt_dlopen, non-.la): find_file now returns 0 on
failure
1999-01-27 06:55:40 +00:00
Alexandre Oliva
9b2ff91e8e * Makefile.am (ltconfig, ltmain.sh): some broken makes don't like
macros in targets; replace $(srcdir) with @srcdir@
* configure.in (ACINCLUDE_M4_LIST): same problem; expand $srcdir
1999-01-27 06:23:47 +00:00
Alexandre Oliva
31767b8ed9 run cvs update with -q 1999-01-27 06:18:38 +00:00
Alexandre Oliva
e54b1b6916 * libltdl/Makefile.am (@TOINST@/libltdl.la): if installation is
enabled, create to-be-installed libltdl.la within @TOINST@
directory
(noinst_LTLIBRARIES): even if installation is enabled, build
convenience libltdl.la, otherwise builds of random packages may
fail if the user happens to enable installation
(distclean-hook): wipe out $(TOINST)
* libltdl/configure.in: set TOINST and LIBLIBS as appropriate;
don't set NOINSTLIBS any more
* mdemo/Makefile.am: use libltdl.la
1999-01-27 06:15:21 +00:00
Alexandre Oliva
bf0865ed59 * libltdl/ltdl.c (find_file): oops, filenamesize was miscomputed 1999-01-27 06:05:44 +00:00
Alexandre Oliva
c2db1b3525 * libltdl/ltdl.c (find_file): allocate filename dynamically 1999-01-27 05:42:21 +00:00
Alexandre Oliva
ad4654e94a * libltdl/configure.in (AC_PROG_LIBTOOL): automake does not
recognize it and fail, better keep using AM_PROG_LIBTOOL until the
next release of automake
* demo/configure.in, cdemo/configure.in: ditto
* depdemo/configure.in, mdemo/configure.in: ditto
1999-01-27 05:36:49 +00:00
Alexandre Oliva
77eba97d29 * libltdl/ltdl.c: make all global strings char[], not char*; check
that all calls to malloc() are properly cast
(strdup, strchr, strrchr, trim, free_vars): declare as inline
(find_module): allocate filename dynamically; support null dir
(free_vars): free dir and name only if non-null
(lt_dlopen): keep dir as NULL if not given; fix expression that
calculated the size of name; only free and name if non-null
(lt_dlopenext): allocate tmp dynamically
1999-01-27 04:31:23 +00:00
Alexandre Oliva
7d71a524e0 * configure.in (pkgdatadir): expand ${PACKAGE} at configure-time,
just like automake does
1999-01-27 03:07:15 +00:00
Alexandre Oliva
ec63fb9c6b * configure.in (pkgdatadir): define pkgdatadir explicitly, and
* Makefile.am (aclocaldir): do not set it explicitly, automake
does already
1999-01-27 03:04:34 +00:00
Alexandre Oliva
818e264bc7 * configure.in (TIMESTAMP): use mkstamp here too 1999-01-27 02:40:39 +00:00
Thomas Tanner
a5f6b87d4a * cdemo/configure.in: renamed AM_PROG_LIBTOOL to AC_PROG_LIBTOOL
* demo/configure.in: likewise
* depdemo/configure.in: likewise
* libltdl/configure.in: likewise
* mdemo/configure.in: likewise
* libltdl/ltdl.c: in find_module() check whether libdir is defined,
  tryall_dlopen(): move deallocation of an already opened handle
  to lt_dlopen(), allocate the directory in lt_dlopen() dynamically,
  minor cleanups, fixed memory leak (name)
* libtool.m4: renamed all AM_ macros to AC_ and added aliases for
  compatibilty, updated AC_SYS_NM_PARSE (no undefined symbols,
  don't count the symbols)
* ltconfig.in: added thread_safe_flag_spec (not used yet),
  added generic variable for linker options "linkopts" in
  all archive_cmds
* ltmain.in: added -thread-safe flag (unused)
1999-01-27 00:49:06 +00:00
Alexandre Oliva
880755c68b * ltconfig.in (LTCONFIG_VERSION): damn!, adding TIMESTAMP doesn't
ltmain.sh to be updated every time ChangeLog changes, better
revert it
1999-01-26 20:59:01 +00:00
Alexandre Oliva
f5efaa7513 typo in latest patch 1999-01-26 20:55:39 +00:00
Alexandre Oliva
d7b2f64304 * ltconfig.in (LTCONFIG_VERSION): add TIMESTAMP, remove
explicit quotes and add it to the list of variables to quote
1999-01-26 20:50:58 +00:00
Alexandre Oliva
0573e2ca3b * ltmain.in: reworded `dropped inter-library dependencies'
message, and added a warning about inter-library dependencies even
for non-module builds
1999-01-26 19:21:29 +00:00
Gary V. Vaughan
0b8d821a54 * Makefile.am (install-data-hook): Don't show the if expression
that tests for gzip with a conditional error message; just do it
quietly and show the error if it fails, or the next action if it
succeeds.
1999-01-26 15:22:52 +00:00
Gary V. Vaughan
c3601c1e2c * commit: don't mix up output from &2 and &1 when checking
for conflicts
1999-01-26 15:02:08 +00:00
Gary V. Vaughan
062f499ae0 * configure.in: It seems Alexandre accidentally removed the
AC_SUBST(pkgdatadir) line recently which breaks libtoolize.
Reverted that small change.
1999-01-26 14:45:24 +00:00
Alexandre Oliva
60d43b8236 * libltdl/ltdl.c (find_module): test old_name and dlname for NULL,
not len==0
1999-01-25 20:58:14 +00:00
Alexandre Oliva
3a2cf81834 * libltdl/configure.in (libltdl_cv_objdir): yes, appending the "/"
in configure.in was much simpler
* libltdl/ltdl.c (objdir): ditto
1999-01-25 15:59:56 +00:00
Alexandre Oliva
f1d990faa4 * libltdl/ltdl.c (objdir): string collation isn't portable; strcat
"/" explicitly.  Or should this be moved to configure.in?
1999-01-25 15:48:45 +00:00