[a75fce]: autogen.sh  Maximize  Restore  History

Download this file

55 lines (44 with data), 1.4 kB

 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
#!/bin/sh
# This works on Gentoo, whose automake wrapper is based on Mandrake:
WANT_AUTOMAKE=1.7
export WANT_AUTOMAKE
case `uname -s` in
Linux)
LIBTOOLIZE=libtoolize
ACLOCALARGS=''
;;
Darwin)
LIBTOOLIZE=glibtoolize
ACLOCALARGS='-I /usr/local/share/aclocal'
;;
*) echo error: unrecognized OS
exit 1
;;
esac
AUTOMAKE_REQ=1.7
# Automake version check from MusE
lessthan () {
ver1="$1"
ver2="$2"
major1=$( echo $ver1 | sed "s/^\([0-9]*\)\..*/\1/");
minor1=$( echo $ver1 | sed "s/^[^\.]*\.\([0-9]*\).*/\1/" );
major2=$( echo $ver2 | sed "s/^\([0-9]*\)\..*/\1/");
minor2=$( echo $ver2 | sed "s/^[^\.]*\.\([0-9]*\).*/\1/" );
test "$major1" -lt "$major2" || test "$minor1" -lt "$minor2";
}
amver=$( automake --version | head -n 1 | sed "s/.* //" );
if lessthan $amver $AUTOMAKE_REQ ; then
echo "you must have automake version >= $AUTOMAKE_REQ for proper plugin support"
exit 1
fi
echo "=============== running libtoolize --force --copy" &&
$LIBTOOLIZE --force --copy &&
echo "=============== running aclocal" &&
aclocal $ACLOCALARGS &&
echo "=============== running autoheader" &&
autoheader &&
echo "=============== running automake --add-missing --copy --foreign" &&
automake --add-missing --copy --foreign &&
echo "=============== running autoconf" &&
autoconf &&
echo "=============== done"

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks