summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2015-11-12 11:29:49 -0500
committerPeter Maydell <peter.maydell@linaro.org>2015-11-12 16:53:44 +0000
commitcfcc7c144879ebe61ac2472216314fc1331b4450 (patch)
treef6fdbb685bfa7aa612be54410b693913c61013e5 /configure
parented6c64489ef11d9ac5fb4b4c89d455a4f1ae8083 (diff)
downloadqemu-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"