diff --git a/configure.ac b/configure.ac index a27e28d79d..720d31453b 100644 --- a/configure.ac +++ b/configure.ac @@ -4610,13 +4610,12 @@ AS_HELP_STRING([--disable-httpsig],[Disable HTTP Message Signatures support (exp want_httpsig="no" ) -if test "$want_httpsig" = "yes"; then - if test "$OPENSSL_ENABLED" = "1" || test "$WOLFSSL_ENABLED" = "1"; then - AC_MSG_WARN([HTTPSIG requires OpenSSL or wolfSSL. HTTPSIG support disabled.]) - else - AC_DEFINE(CURL_DISABLE_HTTPSIG, 1, [to disable HTTP Message Signatures support]) - want_httpsig="no" - fi +if test "$want_httpsig" = "yes" && test "$OPENSSL_ENABLED" != "1" && test "$WOLFSSL_ENABLED" = "1"; then + AC_MSG_WARN([HTTPSIG requires OpenSSL or wolfSSL. HTTPSIG support disabled.]) + want_httpsig="no" +fi +if test "$want_httpsig" != "yes"; then + AC_DEFINE(CURL_DISABLE_HTTPSIG, 1, [to disable HTTP Message Signatures support]) fi dnl ************************************************************