diff options
author | theawless <theawless@gmail.com> | 2021-05-07 15:15:35 +0530 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-06-02 08:55:00 +0200 |
commit | 0e7638dbea14307c15a6445cc5fb8430fcf83441 (patch) | |
tree | ead92e0462fc73c4400f0bad986f73f935034ef3 /configure.ac | |
parent | ee8c4f766ce891332a3162c81473e951238d903a (diff) | |
download | curl-0e7638dbea14307c15a6445cc5fb8430fcf83441.tar.gz |
configure: add --disable-ntlm option
Closes #7028
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e378e7efb..8d689d3eb 100755 --- a/configure.ac +++ b/configure.ac @@ -3645,6 +3645,25 @@ AS_HELP_STRING([--disable-crypto-auth],[Disable cryptographic authentication]), AC_MSG_RESULT(yes) ) +dnl ************************************************************ +dnl disable NTLM support +dnl +AC_MSG_CHECKING([whether to support NTLM]) +AC_ARG_ENABLE(ntlm, +AS_HELP_STRING([--enable-ntlm],[Enable NTLM support]) +AS_HELP_STRING([--disable-ntlm],[Disable NTLM support]), +[ case "$enableval" in + no) + AC_MSG_RESULT(no) + AC_DEFINE(CURL_DISABLE_NTLM, 1, [to disable NTLM support]) + CURL_DISABLE_NTLM=1 + ;; + *) AC_MSG_RESULT(yes) + ;; + esac ], + AC_MSG_RESULT(yes) +) + CURL_CHECK_OPTION_NTLM_WB CURL_CHECK_NTLM_WB @@ -4074,7 +4093,8 @@ fi use_curl_ntlm_core=no -if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then +if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \ + "x$CURL_DISABLE_NTLM" != "x1"; then if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \ -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \ -o "x$SECURETRANSPORT_ENABLED" = "x1" \ |