From d2d0852271ca2d0a4df4c31312289a816266a0aa Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 8 Jan 2018 17:10:42 +0000 Subject: [PATCH] configure: Fix incorrect string comparison operator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In commit c97d6d2cdf97ed we accidentally added code to configure that uses '==' for string equality testing. This is a bashism -- the portable way to write this is '='. This fixes the "Unexpected operator error" complaint produced if the system /bin/sh is dash. Fixes: c97d6d2cdf97ed Reported-by: Philippe Mathieu-Daudé Signed-off-by: Peter Maydell Reviewed-by: Eric Blake Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 1515431442-23795-1-git-send-email-peter.maydell@linaro.org --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 56f9716609..6a040821c6 100755 --- a/configure +++ b/configure @@ -5076,7 +5076,7 @@ fi ################################################# # Check to see if we have the Hypervisor framework -if [ "$darwin" == "yes" ] ; then +if [ "$darwin" = "yes" ] ; then cat > $TMPC << EOF #include int main() { return 0;}