configure: Avoid '==' bashism
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 20 Jul 2022 15:26:31 +0000 (16:26 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 26 Jul 2022 12:42:04 +0000 (13:42 +0100)
The '==' operator to test is a bashism; the standard way to copmare
strings is '='. This causes dash to complain:

../../configure: 681: test: linux: unexpected operator

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 20220720152631.450903-6-peter.maydell@linaro.org

configure

index d0e9a51462e93ca4e18d335742d5a58abd69cc41..2c19329d58cd4b780b6ff4f277bfc14fb5bfd03e 100755 (executable)
--- a/configure
+++ b/configure
@@ -678,7 +678,7 @@ werror=""
 
 meson_option_build_array() {
   printf '['
-  (if test "$targetos" == windows; then
+  (if test "$targetos" = windows; then
     IFS=\;
   else
     IFS=: