Mercurial > hg > nginx
annotate auto/lib/openssl/conf @ 9316:b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Checking for system libs on Windows is beneficial when compiling in
MSYS2 environments with GCC or Clang, as most libraries are readily
available.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 07 Aug 2024 03:58:50 +0300 |
parents | 0ba26c99b3a1 |
children |
rev | line source |
---|---|
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
399
diff
changeset
|
1 |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
399
diff
changeset
|
2 # Copyright (C) Igor Sysoev |
4412 | 3 # Copyright (C) Nginx, Inc. |
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
399
diff
changeset
|
4 |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
5 |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
6 if [ $OPENSSL != NONE ]; then |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
7 |
8866
8c163ce5b55a
Configure: fixed QUIC support test.
Ruslan Ermilov <ru@nginx.com>
parents:
8865
diff
changeset
|
8 have=NGX_OPENSSL . auto/have |
8c163ce5b55a
Configure: fixed QUIC support test.
Ruslan Ermilov <ru@nginx.com>
parents:
8865
diff
changeset
|
9 have=NGX_SSL . auto/have |
8c163ce5b55a
Configure: fixed QUIC support test.
Ruslan Ermilov <ru@nginx.com>
parents:
8865
diff
changeset
|
10 |
9137
0ba26c99b3a1
SSL: avoid using OpenSSL config in build directory (ticket #2404).
Maxim Dounin <mdounin@mdounin.ru>
parents:
9080
diff
changeset
|
11 have=NGX_OPENSSL_NO_CONFIG . auto/have |
0ba26c99b3a1
SSL: avoid using OpenSSL config in build directory (ticket #2404).
Maxim Dounin <mdounin@mdounin.ru>
parents:
9080
diff
changeset
|
12 |
8866
8c163ce5b55a
Configure: fixed QUIC support test.
Ruslan Ermilov <ru@nginx.com>
parents:
8865
diff
changeset
|
13 if [ $USE_OPENSSL_QUIC = YES ]; then |
8c163ce5b55a
Configure: fixed QUIC support test.
Ruslan Ermilov <ru@nginx.com>
parents:
8865
diff
changeset
|
14 have=NGX_QUIC . auto/have |
9080
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
15 have=NGX_QUIC_OPENSSL_COMPAT . auto/have |
8866
8c163ce5b55a
Configure: fixed QUIC support test.
Ruslan Ermilov <ru@nginx.com>
parents:
8865
diff
changeset
|
16 fi |
8c163ce5b55a
Configure: fixed QUIC support test.
Ruslan Ermilov <ru@nginx.com>
parents:
8865
diff
changeset
|
17 |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
18 case "$CC" in |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
19 |
2846
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
20 cl | bcc32) |
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
21 CFLAGS="$CFLAGS -DNO_SYS_TYPES_H" |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
22 |
2846
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
23 CORE_INCS="$CORE_INCS $OPENSSL/openssl/include" |
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
24 CORE_DEPS="$CORE_DEPS $OPENSSL/openssl/include/openssl/ssl.h" |
6862
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
25 |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
26 if [ -f $OPENSSL/ms/do_ms.bat ]; then |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
27 # before OpenSSL 1.1.0 |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
28 CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/ssleay32.lib" |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
29 CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libeay32.lib" |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
30 else |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
31 # OpenSSL 1.1.0+ |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
32 CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libssl.lib" |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
33 CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libcrypto.lib" |
abb0a4189cf7
Win32: compatiblity with OpenSSL 1.1.0.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6488
diff
changeset
|
34 fi |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
35 |
2731
06d53ecd70c8
*) move advapi32.lib to core libs since it's required for Registry and Event Log
Igor Sysoev <igor@sysoev.ru>
parents:
2712
diff
changeset
|
36 # libeay32.lib requires gdi32.lib |
06d53ecd70c8
*) move advapi32.lib to core libs since it's required for Registry and Event Log
Igor Sysoev <igor@sysoev.ru>
parents:
2712
diff
changeset
|
37 CORE_LIBS="$CORE_LIBS gdi32.lib" |
3488
92378c49456d
MSVC8 compatibility with OpenSSL 1.0.0
Igor Sysoev <igor@sysoev.ru>
parents:
3168
diff
changeset
|
38 # OpenSSL 1.0.0 requires crypt32.lib |
92378c49456d
MSVC8 compatibility with OpenSSL 1.0.0
Igor Sysoev <igor@sysoev.ru>
parents:
3168
diff
changeset
|
39 CORE_LIBS="$CORE_LIBS crypt32.lib" |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
40 ;; |
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
41 |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
42 *) |
3168
83c940b0d18a
allow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev <igor@sysoev.ru>
parents:
2893
diff
changeset
|
43 CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include" |
83c940b0d18a
allow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev <igor@sysoev.ru>
parents:
2893
diff
changeset
|
44 CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h" |
83c940b0d18a
allow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev <igor@sysoev.ru>
parents:
2893
diff
changeset
|
45 CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a" |
83c940b0d18a
allow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev <igor@sysoev.ru>
parents:
2893
diff
changeset
|
46 CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a" |
6403
e59e617f8fcb
Configure: fixed static nginx build with OpenSSL (ticket #903).
Ruslan Ermilov <ru@nginx.com>
parents:
6380
diff
changeset
|
47 CORE_LIBS="$CORE_LIBS $NGX_LIBDL" |
7246
04ebf29eaf5b
Configure: fixed static compilation with OpenSSL 1.1.1.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6862
diff
changeset
|
48 CORE_LIBS="$CORE_LIBS $NGX_LIBPTHREAD" |
5360
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
49 |
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
50 if [ "$NGX_PLATFORM" = win32 ]; then |
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
51 CORE_LIBS="$CORE_LIBS -lgdi32 -lcrypt32 -lws2_32" |
3d2d3e1cf427
Win32: MinGW GCC compatibility.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
52 fi |
479 | 53 ;; |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
54 esac |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
55 |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
56 else |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
57 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
58 OPENSSL=NO |
583 | 59 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
60 ngx_feature="OpenSSL library" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
61 ngx_feature_name="NGX_OPENSSL" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
62 ngx_feature_run=no |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
63 ngx_feature_incs="#include <openssl/ssl.h>" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
64 ngx_feature_path= |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
65 ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL $NGX_LIBPTHREAD" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
66 ngx_feature_test="SSL_CTX_set_options(NULL, 0)" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
67 . auto/feature |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
68 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
69 if [ $ngx_found = no ]; then |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
70 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
71 # FreeBSD port |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
72 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
73 ngx_feature="OpenSSL library in /usr/local/" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
74 ngx_feature_path="/usr/local/include" |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
75 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
76 if [ $NGX_RPATH = YES ]; then |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
77 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lssl -lcrypto" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
78 else |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
79 ngx_feature_libs="-L/usr/local/lib -lssl -lcrypto" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
80 fi |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
81 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
82 ngx_feature_libs="$ngx_feature_libs $NGX_LIBDL $NGX_LIBPTHREAD" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
83 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
84 . auto/feature |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
85 fi |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
86 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
87 if [ $ngx_found = no ]; then |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
88 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
89 # NetBSD port |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
90 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
91 ngx_feature="OpenSSL library in /usr/pkg/" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
92 ngx_feature_path="/usr/pkg/include" |
7246
04ebf29eaf5b
Configure: fixed static compilation with OpenSSL 1.1.1.
Maxim Dounin <mdounin@mdounin.ru>
parents:
6862
diff
changeset
|
93 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
94 if [ $NGX_RPATH = YES ]; then |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
95 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lssl -lcrypto" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
96 else |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
97 ngx_feature_libs="-L/usr/pkg/lib -lssl -lcrypto" |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
98 fi |
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
99 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
100 ngx_feature_libs="$ngx_feature_libs $NGX_LIBDL $NGX_LIBPTHREAD" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
101 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
102 . auto/feature |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
103 fi |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
104 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
105 if [ $ngx_found = no ]; then |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
106 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
107 # MacPorts |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
108 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
109 ngx_feature="OpenSSL library in /opt/local/" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
110 ngx_feature_path="/opt/local/include" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
111 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
112 if [ $NGX_RPATH = YES ]; then |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
113 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lssl -lcrypto" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
114 else |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
115 ngx_feature_libs="-L/opt/local/lib -lssl -lcrypto" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
116 fi |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
117 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
118 ngx_feature_libs="$ngx_feature_libs $NGX_LIBDL $NGX_LIBPTHREAD" |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
119 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
120 . auto/feature |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
121 fi |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
122 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
123 if [ $ngx_found = yes ]; then |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
124 have=NGX_SSL . auto/have |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
125 CORE_INCS="$CORE_INCS $ngx_feature_path" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
126 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
127 OPENSSL=YES |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
128 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
129 if [ $USE_OPENSSL_QUIC = YES ]; then |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
130 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
131 ngx_feature="OpenSSL QUIC support" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
132 ngx_feature_name="NGX_QUIC" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
133 ngx_feature_test="SSL_set_quic_method(NULL, NULL)" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
134 . auto/feature |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
135 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
136 if [ $ngx_found = no ]; then |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
137 have=NGX_QUIC_OPENSSL_COMPAT . auto/have |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
138 |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
139 ngx_feature="OpenSSL QUIC compatibility" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
140 ngx_feature_test="SSL_CTX_add_custom_ext(NULL, 0, 0, |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
141 NULL, NULL, NULL, NULL, NULL)" |
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
142 . auto/feature |
6177
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
143 fi |
4d25ec8f0adb
Configure: search OpenSSL in a bunch of standard places.
Ruslan Ermilov <ru@nginx.com>
parents:
5360
diff
changeset
|
144 |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
145 if [ $ngx_found = no ]; then |
9080
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
146 cat << END |
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
147 |
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
148 $0: error: certain modules require OpenSSL QUIC support. |
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
149 You can either do not enable the modules, or install the OpenSSL library with |
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
150 QUIC support into the system, or build the OpenSSL library with QUIC support |
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
151 statically from the source with nginx by using --with-openssl=<path> option. |
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
152 |
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
153 END |
9316
b40149d062cb
Win32: checking for system PCRE, zlib, and OpenSSL libs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
9137
diff
changeset
|
154 exit 1 |
9080
7da4791e0264
QUIC: OpenSSL compatibility layer.
Roman Arutyunyan <arut@nginx.com>
parents:
8866
diff
changeset
|
155 fi |
3684
4d47a0658e7d
stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents:
3683
diff
changeset
|
156 fi |
4d47a0658e7d
stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents:
3683
diff
changeset
|
157 fi |
4d47a0658e7d
stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents:
3683
diff
changeset
|
158 |
4d47a0658e7d
stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents:
3683
diff
changeset
|
159 if [ $OPENSSL != YES ]; then |
2893
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
160 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
161 cat << END |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
162 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
163 $0: error: SSL modules require the OpenSSL library. |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
164 You can either do not enable the modules, or install the OpenSSL library |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
165 into the system, or build the OpenSSL library statically from the source |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
166 with nginx by using --with-openssl=<path> option. |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
167 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
168 END |
3684
4d47a0658e7d
stop ./configure on Win32 if no library sources was specified,
Igor Sysoev <igor@sysoev.ru>
parents:
3683
diff
changeset
|
169 exit 1 |
3683
312c2f9b53ac
do not use prebuild OpenSSL Win32 libraries
Igor Sysoev <igor@sysoev.ru>
parents:
3488
diff
changeset
|
170 fi |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
171 |
8422
90b02ff6b003
Compatibility with BoringSSL master branch.
Sergey Kandaurov <pluknet@nginx.com>
parents:
8374
diff
changeset
|
172 fi |