2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 if [ "$NGX_PLATFORM" != win32 ]; then
8 ngx_feature="C compiler"
17 if [ $ngx_found = no ]; then
19 echo $0: error: C compiler $CC is not found
27 if [ "$CC" = cl ]; then
29 echo " + using Microsoft Visual C++ compiler"
31 elif [ "$CC" = wcl386 ]; then
33 echo " + using Open Watcom C compiler"
35 elif [ "$CC" = bcc32 ]; then
37 echo " + using Borland C++ compiler"
39 elif `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
41 echo " + using Intel C++ compiler"
43 elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
45 echo " + using GNU C compiler"
47 elif `$CC -v 2>&1 | grep '\(clang\|LLVM\) version' >/dev/null 2>&1`; then
49 echo " + using Clang C compiler"
51 elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
53 echo " + using Sun C compiler"
55 elif `$CC -V 2>&1 | grep '^Compaq C' >/dev/null 2>&1`; then
57 echo " + using Compaq C compiler"
59 elif `$CC -V 2>&1 | grep '^aCC: ' >/dev/null 2>&1`; then
61 echo " + using HP aC++ compiler"