-
Notifications
You must be signed in to change notification settings - Fork 10
/
bootstrap
executable file
·31 lines (28 loc) · 1.02 KB
/
bootstrap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# This is a script to create all the configuration files when
# you compile from the CVS source. You should NOT use it to
# compile the distribution.
#
# Step 1 - check if the necessary tools appear to be there.
# Ideally we should check versions too, which we don't...
if ! autoconf --version 2>&1 | grep GNU >/dev/null 2>&1; then
echo "Cannot find GNU autoconf! Exiting..."
exit 0
fi
if ! automake --version 2>&1 | grep GNU >/dev/null 2>&1; then
echo "Cannot find GNU automake! Exiting..."
exit 0
fi
if ! libtool --version 2>&1 | grep GNU >/dev/null 2>&1; then
# on Mac OS X the GNU version is called glibtool...
if ! glibtool --version 2>&1 | grep GNU >/dev/null 2>&1; then
echo "Cannot find GNU libtool! Exiting..."
exit 0
fi
fi
aclocal
# fix for OSX producing debug directories; replace rm -f with rm -rf in built-in scripts
cat aclocal.m4 | sed -e 's/rm="rm -f"/rm="rm -rf"/' | sed -e 's/rm -f /rm -rf /' > aclocal.tmp && mv aclocal.tmp aclocal.m4
autoheader
automake
autoconf