2002-04-03 00:27:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# bootstrap the build when checking out from CVS
|
|
|
|
|
2002-04-09 01:49:38 +00:00
|
|
|
# dodgy hack to use gmake if we're on bsd systems
|
2002-04-09 02:01:36 +00:00
|
|
|
if [ -x /usr/local/bin/gmake ]; then
|
2002-04-09 01:49:38 +00:00
|
|
|
MAKE=/usr/local/bin/gmake
|
|
|
|
else
|
|
|
|
MAKE=make
|
|
|
|
fi
|
|
|
|
|
2002-04-04 23:11:31 +00:00
|
|
|
if [ "$1" = "clean" ]; then
|
2002-04-04 13:44:56 +00:00
|
|
|
# clean up junk
|
|
|
|
|
|
|
|
if [ -f Makefile ]; then
|
2002-04-09 01:49:38 +00:00
|
|
|
$MAKE distclean
|
2002-04-04 13:44:56 +00:00
|
|
|
fi
|
2002-07-01 04:57:54 +00:00
|
|
|
find . -name Makefile.in -print0 | xargs -r0 rm -f
|
2002-04-10 06:57:39 +00:00
|
|
|
rm -f aclocal.m4 install-sh missing mkinstalldirs \
|
2002-07-04 00:50:09 +00:00
|
|
|
stamp-* tags configure config.* \
|
|
|
|
compile depcomp ltmain.sh
|
|
|
|
rm -rf autom4te.cache libltdl
|
2002-07-01 04:57:54 +00:00
|
|
|
find . -name '*~' -print0 | xargs -r0 rm -f
|
2002-07-04 00:50:09 +00:00
|
|
|
find . -name '*.rej' -print0 | xargs -r0 rm -f
|
|
|
|
find . -name '*.orig' -print0 | xargs -r0 rm -f
|
2002-04-04 13:44:56 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
2002-07-21 23:26:57 +00:00
|
|
|
VERSION=`automake --version |head -1| sed 's/automake (GNU automake) //'`
|
2002-07-04 00:50:09 +00:00
|
|
|
MAJOR=`echo $VERSION | cut -f1 -d.`
|
|
|
|
MINOR=`echo $VERSION | cut -f2 -d.`
|
|
|
|
if test "$MAJOR" -ge "1" -a "$MINOR" -ge "6"; then
|
2002-04-04 13:44:56 +00:00
|
|
|
aclocal
|
|
|
|
autoheader
|
2002-07-04 00:50:09 +00:00
|
|
|
libtoolize --copy --ltdl --automake
|
2002-04-04 13:44:56 +00:00
|
|
|
automake --foreign --add-missing --copy
|
|
|
|
autoconf
|
2002-07-04 00:50:09 +00:00
|
|
|
else
|
|
|
|
echo "Need automake version 1.6 or higher"
|
|
|
|
fi
|
2002-04-04 13:44:56 +00:00
|
|
|
fi
|