forked from ludditry/zvm-zpipes
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathautogen.sh
executable file
·34 lines (29 loc) · 964 Bytes
/
autogen.sh
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
32
33
34
#!/bin/sh
#
# Run this to generate a configure script. This is only necessary when
# building from a Git checkout. If you downloaded a release tarball,
# you should find a pre-generated configure script.
missing=""
for tool in autoreconf autoconf automake autoheader aclocal libtoolize pkg-config; do
echo -n "looking for $tool..."
if which $tool > /dev/null; then
echo " ok"
else
echo " not found!"
missing="$missing $tool"
fi
done
if [ ! -z "$missing" ]; then
echo "*** these tools were missing:$missing"
echo "*** please make sure you have autoconf, automake, pkg-config and libtool installed"
exit 1
fi
if ( ! mkdir -p ./config ); then
echo "could not create directory ./config"
exit 1
fi
echo "generating configure script"
autoreconf --install --force --verbose -I config || exit 1
echo "configure script generated succesfully"
echo
echo "run './configure --help' to see the available options"