From b6267e0ff770545de88dfb5d3f176ea73f453730 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Sun, 24 Apr 2016 13:32:43 +0200 Subject: [PATCH] configure: Fix clang detection with versioned binaries Correctly detect clang binaries that has the version number appended as a suffix to the file name, e.g. `clang38`. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 7c01ebcb..dcf77658 100755 --- a/configure +++ b/configure @@ -558,7 +558,7 @@ else fi fi -if [[ "$cc_base" = clang || "$cc_base" = clang[\ .]* ]]; then +if [[ "$cc_base" = clang* ]]; then if cc_check '' -Werror=unknown-warning-option ; then CHECK_CFLAGS="$CHECK_CFLAGS -Werror=unknown-warning-option" fi -- 2.40.0