Commit cfcc7c14 authored by John Snow's avatar John Snow Committed by Peter Maydell
Browse files

configure: check for $cxx before use



I broke this when adding checks for clang++.

Reported-by: default avatarLaurent Vivier <lvivier@redhat.com>
Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
Message-id: 1447345789-840-1-git-send-email-jsnow@redhat.com
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent ed6c6448
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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"