build: Fix gtest out-of-tree build
[mesa.git] / autogen.sh
index c76bf8b07bd001c641babb4f129f426036d513c4..b5f6ec4a97a2bfa8b9d881111a7a7d4e7a4a6de7 100755 (executable)
@@ -15,4 +15,6 @@ MAKEFLAGS=""
 
 autoreconf -v --install || exit 1
 
-"$srcdir"/configure "$@"
+if test -z "$NOCONFIGURE"; then
+    "$srcdir"/configure "$@"
+fi