build: Drop version check on auto*
[profile/ivi/clutter.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 test -n "$srcdir" || srcdir=`dirname "$0"`
5 test -n "$srcdir" || srcdir=.
6
7 olddir=`pwd`
8
9 cd $srcdir
10 PROJECT=Clutter
11 TEST_TYPE=-f
12 FILE=clutter/clutter.h
13
14 test $TEST_TYPE $FILE || {
15         echo "You must run this script in the top-level $PROJECT directory"
16         exit 1
17 }
18
19 # GNU gettext automake support doesn't get along with git.
20 # https://bugzilla.gnome.org/show_bug.cgi?id=661128
21 touch -t 200001010000 po/clutter-1.0.pot
22
23 GTKDOCIZE=`which gtkdocize`
24 if test -z $GTKDOCIZE; then
25         echo "*** No GTK-Doc found, please install it ***"
26         exit 1
27 fi
28
29 AUTORECONF=`which autoreconf`
30 if test -z $AUTORECONF; then
31         echo "*** No autoreconf found, please install it ***"
32         exit 1
33 fi
34
35 # NOCONFIGURE is used by gnome-common
36 if test -z "$NOCONFIGURE"; then
37         if test -z "$*"; then
38                 echo "I am going to run ./configure with no arguments - if you wish "
39                 echo "to pass any to it, please specify them on the $0 command line."
40         fi
41 fi
42
43 rm -rf autom4te.cache
44
45 gtkdocize || exit $?
46 autoreconf --force --install --verbose || exit $?
47
48 cd "$olddir"
49 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"