From b4d9ee220c8b7ea23fa3e1357e537840b99ce5e2 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Wed, 17 Aug 2011 08:35:54 +0000 Subject: [PATCH] Detect POSIX semaphores in librt on Solaris (ticket #3). Patch by Denis Ivanov. --- auto/unix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/auto/unix b/auto/unix index 190d4a43f..b3541c56e 100755 --- 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