From 58674865fe33155ffebde2ff0d9212a922a66077 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 5 Feb 2025 13:52:46 +0100 Subject: [PATCH] configure/cmake: set asyn-rr a feature only if httpsrr is enabled Closes #16183 --- CMakeLists.txt | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c634cdd6a..4cd8d6a635 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2122,7 +2122,7 @@ curl_add_if("brotli" HAVE_BROTLI) curl_add_if("gsasl" USE_GSASL) curl_add_if("zstd" HAVE_ZSTD) curl_add_if("AsynchDNS" USE_ARES OR USE_THREADS_POSIX OR USE_THREADS_WIN32) -curl_add_if("asyn-rr" USE_ARES AND ENABLE_THREADED_RESOLVER) +curl_add_if("asyn-rr" USE_ARES AND ENABLE_THREADED_RESOLVER AND USE_HTTPSRR) curl_add_if("IDN" (HAVE_LIBIDN2 AND HAVE_IDN2_H) OR USE_WIN32_IDN OR USE_APPLE_IDN) diff --git a/configure.ac b/configure.ac index ced717252f..d492f9e941 100644 --- a/configure.ac +++ b/configure.ac @@ -5017,7 +5017,7 @@ if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \ -o "x$USE_THREADS_WIN32" = "x1"; then SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS" fi -if test "x$USE_ARES" = "x1" -a "$want_threaded_resolver" = "yes"; then +if test "x$USE_ARES" = "x1" -a "$want_threaded_resolver" = "yes" -a "x$want_httpsrr" != "xno"; then SUPPORT_FEATURES="$SUPPORT_FEATURES asyn-rr" fi if test "x$IDN_ENABLED" = "x1"; then -- 2.47.3