# HG changeset patch # User Maxim Dounin # Date 1313570154 0 # Node ID 8cca96abbc3e2806b7d4db6278ab74ff98bc43d6 # Parent 4068898a6a7c475163de0b3ee21e6d71cf5ca434 Detect POSIX semaphores in librt on Solaris (ticket #3). Patch by Denis Ivanov. diff --git a/auto/unix b/auto/unix --- a/auto/unix +++ b/auto/unix @@ -620,6 +620,19 @@ if [ $ngx_found = no ]; then fi +if [ $ngx_found = no ]; then + + # Solaris has POSIX semaphores in librt + ngx_feature="POSIX semaphores in librt" + ngx_feature_libs=-lrt + . auto/feature + + if [ $ngx_found = yes ]; then + CORE_LIBS="$CORE_LIBS -lrt" + fi +fi + + ngx_feature="struct msghdr.msg_control" ngx_feature_name="NGX_HAVE_MSGHDR_MSG_CONTROL" ngx_feature_run=no