2 # Copyright (C) Igor Sysoev
28 ngx_long_regex_cont=$ngx_regex_cont
29 ngx_long_cont=$ngx_cont
33 if test -n "$CFLAGS"; then
35 CC_TEST_FLAGS="$CFLAGS $NGX_CC_OPT"
51 # gcc 2.7.2.3, 2.8.1, 2.95.4, egcs-1.1.2
52 # 3.0.4, 3.1.1, 3.2.3, 3.3.2, 3.3.3, 3.3.4, 3.4.0, 3.4.2
59 # Intel C++ compiler 7.1, 8.0, 8.1
65 # Sun C 5.7 Patch 117837-04 2005/05/11
77 # aCC: HP ANSI C++ B3910B A.03.55.02
83 # MSVC++ 6.0 SP2, MSVC++ Toolkit 2003
89 # Open Watcom C 1.0, 1.2
102 CC_TEST_FLAGS="$CC_TEST_FLAGS $NGX_CC_OPT"
106 CFLAGS="$CFLAGS $NGX_CC_OPT"
109 if [ "$NGX_PLATFORM" != win32 ]; then
111 if test -n "$NGX_LD_OPT"; then
112 ngx_feature=--with-ld-opt=\"$NGX_LD_OPT\"
121 if [ $ngx_found = no ]; then
122 echo $0: error: the invalid value in --with-ld-opt=\"$NGX_LD_OPT\"
128 ngx_feature="gcc variadic macros"
129 ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
131 ngx_feature_incs="#include <stdio.h>
132 #define var(dummy, args...) sprintf(args)"
135 ngx_feature_test="char buf[30]; buf[0] = '0';
136 var(0, buf, \"%d\", 1);
137 if (buf[0] != '1') return 1"
141 if [ "$NGX_CC_NAME" = "ccc" ]; then
142 echo "checking for C99 variadic macros ... disabled"
144 ngx_feature="C99 variadic macros"
145 ngx_feature_name="NGX_HAVE_C99_VARIADIC_MACROS"
147 ngx_feature_incs="#include <stdio.h>
148 #define var(dummy, ...) sprintf(__VA_ARGS__)"
151 ngx_feature_test="char buf[30]; buf[0] = '0';
152 var(0, buf, \"%d\", 1);
153 if (buf[0] != '1') return 1"
158 # ngx_feature="inline"
161 # ngx_feature_incs="int inline f(void) { return 1 }"
167 # if [ $ngx_found = yes ]; then