X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=autogen.sh;h=626d21334992a160241c02a78b0cb4dc7d5fceff;hb=b77243b9c245fd5957aa6d615a3d83d061f51cc1;hp=c76bf8b07bd001c641babb4f129f426036d513c4;hpb=37f21fce3bd323c361291215edeb7d8cf5f4335b;p=mesa.git diff --git a/autogen.sh b/autogen.sh index c76bf8b07bd..626d2133499 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,16 +3,12 @@ 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 $? -"$srcdir"/configure "$@" +if test -z "$NOCONFIGURE"; then + "$srcdir"/configure "$@" +fi