]> git.proxmox.com Git - mirror_qemu.git/commitdiff
configure: check for $cxx before use
authorJohn Snow <jsnow@redhat.com>
Thu, 12 Nov 2015 16:29:49 +0000 (11:29 -0500)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Nov 2015 16:53:44 +0000 (16:53 +0000)
I broke this when adding checks for clang++.

Reported-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1447345789-840-1-git-send-email-jsnow@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
configure

index 46fd8bdf8c7e603bcd5bab79166352567a945074..f75df4b68f63e81646e09a98fcc4ab01c12e12af 100755 (executable)
--- a/configure
+++ b/configure
@@ -4435,7 +4435,8 @@ fi
 if test "$fortify_source" != "no"; then
   if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
     fortify_source="no";
-  elif echo | $cxx -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
+  elif test -n "$cxx" &&
+       echo | $cxx -dM -E - | grep __clang__ >/dev/null 2>&1 ; then
     fortify_source="no";
   else
     fortify_source="yes"