2 # Run this to generate all the initial makefiles, etc.
6 srcfile=gst/gstobject.h
8 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
10 echo "You must have autoconf installed to compile $package."
11 echo "Download the appropriate package for your distribution,"
12 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
16 (automake --version) < /dev/null > /dev/null 2>&1 || {
18 echo "You must have automake installed to compile $package."
19 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
20 echo "(or a newer version if it is available)"
24 (libtool --version) < /dev/null > /dev/null 2>&1 || {
26 echo "You must have libtool installed to compile $package."
27 echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
31 libtool_version=`libtool --version | sed 's/^.* \([0-9\.]*\) .*$/\1/'`
32 libtool_major=`echo $libtool_version | cut -d. -f1`
33 libtool_minor=`echo $libtool_version | cut -d. -f2`
34 libtool_micro=`echo $libtool_version | cut -d. -f3`
35 if [ $libtool_major -lt 1 -o $libtool_minor -lt 3 -o $libtool_micro -lt 5 ];then
37 echo "You must have libtool 1.3.5 or greater to compile $package."
38 echo "Get the latest version from ftp://alpha.gnu.org/gnu/libtool/"
42 if test "$DIE" -eq 1; then
47 echo "You must run this script in the top-level $package directory"
52 echo "I am going to run ./configure with no arguments - if you wish "
53 echo "to pass any to it, please specify them on the $0 command line."
56 libtoolize --copy --force
57 aclocal $ACLOCAL_FLAGS
60 automake --add-missing
62 if [ "x$1" = "x--autogen-recurse" ];then
63 exit # the rest will happen later
66 #for dir in `find * -name autogen.sh -print | grep -v '^autogen.sh$' | \
67 # sed 's/autogen.sh$//'`;do
68 # echo "Recursively running autogen.sh in $dir"
69 # pushd $dir > /dev/null
70 # ./autogen.sh --autogen-recurse "$@"
74 ./configure --enable-maintainer-mode --enable-plugin-srcdir --enable-debug --enable-debug-verbose "$@"
77 echo "Now type 'make' to compile $package."