Mercurial > hg > nginx-quic
comparison auto/unix @ 3931:c8884c8f7c74
Support POSIX semaphores on Linux.
This configure test must run before auto/make, because it adds library.
auto/unix was placed after auto/make just for historical reasons.
Patch by Denis F. Latypoff
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 31 May 2011 08:17:27 +0000 |
parents | 0daede16d68b |
children | b5c169873c6b |
comparison
equal
deleted
inserted
replaced
3930:ace14fd91086 | 3931:c8884c8f7c74 |
---|---|
244 if (sem_init(&sem, 1, 0) == -1) return 1; | 244 if (sem_init(&sem, 1, 0) == -1) return 1; |
245 sem_destroy(&sem);" | 245 sem_destroy(&sem);" |
246 . auto/feature | 246 . auto/feature |
247 | 247 |
248 | 248 |
249 if [ $ngx_found = no ]; then | |
250 | |
251 # Linux has POSIX semaphores in libpthread | |
252 ngx_feature="POSIX semaphores in libpthread" | |
253 ngx_feature_libs=-lpthread | |
254 . auto/feature | |
255 | |
256 if [ $ngx_found = yes ]; then | |
257 CORE_LIBS="$CORE_LIBS -lpthread" | |
258 fi | |
259 fi | |
260 | |
261 | |
249 ngx_feature="struct msghdr.msg_control" | 262 ngx_feature="struct msghdr.msg_control" |
250 ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL" | 263 ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL" |
251 ngx_feature_run=no | 264 ngx_feature_run=no |
252 ngx_feature_incs="#include <sys/socket.h>" | 265 ngx_feature_incs="#include <sys/socket.h>" |
253 ngx_feature_path= | 266 ngx_feature_path= |