Recognizes if input is ogg or not.
[xiph.git] / vorbose / autogen.sh
blobed3594f3f947e8930d003e82bd2ef0156d77784e
1 #!/bin/sh
2 # Run this to set up the build system: configure, makefiles, etc.
3 # (based on the version in enlightenment's cvs)
5 package="vorbose"
7 olddir=`pwd`
8 srcdir=`dirname $0`
9 test -z "$srcdir" && srcdir=.
11 cd "$srcdir"
12 DIE=0
14 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
15 echo
16 echo "You must have autoconf installed to compile $package."
17 echo "Download the appropriate package for your distribution,"
18 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
19 DIE=1
22 (automake --version) < /dev/null > /dev/null 2>&1 || {
23 echo
24 echo "You must have automake installed to compile $package."
25 echo "Download the appropriate package for your system,"
26 echo "or get the source from one of the GNU ftp sites"
27 echo "listed in http://www.gnu.org/order/ftp.html"
28 DIE=1
31 if test "$DIE" -eq 1; then
32 exit 1
35 if test -z "$*"; then
36 echo "I am going to run ./configure with no arguments - if you wish "
37 echo "to pass any to it, please specify them on the $0 command line."
40 echo "Generating configuration files for $package, please wait...."
42 echo " aclocal $ACLOCAL_FLAGS"
43 aclocal $ACLOCAL_FLAGS
44 echo " autoheader"
45 autoheader
46 #echo " libtoolize --automake"
47 #libtoolize --automake
48 echo " automake --add-missing $AUTOMAKE_FLAGS"
49 automake --add-missing $AUTOMAKE_FLAGS
50 echo " autoconf"
51 autoconf
53 cd $olddir
54 $srcdir/configure "$@" && echo