6
ACLOCAL_FLAGS="-I ${srcdir}/m4 ${ACLOCAL_FLAGS}"
10
echo "Last command failed with status $status in directory $(pwd)."
15
# Refresh GNU autotools toolchain: libtool
16
echo "Removing libtool cruft"
17
rm -f ltmain.sh config.guess config.sub
18
echo "Running libtoolize"
19
libtoolize --copy --force || fail
21
# Refresh GNU autotools toolchain: aclocal autoheader
22
echo "Removing aclocal cruft"
24
echo "Running aclocal $ACLOCAL_FLAGS"
25
aclocal $ACLOCAL_FLAGS || fail
26
echo "Removing autoheader cruft"
27
rm -f config.h.in src/config.h.in
28
echo "Running autoheader"
31
# Refresh GNU autotools toolchain: automake
32
echo "Removing automake cruft"
33
rm -f depcomp install-sh missing mkinstalldirs
35
echo "Running automake"
37
automake --add-missing --gnu || fail
39
# Refresh GNU autotools toolchain: autoconf
40
echo "Removing autoconf cruft"
42
rm -rf autom4te*.cache/
43
echo "Running autoconf"
46
# Autoupdate config.sub and config.guess
49
if [ "x$WGET" != "x" ]; then
50
echo "Autoupdate config.sub and config.guess (y/n)?"
52
if [ "$IN" = "y" ] || [ "$IN" = "Y" ]; then
53
wget -O tmpfile http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
54
mv tmpfile config.guess
55
wget -O tmpfile http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
59
echo "Could not autoupdate config.sub and config.guess"