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>
This commit is contained in:
John Snow 2015-11-12 11:29:49 -05:00 committed by Peter Maydell
parent ed6c64489e
commit cfcc7c1448

3
configure vendored
View file

@ -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"