Mercurial > hg > nginx
comparison auto/lib/libatomic/conf @ 3378:5d17022a1e88
fix libatomic usage on arm, cris, hppa, m68k, and sparc platforms
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Dec 2009 15:32:38 +0000 |
parents | b44a7159c5fb |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
3377:8de152fbb49d | 3378:5d17022a1e88 |
---|---|
12 else | 12 else |
13 | 13 |
14 ngx_feature="atomic_ops library" | 14 ngx_feature="atomic_ops library" |
15 ngx_feature_name=NGX_HAVE_LIBATOMIC | 15 ngx_feature_name=NGX_HAVE_LIBATOMIC |
16 ngx_feature_run=yes | 16 ngx_feature_run=yes |
17 ngx_feature_incs="#include <atomic_ops.h>" | 17 ngx_feature_incs="#define AO_REQUIRE_CAS |
18 #include <atomic_ops.h>" | |
18 ngx_feature_path= | 19 ngx_feature_path= |
19 ngx_feature_libs="-latomic_ops" | 20 ngx_feature_libs="-latomic_ops" |
20 ngx_feature_test="long n = 0; | 21 ngx_feature_test="long n = 0; |
21 if (!AO_compare_and_swap(&n, 0, 1)) | 22 if (!AO_compare_and_swap(&n, 0, 1)) |
22 return 1; | 23 return 1; |