From f1ac7122645bbeb56e7a4401f71a7055cb2431c4 Mon Sep 17 00:00:00 2001 From: Anton Mitrofanov Date: Mon, 22 May 2017 23:59:32 +0300 Subject: [PATCH] configure: Don't try to detect clang by $CC Only check if option -Werror=unknown-warning-option is supported before adding it --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 52871c43..f7b14d9d 100755 --- a/configure +++ b/configure @@ -589,7 +589,7 @@ else fi fi -if [[ "$cc_base" = clang* ]]; then +if [ $compiler = GNU ]; then if cc_check '' -Werror=unknown-warning-option ; then CHECK_CFLAGS="$CHECK_CFLAGS -Werror=unknown-warning-option" fi -- 2.40.0