gst-autogen.sh: Instead of only passing certain arguments to configure, pass anything...
authorAndy Wingo <wingo@pobox.com>
Mon, 25 Feb 2008 17:49:48 +0000 (17:49 +0000)
committerAndy Wingo <wingo@pobox.com>
Mon, 25 Feb 2008 17:49:48 +0000 (17:49 +0000)
Original commit message from CVS:
2008-02-25  Andy Wingo  <wingo@pobox.com>

* gst-autogen.sh: Instead of only passing certain arguments to
configure, pass anything that we didn't handle. Much friendlier.
Fixes #34412.

ChangeLog
gst-autogen.sh

index 2af8ca1..606a304 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-25  Andy Wingo  <wingo@pobox.com>
+
+       * gst-autogen.sh: Instead of only passing certain arguments to
+       configure, pass anything that we didn't handle. Much friendlier.
+       Fixes #34412.
+
 2008-02-23  Jan Schmidt  <Jan.Schmidt@sun.com>
 
        * m4/gst-error.m4:
index 7b31212..ae60f7e 100644 (file)
@@ -227,31 +227,18 @@ autogen_options ()
           echo "+ debug output enabled"
           shift
           ;;
-      --prefix=*)
-         CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT --prefix=$optarg"
-         echo "+ passing --prefix=$optarg to configure"
-          shift
-          ;;
-      --prefix)
-         shift
-         echo "DEBUG: $1"
-         CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT --prefix=$1"
-         echo "+ passing --prefix=$1 to configure"
-          shift
-          ;;
-
       -h|--help)
           echo "autogen.sh (autogen options) -- (configure options)"
           echo "autogen.sh help options: "
           echo " --noconfigure            don't run the configure script"
           echo " --nocheck                don't do version checks"
           echo " --debug                  debug the autogen process"
-         echo " --prefix                 will be passed on to configure"
           echo
           echo " --with-autoconf PATH     use autoconf in PATH"
           echo " --with-automake PATH     use automake in PATH"
           echo
-          echo "to pass options to configure, put them as arguments after -- "
+          echo "Any argument either not in the above list or after a '--' will be "
+          echo "passed to ./configure."
          exit 1
           ;;
       --with-automake=*)
@@ -266,13 +253,12 @@ autogen_options ()
          CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-autoconf=$AUTOCONF"
           shift
           ;;
-      --disable*|--enable*|--with*)
-          echo "+ passing option $1 to configure"
+      --) shift ; break ;;
+      *)
+          echo "+ passing argument $1 to configure"
          CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $1"
           shift
           ;;
-       --) shift ; break ;;
-      *) echo "- ignoring unknown autogen.sh argument $1"; shift ;;
     esac
   done