mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
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
This commit is contained in:
5
auto/configure
vendored
5
auto/configure
vendored
@@ -53,6 +53,7 @@ fi
|
|||||||
if [ "$NGX_PLATFORM" != win32 ]; then
|
if [ "$NGX_PLATFORM" != win32 ]; then
|
||||||
. auto/os/features
|
. auto/os/features
|
||||||
. auto/threads
|
. auto/threads
|
||||||
|
. auto/unix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
. auto/modules
|
. auto/modules
|
||||||
@@ -99,10 +100,6 @@ have=NGX_HTTP_SCGI_TEMP_PATH value="\"$NGX_HTTP_SCGI_TEMP_PATH\""
|
|||||||
. auto/lib/make
|
. auto/lib/make
|
||||||
. auto/install
|
. auto/install
|
||||||
|
|
||||||
if [ "$NGX_PLATFORM" != win32 ]; then
|
|
||||||
. auto/unix
|
|
||||||
fi
|
|
||||||
|
|
||||||
# STUB
|
# STUB
|
||||||
. auto/stubs
|
. auto/stubs
|
||||||
|
|
||||||
|
|||||||
13
auto/unix
13
auto/unix
@@ -246,6 +246,19 @@ ngx_feature_test="sem_t sem;
|
|||||||
. auto/feature
|
. auto/feature
|
||||||
|
|
||||||
|
|
||||||
|
if [ $ngx_found = no ]; then
|
||||||
|
|
||||||
|
# Linux has POSIX semaphores in libpthread
|
||||||
|
ngx_feature="POSIX semaphores in libpthread"
|
||||||
|
ngx_feature_libs=-lpthread
|
||||||
|
. auto/feature
|
||||||
|
|
||||||
|
if [ $ngx_found = yes ]; then
|
||||||
|
CORE_LIBS="$CORE_LIBS -lpthread"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="struct msghdr.msg_control"
|
ngx_feature="struct msghdr.msg_control"
|
||||||
ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
|
ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL"
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
|
|||||||
Reference in New Issue
Block a user