autogen.sh: Don't run configure if NOCONFIGURE is set
authorColin Walters <walters@verbum.org>
Mon, 1 Aug 2011 16:59:32 +0000 (12:59 -0400)
committerColin Walters <walters@verbum.org>
Mon, 1 Aug 2011 18:11:45 +0000 (14:11 -0400)
See http://people.gnome.org/~walters/docs/build-api.txt

autogen.sh

index f722e94..d139fa4 100755 (executable)
@@ -85,8 +85,9 @@ autoconf || echo "autoconf failed - version 2.5x is probably required"
 
 cd $ORIGDIR
 
-run_configure=true
-for arg in $*; do
+if test x"$NOCONFIGURE" = x; then
+  run_configure=true
+  for arg in $*; do
     case $arg in 
         --no-configure)
             run_configure=false
@@ -94,7 +95,10 @@ for arg in $*; do
         *)
             ;;
     esac
-done
+  done
+else
+  run_configure=false
+fi
 
 if $run_configure; then
     $srcdir/configure --enable-maintainer-mode --config-cache "$@"