summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-07-05 13:02:25 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-07-05 13:02:25 +0000
commit802bc23574161e36aae49b10c5ebe86d691c3b4e (patch)
tree2eb4ef26d46fa1a5329400b922efbc0f5bb6d4b3 /auto
parentee37271a0f754f9eda44c9563f97b8cd6af402fd (diff)
downloadnginx-802bc23574161e36aae49b10c5ebe86d691c3b4e.tar.gz
nginx-802bc23574161e36aae49b10c5ebe86d691c3b4e.tar.bz2
try to use C99 variadic macros first:
AIX 5.3's XL C has problems with GCC style variadic macros
Diffstat (limited to 'auto')
-rw-r--r--auto/cc/conf26
1 files changed, 13 insertions, 13 deletions
diff --git a/auto/cc/conf b/auto/cc/conf
index 09ab9d32e..bdcce2c01 100644
--- a/auto/cc/conf
+++ b/auto/cc/conf
@@ -143,19 +143,6 @@ if [ "$NGX_PLATFORM" != win32 ]; then
. auto/feature
- ngx_feature="gcc variadic macros"
- ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
- ngx_feature_run=yes
- ngx_feature_incs="#include <stdio.h>
-#define var(dummy, args...) sprintf(args)"
- ngx_feature_path=
- ngx_feature_libs=
- ngx_feature_test="char buf[30]; buf[0] = '0';
- var(0, buf, \"%d\", 1);
- if (buf[0] != '1') return 1"
- . auto/feature
-
-
if [ "$NGX_CC_NAME" = "ccc" ]; then
echo "checking for C99 variadic macros ... disabled"
else
@@ -173,6 +160,19 @@ if [ "$NGX_PLATFORM" != win32 ]; then
fi
+ ngx_feature="gcc variadic macros"
+ ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
+ ngx_feature_run=yes
+ ngx_feature_incs="#include <stdio.h>
+#define var(dummy, args...) sprintf(args)"
+ ngx_feature_path=
+ ngx_feature_libs=
+ ngx_feature_test="char buf[30]; buf[0] = '0';
+ var(0, buf, \"%d\", 1);
+ if (buf[0] != '1') return 1"
+ . auto/feature
+
+
# ngx_feature="inline"
# ngx_feature_name=
# ngx_feature_run=no