- Minor changes to all 4 autogen.sh files (ao, off, vorbis, vorbis-tools) to
[platform/upstream/libvorbis.git] / autogen.sh
1 #!/bin/sh
2 # Run this to set up the build system: configure, makefiles, etc.
3 # (based on the version in enlightenment's cvs)
4
5 package="vorbis"
6
7 srcdir=`dirname $0`
8 test -z "$srcdir" && srcdir=.
9
10 cd "$srcdir"
11 DIE=0
12
13 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
14         echo
15         echo "You must have autoconf installed to compile $package."
16         echo "Download the appropriate package for your distribution,"
17         echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
18         DIE=1
19 }
20
21 (automake --version) < /dev/null > /dev/null 2>&1 || {
22         echo
23         echo "You must have automake installed to compile $package."
24         echo "Download the appropriate package for your system,
25         echo "or get the source from one of the GNU ftp sites"
26         echo "listed in http://www.gnu.org/order/ftp.html"
27         DIE=1
28 }
29
30 (libtool --version) < /dev/null > /dev/null 2>&1 || {
31         echo
32         echo "You must have libtool installed to compile $package."
33         echo "Download the appropriate package for your system,
34         echo "or get the source from one of the GNU ftp sites"
35         echo "listed in http://www.gnu.org/order/ftp.html"
36         DIE=1
37 }
38
39 if test "$DIE" -eq 1; then
40         exit 1
41 fi
42
43 if test -z "$*"; then
44         echo "I am going to run ./configure with no arguments - if you wish "
45         echo "to pass any to it, please specify them on the $0 command line."
46 fi
47
48 echo "Generating configuration files for $package, please wait...."
49
50 echo "  aclocal $ACLOCAL_FLAGS"
51 aclocal $ACLOCAL_FLAGS
52 #echo "  autoheader"
53 #autoheader
54 echo "  libtoolize --automake"
55 libtoolize --automake
56 echo "  automake --add-missing $AUTOMAKE_FLAGS"
57 automake --add-missing $AUTOMAKE_FLAGS 
58 echo "  autoconf"
59 autoconf
60
61 $srcdir/configure "$@" && echo