aboutsummaryrefslogtreecommitdiff
path: root/mesalib/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/autogen.sh')
-rw-r--r--mesalib/autogen.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/mesalib/autogen.sh b/mesalib/autogen.sh
index b5f6ec4a9..626d21334 100644
--- a/mesalib/autogen.sh
+++ b/mesalib/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 "$@"