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
This commit is contained in:
Vadim Zeitlin
2008-01-17 00:20:26 +00:00
parent 85580bec1f
commit 1342e47ccb

View File

@@ -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
;;