PyWebKitGtk 1.0.2 release
[pywebkitgtk.git] / autogen.sh
blobf34fc87bacaa0ee7bd756757aa54c38c500db498
1 #! /bin/sh
3 # Allow invocation from a separate build directory; in that case, we change
4 # to the source directory to run the auto*, then change back before running configure
5 srcdir=`dirname $0`
6 test -z "$srcdir" && srcdir=.
8 PROJECT="pywebkitgtk"
9 ORIGDIR=`pwd`
10 cd $srcdir
12 DIE=0
14 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
15 echo
16 echo "You must have autoconf installed to compile $PROJECT."
17 echo "Install the appropriate package for your distribution,"
18 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
19 DIE=1
22 (automake --version) < /dev/null > /dev/null 2>&1 || {
23 echo
24 echo "You must have automake installed to compile $PROJECT."
25 echo "Install the appropriate package for your distribution,"
26 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
27 DIE=1
30 LIBTOOLIZE=libtoolize
31 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
32 LIBTOOLIZE=glibtoolize
33 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
34 echo
35 echo "You must have libtool installed to compile $PROJECT."
36 echo "Install the appropriate package for your distribution,"
37 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
38 DIE=1
42 if test "$DIE" -eq 1; then
43 exit 1
46 rm -rf $top_srcdir/autom4te.cache
48 aclocal -I m4 || exit $?
49 $LIBTOOLIZE --force || exit $?
50 autoheader || exit $?
51 automake --foreign --add-missing || exit $?
52 autoconf || exit $?
54 cd $ORIGDIR || exit 1
56 $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?