Opened 14 years ago
Closed 14 years ago
#1939 closed defect (fixed)
configure does not check for clang correctly
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | build system |
Version: | HEAD | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
--- configure.orig 2011-06-24 11:52:31.000000000 -0700
+++ configure 2011-06-24 11:53:10.000000000 -0700
@@ -1661,8 +1661,7 @@ else
echores "$cc_version"
break
fi
- cc_name_tmp=$($_cc -v 2>&1 | head -n 1 | cut -d ' ' -f 1)
- if test "$cc_name_tmp" = "clang"; then
+ if $_cc -v 2>&1 | grep -q "clang"; then
echocheck "$_cc version"
cc_vendor=clang
cc_version=$($_cc -dumpversion 2>&1)
$ /opt/llvm/bin/clang -v
clang version 3.0 (http://llvm.org/git/clang.git ffb945ffb5d29b80fd93649c3572b6d87abce3fc)
Target: x86_64-apple-darwin11.0.0
Thread model: posix
$ /usr/bin/clang -v
Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.0.0
Thread model: posix
Change History (1)
comment:1 by , 14 years ago
op_sys: | Mac OS X → All |
---|---|
rep_platform: | Other → All |
Resolution: | → fixed |
Status: | new → closed |
I applied your patch, thank you.