From: Viktor Szakats Date: Sat, 6 Jul 2024 21:47:50 +0000 (+0200) Subject: configure: limit `SystemConfiguration` test to non-c-ares, IPv6 builds X-Git-Tag: curl-8_9_0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80fb7c0bef209735ab352bf4afa31193a7bc65f1;p=thirdparty%2Fcurl.git configure: limit `SystemConfiguration` test to non-c-ares, IPv6 builds The framework this check detects is necessary for the function `SCDynamicStoreCopyProxies()` used in `lib/macos.c`. Non-c-ares, IPv6-enabled builds touch this codepath. Limit the feature check for builds that actually need it. It brings this in sync with CMake which already worked this way. Cherry-picked from #14097 Closes #14126 --- diff --git a/configure.ac b/configure.ac index 0ea0c16d17..6544b6693f 100644 --- a/configure.ac +++ b/configure.ac @@ -597,7 +597,6 @@ CURL_CHECK_WIN32_LARGEFILE CURL_CHECK_WIN32_CRYPTO CURL_DARWIN_CFLAGS -CURL_DARWIN_SYSTEMCONFIGURATION CURL_SUPPORTS_BUILTIN_AVAILABLE AM_CONDITIONAL([HAVE_WINDRES], @@ -3875,6 +3874,10 @@ AM_CONDITIONAL(BUILD_LIBHOSTNAME, test x$build_libhostname = xyes) if test "x$want_ares" != xyes; then CURL_CHECK_OPTION_THREADED_RESOLVER + + if test "$ipv6" = yes; then + CURL_DARWIN_SYSTEMCONFIGURATION + fi fi dnl ************************************************************