autogen.sh 1.17 KB
Newer Older
1 2
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
3

4 5
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
6

7
olddir=`pwd`
8

9
cd $srcdir
10
PROJECT=Clutter
11 12
TEST_TYPE=-f
FILE=clutter/clutter.h
13

14 15 16 17
test $TEST_TYPE $FILE || {
	echo "You must run this script in the top-level $PROJECT directory"
	exit 1
}
18

19 20
# GNU gettext automake support doesn't get along with git.
# https://bugzilla.gnome.org/show_bug.cgi?id=661128
21
touch -t 200001010000 po/clutter-1.0.pot
22

23 24 25
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
        echo "*** No GTK-Doc found, please install it ***"
26 27 28
        exit 1
fi

29 30 31
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
        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 38 39 40 41 42 43 44 45
        if test -z "$*"; then
                echo "I am going to run ./configure with no arguments - if you wish "
                echo "to pass any to it, please specify them on the $0 command line."
        fi
fi

rm -rf autom4te.cache

gtkdocize || exit $?
46
autoreconf --force --install --verbose || exit $?
47

48 49
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"