diff options
| author | John Snow <jsnow@redhat.com> | 2015-11-12 11:29:49 -0500 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2015-11-12 16:53:44 +0000 |
| commit | cfcc7c144879ebe61ac2472216314fc1331b4450 (patch) | |
| tree | f6fdbb685bfa7aa612be54410b693913c61013e5 | |
| parent | ed6c64489ef11d9ac5fb4b4c89d455a4f1ae8083 (diff) | |
| download | focaccia-qemu-cfcc7c144879ebe61ac2472216314fc1331b4450.tar.gz focaccia-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>
| -rwxr-xr-x | configure | 3 |
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" |