From cfcc7c144879ebe61ac2472216314fc1331b4450 Mon Sep 17 00:00:00 2001 From: John Snow Date: Thu, 12 Nov 2015 11:29:49 -0500 Subject: [PATCH] configure: check for $cxx before use I broke this when adding checks for clang++. Reported-by: Laurent Vivier Signed-off-by: John Snow Message-id: 1447345789-840-1-git-send-email-jsnow@redhat.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"