aboutsummaryrefslogtreecommitdiff
path: root/auto/lib
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2015-06-10 12:25:45 +0300
committerRuslan Ermilov <ru@nginx.com>2015-06-10 12:25:45 +0300
commit72125c7a222b82df4aff932a8aaa47b5150e35a3 (patch)
treee70f44b65f37d0356f4335f64163480a3ada8376 /auto/lib
parent76be6f5d700bdc20651e4133378851ec5a147e6b (diff)
downloadnginx-72125c7a222b82df4aff932a8aaa47b5150e35a3.tar.gz
nginx-72125c7a222b82df4aff932a8aaa47b5150e35a3.zip
Configure: search OpenSSL in a bunch of standard places.
Diffstat (limited to 'auto/lib')
-rw-r--r--auto/lib/openssl/conf48
1 files changed, 48 insertions, 0 deletions
diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf
index a65815f63..bca205061 100644
--- a/auto/lib/openssl/conf
+++ b/auto/lib/openssl/conf
@@ -55,6 +55,54 @@ else
ngx_feature_test="SSL_library_init()"
. auto/feature
+ if [ $ngx_found = no ]; then
+
+ # FreeBSD port
+
+ ngx_feature="OpenSSL library in /usr/local/"
+ ngx_feature_path="/usr/local/include"
+
+ if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lssl -lcrypto"
+ else
+ ngx_feature_libs="-L/usr/local/lib -lssl -lcrypto"
+ fi
+
+ . auto/feature
+ fi
+
+ if [ $ngx_found = no ]; then
+
+ # NetBSD port
+
+ ngx_feature="OpenSSL library in /usr/pkg/"
+ ngx_feature_path="/usr/pkg/include"
+
+ if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lssl -lcrypto"
+ else
+ ngx_feature_libs="-L/usr/pkg/lib -lssl -lcrypto"
+ fi
+
+ . auto/feature
+ fi
+
+ if [ $ngx_found = no ]; then
+
+ # MacPorts
+
+ ngx_feature="OpenSSL library in /opt/local/"
+ ngx_feature_path="/opt/local/include"
+
+ if [ $NGX_RPATH = YES ]; then
+ ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lssl -lcrypto"
+ else
+ ngx_feature_libs="-L/opt/local/lib -lssl -lcrypto"
+ fi
+
+ . auto/feature
+ fi
+
if [ $ngx_found = yes ]; then
have=NGX_SSL . auto/have
CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"