mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 04:49:01 +08:00
Configure: fixed QUIC support test.
OpenSSL library QUIC support cannot be tested at configure time when using the --with-openssl option so assume it's present if requested. While here, fixed the error message in case QUIC support is missing.
This commit is contained in:
parent
8ce1c2c7e9
commit
f2859767d4
@ -5,12 +5,16 @@
|
|||||||
|
|
||||||
if [ $OPENSSL != NONE ]; then
|
if [ $OPENSSL != NONE ]; then
|
||||||
|
|
||||||
|
have=NGX_OPENSSL . auto/have
|
||||||
|
have=NGX_SSL . auto/have
|
||||||
|
|
||||||
|
if [ $USE_OPENSSL_QUIC = YES ]; then
|
||||||
|
have=NGX_QUIC . auto/have
|
||||||
|
fi
|
||||||
|
|
||||||
case "$CC" in
|
case "$CC" in
|
||||||
|
|
||||||
cl | bcc32)
|
cl | bcc32)
|
||||||
have=NGX_OPENSSL . auto/have
|
|
||||||
have=NGX_SSL . auto/have
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -DNO_SYS_TYPES_H"
|
CFLAGS="$CFLAGS -DNO_SYS_TYPES_H"
|
||||||
|
|
||||||
CORE_INCS="$CORE_INCS $OPENSSL/openssl/include"
|
CORE_INCS="$CORE_INCS $OPENSSL/openssl/include"
|
||||||
@ -33,9 +37,6 @@ if [ $OPENSSL != NONE ]; then
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
have=NGX_OPENSSL . auto/have
|
|
||||||
have=NGX_SSL . auto/have
|
|
||||||
|
|
||||||
CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include"
|
CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include"
|
||||||
CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h"
|
CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h"
|
||||||
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
|
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
|
||||||
@ -139,30 +140,28 @@ END
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
if [ $USE_OPENSSL_QUIC = YES ]; then
|
||||||
|
|
||||||
|
ngx_feature="OpenSSL QUIC support"
|
||||||
|
ngx_feature_name="NGX_QUIC"
|
||||||
|
ngx_feature_run=no
|
||||||
|
ngx_feature_incs="#include <openssl/ssl.h>"
|
||||||
|
ngx_feature_path=
|
||||||
|
ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL $NGX_LIBPTHREAD"
|
||||||
|
ngx_feature_test="SSL_set_quic_method(NULL, NULL)"
|
||||||
|
. auto/feature
|
||||||
|
|
||||||
if [ $USE_OPENSSL_QUIC = YES ]; then
|
if [ $ngx_found = no ]; then
|
||||||
|
|
||||||
ngx_feature="OpenSSL QUIC support"
|
|
||||||
ngx_feature_name="NGX_QUIC"
|
|
||||||
ngx_feature_run=no
|
|
||||||
ngx_feature_incs="#include <openssl/ssl.h>"
|
|
||||||
ngx_feature_path=
|
|
||||||
ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL $NGX_LIBPTHREAD"
|
|
||||||
ngx_feature_test="SSL_set_quic_method(NULL, NULL)"
|
|
||||||
. auto/feature
|
|
||||||
|
|
||||||
if [ $ngx_found = no ]; then
|
|
||||||
|
|
||||||
cat << END
|
cat << END
|
||||||
|
|
||||||
$0: error: certain modules require OpenSSL QUIC support.
|
$0: error: certain modules require OpenSSL QUIC support.
|
||||||
You can either do not enable the modules, or install the OpenSSL library
|
You can either do not enable the modules, or install the OpenSSL library with
|
||||||
into the system, or build the OpenSSL library statically from the source
|
QUIC support into the system, or build the OpenSSL library with QUIC support
|
||||||
with nginx by using --with-openssl=<path> option.
|
statically from the source with nginx by using --with-openssl=<path> option.
|
||||||
|
|
||||||
END
|
END
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user