libtool/bootstrap
Tim Van Holder a3c8dc7707 * bootstrap: Use cp instead of ln -s, for systems without
symlinks.  Reorder the statements to avoid repetition outside
the loop.
2001-06-28 22:49:20 +00:00

50 lines
993 B
Bash
Executable File

#! /bin/sh
# helps bootstrapping libtool, when checked out from CVS
# requires at least GNU autoconf 2.50 and GNU automake1.4-p4
: ${ACLOCAL=aclocal}
: ${AUTOMAKE=automake}
: ${AUTOCONF=autoconf}
: ${AUTOHEADER=autoheader}
# fake the libtool scripts
touch ltmain.sh
touch libtoolize
for sub in . libltdl demo depdemo mdemo cdemo tagdemo pdemo; 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"
;;
*)
top_srcdir=..
acfiles="$top_srcdir/libtool.m4"
AUTOMAKE_FLAGS="--gnits --add-missing"
;;
esac
cd $sub
rm -f acinclude.m4 Makefile
for file in $acfiles; do
cat $file >> ./acinclude.m4
done
$ACLOCAL
test $sub = libltdl && $AUTOHEADER
eval $AUTOMAKE $AUTOMAKE_FLAGS
$AUTOCONF
cd $top_srcdir
done
rm -f ltmain.sh libtoolize
exit 0