From 76e0196b1ef4692e583d35e7d6000d9ed6758885 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 24 Jun 2024 10:27:08 +0200 Subject: [PATCH] configure: require a QUIC library if nghttp3 is used Instead of just silently disabling HTTP/3. Reported-by: Matt Jolly Fixes #13995 Closes #13999 --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index d844bbdfac..a766caf0f0 100644 --- a/configure.ac +++ b/configure.ac @@ -3231,6 +3231,11 @@ esac curl_http3_msg="no (--with-nghttp3)" if test X"$want_nghttp3" != Xno; then + if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then + # without ngtcp2 or openssl quic, nghttp3 is of no use for us + AC_MSG_ERROR([nghttp3 enabled without a QUIC library; enable ngtcp2 or OpenSSL-QUIC]) + fi + dnl backup the pre-nghttp3 variables CLEANLDFLAGS="$LDFLAGS" CLEANCPPFLAGS="$CPPFLAGS" -- 2.47.3