diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2020-04-30 15:47:43 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-04-30 15:47:43 +0300 |
| commit | b7b3aca7040a0c734a555efd8775249a29b5ac5d (patch) | |
| tree | 37ec644c5c4719a7efa4ad79af7e731b0d2488af /auto/lib | |
| parent | be478232480f29309e876d2b06c6737fb03dacba (diff) | |
| download | nginx-b7b3aca7040a0c734a555efd8775249a29b5ac5d.tar.gz nginx-b7b3aca7040a0c734a555efd8775249a29b5ac5d.tar.bz2 | |
Configure: unbreak with old OpenSSL, --with-http_v3_module added.
Diffstat (limited to 'auto/lib')
| -rw-r--r-- | auto/lib/openssl/conf | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf index 4f4390e11..faebd8fa4 100644 --- a/auto/lib/openssl/conf +++ b/auto/lib/openssl/conf @@ -141,11 +141,29 @@ END fi -ngx_feature="OpenSSL QUIC support" -ngx_feature_name="NGX_OPENSSL_QUIC" -ngx_feature_run=no -ngx_feature_incs="#include <openssl/ssl.h>" -ngx_feature_path= -ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL" -ngx_feature_test="SSL_CTX_set_quic_method(NULL, NULL)" -. auto/feature + +if [ $USE_OPENSSL_QUIC = YES ]; then + + ngx_feature="OpenSSL QUIC support" + ngx_feature_name="NGX_OPENSSL_QUIC" + ngx_feature_run=no + ngx_feature_incs="#include <openssl/ssl.h>" + ngx_feature_path= + ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL" + ngx_feature_test="SSL_CTX_set_quic_method(NULL, NULL)" + . auto/feature + + if [ $ngx_found = no ]; then + +cat << END + +$0: error: certain modules require OpenSSL QUIC support. +You can either do not enable the modules, or install the OpenSSL library +into the system, or build the OpenSSL library statically from the source +with nginx by using --with-openssl=<path> option. + +END + exit 1 + fi + +fi |
