Commit Graph

297 Commits

Author SHA1 Message Date
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
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
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
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
3bbc1ae280 forgot cvs add 2005-11-02 17:45:59 +00:00
Gary V. Vaughan
0c25422a6c * tests/nonrecursive.at: New tests for libltdl as a subdirectory,
configured and compiled from the toplevel project.
* tests/testsuite.at: Use it.
(LT_AT_AUTOHEADER): New macro.
* Makefile.am (TESTSUITE_AT): Depend on nonrecursive.at.
2005-11-02 17:43:51 +00:00
Gary V. Vaughan
c215fede13 * libtoolize.m4sh: Use serial tags to locate the correct serial
numbers when deciding whether to update.
(func_serial): Allow for macro_regex argument to be originating
file name.
(func_serial_update): Use NL2SP to flatten list of extracted
m4_include files.
* tests/libtoolize.at: More tests for old-style verbatim copying
of macros into aclocal.m4.
2005-11-01 14:28:20 +00:00
Ralf Wildenhues
60f1724476 * tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments.
Skip if the running `autoconf' version is older than the one
used to bootstrap Libtool.
2005-10-27 13:17:05 +00:00
Gary V. Vaughan
41ffa5624b * libtoolize.m4sh: Always copy pkgconfig_files for --ltdl, incase
ltdl needs additional things not found by automake when looking at
the parent project configury.
* tests/libtoolize.at: Adjust.
2005-10-26 09:20:45 +00:00
Gary V. Vaughan
13cbbc4fe9 * tests/subproject.at: Move 'touch config.h.in' invocation. 2005-10-14 13:23:01 +00:00
Gary V. Vaughan
89eddeb5cf * tests/subproject.at: Removed 'touch config.h.in' workaround for
bug now fixed.
2005-10-14 12:31:03 +00:00
Gary V. Vaughan
6a6b5a0884 * tests/subproject.at (_LTDL_SETUP): Use pushdef/popdef to
simulate file-local scope.  Empty source file compilation is not
portable, so add minimal code to generated foo.c file.
2005-10-14 10:43:45 +00:00
Ralf Wildenhues
bb32a2aa50 * tests/testsuite.at (LT_AT_AUTOMAKE): New macro.
* tests/subproject.at: Use it.  Do not call `autoreconf' in
tests, since it will try to reconfigure `sub/ltdl', which
breaks `make check' during `distcheck' because of a readonly
source tree.
2005-10-11 16:51:50 +00:00
Ralf Wildenhues
8b1c9b9190 * tests/stresstest.at: Use `allow_undefined_flag' instead of
host_os setting.
2005-10-11 06:23:29 +00:00
Ralf Wildenhues
e6f894bd1c * tests/stresstest.at [ aix3, beos, os2 ]: Always use
`-no-undefined'.
2005-10-10 16:25:09 +00:00
Ralf Wildenhues
cefa1b074c * configure.ac (abs_top_builddir, abs_top_srcdir): always
substitute.
* Makefile.am (BUILDCHECK_ENVIRONMENT)
(INSTALLCHECK_ENVIRONMENT): New macros.  Set _lt_pkgdatadir,
LIBTOOL, LIBTOOLIZE accordingly, by using above, and
program_transform_name.
* tests/testsuite.at (TESTS_PREPARE): Do not set them anymore.
Set $unset.
(LT_AT_MAKE): Use to unset LIBTOOL and LIBTOOLIZE.
2005-10-07 08:52:10 +00:00
Gary V. Vaughan
37bff2141f * tests/subproject.at: Commit the right file this time. 2005-10-05 16:45:09 +00:00
Gary V. Vaughan
1b04e31422 * tests/subproject.at: Forgot to cvs add. 2005-10-05 15:04:50 +00:00
Gary V. Vaughan
c1b31f316c * tests/subproject.at: New tests for libltdl as a subproject with
its own configuration.
* tests/testsuite.at: Use it.
* Makefile.am (TESTSUITE_AT): Depend on it.
2005-10-05 15:02:54 +00:00
Ralf Wildenhues
9086d5c9fa * Makefile.am (BUILDCHECK_ENVIRONMENT)
(INSTALLCHECK_ENVIRONMENT): New macros.
(check-local, installcheck-local): Use them.
* tests/testsuite.at (PREPARE_TESTS): Extract host_alias, ECHO.
Set configure_options appropriately.
(LT_AT_CONFIGURE, LT_AT_AUTORECONF, LT_AT_MAKE): New macros.
(LT_AT_BOOTSTRAP): Use them.
* tests/am-subdir.at, tests/early-libtool.at,
tests/old-m4-iface.at, tests/standalone.at: Likewise.
* tests/link-order.test: Do not extract ECHO any more.
2005-10-05 08:58:19 +00:00
Ralf Wildenhues
96fe8ab8da * tests/old-m4-iface.at (Makefile.in): Do not reconfigure
libltdl directory.
2005-10-02 08:54:03 +00:00
Ralf Wildenhues
4ca867a96c * tests/deplibs-ident.at: New file with XFAIL test to expose
wrong multiple listing of a deplib on the command line.
* Makefile.am, tests/testsuite.at: Updated.
Reported by Brian Barrett <brbarret@open-mpi.org>.
2005-09-30 16:00:23 +00:00
Ralf Wildenhues
28a654e1c2 * tests/old-m4-iface.at: Define top_srcdir, work around current
ltdl.m4 bug.
2005-09-30 10:09:58 +00:00
Ralf Wildenhues
35f5001e2c * tests/old-m4-iface.at: Forgot to 'cvs add' this file. 2005-09-30 09:56:50 +00:00
Gary V. Vaughan
4732e6e6b0 * tests/libtoolize.at: Add a new test to catch a regression I
almost introduced with respect to copying macro files when
AC_CONFIG_MACRO_DIR is shared with libltdl subproject.
2005-09-30 01:13:38 +00:00
Gary V. Vaughan
2f89a87c91 * tests/old-m4-iface.at: Start of a new test series for m4
interface backwards compatibility.
* tests/testsuite.at: Use it.
(macrodir): Declare the location of uninstalled libtool m4 macros.
* Makefile.am (TESTSUITE_AT): Depend on it.
2005-09-30 00:46:52 +00:00
Tim Rice
9cea697ba3 * tests/early-libtool.at (Makefile.in): Set $(SHELL). 2005-09-29 18:00:06 +00:00
Tim Rice
121d473ead * tests/defs.m4sh, tests/testsuite.at (PREPARE_TESTS)
<AUTORECONF>: Allow variable override.
2005-09-27 06:48:22 +00:00
Ralf Wildenhues
369dc0d1a9 * tests/link-order.at [ aix* ]: skip path syntax grep. 2005-09-23 16:48:14 +00:00
Peter Ekberg
0278b137e1 * tests/link-order.test: Clean up the uninstalled libraries
before linking the test executables so that they don't pick
up the dlls from the current dir on Cygwin and MinGW.
2005-09-22 06:44:24 +00:00
Peter Ekberg
38599480fc * tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure
that the exit status of the tested program is
propagated as the exit status of the expression
fed to AT_CHECK.
2005-09-16 08:33:24 +00:00
Peter Ekberg
072341693e * libltdl/config/ltmain.m4sh (func_generate_dlsyms):
Fix escape expression to actually escape relevant
characters from the following grep. Fix Cygwin and
MinGW to use the filtered symbol list when exporting
from self, and not the symbol filter.
* tests/stresstest.at: Export w8, not w8$
2005-09-13 07:28:14 +00:00
Ralf Wildenhues
2055f11ca7 Make tagdemo work smoothly with both pre- and ISO C++ compilers,
and remove all use of libstdc from other tests.

