Auto merge of #25938 - wca:fix-clang-check-compatibility, r=alexcrichton

Not all /bin/sh have [[ available, so for compatibility using case..esac
for pattern matching is better.
This commit is contained in:
bors 2015-06-03 06:07:44 +00:00
commit a5979be9fe

10
configure vendored
View File

@ -973,8 +973,8 @@ fi
if [ ! -z "$CFG_ENABLE_CLANG" ]
then
if [ -z "$CC" ] || [[ $CC == *clang ]]
then
case "$CC" in
(''|*clang)
CFG_CLANG_VERSION=$($CFG_CC \
--version \
| grep version \
@ -994,9 +994,11 @@ then
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
;;
esac
else
;;
(*)
msg "skipping CFG_ENABLE_CLANG version check; provided CC=$CC"
fi
;;
esac
fi
if [ ! -z "$CFG_ENABLE_CCACHE" ]