m4/sectrust: fix test(1) operator

'=' is the operator defined by POSIX, only bash supports '=='

Closes #19371
This commit is contained in:
Thomas Klausner 2025-11-05 10:10:03 +01:00 committed by Daniel Stenberg
parent 8d00e28136
commit 2e770b33e8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -41,10 +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
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