* tests/tagdemo/configure.ac (HAVE_NAMESPACES, HAVE_IOSTREAM):
New tests for ISO C++ features.  Reimplementation of similar
macros from the autoconf archive.
* tests/tagdemo/foo.cpp, tests/tagdemo/main.cpp: Adjusted.
* tests/am-subdir.at, tests/template.at: Do not use iostream.
2005-09-12 16:24:38 +00:00
Peter Ekberg
ff60e2f202 * tests/testsuite.at (host_os): Pull from `libtool --config'.
* tests/stresstest.at [ cygwin, mingw, pw32 ]: Use it to fix
setting of `-no-undefined'.
2005-09-12 12:48:38 +00:00
Ralf Wildenhues
ea0ebd6da1 * tests/early-libtool.at (config.status): Use EXEEXT
consistently.
Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
2005-09-08 07:17:58 +00:00
Ralf Wildenhues
9c08dbfa0e * tests/early-libtool.at: Fix goofed up make rules in
previous commit.
2005-08-26 13:54:04 +00:00
Ralf Wildenhues
d485025de4 * tests/inherited_flags.at: Weaken for MSVC.
* tests/early-libtool.at, tests/template.at: Fix for compiler
that do not understand '-c -o'.
2005-08-26 13:48:27 +00:00
Ralf Wildenhues
a305c3d9f4 * tests/standalone.at, tests/template.at: Do not compare
output because of EOL issues.  Resolve warnings, make cross-
compilation aware.
Reported by Peter Ekberg <peda@axentia.se>.
2005-08-26 10:00:18 +00:00
Peter Ekberg
bde34b94a5 * tests/standalone.at: (without autotools): Add
$(CFLAGS) to LTCOMPILE and LTLINK. Separate compiling
and linking. Remove compiling flags from link. Add
--tag. Add -no-undefined flag.
2005-08-25 13:39:54 +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
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
Gary V. Vaughan
6892320962 * test/standalone.at: New file. Forgot to cvs add on previous commit. 2005-08-23 01:52:07 +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
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
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