X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=autogen.sh;h=1c0fc61156971033268bd0a11156d287f2827d58;hp=b7f7d37b2f759b1a33247f57030586d880f3e5cd;hb=eee49e86f921216840ac3872d2b3ecb27c67d110;hpb=9827d134ee92f28460cdaaeb3d472fa081f16823 diff --git a/autogen.sh b/autogen.sh index b7f7d37b2f75..1c0fc6115697 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,8 +1,11 @@ #! /bin/sh +# Allow invocation from a separate build directory; in that case, we change +# to the source directory to run the auto*, then change back before running configure srcdir=`dirname $0` test -z "$srcdir" && srcdir=. +ORIGDIR=`pwd` cd $srcdir DIE=0 @@ -37,4 +40,6 @@ autoheader || exit $? automake --foreign --add-missing || exit $? autoconf || exit $? -./configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $? +cd $ORIGDIR || exit 1 + +$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?