From: Vadim Zeitlin Date: Mon, 19 Oct 2009 09:17:39 +0000 (+0000) Subject: Use portable comparison syntax in wx-config. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0df5d6731668e490c464a826cb8016e54e4906d4 Use portable comparison syntax in wx-config. "==" is not portable in test and while it works in most shells, it fails in dash. Fix it by using "=". Closes #11349. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wx-config.in b/wx-config.in index 7f1be37817..cb0397a472 100755 --- a/wx-config.in +++ b/wx-config.in @@ -386,7 +386,7 @@ get_mask() # use 2.8 or 2.9 version of the mask: the difference is the presence of # debug type in pre-2.9 - if [ $is29orlater == 1 ]; then + if [ $is29orlater = 1 ]; then eval echo "\${$1_host:+\$$1_host-}\${$1_toolkit}\${$1_widgetset}-\${$1_chartype}\${$1_linkage:+-\$$1_linkage}-\${$1_version}\${$1_flavour}" else eval echo "\${$1_host:+\$$1_host-}\${$1_toolkit}\${$1_widgetset}-\${$1_chartype}-\${$1_debugtype}\${$1_linkage:+-\$$1_linkage}-\${$1_version}\${$1_flavour}"