docs: Add ScrollActor to the API reference
[profile/ivi/clutter.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 ORIGDIR=`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 if automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
24     AUTOMAKE=automake-1.11
25     ACLOCAL=aclocal-1.11
26     export AUTOMAKE ACLOCAL
27 else
28         echo
29         echo "You must have automake 1.11.x installed to compile $PROJECT
30 ECT."
31         echo "Install the appropriate package for your distribution,"
32         echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
33         exit 1
34 fi
35
36 (gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
37         echo
38         echo "You must have gtk-doc installed to compile $PROJECT."
39         echo "Install the appropriate package for your distribution,"
40         echo "or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
41         exit 1
42 }
43
44 # NOCONFIGURE is used by gnome-common
45 if test -z "$NOCONFIGURE"; then
46         if test -z "$*"; then
47                 echo "I am going to run ./configure with no arguments - if you wish "
48                 echo "to pass any to it, please specify them on the $0 command line."
49         fi
50 fi
51
52 if test -z "$ACLOCAL_FLAGS"; then
53         acdir=`$ACLOCAL --print-ac-dir`
54         m4list="glib-2.0.m4"
55         for file in $m4list; do
56                 if [ ! -f "$acdir/$file" ]; then
57                         echo "WARNING: aclocal's directory is $acdir, but..."
58                         echo "         no file $acdir/$file"
59                         echo "         You may see fatal macro warnings below."
60                         echo "         If these files are installed in /some/dir, set the ACLOCAL_FLAGS "
61                         echo "         environment variable to \"-I /some/dir\", or install"
62                         echo "         $acdir/$file."
63                         echo ""
64                 fi
65         done
66 fi
67
68 rm -rf autom4te.cache
69
70 gtkdocize || exit $?
71 autoreconf -vfi || exit $?
72 cd $ORIGDIR || exit $?
73
74 if test -z "$NOCONFIGURE"; then
75         $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
76         echo "Now type 'make' to compile $PROJECT."
77 fi