fix linked tuners option in tuner config,
[enigma2.git] / autogen.sh
1 #!/bin/sh
2
3 package="tuxbox-enigma"
4
5 srcdir=`dirname $0`
6 test -z "$srcdir" && srcdir=.
7
8 cd "$srcdir"
9 DIE=0
10
11 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
12         echo
13         echo "You must have autoconf installed to compile $package."
14         echo "Download the appropriate package for your system,"
15         echo "or get the source from one of the GNU ftp sites"
16         echo "listed in http://www.gnu.org/order/ftp.html"
17         DIE=1
18 }
19
20 (automake --version) < /dev/null > /dev/null 2>&1 || {
21         echo
22         echo "You must have automake installed to compile $package."
23         echo "Download the appropriate package for your system,"
24         echo "or get the source from one of the GNU ftp sites"
25         echo "listed in http://www.gnu.org/order/ftp.html"
26         DIE=1
27 }
28
29 (libtool --version) < /dev/null > /dev/null 2>&1 || {
30         echo
31         echo "You must have libtool installed to compile $package."
32         echo "Download the appropriate package for your system,"
33         echo "or get the source from one of the GNU ftp sites"
34         echo "listed in http://www.gnu.org/order/ftp.html"
35         DIE=1
36 }
37
38 if test "$DIE" -eq 1; then
39         exit 1
40 fi
41
42 if [ ! -e acinclude.m4 ]; then
43         for i in .. ../.. ../../..; do
44                 if [ -e `pwd`/$i/acinclude.m4 ]; then
45                         ln -s `pwd`/$i/acinclude.m4 .
46                 fi
47         done
48 fi
49
50 echo "Generating configuration files for $package, please wait...."
51
52 echo "  aclocal"
53 aclocal
54 echo "  libtoolize --automake"
55 libtoolize --automake
56 echo "  autoconf"
57 autoconf
58 echo "  automake --add-missing"
59 automake --add-missing 
60