From 9ab13f3837d214835ed30c1a8a2364f8a27291f2 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Mon, 15 Oct 2018 04:05:32 +0000 Subject: [PATCH] detect clang++ Given $CC is clang-* in this case branch the sed should match against clang, not gcc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1f8c61f355..e887ddd3bf 100644 --- a/configure.ac +++ b/configure.ac @@ -198,7 +198,7 @@ AS_CASE([$CC], gcc_prefix=gcc- gcc_suffix=`echo "$CC" | sed 's/^gcc//'` AC_PROG_CXX(g++${gcc_suffix})], [clang-*], [ - gcc_prefix=clang- gcc_suffix=`echo "$CC" | sed 's/^gcc//'` + gcc_prefix=clang- gcc_suffix=`echo "$CC" | sed 's/^clang//'` AC_PROG_CXX(clang++${gcc_suffix})], [gcc_prefix= gcc_suffix=])