summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-15 04:05:32 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-15 04:05:32 +0000
commit9ab13f3837d214835ed30c1a8a2364f8a27291f2 (patch)
treec34cdcca426e5c77a376819d1c611c4b8765d99b /configure.ac
parent9067330c6d03ee4b4b21fe4ec905648e2430729c (diff)
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
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1f8c61f..e887ddd 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=])