]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
m4/sectrust: fix test(1) operator
authorThomas Klausner <wiz@gatalith.at>
Wed, 5 Nov 2025 09:10:03 +0000 (10:10 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 Nov 2025 11:47:16 +0000 (12:47 +0100)
'=' is the operator defined by POSIX, only bash supports '=='

Closes #19371

m4/curl-apple-sectrust.m4

index 7ed2aa1e5bff7c98b7ee6e5e7efb5af10499ca27..d42fe860a5fafa3728c4584d333e94db22c15ea5 100644 (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