Klaus Demo nginx / 7a7fc70
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. Maxim Dounin 2 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
44 # clang
55
66
7 NGX_CLANG_VER=`$CC -v 2>&1 | grep '\(clang\|LLVM\) version' 2>&1 \
7 NGX_CLANG_VER=`$CC -v 2>&1 | grep 'version' 2>&1 \
88 | sed -e 's/^.* version \(.*\)/\1/'`
99
1010 echo " + clang version: $NGX_CLANG_VER"
4343 NGX_CC_NAME=gcc
4444 echo " + using GNU C compiler"
4545
46 elif `$CC -v 2>&1 | grep '\(clang\|LLVM\) version' >/dev/null 2>&1`; then
46 elif `$CC -v 2>&1 | grep 'clang version' >/dev/null 2>&1`; then
47 NGX_CC_NAME=clang
48 echo " + using Clang C compiler"
49
50 elif `$CC -v 2>&1 | grep 'LLVM version' >/dev/null 2>&1`; then
4751 NGX_CC_NAME=clang
4852 echo " + using Clang C compiler"
4953