Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[vuplus_openembedded] / packages / webkit / webkit-gtk / autogen.sh
1 #! /bin/sh
2
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=.
7
8 ORIGDIR=`pwd`
9 cd $srcdir
10
11 LIBTOOLIZE_FLAGS="--force --automake"
12 ACLOCAL_FLAGS="-I autotools"
13 AUTOMAKE_FLAGS="--foreign --add-missing"
14
15 DIE=0
16
17 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
18     echo
19     echo "You must have autoconf installed to compile $PROJECT."
20     echo "Install the appropriate package for your distribution,"
21     echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
22     DIE=1
23 }
24
25 (automake --version) < /dev/null > /dev/null 2>&1 || {
26     echo
27     echo "You must have automake installed to compile $PROJECT."
28     echo "Install the appropriate package for your distribution,"
29     echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
30     DIE=1
31 }
32
33 LIBTOOLIZE=libtoolize
34 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
35     LIBTOOLIZE=glibtoolize
36     ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
37         echo
38         echo "You must have libtool installed to compile $PROJECT."
39         echo "Install the appropriate package for your distribution,"
40         echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
41         DIE=1
42     }
43 }
44
45 if test "$DIE" -eq 1; then
46     exit 1
47 fi
48
49 rm -rf $top_srcdir/autom4te.cache
50
51 touch README INSTALL
52
53 aclocal $ACLOCAL_FLAGS || exit $?
54 $LIBTOOLIZE $LIBTOOLIZE_FLAGS || exit $?
55 autoheader || exit $?
56 automake $AUTOMAKE_FLAGS || exit $?
57 autoconf || exit $?
58
59 cd $ORIGDIR || exit 1
60
61 $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?