2005-04-13 19:49:56 +00:00
|
|
|
#! /bin/sh
|
2008-04-09 10:51:15 +00:00
|
|
|
|
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
|
|
|
PROJECT=Clutter
|
|
|
|
TEST_TYPE=-d
|
|
|
|
FILE=clutter
|
|
|
|
|
|
|
|
test $TEST_TYPE $FILE || {
|
|
|
|
echo "You must run this script in the top-level $PROJECT directory"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2008-04-17 10:41:03 +00:00
|
|
|
GTKDOCIZE=`which gtkdocize`
|
|
|
|
if test -z $GTKDOCIZE; then
|
|
|
|
echo "*** No gtk-doc support ***"
|
2008-04-28 15:38:30 +00:00
|
|
|
echo "EXTRA_DIST =" > gtk-doc.make
|
2008-04-17 10:41:03 +00:00
|
|
|
else
|
|
|
|
gtkdocize || exit $?
|
|
|
|
fi
|
2007-06-19 14:15:42 +00:00
|
|
|
|
2008-06-10 16:47:38 +00:00
|
|
|
GLIB_GETTEXTIZE=`which glib-gettextize`
|
|
|
|
if test -z $GLIB_GETTEXTIZE; then
|
|
|
|
echo "*** No glib-gettextize ***"
|
|
|
|
exit 1
|
|
|
|
else
|
2008-06-11 09:36:35 +00:00
|
|
|
glib-gettextize -f || exit $?
|
2008-06-10 16:47:38 +00:00
|
|
|
fi
|
|
|
|
|
2008-06-11 09:36:35 +00:00
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
if test -z $AUTORECONF; then
|
|
|
|
echo "*** No autoreconf found ***"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
autoreconf -v --install || exit $?
|
|
|
|
fi
|
2008-04-09 10:51:15 +00:00
|
|
|
|
2008-04-28 13:18:16 +00:00
|
|
|
./configure "$@" && echo "Now type 'make' to compile $PROJECT."
|