build: Fix autogen.sh to allow out-of-tree builds
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
10
autogen.sh
10
autogen.sh
@@ -3,17 +3,11 @@
|
|||||||
srcdir=`dirname "$0"`
|
srcdir=`dirname "$0"`
|
||||||
test -z "$srcdir" && srcdir=.
|
test -z "$srcdir" && srcdir=.
|
||||||
|
|
||||||
SRCDIR=`(cd "$srcdir" && pwd)`
|
|
||||||
ORIGDIR=`pwd`
|
ORIGDIR=`pwd`
|
||||||
|
cd "$srcdir"
|
||||||
if test "x$SRCDIR" != "x$ORIGDIR"; then
|
|
||||||
echo "Mesa cannot be built when srcdir != builddir" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
MAKEFLAGS=""
|
|
||||||
|
|
||||||
autoreconf -v --install || exit 1
|
autoreconf -v --install || exit 1
|
||||||
|
cd $ORIGDIR || exit $?
|
||||||
|
|
||||||
if test -z "$NOCONFIGURE"; then
|
if test -z "$NOCONFIGURE"; then
|
||||||
"$srcdir"/configure "$@"
|
"$srcdir"/configure "$@"
|
||||||
|
Reference in New Issue
Block a user