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 5package="vorbisidec" 6 7srcdir=`dirname $0` 8test -z "$srcdir" && srcdir=. 9 10cd "$srcdir" 11DIE=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 39if test "$DIE" -eq 1; then 40 exit 1 41fi 42 43if 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." 46fi 47 48echo "Generating configuration files for $package, please wait...." 49 50echo " aclocal $ACLOCAL_FLAGS" 51aclocal $ACLOCAL_FLAGS || exit 1 52echo " autoheader" 53autoheader || exit 1 54echo " libtoolize --automake" 55libtoolize --automake || exit 1 56echo " automake --add-missing $AUTOMAKE_FLAGS" 57automake --add-missing $AUTOMAKE_FLAGS || exit 1 58echo " autoconf" 59autoconf || exit 1 60 61$srcdir/configure "$@" && echo 62