blob: 935742145ae70998509caff18bf46086cc50f213 (
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
|
#!/bin/sh
# Run this to generate all the initial Makefiles, etc.
## extract automake version
if [ -f automake-1.6 ]; then
automake_1_6x=yes
else
AM="`automake --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
if test $AM -lt 100 ; then
AM=`expr $AM \* 10`
fi
if [ `expr $AM` -ge 160 ]; then
automake_1_6x=yes
fi
fi
if test x"$automake_1_6x" = x"no"; then
echo "Warning: automake < 1.6. Some warning message might occur from automake"
fi
## extract autoconf version
autoconf_2_53=no
AC="`autoconf --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
if test $AC -lt 100 ; then
AC=`expr $AC \* 10`
fi
if [ `expr $AC` -ge 253 ]; then
autoconf_2_53=yes
fi
if test x"$autoconf_2_53" = x"no"; then
echo "To compile xine-lib from CVS requires autoconf >= 2.53"
exit
fi
rm -f config.cache
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
(test -f $srcdir/configure.ac) || {
echo -n "*** Error ***: Directory "\`$srcdir\'" does not look like the"
echo " top-level directory"
exit 1
}
configure_flags=$@
. $srcdir/misc/autogen.sh $automake_1_6x $configure_flags
|