From 1342e47ccb49b992c81544c17424890a278eaa2a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 17 Jan 2008 00:20:26 +0000 Subject: [PATCH] ignore any extra arguments after --version for compatibility with the configure scripts created using 2.8 wxwin.m4 version git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wx-config.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wx-config.in b/wx-config.in index 6cabef88d4..8439e7eaf1 100755 --- a/wx-config.in +++ b/wx-config.in @@ -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 ;; -- 2.47.2