build: Update autogen.sh
[profile/ivi/clutter.git] / autogen.sh
1 #! /bin/sh
2
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
5
6 PROJECT=Clutter
7 TEST_TYPE=-d
8 FILE=clutter
9
10 test $TEST_TYPE $FILE || {
11         echo "You must run this script in the top-level $PROJECT directory"
12         exit 1
13 }
14
15 GTKDOCIZE=`which gtkdocize`
16 if test -z $GTKDOCIZE; then
17         echo "*** No gtk-doc support ***"
18         echo "EXTRA_DIST =" > gtk-doc.make
19 else
20         ${GTKDOCIZE} || exit $?
21 fi
22
23 AUTORECONF=`which autoreconf`
24 if test -z $AUTORECONF; then
25         echo "*** No autoreconf found ***"
26         exit 1
27 else
28         ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" ${AUTORECONF} -f -v --install || exit $?
29 fi
30
31 if test -z "$NOCONFIGURE"; then
32         ./configure "$@" && echo "Now type 'make' to compile $PROJECT."
33 fi