2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
12 FILE=clutter/clutter.h
14 test $TEST_TYPE $FILE || {
15 echo "You must run this script in the top-level $PROJECT directory"
19 if automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
20 AUTOMAKE=automake-1.11
24 echo "You must have automake 1.11.x installed to compile $PROJECT
26 echo "Install the appropriate package for your distribution,"
27 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
31 (gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
33 echo "You must have gtk-doc installed to compile $PROJECT."
34 echo "Install the appropriate package for your distribution,"
35 echo "or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
39 # NOCONFIGURE is used by gnome-common
40 if test -z "$NOCONFIGURE"; 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."
47 if test -z "$ACLOCAL_FLAGS"; then
48 acdir=`$ACLOCAL --print-ac-dir`
50 for file in $m4list; do
51 if [ ! -f "$acdir/$file" ]; then
52 echo "WARNING: aclocal's directory is $acdir, but..."
53 echo " no file $acdir/$file"
54 echo " You may see fatal macro warnings below."
55 echo " If these files are installed in /some/dir, set the ACLOCAL_FLAGS "
56 echo " environment variable to \"-I /some/dir\", or install"
66 autoreconf -vfi || exit $?
67 cd $ORIGDIR || exit $?
69 if test -z "$NOCONFIGURE"; then
70 $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
71 echo "Now type 'make' to compile $PROJECT."