commit f82dd32109af8a05aed70376e211fa392ffbe4ff
parent 9454cf8d6bc17916f17b84f24fa4939e0e7a18b6
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Sun, 24 Aug 2025 00:53:21 +0200
configure: added --disable-http2 parameter
Currently doing nothing
Diffstat:
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -5611,6 +5611,22 @@ AS_UNSET([MHD_TLS_LIB_LDFLAGS])
AS_UNSET([MHD_TLS_LIBDEPS])
MSG_TLS_BACKENDS="none"
+AC_ARG_ENABLE([http2],
+ [AS_HELP_STRING([--disable-http2], [disable HTTP/2 support])],
+ [
+ AS_CASE([${enableval}],
+ [yes],[:],
+ [no],[:],
+ [AC_MSG_ERROR([wrong parameter value --enable-http2=${enableval}])]
+ )
+ ],
+ [enable_http2="yes"]
+)
+AS_VAR_IF([enable_http2],["yes"],
+ [AC_DEFINE([MHD_SUPPORT_HTTP2],[1],[Define to '1' to enable support for HTTP/2 protocol])]
+)
+AM_CONDITIONAL([MHD_SUPPORT_HTTP2], [test "x$enable_http2" = "xyes"])
+
# optional: HTTPS support. Enabled if GnuTLS is available.
AC_ARG_ENABLE([https],
[AS_HELP_STRING([--enable-https],
@@ -8154,6 +8170,7 @@ AC_MSG_NOTICE([[${PACKAGE_NAME} ${PACKAGE_VERSION} Configuration Summary:
Shutdown of listening socket triggers select: ${mhd_cv_host_shtdwn_trgr_select}
[ Library features and options ]
+ HTTP/2 support : ${enable_http2}
Inter-thread comm: ${use_itc}
select() support : ${enable_select}
poll() support : ${enable_poll=no}