1e0e7be7f786ae2e8d4fa3ca1b8c8412b9de7c99
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 DIE=0
5 package=gstreamer
6 srcfile=gst/gstobject.h
8 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
9 echo
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/"
13 DIE=1
14 }
16 (libtool --version) < /dev/null > /dev/null 2>&1 || {
17 echo
18 echo "You must have libtool installed to compile $package."
19 echo "Get ftp://alpha.gnu.org/gnu/libtool-1.2.tar.gz"
20 echo "(or a newer version if it is available)"
21 DIE=1
22 }
24 (automake --version) < /dev/null > /dev/null 2>&1 || {
25 echo
26 echo "You must have automake installed to compile $package."
27 echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
28 echo "(or a newer version if it is available)"
29 DIE=1
30 }
32 if test "$DIE" -eq 1; then
33 exit 1
34 fi
36 test -f $srcfile || {
37 echo "You must run this script in the top-level $package directory"
38 exit 1
39 }
41 if test -z "$*"; then
42 echo "I am going to run ./configure with no arguments - if you wish "
43 echo "to pass any to it, please specify them on the $0 command line."
44 fi
46 libtoolize --copy --force
47 aclocal $ACLOCAL_FLAGS
48 automake --add-missing
49 autoconf
50 autoheader
52 if [ "x$1" = "x--autogen-recurse" ];then
53 exit # the rest will happen later
54 fi
56 for dir in `find * -name autogen.sh -print | grep -v '^autogen.sh$' | \
57 sed 's/autogen.sh$//'`;do
58 echo "Recursively running autogen.sh in $dir"
59 pushd $dir > /dev/null
60 ./autogen.sh --autogen-recurse "$@"
61 popd > /dev/null
62 done
64 ./configure --enable-maintainer-mode "$@"
66 echo
67 echo "Now type 'make' to compile $package."