Mesa (master): build: Fix autogen.sh to allow out-of-tree builds
Matt Turner
mattst88 at kemper.freedesktop.org
Tue Aug 14 18:33:34 UTC 2012
Module: Mesa
Branch: master
Commit: 1b200d900155722ec696bbd711a38ee0e04c4895
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b200d900155722ec696bbd711a38ee0e04c4895
Author: Matt Turner <mattst88 at gmail.com>
Date: Wed Aug 1 14:11:31 2012 -0700
build: Fix autogen.sh to allow out-of-tree builds
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
autogen.sh | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index b5f6ec4..626d213 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,17 +3,11 @@
srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
-SRCDIR=`(cd "$srcdir" && pwd)`
ORIGDIR=`pwd`
-
-if test "x$SRCDIR" != "x$ORIGDIR"; then
- echo "Mesa cannot be built when srcdir != builddir" 1>&2
- exit 1
-fi
-
-MAKEFLAGS=""
+cd "$srcdir"
autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
if test -z "$NOCONFIGURE"; then
"$srcdir"/configure "$@"
More information about the mesa-commit
mailing list