]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CMake: add ENABLE_ALT_SVC option
authorPeter Wu <peter@lekensteyn.nl>
Fri, 8 May 2020 22:16:39 +0000 (00:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 10 May 2020 21:36:54 +0000 (23:36 +0200)
Tested alt-svc with quiche. While at it, add missing MultiSSL reporting
(not tested).

CMakeLists.txt
lib/curl_config.h.cmake

index 616a70db641d7dfc8e28ac2f43d4ea24d6f7dc5a..224a09b1d09e2756d1e26cf00ec860836fd4afc8 100644 (file)
@@ -745,6 +745,9 @@ else()
   unset(USE_UNIX_SOCKETS CACHE)
 endif()
 
+option(ENABLE_ALT_SVC "Enable alt-svc support" OFF)
+set(USE_ALTSVC ${ENABLE_ALT_SVC})
+
 #
 # CA handling
 #
@@ -1312,6 +1315,7 @@ _add_if("Largefile"     (CURL_SIZEOF_CURL_OFF_T GREATER 4) AND
 # TODO SSP1 (WinSSL) check is missing
 _add_if("SSPI"          USE_WINDOWS_SSPI)
 _add_if("GSS-API"       HAVE_GSSAPI)
+_add_if("alt-svc"       ENABLE_ALT_SVC)
 # TODO SSP1 missing for SPNEGO
 _add_if("SPNEGO"        NOT CURL_DISABLE_CRYPTO_AUTH AND
                         (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
 _add_if("HTTP2"         USE_NGHTTP2)
 _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))
 string(REPLACE ";" " " SUPPORT_FEATURES "${_items}")
 message(STATUS "Enabled features: ${SUPPORT_FEATURES}")
index 7a77e94829c3b8a4ec2f90043ffe5c02b495e91c..39160a9a8954151e8e000578e895e5e210c6ef52 100644 (file)
@@ -1005,6 +1005,9 @@ ${SIZEOF_TIME_T_CODE}
 /* if Unix domain sockets are enabled  */
 #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. */
 #cmakedefine USE_WIN32_LARGE_FILES 1