mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
CMake: add ENABLE_ALT_SVC option
Tested alt-svc with quiche. While at it, add missing MultiSSL reporting (not tested).
This commit is contained in:
parent
5bfc874a35
commit
5d8c53d320
@ -745,6 +745,9 @@ else()
|
|||||||
unset(USE_UNIX_SOCKETS CACHE)
|
unset(USE_UNIX_SOCKETS CACHE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_ALT_SVC "Enable alt-svc support" OFF)
|
||||||
|
set(USE_ALTSVC ${ENABLE_ALT_SVC})
|
||||||
|
|
||||||
#
|
#
|
||||||
# CA handling
|
# CA handling
|
||||||
#
|
#
|
||||||
@ -1312,6 +1315,7 @@ _add_if("Largefile" (CURL_SIZEOF_CURL_OFF_T GREATER 4) AND
|
|||||||
# TODO SSP1 (WinSSL) check is missing
|
# TODO SSP1 (WinSSL) check is missing
|
||||||
_add_if("SSPI" USE_WINDOWS_SSPI)
|
_add_if("SSPI" USE_WINDOWS_SSPI)
|
||||||
_add_if("GSS-API" HAVE_GSSAPI)
|
_add_if("GSS-API" HAVE_GSSAPI)
|
||||||
|
_add_if("alt-svc" ENABLE_ALT_SVC)
|
||||||
# TODO SSP1 missing for SPNEGO
|
# TODO SSP1 missing for SPNEGO
|
||||||
_add_if("SPNEGO" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
_add_if("SPNEGO" NOT CURL_DISABLE_CRYPTO_AUTH AND
|
||||||
(HAVE_GSSAPI OR USE_WINDOWS_SSPI))
|
(HAVE_GSSAPI OR USE_WINDOWS_SSPI))
|
||||||
@ -1327,6 +1331,7 @@ _add_if("TLS-SRP" USE_TLS_SRP)
|
|||||||
# TODO option --with-nghttp2 tests for nghttp2 lib and nghttp2/nghttp2.h header
|
# TODO option --with-nghttp2 tests for nghttp2 lib and nghttp2/nghttp2.h header
|
||||||
_add_if("HTTP2" USE_NGHTTP2)
|
_add_if("HTTP2" USE_NGHTTP2)
|
||||||
_add_if("HTTP3" USE_NGTCP2 OR USE_QUICHE)
|
_add_if("HTTP3" USE_NGTCP2 OR USE_QUICHE)
|
||||||
|
_add_if("MultiSSL" CURL_WITH_MULTI_SSL)
|
||||||
_add_if("HTTPS-proxy" SSL_ENABLED AND (USE_OPENSSL OR USE_GNUTLS OR USE_NSS))
|
_add_if("HTTPS-proxy" SSL_ENABLED AND (USE_OPENSSL OR USE_GNUTLS OR USE_NSS))
|
||||||
string(REPLACE ";" " " SUPPORT_FEATURES "${_items}")
|
string(REPLACE ";" " " SUPPORT_FEATURES "${_items}")
|
||||||
message(STATUS "Enabled features: ${SUPPORT_FEATURES}")
|
message(STATUS "Enabled features: ${SUPPORT_FEATURES}")
|
||||||
|
@ -1005,6 +1005,9 @@ ${SIZEOF_TIME_T_CODE}
|
|||||||
/* if Unix domain sockets are enabled */
|
/* if Unix domain sockets are enabled */
|
||||||
#cmakedefine USE_UNIX_SOCKETS
|
#cmakedefine USE_UNIX_SOCKETS
|
||||||
|
|
||||||
|
/* to enable alt-svc */
|
||||||
|
#cmakedefine USE_ALTSVC 1
|
||||||
|
|
||||||
/* Define to 1 if you are building a Windows target with large file support. */
|
/* Define to 1 if you are building a Windows target with large file support. */
|
||||||
#cmakedefine USE_WIN32_LARGE_FILES 1
|
#cmakedefine USE_WIN32_LARGE_FILES 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user