]> git.saurik.com Git - wxWidgets.git/commitdiff
ignore any extra arguments after --version for compatibility with the configure scrip...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 17 Jan 2008 00:20:26 +0000 (00:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 17 Jan 2008 00:20:26 +0000 (00:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wx-config.in

index 6cabef88d43e8354d1f2e395ed784d1a33a08026..8439e7eaf1c8fddc6f0536c3ae03d0f09d9d0054 100755 (executable)
@@ -284,8 +284,14 @@ for arg do
         elif [ "$_name" = "optional_libs" ]; then
             optional_libs_parameters="${optional_libs_parameters:+$optional_libs_parameters }$arg"
         else
-            # These are unattached args and signify an error
-            input_parameters="${input_parameters:+$input_parameters }$arg"
+            # normally anything here are unattached arguments and signify an
+            # error but for compatibility with the 2.8 wx-config and,
+            # especially, configure scripts generated using 2.8 wxwin.m4 and
+            # hence doing `wx-config --version base,std`, we ignore anything
+            # following this option, just as 2.8 version used to do
+            if [ "$_name" != "version" ]; then
+                input_parameters="${input_parameters:+$input_parameters }$arg"
+            fi
         fi
         continue
         ;;