Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nginx / auto / cc / name
blobdc8d067edcb752e837858766dcf0351eef47221c
2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 if [ "$NGX_PLATFORM" != win32 ]; then
8     ngx_feature="C compiler"
9     ngx_feature_name=
10     ngx_feature_run=
11     ngx_feature_incs=
12     ngx_feature_path=
13     ngx_feature_libs=
14     ngx_feature_test=
15     . auto/feature
17     if [ $ngx_found = no ]; then
18         echo
19         echo $0: error: C compiler $CC is not found
20         echo
21         exit 1
22     fi
27 if [ "$CC" = cl ]; then
28     if `$NGX_WINE $CC -v 2>&1 \
29         | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16' \
30         >/dev/null 2>&1`; then
32         NGX_CC_NAME=msvc10
33         echo " + using Microsoft Visual C++ 10 compiler"
35     elif `$NGX_WINE $CC -v 2>&1 \
36         | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14' \
37         >/dev/null 2>&1`; then
39         NGX_CC_NAME=msvc8
40         echo " + using Microsoft Visual C++ 8 compiler"
42     elif `$NGX_WINE $CC -v 2>&1 \
43         | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13' \
44         >/dev/null 2>&1`; then
46         NGX_CC_NAME=msvc7
47         echo " + using Microsoft Visual C++ 7 compiler"
49     else
50         NGX_CC_NAME=msvc
51         echo " + using Microsoft Visual C++ compiler"
52     fi
54 elif [ "$CC" = wcl386 ]; then
55     NGX_CC_NAME=owc
56     echo " + using Open Watcom C compiler"
58 elif [ "$CC" = bcc32 ]; then
59     NGX_CC_NAME=bcc
60     echo " + using Borland C++ compiler"
62 elif `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
63     NGX_CC_NAME=icc
64     echo " + using Intel C++ compiler"
66 elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
67     NGX_CC_NAME=gcc
68     echo " + using GNU C compiler"
70 elif `$CC -v 2>&1 | grep '\(clang\|LLVM\) version' >/dev/null 2>&1`; then
71     NGX_CC_NAME=clang
72     echo " + using Clang C compiler"
74 elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
75     NGX_CC_NAME=sunc
76     echo " + using Sun C compiler"
78 elif `$CC -V 2>&1 | grep '^Compaq C' >/dev/null 2>&1`; then
79     NGX_CC_NAME=ccc
80     echo " + using Compaq C compiler"
82 elif `$CC -V 2>&1 | grep '^aCC: ' >/dev/null 2>&1`; then
83     NGX_CC_NAME=acc
84     echo " + using HP aC++ compiler"
86 else
87     NGX_CC_NAME=unknown