Mercurial > hg > nginx
comparison auto/cc/clang @ 7161:325b3042edd6
Configure: fixed clang detection on MINIX.
As per POSIX, basic regular expressions have no alternations, and the
interpretation of the "\|" construct is undefined. At least on MINIX
and Solaris grep interprets "\|" as literal "|", and not as an alternation
as GNU grep does. Removed such constructs introduced in f1daa0356a1d.
This fixes clang detection on MINIX.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 23 Nov 2017 16:33:40 +0300 |
parents | 9eefb38f0005 |
children | ceab908790c4 |
comparison
equal
deleted
inserted
replaced
7160:0a5e3d893a0c | 7161:325b3042edd6 |
---|---|
3 | 3 |
4 | 4 |
5 # clang | 5 # clang |
6 | 6 |
7 | 7 |
8 NGX_CLANG_VER=`$CC -v 2>&1 | grep '\(clang\|LLVM\) version' 2>&1 \ | 8 NGX_CLANG_VER=`$CC -v 2>&1 | grep 'version' 2>&1 \ |
9 | sed -e 's/^.* version \(.*\)/\1/'` | 9 | sed -e 's/^.* version \(.*\)/\1/'` |
10 | 10 |
11 echo " + clang version: $NGX_CLANG_VER" | 11 echo " + clang version: $NGX_CLANG_VER" |
12 | 12 |
13 have=NGX_COMPILER value="\"clang $NGX_CLANG_VER\"" . auto/define | 13 have=NGX_COMPILER value="\"clang $NGX_CLANG_VER\"" . auto/define |