diff options
| author | Will Andrews <will@firepipe.net> | 2015-05-23 13:57:50 -0600 |
|---|---|---|
| committer | Will Andrews <will@firepipe.net> | 2015-05-23 14:11:50 -0600 |
| commit | bc85eb49f5d5ed88ba704df760c31ef7f47083ec (patch) | |
| tree | d9fdafa06358c9731e0679fdd11aa0093e415139 | |
| parent | a33b808ac0ec37a8ef78b0581b3b061271c93ab8 (diff) | |
| download | rust-bc85eb49f5d5ed88ba704df760c31ef7f47083ec.tar.gz rust-bc85eb49f5d5ed88ba704df760c31ef7f47083ec.zip | |
Use case..esac instead of [[.
Not all /bin/sh have [[ available, so for compatibility using case..esac for pattern matching is better.
| -rwxr-xr-x | configure | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure index efa836ca976..1dc87f6b6ba 100755 --- a/configure +++ b/configure @@ -977,8 +977,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 \ @@ -998,9 +998,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" ] |
