Commit Graph

2121 Commits

Author SHA1 Message Date
Ralf Wildenhues
f24610a07d * libltdl/m4/libtool.m4 (_LT_COMPILER_C_O): Send chmod warning to log. 2005-08-24 14:48:30 +00:00
Ralf Wildenhues
7e6797e65d * tests/defs.m4sh (m4dir, auxdir, scripts): Fix for source tree
reorganization.
* tests/sh.test: Adjust.  Also barf on sed diagnostics so this
test will not fail again silently.
2005-08-24 13:39:51 +00:00
Ralf Wildenhues
cbd5046d65 * libltdl/m4/ltdl.m4 (LT_SYS_SYMBOL_USCORE): Use _LT_EOF, not
EOF.
2005-08-24 11:13:18 +00:00
Ralf Wildenhues
9918d1b09c * tests/fcdemo/Makefile.am (suffix rules): Explicitly add
$(FCFLAGS_f90) so the tests can pass on AIX.
2005-08-24 11:11:39 +00:00
Peter O'Gorman
9dbbe605b7 * libltdl/config/ltmain.m4sh (inherited_linker_flags): Work when
output is an application too.
Reported by Christopher Egger <Christoph_Egger@gmx.de>
2005-08-24 04:51:41 +00:00
Stepan Kasal
d452d7e4cc * libltdl/m4/ltdl.m4 (LTDL_INIT): Use AH_HEADER if defined.
Compute CONFIG_H only before creating config.status.
Reported by Peter Ekberg <peda@axentia.se>.
2005-08-23 16:04:27 +00:00
Ralf Wildenhues
c40e7c592e * Makefile.maint (web-manual): Fix $(LN_S) to use absolute path.
Fix creating the manual for VPATH build.
2005-08-23 13:56:47 +00:00
Ralf Wildenhues
db22b40f8a * bootstrap: Fix missing replace config -> $auxdir. ltmain.m4sh
is prerequisite to ltmain.sh.  Improve warning message.
2005-08-23 11:14:55 +00:00
Gary V. Vaughan
757d7dc478 Reorganise the libtool tree to create a bootstrapped libltdl for
installation to the libtoolize master tree, so that libltdl is
useable even in the extreme case of when automake and autoconf are
not installed on the developers machine.  Part of this change
requires some duplication of rules between Makefile.am (which
builds libltdl for this distribution) and libltdl/Makefile.am
(which is used by projects that libltoolize --ltdl --copy), so
libtool now really does use a single toplevel Makefile.am, and we
generate libltdl/Makefile.am from that:

