diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-11-25 17:34:35 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-25 17:34:35 +0000 |
| commit | 89d635fa5dd04cb857f00de98f34d7792ec3e1a5 (patch) | |
| tree | 574640fa05c39b0e32b6b7bc42f21f1638ee9852 /auto/cc/conf | |
| parent | f215028477430eadacbfd24906d6f2ec94894c60 (diff) | |
| download | nginx-89d635fa5dd04cb857f00de98f34d7792ec3e1a5.tar.gz nginx-89d635fa5dd04cb857f00de98f34d7792ec3e1a5.tar.bz2 | |
GCC 4.1 builtin atomic operations
Diffstat (limited to 'auto/cc/conf')
| -rw-r--r-- | auto/cc/conf | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/auto/cc/conf b/auto/cc/conf index 482390029..8916ad095 100644 --- a/auto/cc/conf +++ b/auto/cc/conf @@ -105,7 +105,6 @@ fi CFLAGS="$CFLAGS $NGX_CC_OPT" - if [ "$NGX_PLATFORM" != win32 ]; then if test -n "$NGX_LD_OPT"; then @@ -125,6 +124,19 @@ if [ "$NGX_PLATFORM" != win32 ]; then fi fi + + ngx_feature="gcc builtin atomic operations" + ngx_feature_name=NGX_HAVE_GCC_ATOMIC + ngx_feature_run=no + ngx_feature_incs= + ngx_feature_path= + ngx_feature_libs= + ngx_feature_test="long n; + __sync_bool_compare_and_swap(&n, 0, 1); + __sync_fetch_and_add(&n, 1);" + . auto/feature + + ngx_feature="gcc variadic macros" ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS" ngx_feature_run=yes |
