aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
blob: 198f2a9f87e21f70a69dce9d625a28947d2a0dad (plain)
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
#!/bin/sh

dir=`echo "$0" | sed 's,[^/]*$,,'`
test "x${dir}" = "x" && dir='.'
 
if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`"
then
    echo "this script must be executed directly from the source directory."
    exit 1
fi
 
 # this might not be necessary with newer autotools:
rm -f config.cache

# older crap way
#aclocal
#autoconf
#autoheader
#automake -a -c

echo "Running:"
echo "- libtoolize"                   && \
libtoolize --copy --force --automake  && \
echo "- aclocal"                      && \
aclocal                               && \
echo "- autoconf"                     && \
autoconf                              && \
echo "- autoheader"                   && \
autoheader                            && \
echo "- automake"                     && \
automake --add-missing --gnu      && \
echo                                  && \
echo "Now run ./configure [options] and then make." && \
echo                                  && \
exit 0

#echo "Running ./configure ..."        && \
#./configure "$@"

exit 1