2008-06-11 Emmanuele Bassi <ebassi@openedhand.com>
[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 GLIB_GETTEXTIZE=`which glib-gettextize`
24 if test -z $GLIB_GETTEXTIZE; then
25         echo "*** No glib-gettextize ***"
26         exit 1
27 else
28         glib-gettextize -f || exit $?
29 fi
30
31 AUTORECONF=`which autoreconf`
32 if test -z $AUTORECONF; then
33         echo "*** No autoreconf found ***"
34         exit 1
35 else
36         autoreconf -v --install || exit $?
37 fi
38
39 ./configure "$@" && echo "Now type 'make' to compile $PROJECT."