applied steveb's numeric comparison patch made autogen swallow arguments meant for...
authorThomas Vander Stichele <thomas@apestaart.org>
Wed, 6 Feb 2002 13:21:31 +0000 (13:21 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Wed, 6 Feb 2002 13:21:31 +0000 (13:21 +0000)
Original commit message from CVS:
applied steveb's numeric comparison patch
made autogen swallow arguments meant for it
cleaned up a few bits

gst-autogen.sh

index aaa3d8a..4f8881c 100644 (file)
@@ -58,14 +58,14 @@ version_check ()
   #start checking the version
   debug "version check"
 
-  if [ ! "$pkg_major" \> "$MAJOR" ]; then
+  if [ ! "$pkg_major" -gt "$MAJOR" ]; then
     debug "$pkg_major <= $MAJOR"
-    if [ "$pkg_major" \< "$MAJOR" ]; then
+    if [ "$pkg_major" -lt "$MAJOR" ]; then
       WRONG=1
-    elif [ ! "$pkg_minor" \> "$MINOR" ]; then
-      if [ "$pkg_minor" \< "$MINOR" ]; then
+    elif [ ! "$pkg_minor" -gt "$MINOR" ]; then
+      if [ "$pkg_minor" -lt "$MINOR" ]; then
         WRONG=1
-      elif [ "$pkg_micro" \< "$MICRO" ]; then
+      elif [ "$pkg_micro" -lt "$MICRO" ]; then
        WRONG=1
       fi
     fi
@@ -113,6 +113,8 @@ autogen_options ()
           echo " --autogen-nocheck        don't do version checks"
           echo " --autogen-debug          debug the autogen process"
          exit 1
+      else
+          CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $i"
       fi
   done
 }