-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.sh
executable file
·41 lines (36 loc) · 913 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
35
36
37
38
39
40
41
#!/bin/sh
set -x
if test -f Makefile; then
make distclean >/dev/null 2>/dev/null
fi
# Try to find where GNU libtool is hiding.
LIBTOOL_AKA="glibtoolize"
if test -z "$LIBTOOLIZE"; then
for LIBTOOL in $LIBTOOL_AKA libtoolize; do
LIBTOOLIZE=`which $LIBTOOL 2>/dev/null`
if test $? -eq 0; then
if $LIBTOOLIZE --version | grep -q "GNU libtool"; then
break
fi
LIBTOOLIZE=
fi
done
if test -z "$LIBTOOLIZE"; then
echo "No suitable libtoolize found (set LIBTOOLIZE if necessary)."
exit 1
fi
fi
$LIBTOOLIZE -c -f
aclocal -I m4 -I /usr/local/share/aclocal &&\
autoheader && \
automake -W all -a && \
autoconf -W syntax
if test "$?" != 0; then
cat <<EOF
If you see errors it might be necessary to install additional packages like
autoconf >= 2.60
automake >= 1.9
libltdl (libltdl3-dev debian package)
and all -devel packages mentioned in the README file
EOF
fi