-
Notifications
You must be signed in to change notification settings - Fork 19
/
autogen.sh
executable file
·67 lines (61 loc) · 1.05 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/sh
for f in \
"autoheader261" \
"autoheader260" \
"autoheader"
do
which $f >/dev/null 2>&1
if [ $? -eq 0 ]; then
AUTOHEADER="${f}"
break
fi
done
for f in \
"aclocal-1.10" \
"aclocal110" \
"aclocal-1.9" \
"aclocal19" \
"aclocal"
do
which $f >/dev/null 2>&1
if [ $? -eq 0 ]; then
ACLOCAL="${f} -I m4"
break
fi
done
for f in \
"autoconf261" \
"autoconf260" \
"autoconf"
do
which $f >/dev/null 2>&1
if [ $? -eq 0 ]; then
AUTOCONF="${f}"
break
fi
done
for f in \
"automake-1.10" \
"automake110" \
"automake-1.9" \
"automake19" \
"automake"
do
which $f >/dev/null 2>&1
if [ $? -eq 0 ]; then
AUTOMAKE="${f} -a -c"
break
fi
done
if [ -z "${AUTOHEADER}" -o \
-z "${ACLOCAL}" -o \
-z "${AUTOCONF}" -o \
-z "${AUTOMAKE}" ]; then
echo "$0: Cannot find (all) GNU autotools, aborting." >&2
exit 1
fi
echo "Running GNU autotools:"
echo "* ${AUTOHEADER}" ; ${AUTOHEADER}
echo "* ${ACLOCAL}" ; ${ACLOCAL}
echo "* ${AUTOCONF}" ; ${AUTOCONF}
echo "* ${AUTOMAKE}" ; ${AUTOMAKE}