OSDN Git Service

nv50,nvc0: fix depth range when halfz is enabled
[android-x86/external-mesa.git] / autogen.sh
index b5f6ec4..c896097 100755 (executable)
@@ -3,17 +3,11 @@
 srcdir=`dirname "$0"`
 test -z "$srcdir" && srcdir=.
 
-SRCDIR=`(cd "$srcdir" && 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 --force --verbose --install || exit 1
+cd "$ORIGDIR" || exit $?
 
 if test -z "$NOCONFIGURE"; then
     "$srcdir"/configure "$@"