summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJohn Snow2015-11-12 17:29:49 +0100
committerPeter Maydell2015-11-12 17:53:44 +0100
commitcfcc7c144879ebe61ac2472216314fc1331b4450 (patch)
treef6fdbb685bfa7aa612be54410b693913c61013e5 /configure
parenttarget-arm: Update PC before calling gen_helper_check_breakpoints() (diff)
downloadqemu-cfcc7c144879ebe61ac2472216314fc1331b4450.tar.gz
qemu-cfcc7c144879ebe61ac2472216314fc1331b4450.tar.xz
qemu-cfcc7c144879ebe61ac2472216314fc1331b4450.zip
configure: check for $cxx before use
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 46fd8bdf8c..f75df4b68f 100755
--- 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"