1998-12-16 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * tests/Makefile.am (EXTRA_DIST): remove ltdl-*.test
+ (clean-local): don't clean libltdl any more
+ * tests/ltdl-conf.test: removed
+ * tests/ltdl-inst.test: ditto
+ * tests/ltdl-make.test: ditto
+ * tests/ltdl-unst.test: ditto
+ * tests/mdemo-make.test: updated accordingly
+ * tests/mdemo-inst.test: ditto
+ * tests/mdemo-unst.test: ditto
+ * doc/libtool.texi: ditto
+
* ltmain.in (-DSTATIC): changed to -DLIBTOOL_STATIC, and defined
only for -force-static; it should be removed soon, before people
start to use it
The @file{demo} subdirectory contains a demonstration of a trivial
package that uses libtool.
-@item libltdl-conf.test
-@itemx libltdl-inst.test
-@itemx libltdl-make.test
-@itemx libltdl-unst.test
-@pindex libltdl-conf.test
-@pindex libltdl-inst.test
-@pindex libltdl-make.test
-@pindex libltdl-unst.test
-These programs check to see that the @file{libltdl} subdirectory of the
-libtool distribution can be configured, built, installed, and
-uninstalled correctly.
-
-The @file{libltdl} subdirectory contains the library 'libltdl',
-which provides a dlopen wrapper for various platforms
-(Linux, Solaris, HP/UX, Win32 etc.) including support for dlpreopened modules
-(@pxref{Dlpreopening}).
-
@item mdemo-conf.test
@itemx mdemo-exec.test
@itemx mdemo-inst.test
libtool distribution can be configured, built, installed, and
uninstalled correctly.
-The @file{mdemo} subdirectory contains a demonstration of a package that
-uses libtool and the system independent dlopen wrapper 'libltdl' to load
-modules.
+The @file{mdemo} subdirectory contains a demonstration of a package that
+uses libtool and the system independent dlopen wrapper @file{libltdl} to
+load modules. The library @file{libltdl} provides an experimental
+dlopen wrapper for various platforms (Linux, Solaris, HP/UX, Win32 etc.)
+including support for dlpreopened modules (@pxref{Dlpreopening}).
NOTE: The tests @file{mdemo-exec.test} and @file{mdemo-inst.test} are known
-to fail on platforms that do not support inter-library dependencies.
+to fail on platforms that do not fully support inter-library dependencies.
@item hardcode.test
@pindex hardcode.test
TESTS = demo-conf.test demo-make.test demo-exec.test \
demo-inst.test demo-unst.test hardcode.test \
- ltdl-conf.test ltdl-make.test ltdl-inst.test \
- ltdl-unst.test \
mdemo-conf.test mdemo-make.test mdemo-exec.test \
mdemo-inst.test mdemo-unst.test \
link.test link-2.test nomode.test \
clean-local:
-test -f ../demo/Makefile && cd ../demo && $(MAKE) distclean
-test -f ../mdemo/Makefile && cd ../mdemo && $(MAKE) distclean
- -test -f ../libltdl/Makefile && cd ../libltdl && $(MAKE) distclean
rm -rf _inst
+++ /dev/null
-#! /bin/sh
-# ltdl-conf.test - try configuring the ../libltdl subdirectory
-
-# Test script header.
-need_prefix=yes
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
- test "${VERBOSE+set}" != "set" && VERBOSE=yes
-fi
-. $srcdir/defs || exit 1
-
-# Maybe we have a VPATH build, in which case, create a new subdir.
-test -d ../libltdl || mkdir ../libltdl
-
-# Change to our build directory.
-cd ../libltdl || exit 1
-
-# Possibly clean up the distribution.
-if test -f Makefile; then
- echo "= Running $make distclean in ../libltdl"
- $make distclean
-fi
-rm -f config.cache
-
-# Configure the demonstration.
-echo "= Configuring in ../libltdl (prefix=$prefix)"
-CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../libltdl/configure --srcdir=$srcdir/../libltdl --prefix=$prefix || exit 1
-
-exit 0
+++ /dev/null
-#! /bin/sh
-# ltdl-inst.test - try installing from the ../libltdl subdirectory
-
-# Test script header.
-need_prefix=yes
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
- test "${VERBOSE+set}" != "set" && VERBOSE=yes
-fi
-. $srcdir/defs || exit 1
-
-# Check that things are built.
-if test -f ../libltdl/libltdl.la; then :
-else
- echo "You must run ltdl-make.test before $0" 1>&2
- exit 1
-fi
-
-# Change to our build directory.
-cd ../libltdl || exit 1
-
-echo "= Running $make install in ../libltdl"
-$make install || exit 1
-
-exit 0
+++ /dev/null
-#! /bin/sh
-# ltdl-make.test - try building in the ../libltdl subdirectory
-
-# Test script header.
-need_prefix=no
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
- test "${VERBOSE+set}" != "set" && VERBOSE=yes
-fi
-. $srcdir/defs || exit 1
-
-if test -f ../libltdl/Makefile; then :
-else
- echo "You must run ltdl-conf.test before running $0" 1>&2
- exit 1
-fi
-
-# Change to our build directory.
-cd ../libltdl || exit 1
-
-# Do the actual build.
-echo "Making in ../libltdl"
-$make || exit 1
-exit 0
+++ /dev/null
-#! /bin/sh
-# ltdl.test - try uninstalling in the ../libltdl subdirectory
-
-# Test script header.
-need_prefix=yes
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
- test "${VERBOSE+set}" != "set" && VERBOSE=yes
-fi
-. $srcdir/defs || exit 1
-
-# Maybe we have a VPATH build, in which case, create a new subdir.
-if test "$prefix/bin/hell"; then :
-else
- echo "You must run ltdl-inst.test before $0." 1>&2
- exit 1
-fi
-
-# Change to our build directory.
-cd ../libltdl || exit 1
-
-echo "= Running $make uninstall in ../libltdl"
-$make uninstall || exit 1
-
-# See that there were no files leftover in $prefix.
-# Ignore dotfiles, so that .nfsXXX files don't screw up the test.
-leftovers=`find $prefix ! -type d ! -name '.*' -print`
-if test -n "$leftovers"; then
- echo "= Leftover after make uninstall:"
- ls -l $leftovers
- exit 1
-fi
-
-exit 0
exit 1
fi
-# Check that ltdl is installed.
-if test -f ../libltdl/libltdl.la; then
- cd ../libltdl || exit 1
- echo "= Running $make install in ../libltdl"
- $make install || exit 1
+# Check that things are built.
+if test -f ../libltdl/libltdl.la; then :
else
- echo "You must run ltdl-make.test before $0" 1>&2
+ echo "You must build libltdl before $0" 1>&2
exit 1
fi
# Check that things are built.
if test -f ../libltdl/libltdl.la; then :
else
- echo "You must run ltdl-make.test before $0" 1>&2
+ echo "You must built libltdl before $0" 1>&2
exit 1
fi
exit 1
fi
-if test -f ../libltdl/libltdl.la; then
- cd ../libltdl || exit 1
- echo "= Running $make uninstall in ../libltdl"
- $make uninstall || exit 1
-fi
-
# Change to our build directory.
cd ../mdemo || exit 1