configure: limit __builtin_available test to Darwin

This feature test always fails on non-Apple systems. (For Apple targets
it's supported by llvm and Apple clang.)

Syncs behaviour with CMake.

Follow-up to cfd6f43d6c #14127
Cherry-picked from #14097
Closes #14196
This commit is contained in:
Viktor Szakats 2024-07-14 21:49:35 +02:00
parent 6821e54c08
commit c879554b7d
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -597,7 +597,11 @@ CURL_CHECK_WIN32_LARGEFILE
CURL_CHECK_WIN32_CRYPTO
CURL_DARWIN_CFLAGS
CURL_SUPPORTS_BUILTIN_AVAILABLE
case $host_os in
darwin*)
CURL_SUPPORTS_BUILTIN_AVAILABLE
;;
esac
AM_CONDITIONAL([HAVE_WINDRES],
[test "$curl_cv_native_windows" = "yes" && test -n "${RC}"])