comparison auto/lib/openssl/conf @ 6177:4d25ec8f0adb

Configure: search OpenSSL in a bunch of standard places.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 10 Jun 2015 12:25:45 +0300
parents 3d2d3e1cf427
children 520ec1917f1d
comparison
equal deleted inserted replaced
6176:c983c8dea44c 6177:4d25ec8f0adb
53 ngx_feature_path= 53 ngx_feature_path=
54 ngx_feature_libs="-lssl -lcrypto" 54 ngx_feature_libs="-lssl -lcrypto"
55 ngx_feature_test="SSL_library_init()" 55 ngx_feature_test="SSL_library_init()"
56 . auto/feature 56 . auto/feature
57 57
58 if [ $ngx_found = no ]; then
59
60 # FreeBSD port
61
62 ngx_feature="OpenSSL library in /usr/local/"
63 ngx_feature_path="/usr/local/include"
64
65 if [ $NGX_RPATH = YES ]; then
66 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lssl -lcrypto"
67 else
68 ngx_feature_libs="-L/usr/local/lib -lssl -lcrypto"
69 fi
70
71 . auto/feature
72 fi
73
74 if [ $ngx_found = no ]; then
75
76 # NetBSD port
77
78 ngx_feature="OpenSSL library in /usr/pkg/"
79 ngx_feature_path="/usr/pkg/include"
80
81 if [ $NGX_RPATH = YES ]; then
82 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lssl -lcrypto"
83 else
84 ngx_feature_libs="-L/usr/pkg/lib -lssl -lcrypto"
85 fi
86
87 . auto/feature
88 fi
89
90 if [ $ngx_found = no ]; then
91
92 # MacPorts
93
94 ngx_feature="OpenSSL library in /opt/local/"
95 ngx_feature_path="/opt/local/include"
96
97 if [ $NGX_RPATH = YES ]; then
98 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lssl -lcrypto"
99 else
100 ngx_feature_libs="-L/opt/local/lib -lssl -lcrypto"
101 fi
102
103 . auto/feature
104 fi
105
58 if [ $ngx_found = yes ]; then 106 if [ $ngx_found = yes ]; then
59 have=NGX_SSL . auto/have 107 have=NGX_SSL . auto/have
60 CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL" 108 CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"
61 OPENSSL=YES 109 OPENSSL=YES
62 fi 110 fi