2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
11 FILE=clutter/clutter.h
16 if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
17 libtool_version=`libtoolize --version |
19 sed -e 's/^\(.*\)([^)]*)\(.*\)$/\1\2/g' \
20 -e 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
21 case $libtool_version in
27 if $have_libtool ; then : ; else
29 echo "You must have libtool 2.2 installed to compile $PROJECT."
30 echo "Install the appropriate package for your distribution,"
31 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
35 (gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
37 echo "You must have gtk-doc installed to compile $PROJECT."
38 echo "Install the appropriate package for your distribution,"
39 echo "or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
43 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
45 echo "You must have autoconf installed to compile $PROJECT."
46 echo "Install the appropriate package for your distribution,"
47 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
51 if automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
52 AUTOMAKE=automake-1.11
56 echo "You must have automake or 1.11.x installed to compile $PROJECT."
57 echo "Install the appropriate package for your distribution,"
58 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
62 if test "$DIE" -eq 1; then
66 test $TEST_TYPE $FILE || {
67 echo "You must run this script in the top-level $PROJECT directory"
71 # NOCONFIGURE is used by gnome-common; support both
72 if ! test -z "$AUTOGEN_SUBDIR_MODE"; then
76 if test -z "$NOCONFIGURE"; then
78 echo "I am going to run ./configure with no arguments - if you wish "
79 echo "to pass any to it, please specify them on the $0 command line."
83 if test -z "$ACLOCAL_FLAGS"; then
85 acdir=`$ACLOCAL --print-ac-dir`
86 m4list="glib-2.0.m4 glib-gettext.m4"
90 if [ ! -f "$acdir/$file" ]; then
91 echo "WARNING: aclocal's directory is $acdir, but..."
92 echo " no file $acdir/$file"
93 echo " You may see fatal macro warnings below."
94 echo " If these files are installed in /some/dir, set the ACLOCAL_FLAGS "
95 echo " environment variable to \"-I /some/dir\", or install"
102 rm -rf autom4te.cache
104 autopoint --force || exit $?
106 $ACLOCAL -I build/autotools $ACLOCAL_FLAGS || exit $?
108 libtoolize --force || exit $?
110 autoheader || exit $?
112 $AUTOMAKE --add-missing || exit $?
114 cd $ORIGDIR || exit $?
116 if test -z "$NOCONFIGURE"; then
117 $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
118 echo "Now type 'make' to compile $PROJECT."