summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 0a32e5eec224c9b96317660997e703f1cf713c03 (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
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
#!/bin/sh
#
echo "Generating build information using aclocal, automake and autoconf"
echo "This may take a while ..."

# Touch the timestamps on all the files since CVS messes them up
#touch Makefile.am configure.in
#touch libid3tag/Makefile.am libid3tag/configure.ac
#touch libmad/Makefile.am libmad/configure.ac

#rm -f configure
#rm -f libid3tag/configure
#rm -f libmad/configure
#rm -f config.cache
#rm -f config.status
#rm -f libid3tag/config.status
#rm -f libmad/config.status
#rm -rf autom4te*.cache
#rm -rf libid3tag/autom4te*.cache
#rm -rf libmad/autom4te*.cache
#rm -f aclocal.m4
#rm -f libid3tag/aclocal.m4
#rm -f libmad/aclocal.m4

# Regenerate configuration files
libtoolize -f -c

for i in -1.7 -1.6 ''; do
	if [ -z $ACLOCAL ]; then
		which aclocal$i
		if [ "$?" = "0" ]; then
			ACLOCAL=aclocal$i
		fi
	fi
	if [ -z $AUTOMAKE ]; then
		which automake$i
		if [ "$?" = "0" ]; then
			AUTOMAKE=automake$i
		fi
	fi
done

if [ -d /usr/local/share/aclocal ]; then
	$ACLOCAL -I /usr/local/share/aclocal
else
	$ACLOCAL
fi
$AUTOMAKE --foreign --add-missing -c
autoconf

cd src/libid3tag
$ACLOCAL 
$AUTOMAKE --foreign --add-missing -c
autoconf
cd ../..

cd src/libmad
$ACLOCAL 
$AUTOMAKE --foreign --add-missing -c
autoconf
cd ../..

# Run configure for this platform
./configure "$@"