gbm/dri: Expose visuals table through gbm_dri_device
[mesa.git] / autogen.sh
index b5f6ec4a97a2bfa8b9d881111a7a7d4e7a4a6de7..c8960971d248bce5a8d1f5fe149133bb498509ba 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 "$@"