make autoconf check listen to --nocheck
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 16 Apr 2002 14:07:45 +0000 (14:07 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 16 Apr 2002 14:07:45 +0000 (14:07 +0000)
Original commit message from CVS:
make autoconf check listen to --nocheck

gst-autogen.sh

index 2d97284..3b250b5 100644 (file)
@@ -110,13 +110,16 @@ autoconf_2.52d_check ()
 {
   # autoconf 2.52d has a weird issue involving a yes:no error
   # so don't allow it's use
-  ac_version=`$autoconf --version|head -n 1|sed 's/^[a-zA-z\.\ ()]*//;s/ .*$//'`
-  if test "$ac_version" = "2.52d"; then
-    echo "autoconf 2.52d has an issue with our current build."
-    echo "We don't know who's to blame however.  So until we do, get a"
-    echo "regular version.  RPM's of a working version are on the gstreamer site."
-    exit 1
-  fi
+  test -z "$NOCHECK" && {
+    ac_version=`$autoconf --version|head -n 1|sed 's/^[a-zA-z\.\ ()]*//;s/ .*$//'`
+    if test "$ac_version" = "2.52d"; then
+      echo "autoconf 2.52d has an issue with our current build."
+      echo "We don't know who's to blame however.  So until we do, get a"
+      echo "regular version.  RPM's of a working version are on the gstreamer site."
+      exit 1
+    fi
+  }
+  return 0
 }
 
 die_check ()