aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
blob: 66b1d7ced0f8ea0394a33e16b495351eddb2ce24 (plain) (blame)
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
#!/bin/sh
ACLOCAL="$AUTODIR""aclocal"
echo "*** Recreating aclocal.m4"
echo "$ACLOCAL"
if $ACLOCAL --version | egrep "1\.6" >/dev/null 2>&1; then \
        echo "aclocal 1.6" ;
	$ACLOCAL;\
elif $ACLOCAL --version | egrep "1\.5" >/dev/null 2>&1; then \
        echo "aclocal 1.5" ;\
	echo "You must have aclocal 1.6 to use aclocal with this \
source";\
elif $ACLOCAL --version | egrep "1\.4" >/dev/null 2>&1; then \
        echo "aclocal 1.4" ;\
	echo "You must have aclocal 1.6 to use aclocal with this \
source";\
else \
        echo "aclocal unknown" ;\
	echo "You must have aclocal 1.6 to use aclocal with this \
source";\
fi
echo "*** Recreating configure"
AUTOCONF="$AUTODIR""autoconf"
AUTOHEAD="$AUTODIR""autoheader"
if $AUTOCONF --version | egrep "2\.53" >/dev/null 2>&1; then \
        echo "autoconf 2.53" ;
	if egrep "^AM_CONFIG_HEADER" configure.ac >/dev/null 2>&1; then \
        	echo "*** Creating config.h template" ;\
	        $AUTOHEAD ;\
	fi
	$AUTOCONF;\
elif $AUTOCONF --version | egrep "2\.52" >/dev/null 2>&1; then \
        echo "autoconf 2.52" ;
	if egrep "^AM_CONFIG_HEADER" configure.ac >/dev/null 2>&1; then \
        	echo "*** Creating config.h template" ;\
	        $AUTOHEAD ;\
	fi
	$AUTOCONF;\
elif $AUTOCONF --version | egrep "2\.13$" >/dev/null 2>&1; then \
        echo "autoconf 2.13" ;\
	echo "You must have autoconf 2.52+ to use autoconf with this \
source";\
else \
        echo "autoconf unknown" ;\
	echo "You must have autoconf 2.52+ to use autoconf with this \
source";\
fi
echo "*** Recreating the Makefile.in files"
AUTOMAKE="$AUTODIR""automake"
if $AUTOMAKE --version | egrep "1\.6$" >/dev/null 2>&1; then \
        echo "automake 1.6" ;
	$AUTOMAKE;\
elif $AUTOMAKE --version | egrep "1\.5" >/dev/null 2>&1; then \
        echo "automake 1.5" ;\
	echo "You must have automake 1.6 to use automake with this \
source";\
elif $AUTOMAKE --version | egrep "1\.4" >/dev/null 2>&1; then \
        echo "automake 1.4" ;\
	echo "You must have automake 1.6 to use automake with this \
source";\
else \
        echo "automake unknown" ;\
	echo "You must have automake 1.6 to use automake with this \
source";\
fi