From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwul2-0006j6-Q7 for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:29:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwukx-0006QK-SP for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:29:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwukx-0006Q8-OG for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:29:51 -0500 From: John Snow Date: Thu, 12 Nov 2015 11:29:49 -0500 Message-Id: <1447345789-840-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PATCH] configure: check for $cxx before use List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lvivier@redhat.com, peter.maydell@linaro.org, John Snow I broke this when adding checks for clang++. Reported-by: Laurent Vivier Signed-off-by: John Snow --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 46fd8bd..f75df4b 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" -- 2.4.3