From c8728cfbd19ecde9d43af05829e00bcfe7d86eed Mon Sep 17 00:00:00 2001 From: "Field G. Van Zee" Date: Thu, 5 Aug 2021 15:17:09 -0500 Subject: [PATCH] Fixed configure breakage on OSX clang. Details: - Accept either 'clang' or 'LLVM' in vendor string when greping for the version number (after determining that we're working with clang). Thanks to Devin Matthews for this fix. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 27986204a..fd4f49038 100755 --- a/configure +++ b/configure @@ -1422,7 +1422,7 @@ get_compiler_version() cc_version=$(${cc} -dumpversion) # If compiler is AOCC, first grep for clang and then the version number. elif [ "${cc_vendor}" = "clang" ]; then - cc_version=$(echo "${vendor_string}" | egrep -o 'clang version [0-9]+\.[0-9]+\.?[0-9]*' | egrep -o '[0-9]+\.[0-9]+\.?[0-9]*') + cc_version=$(echo "${vendor_string}" | egrep -o '(clang|LLVM) version [0-9]+\.[0-9]+\.?[0-9]*' | egrep -o '[0-9]+\.[0-9]+\.?[0-9]*') elif [ "${cc_vendor}" = "oneAPI" ]; then # Treat Intel oneAPI's clang as clang, not icc. cc_vendor="clang"