#! /bin/sh# helps bootstrapping libtool, when checked out from CVS# requires at least GNU autoconf 2.50 and GNU automake1.4-p5rm -rf `find . -path './{arch}' -prune -o \( -name autom4te.cache -o -name libtool \) -print`# Delete stale acinclude.m4 from previous libtool versions.rm -f acinclude.m4: ${ACLOCAL=aclocal}: ${AUTOMAKE=automake}: ${AUTOCONF=autoconf}: ${AUTOHEADER=autoheader}# fake the libtool scriptstouch ltmain.shtouch libtoolize(cd libltdl && touch ltmain.sh)for sub in . libltdl cdemo demo depdemo mdemo mdemo2 pdemo tagdemo f77demo; docase $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";;esaccd $subrm -f acinclude.m4 aclocal.m4 Makefile configurefor file in $acfiles; docat $file >> ./acinclude.m4done$ACLOCALtest $sub = libltdl && $AUTOHEADERtest $sub = f77demo && $AUTOHEADEReval $AUTOMAKE $AUTOMAKE_FLAGS$AUTOCONFcd $top_srcdirdonerm -f ltmain.sh libtoolize libltdl/ltmain.shexit 0