libtool/bootstrap
Greg Eisenhauer 8d844b3f48 * ltmain.in: Provide absolute paths for dlopen and dlpreopen
files in generating uninstalled libtool libraries.
* mdemo2/main.c, mdemo2/Makefile.am, mdemo2/README,
mdemo2/configure.ac, mdemo2/.cvsignore, mdemo/mlib.c,
tests/mdemo2-conf.test, tests/mdemo2-exec.test,
tests/mdemo2-make.test: New files for testing above feature.
* configure.ac, bootstrap, tests/Makefile.am: Accomodate new
test directory.
* mdemo/Makefile.am: Build libmlib.la for mdemo2 tests.
2003-07-31 20:41:35 +00:00

54 lines
1.2 KiB
Bash
Executable File

#! /bin/sh
# helps bootstrapping libtool, when checked out from CVS
# requires at least GNU autoconf 2.50 and GNU automake1.4-p5
find . \( -name autom4te.cache -o -name libtool \) -exec rm -r {} \;
: ${ACLOCAL=aclocal}
: ${AUTOMAKE=automake}
: ${AUTOCONF=autoconf}
: ${AUTOHEADER=autoheader}
# fake the libtool scripts
touch ltmain.sh
touch libtoolize
(cd libltdl && touch ltmain.sh)
for sub in . libltdl cdemo demo depdemo mdemo mdemo2 pdemo tagdemo f77demo; do
case $sub in
.)
top_srcdir=.
acfiles="$top_srcdir/libtool.m4"
AUTOMAKE_FLAGS="--gnu --add-missing --copy"
;;
libltdl)
top_srcdir=..
acfiles="$top_srcdir/libtool.m4 $top_srcdir/ltdl.m4"
AUTOMAKE_FLAGS="--gnits --add-missing --copy"
;;
*)
top_srcdir=..
acfiles="$top_srcdir/libtool.m4"
AUTOMAKE_FLAGS="--gnits --add-missing"
;;
esac
cd $sub
rm -f acinclude.m4 aclocal.m4 Makefile configure
for file in $acfiles; do
cat $file >> ./acinclude.m4
done
$ACLOCAL
test $sub = libltdl && $AUTOHEADER
test $sub = f77demo && $AUTOHEADER
eval $AUTOMAKE $AUTOMAKE_FLAGS
$AUTOCONF
cd $top_srcdir
done
rm -f ltmain.sh libtoolize libltdl/ltmain.sh
exit 0