diff options
Diffstat (limited to 'meta/packages/webkit/files/autogen.sh')
-rw-r--r-- | meta/packages/webkit/files/autogen.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/packages/webkit/files/autogen.sh b/meta/packages/webkit/files/autogen.sh index b7f7d37b2f..1c0fc61156 100644 --- a/meta/packages/webkit/files/autogen.sh +++ b/meta/packages/webkit/files/autogen.sh | |||
@@ -1,8 +1,11 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | 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 | ||
3 | srcdir=`dirname $0` | 5 | srcdir=`dirname $0` |
4 | test -z "$srcdir" && srcdir=. | 6 | test -z "$srcdir" && srcdir=. |
5 | 7 | ||
8 | ORIGDIR=`pwd` | ||
6 | cd $srcdir | 9 | cd $srcdir |
7 | 10 | ||
8 | DIE=0 | 11 | DIE=0 |
@@ -37,4 +40,6 @@ autoheader || exit $? | |||
37 | automake --foreign --add-missing || exit $? | 40 | automake --foreign --add-missing || exit $? |
38 | autoconf || exit $? | 41 | autoconf || exit $? |
39 | 42 | ||
40 | ./configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $? | 43 | cd $ORIGDIR || exit 1 |
44 | |||
45 | $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $? | ||