Commit Graph

713 Commits

Author SHA1 Message Date
Alexandre Oliva
0762ab0a48 * tests/sh.test: look for $Xsed' without $echo "X...'
* ltconfig.in, ltmain.in: fixed a few such occurrences
1999-03-13 22:20:33 +00:00
Alexandre Oliva
d80906a5d0 * ltmain.in (-static, -all-static): revert March 11's patch, I was
barking up the wrong tree
1999-03-13 21:18:33 +00:00
Thomas Tanner
5a20021ee6 updated depdemo 1999-03-13 17:41:49 +00:00
Thomas Tanner
61bb801686 * libltdl/ltdl.c: removed FILENAME_MAX since LTDL_FILENAME_MAX
is sufficient and doesn't break HP/UX
1999-03-12 20:47:44 +00:00
Alexandre Oliva
d3d44b7803 * ltconfig.in: (global_symbol_pipe) extract symbol tag from the
output of NM too
(global_symbol_to_cdecl): new variable; convert the output of
global_symbol_pipe to valid C declarations; on HP/UX, convert
text symbols to function declarations
* libtool.m4: similar modifications
* doc/libtool.texi: document new variable
* ltmain.in: use global_symbol_to_cdecl to generate lt_dlpreopened
symbols; avoid extracting symbol lists from dlpreopened files
twice; do not filter symbols from dlpreopened libraries
* TODO: fixed HP/UX dlpreopening problem
1999-03-11 22:55:48 +00:00
Alexandre Oliva
d3fefd9d6c * ltmain.in (-static, -all-static): set dlopen_self to
$dlopen_self_static regardless of link_static_flag or pic_flag
1999-03-11 22:46:07 +00:00
Alexandre Oliva
16d8b07615 * ltmain.in: FreeBSD bug that needs symbol table compiled with
-fPIC is fixed in release 3.1; use it only for 2.* and 3.0
1999-03-11 22:38:51 +00:00
Thomas Tanner
72db861fe7 * ltmain.in: when building a library it doesn't make
sense to remove a relinked program ("lt-" prefix)
1999-03-11 22:25:01 +00:00
Alexandre Oliva
c853ec3163 * mdemo/main.c (main, test_dl, test_dlself): propagate error
conditions better, to avoid false positives
1999-03-11 22:13:00 +00:00
Alexandre Oliva
c7c23418fd * */configure.in: AC_SUBST(LIBTOOL_DEPS)
* */Makefile.am $(OBJECTS): depend on libtool
(libtool): rebuild automatically
1999-03-11 21:28:36 +00:00
Alexandre Oliva
f126b86fc8 * ltconfig.in: set dlopen_* variables to unknown when appropriate
* ltmain.in: only emit warning about lack of AC_LIBTOOL_DLOPEN if
*all* dlopen_* variables are set to unknown
1999-03-11 16:11:05 +00:00
Thomas Tanner
6d988bc854 * ltmain.in: delete the old output files (incl. the relinked binary)
before linking.
1999-03-11 12:31:46 +00:00
Thomas Tanner
44a4f0b8f5 * ltconfig.in: replaced `configure' with $progname and all
line numbers with @LINENO@
1999-03-11 08:23:19 +00:00
Alexandre Oliva
50b30fa4d5 * libltdl/ltdl.c (strdup): cannot return str when it's NULL
because of const correctness
1999-03-11 03:14:54 +00:00
Alexandre Oliva
b96c596a21 * libltdl/ltdl.c (strdup): always use our own, because the
standard strdup won't use lt_dlmalloc
1999-03-11 02:50:13 +00:00
Alexandre Oliva
507c5bf602 * ltconfig.in (dlfcn.h): function definition may cause warnings;
define variable instead
1999-03-11 02:26:29 +00:00
Alexandre Oliva
ca3dd128dd An account at gnu.org is no longer needed for the common files,
they're available for anonymous CVS
1999-03-11 01:26:34 +00:00
Alexandre Oliva
5c59d096e1 * ltmain.in: properly create an export file for a program,
avoiding error messages about not finding it
1999-03-11 01:21:57 +00:00
Alexandre Oliva
3d7a703484 * TODO: need to document AC_LIBLTDL_*; static self dlopening
problem fixed
1999-03-11 01:17:01 +00:00
Alexandre Oliva
b933475f97 * libtool.m4 (AC_LIBTOOL_DLOPEN): just set lt_dlopen=yes
(AC_LIBTOOL_SETUP): if lt_dlopen=yes, add --enable-dlopen to
libtool_flags; drop --enable-dlopen-self
* ltconfig.in: perform all the dirty work of testing for dlopening
support, because we need platform-dependent equivalents for
-export-dynamic, for self dlopening, and -static, for static self
dlopening
(dlopen_self_static): new configuration variable that is set to
yes only if static programs can dlopen themselves
* ltmain.in (-static, -all-static): dlopen_self=dlopen_self_static
1999-03-11 01:13:56 +00:00
Alexandre Oliva
477712665e * libltdl/configure.in (libltdl_cv_need_uscore): do not assume
dlfcn.h and LTDL_LAZY exist; use LTDL_GLOBAL and LTDL_LAZY_OR_NOW.
This test is likely to fail if self-dlopening does not work,
especially because we do not link the program with
-export-dynamic.  Let's just hope that platforms whose symbol
names start with underscores will also accept underscores for
dlopen.  We should probably use libtool to compile and link this
test, so that we can use -export-dynamic.
1999-03-11 00:58:19 +00:00
Alexandre Oliva
b0dc971f4d * mdemo/Makefile.am (@LIBLTDL@): depend on ../libltdl/config.h 1999-03-11 00:44:13 +00:00
Alexandre Oliva
0cd022a962 * configure.in: fix AC_OUTPUT_COMMANDS for ltconfig and ltmain.sh
so that they work if srcdir is relative too
1999-03-11 00:31:22 +00:00
Alexandre Oliva
ec1c9b7646 * libtool.m4 (AC_LIBLTDL_INSTALLABLE, AC_LIBLTDL_CONVENIENCE):
avoid introducing multiple --enable options when re-running
config.status
* libltdl/configure.in: if enable_ltdl_* is not set, assume no
* configure.in: if enable_ltdl_install is not set, enable it
1999-03-10 21:23:37 +00:00
Alexandre Oliva
6862fbcb71 * libltdl/configure.in: only assume implicit installation if
libltdl was libtoolized.  If not, print a warning message
suggesting the use of --enable-ltdl-install or of one of the
AC_LIBLTDL_* macros.
1999-03-10 20:39:03 +00:00
Alexandre Oliva
baced0e582 * libtool.m4 (AC_LIBTOOL_SETUP): new macro, that does all the
configure-work that AC_PROG_LIBTOOL used to do; add
--cache-file=$cache_file to libtool_flags
(AC_PROG_LIBTOOL): call AC_LIBTOOL_SETUP, save the cache, run
ltconfig and reload the cache
* configure.in: run AC_LIBTOOL_SETUP, then set LIBTOOL_FLAGS to
libtool_flags
* ltconfig.in: support --cache-file switch.  If it is used, load
the cache in the beginning and save it just before terminating
1999-03-10 20:24:40 +00:00
Alexandre Oliva
3a297fa7b3 * tests/Makefile.am (TESTS): run demo-nofast before demo-shared 1999-03-10 18:28:49 +00:00
Alexandre Oliva
b07baf719c * configure.in: create ltconfig and ltmain.sh at the end of
config.status, if they do not exist.  This fixes the bootstrap
problem reported by Erez Zadok <ezk@cs.columbia.edu>
1999-03-10 18:12:02 +00:00
Thomas Tanner
5a5d3ec3c5 *** empty log message *** 1999-03-10 17:28:39 +00:00
Thomas Tanner
a840ce0b07 * NEWS: ordered by importance
* Makefile.am: set LIBTOOL_FLAGS when generating libtool
* configure.in: check for dlopen support and set LIBTOOL_FLAGS
  accordingly
1999-03-10 17:23:28 +00:00
Thomas Tanner
c7e268df7d * configure.in: fix spacing for --disable-ltdl-install,
always configure libltdl, add libltdl/acinclude.m4 to
  ACINCLUDE_M4_LIST, disable installation of libltdl if necessary
* libltdl/Makefile.am: set version info for libltdl.la
* libltdl/configure.in: don't check whether
  enable_ltdl_convenience/install was set so that libltdl
  can be used as independent package (libltdl.tar.gz) without
  the need to use --enable-ltdl*
* libltdl/ltdl.c: minor cleanups, allocate the line cache
  dynamically (lt_dlopen)
1999-03-10 16:16:03 +00:00
Alexandre Oliva
6e60d47735 * libltdl/ltdl.c (lt_dlopen): some preprocessors choke if the `#'
of `#define' is not in column 1; let's go back to fortran! :-)
Add #undefs too, to avoid potential warnings or errors.
1999-03-10 14:33:22 +00:00
Alexandre Oliva
ed604d082d * libtool.m4 (AC_LIBLTDL_INSTALLABLE, AC_LIBLTDL_CONVENIENCE):
renamed convenience libltdl, dropped toinst hack for installable
* libltdl/Makefile.am: ditto
* libltdl/configure.in: ditto; abort if none of the macros is used
1999-03-09 23:09:01 +00:00
Alexandre Oliva
7618652fd8 * ltmain.in: $output_objdir/$objdir/ -> $output_objdir/lt- 1999-03-09 23:04:14 +00:00
Thomas Tanner
adf5912c04 * libltdl/ltdl.c (lt_dlopen): don't hardcode the length of the
constant strings
1999-03-09 23:00:24 +00:00
Alexandre Oliva
305bdedf2a * Makefile.am (install-data-hook): install libltdl as a directory,
not as a tar-file, so that we do not modify the build tree at make
install time
* libtoolize.in (ltdl, ltdl_tar): update
1999-03-09 22:57:26 +00:00
Alexandre Oliva
96e28112be * configure.in, Makefile.am, NEWS: install libltdl by default 1999-03-09 22:13:49 +00:00
Alexandre Oliva
68799c0077 * libtool.m4 (AC_LIBLTDL_INSTALLABLE, AC_LIBLTDL_CONVENIENCE):
new macros
* NEWS: ditto
* libltdl/configure.in: if none of the new macros or configure
arguments are used, warn and build convenience library only
* libltdl/Makefile.am: conditionally build convenience libltdl.la
* mdemo/configure.in: use AC_LIBLTDL_CONVENIENCE
* mdemo/Makefile.am: refer to @LIBLTDL@
1999-03-09 22:02:09 +00:00
Gary V. Vaughan
2eeb030d23 * NEWS: updated. 1999-03-09 12:47:06 +00:00
Alexandre Oliva
d917d79899 * ltmain.in: extract symbols from program objects to nlist first,
then translate them to the export_symbols format.  Now it works,
but it appears to be needlessly extracting the symbol list from
dlpreopened libraries twice
1999-03-08 21:55:25 +00:00
Alexandre Oliva
2f024c7555 * ltmain.in: temporarily disable dlopen_self when linking with
-static or -all-static, until we figure out how to test whether it
works at configure time
* TODO: remember to fix this later
1999-03-08 21:21:55 +00:00
Alexandre Oliva
b4806a4300 * tests/build-relink.test: when hell is expected to fail, run it
within a subshell and redirect stderr to stdout, so that dynamic
linker errors are only printed in verbose mode
1999-03-08 21:08:09 +00:00
Alexandre Oliva
8edf7d315b * ltmain.in (hardcode_libdir_separator, compile_rpath,
finalize_rpath): only substitute hardcode_libdir_flag_spec if
hardcode_libdirs is non-empty
1999-03-08 20:55:57 +00:00
Alexandre Oliva
8bc4fc86d9 * libtool.m4 (AC_LIBTOOL_DLOPEN): do not depend on the existence
of dlfcn.h nor on the definition of RTLD_LAZY
1999-03-08 20:15:48 +00:00
Alexandre Oliva
f3b997d2ad * tests/build-relink.test: hellT was renamed to lt-hell 1999-03-08 19:40:54 +00:00
Alexandre Oliva
c61f3ded62 * libltdl/Makefile.am (@TOINST@/libltdl.la): do not hide the
command that creates the TOINST directory; remove `-o $@' from the
LINK command, $(LINK) already contains it.
1999-03-08 18:20:26 +00:00
Thomas Tanner
655f4a206c * doc/libtool.texi (tests): documented demo-nofast.test and
renamed cdemo* to demo*
1999-03-08 18:03:19 +00:00
Alexandre Oliva
a78b093478 * libltdl/Makefile.am, libltdl/configure.in, mdemo/Makefile.am:
libltdl must not be renamed; if there's a problem with the install
option, let's fix it, not just work around it by breaking code of
users of the convenience library
1999-03-08 17:40:42 +00:00
Alexandre Oliva
bcea172e1a forgot to add demo-nofast.test 1999-03-08 17:14:42 +00:00
Alexandre Oliva
71a7972d32 * tests/build-relink.test: link broken libhello.la with at least
one libtool object
1999-03-08 17:06:43 +00:00