* m4, config: Moved from here...
* libltdl/m4, libltdl/config: ...to here, to reduce the amount of
kludging needed in bootstrap for autoreconf to run.
* tests/cdemo/Makefile.am, tests/demo/Makefile.am,
tests/depdemo/Makefile.am, tests/f77demo/Makefile.am,
tests/fcdemo/Makefile.am, tests/mdemo/Makefile.am,
tests/mdemo2/Makefile.am, tests/pdemo/Makefile.am,
tests/tagdemo/Makefile.am (ACLOCAL_AMFLAGS): Adjust to
compensate.
* tests/cdemo/configure.ac, tests/demo/configure.ac,
tests/depdemo/configure.ac, tests/f77demo/configure.ac,
tests/fcdemo/configure.ac, tests/mdemo/configure.ac,
tests/mdemo2/configure.ac, tests/pdemo/configure.ac,
tests/tagdemo/configure.ac (AC_CONFIG_AUX_DIR): Ditto.
* libltdl/m4/ltdl.m4: Increment serial number.
(LTDL_INIT): Accept an optional directory argument to prefix each
of the LD_DLLOADERS locations.  Default to empty for backwards
compatibility.
* Makefile.maint: Adjust to compensate.
* configure.ac (AC_CONFIG_AUX_DIR, AC_CONFIG_MACRO_DIR): Adjust.
(AC_CONFIG_LIBOBJ_DIR): Set here so that we can build LTLIBOBJS
from in a subdirectory from the amalgamated Makefile.am.
(AM_PROG_CC_C_O, AM_INIT_AUTOMAKE): Use subdir-objects.
(AC_CONFIG_FILES): Remove libltdl/Makefile.am.
* libltdl/Makefile.am: Removed from repository, and merged into
Makefile.am as we now generate it...
* Makefile.am (libltdl/Makefile.am): ...from here, by extracting
the merged rules, and tweaking paths to accomodate the difference
in directory from Makefile.am to libltdl/Makefile.am.
(nobase_dist_pkgdata_DATA): Automake generated installation rules
change timestamps of installed files, so renamed this...
(configauxfiles): ...to this...
(libtoolize): ...substitute it...
(install-data-local): ...install manually, preserving
timestamps...
(install-data-hook): ...and set execute bit as appropriate.
(uninstall-hook): Not forgetting to remove them at uninstall.
(libltdl/Makefile.in): New rule.  Called from...
* bootstrap: ...here to avoid relying on config.status at
bootstrap time.
(auxdir, m4dir): Extract from configure.ac for ease of future
maintenance.  Adjust all references.
(reconfdirs): Call autoreconf for libltdl too -- even
though we don't use it for the build, libltdl/configure and
friends are installed with `libtoolize --ltdl --copy'.
* libtoolize.m4sh: Add files from the installed config master tree
to libtoolize --ltdl project subdirectory.
Diagnose duplicated files when --ltdl is used in an autotooled
project.
It's perfectly fine to run `libtoolize --ltdl --copy' in a tree
that has no configure.ac or configure.in; we want libltdl to be
useful even to projects that don't use autotools themselves.
(libtoolize_flags): Removed.  Changed all callers.
(func_massage_pkgconfig_files): New function.
* tests/standalone.at: New tests for using libltdl without
supporting configury in the parent project.
* tests/testsuite.at: Run them!
* NEWS: Updated.
2005-08-23 01:49:37 +00:00
Peter Ekberg
a679c71189 * m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS) [dumpbin]: Add
forgotten end bracket.
2005-08-22 11:25:37 +00:00
Peter Ekberg
2d16b5d703 * doc/libtool.texi: Shorten the lines describing the
output from MS dumpbin, and align the columns.
2005-08-22 11:12:26 +00:00
Peter Ekberg
66b4886f72 * m4/libtool.m4: Bump serial number.
(LT_PATH_NM): If nm is not found on the path, look for
dumpbin. Then check if $NM responds as dumpbin would
and if not, assume the name lister is BSD nm compatible.
(_LT_CMD_GLOBAL_SYMBOLS): If the name lister uses the
dumpbin interface, adjust the test to find a working
global_symbol_pipe.
* doc/libtool.texi: Document $NM to possibly be MS
dumpbin compatible, and also document the format of the
relevant output from MS dumpbin.
2005-08-22 11:07:00 +00:00
Gary V. Vaughan
f91f8c703e * libltdl/Makefile.am: revert mistaken commit. 2005-08-21 18:53:15 +00:00
Gary V. Vaughan
499773445e * tests/template.at [darwin]: Some of these tests result in
unresolved symbols on darwin, so don't run those test on that
host!
2005-08-21 18:47:08 +00:00
Ralf Wildenhues
2222a9d9aa * m4/libtool.m4 (LT_OUTPUT): New macro to generate
libtool before config.status.
(_LT_CONFIG_COMMANDS): If LT_OUTPUT has been invoked, then
generate code in config.status to call config.lt instead of
generating libtool directly.
* doc/libtool.texi (LT_INIT): Document LT_OUTPUT.
* tests/early-libtool.at: New test.
* Makefile.am (TESTSUITE_AT): Updated.
* tests/testsuite.at: Updated.  Define defaults for $ACLOCAL,
$AUTOCONF.
2005-08-18 17:07:17 +00:00
Ralf Wildenhues
74f2513608 * TODO: Actually updated now. 2005-08-18 09:51:57 +00:00
Ralf Wildenhues
be3965e02b * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ freebsd ]: Do not
assume `aout' for modern FreeBSD by absence of deprecated
`objformat'.
2005-08-18 06:55:40 +00:00
Ralf Wildenhues
616808bb5d * m4/libtool.m4 [sun, CC] (_LT_LANG_CXX_CONFIG): Move postdeps
override ..
(_LT_SYS_HIDDEN_LIBDEPS): ..here.
* TODO: Updated.
2005-08-18 06:16:46 +00:00
Stepan Kasal
7a93c73ba1 * config/general.m4sh (SP2NL, NL2SP): Simplify. 2005-08-18 06:11:03 +00:00
Gary V. Vaughan
a2132ef277 * m4/ltdl.m4 (LTDL_INIT): Fix mismatched parens. 2005-08-17 19:24:23 +00:00
Ralf Wildenhues
d16f03d0fd * tests/inherited_flags.at: Store intermediate libtool output
for better debugging.
2005-08-13 07:26:52 +00:00
Ralf Wildenhues
1ef6cdef83 * tests/link-order.at: Add -no-undefined to LDFLAGS. 2005-08-13 06:57:39 +00:00
Ralf Wildenhues
7bd533a474 * tests/convenience.at, tests/template.at: Change suffix of C++
files to .cpp, for compatibility with MSVC.
Reported by Peter Ekberg <peda@axentia.se>.
2005-08-13 06:45:36 +00:00
Jeremie LE HEN
2a3e848d16 * doc/libtool.texi (Creating object files, Linking libraries):
Update description of library object (.lo) and libtoo library
(.la) files.
(all over): Replace MODE with --mode=MODE in examples.
2005-08-12 22:52:30 +00:00
Ralf Wildenhues
9998fa32cc * config/ltmain.m4sh (func_source): New function.
(func_mode_execute, func_mode_install, func_mode_link): Use it.
Do not append a dot to a file name to source, it breaks on
cygwin managed mounts and is not necessary anywhere.
Reported by Eric Blake <ebb9@byu.net>.
2005-08-12 21:06:13 +00:00
Ralf Wildenhues
71050527fa * config/ltmain.m4sh (func_execute_cmds): New function.
(func_mode_finish, func_mode_install, func_mode_link)
(func_mode_uninstall): Use it.
2005-08-12 20:34:19 +00:00
Ralf Wildenhues
87f03ead79 * tests/defs.m4sh (func_configure): Rename to ..
(func_configure_nofail): this, call from old.
* tests/fcdemo-conf.test, tests/fcdemo-shared.test,
tests/fcdemo-static.test: Use.  Do not fail gratuitously but
SKIP on compilers that look like they could be Fortran 77-only.
Reported by Patrick Welche <prlw1@newn.cam.ac.uk>.
2005-08-12 20:19:40 +00:00
Ralf Wildenhues
bf7e3e1bea * config/ltmain.m4sh (mode): Do not initialize, for nicer error
messages.
2005-08-12 20:07:21 +00:00
Peter Ekberg
597e574635 * m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Set ac_ext to cpp, not cc. 2005-08-10 06:25:10 +00:00
Ralf Wildenhues
3a859cfaed * config/ltmain.m4sh (inherited_linker_flags): Backed out broken
patch.
2005-08-08 12:03:52 +00:00
Peter O'Gorman
dd94ca1682 * config/ltmain.m4sh (inherited_linker_flags): Work when output
is an application too.
Reported by Christopher Egger <Christoph_Egger@gmx.de>
2005-08-08 10:44:45 +00:00
Ralf Wildenhues
a1b595f6ab * m4/libtool.m4 (_LT_PROG_FC, _LT_LANG_FC_CONFIG): New macros
for modern Fortran.
(LT_LANG, _LT_LANG_DEFAULT_CONFIG, _LT_SYS_DYNAMIC_LINKER,
_LT_SYS_HIDDEN_LIBDEPS): Adjusted.
* tests/fcdemo-conf.test, tests/fcdemo-exec.test,
tests/fcdemo-make.test, tests/fcdemo-shared.test,
tests/fcdemo-static.test, tests/fcdemo/Makefile.am, tests/fcdemo/README,
tests/fcdemo/configure.ac, tests/fcdemo/cprogram.c, tests/fcdemo/foo.h,
tests/fcdemo/fooc.c, tests/fcdemo/foof.f90, tests/fcdemo/foof2.f90,
tests/fcdemo/foof3.f90, tests/fcdemo/fprogram.f90: New tests for Fortran.
* tests/convenience.at: Extended.
* Makefile.am, configure.ac: Adjusted.
* NEWS: Updated.
2005-08-08 09:23:57 +00:00
Ralf Wildenhues
6d1b0beae3 * AUTHORS, HACKING: Updated. 2005-08-08 06:47:42 +00:00
Albert Chin-A-Young
da0c4dbcbb * config/ltmain.m4sh (func_mode_link): Ignore errors from expr
when determining if piece-wise linking should be done.
2005-08-05 07:50:54 +00:00
Ralf Wildenhues
60444dcf55 * config/ltmain.m4sh (func_mode_link) <cwrappersource>: Add
missing bit from Christoph's patch.
2005-08-04 13:50:18 +00:00
Ralf Wildenhues
7b5934214c * m4/libtool.m4 (_LT_LINKER_HARDCODE_LIBPATH, _LT_LINKER_SHLIBS,
_LT_LANG_CXX_CONFIG): Comment typos.
2005-08-04 12:24:45 +00:00
Christoph Egger
6c7b649700 * config/ltmain.m4sh (func_mode_link) <cwrappersource>: Change
basename() to base_name() and have it return a pointer to const,
fix compilation warnings.
2005-08-04 12:12:46 +00:00
Peter Ekberg
6ca1b539fb * m4/libtool.m4 (_LT_PROG_F77): Set it up so that saying F77=no
to configure disables the fortran tests in the testsuite.
2005-07-30 15:51:00 +00:00
Richard Moseley
1573981fac * m4/ltdl.m4 (LTDL_INIT): Handle in addition the new name for
AC_LIST_HEADERS which is _AC_LIST_TAGS.
2005-07-29 13:24:13 +00:00
Peter Ekberg
d3a95f3f9e * libltdl/Makefile.am: Make the LTDLOPEN define controllable
from the configure script.
* m4/ltdl.m4 (LTDL_INIT): Set the LTDLOPEN define according
to libname_spec.
2005-07-28 10:59:32 +00:00
Peter Ekberg
26b55149ee * tests/mdemo-dryrun.test: ls -l in MSYS sometimes shows year,
not time, for really fresh files. Add sleep 1 calls at
strategic places. Makes the test pass for MinGW.
2005-07-28 10:55:35 +00:00
Peter Ekberg
715a3e709d * m4/libtool.m4 (_LT_LINKER_OPTION): Fix copy-paste bug, it is
the linker that is tested.
2005-07-28 10:46:56 +00:00
Peter Ekberg
764c665e7d * tests/demo-noinst-link.test: $make is empty on MSYS, replace
with $MAKE. Makes the test pass for MinGW.
2005-07-28 10:42:45 +00:00
Peter Ekberg
bf04cdd3da * config/ltmain.m4sh (func_generate_dlsyms): Properly remove
the fake symbol line ": @PROGRAM@ " from the list of exported
symbols.
2005-07-28 10:23:18 +00:00
Peter Ekberg
e535901dc1 * libltdl/loaders/loadlibrary.c (vm_open): Set the error mode so
that no dialog is popped up in case the file given to
LoadLibrary is not a dll.
2005-07-28 10:15:57 +00:00
Peter Ekberg
cd3f349054 * config/ltmain.m4sh (func_mode_link) <lib>: Make sure
skipped_export is set to colon if _some_ cmd of
export_symbols_cmds is too long.
2005-07-28 10:07:17 +00:00
Peter Ekberg
32580388c3 * libltdl/ltdl.c: The linker is confused by having one
definition of lt_libltdlc_LTX_preloaded_symbols tagged with
__declspec(dllexport) in ltdl.c and one definition with an
initial value in libltdlcS.c. So, just say extern in ltdl.c.
Fixes the mdemo-exec.test for MinGW.
2005-07-28 10:01:03 +00:00
Peter Ekberg
6aaa55d28a * config/ltmain.m4sh (func_mode_link) <lib>: Zap duplicate
message "creating reloadable object files..."
2005-07-28 08:38:09 +00:00
Peter O'Gorman
c5c7fc0432 * m4/libtool.m4 (CXX, archive_cmds) [sun]: Add -lCstd, -lCrun
and -lc for c++ builds with Sun C++ and Centerline C++..
Reported by Albert Chin-A-Young <china@hewrittenword.com>
2005-07-24 12:20:43 +00:00
Ralf Wildenhues
c52d0fc021 * m4/libtool.m4 (_LT_CHECK_XSI_SHELL): Fix bogus merge.
Reported by Patrick Welche <prlw1@newn.cam.ac.uk>.
2005-07-11 12:11:25 +00:00