libtool/bootstrap
Gary V. Vaughan d592d617bd * bootstrap (reconfdirs): Overridable top dirs for bootstrap, for
those times when you don't want to wait for all of the test
directories to be rebootstrapped!
2003-10-20 13:45:51 +00:00

49 lines
1.3 KiB
Bash
Executable File

#! /bin/sh
# Helps bootstrapping libtool, when checked out from CVS
# requires at least GNU autoconf 2.58 and GNU automake 1.8.
# Upgrade caveat.
cat <<'EOF'
WARNING: If bootstrapping with this script fails, it may be due to an
WARNING: incompatible installed `libtool.m4' being pulled in to
WARNING: `aclocal.m4'. The best way to work around such a problem is to
WARNING: uninstall your system libtool files, or failing that, overwrite
WARNING: them with `libtool.m4' as shipped with this distribution.
WARNING: After that, retry this bootstrap.
EOF
rm -rf `find . \( -name autom4te.cache -o -name libtool \) -print`
fakes="config/ltmain.sh config/libtoolize libltdl/ltmain.sh"
reconfdirs=${reconfdirs-. tests/*demo tests/*demo[0-9]}
for file in $fakes; do
cat > $file <<'EOF'
#! /bin/sh
# This is a dummy file for bootstrapping CVS libtool.
echo "$0: Bootstrap detected, no files installed." | sed 's,^.*/,,g'
exit 0
EOF
chmod 755 $file
done
# Running the installed `libtoolize' will trash the local (newer) libtool.m4
# among others. Call the dummy script we made earlier.
LIBTOOLIZE=`pwd`/config/libtoolize
export LIBTOOLIZE
for sub in $reconfdirs; do
autoreconf --force --verbose --install $sub
done
for file in $fakes; do
rm -f $file
done
# These files con cause an infinite configure loop if left behind.
rm -f Makefile libltdl/Makefile libtool
exit 0