apple sectrust: add to features

It should be visible in the feature list that libcurl is build with
Apple SecTrust enabled.

Closes #19057
This commit is contained in:
Stefan Eissing 2025-10-14 12:13:24 +02:00 committed by Daniel Stenberg
parent 79553fb7c6
commit c37ed9a11e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 30 additions and 9 deletions

View file

@ -41,7 +41,10 @@ if test "x$OPT_APPLE_SECTRUST" = xyes; then
],[
build_for_apple="no"
])
if test "x$build_for_apple" != "xno"; then
if test "x$build_for_apple" == "xno"; then
AC_MSG_ERROR([Apple SecTrust can only be enabled for Apple OS targets])
fi
if test "x$OPENSSL_ENABLED" == "x1" -o "x$GNUTLS_ENABLED" == "x1"; then
AC_MSG_RESULT(yes)
AC_DEFINE(USE_APPLE_SECTRUST, 1, [enable Apple OS certificate validation])
APPLE_SECTRUST_ENABLED=1
@ -49,7 +52,7 @@ if test "x$OPT_APPLE_SECTRUST" = xyes; then
LDFLAGS="$LDFLAGS $APPLE_SECTRUST_LDFLAGS"
LDFLAGSPC="$LDFLAGSPC $APPLE_SECTRUST_LDFLAGS"
else
AC_MSG_RESULT(no)
AC_MSG_ERROR([Apple SecTrust is only supported for OpenSSL/GnuTLS builds])
fi
else
AC_MSG_RESULT(no)