From cc902621bcc78a93a9a765020778bc0c160e2528 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 4 Oct 2023 16:06:42 +0000 Subject: [PATCH] fix LDAP condition for mac --- curl-autotools.sh | 2 +- curl-cmake.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/curl-autotools.sh b/curl-autotools.sh index d96b743dc..8bfb5d071 100755 --- a/curl-autotools.sh +++ b/curl-autotools.sh @@ -106,7 +106,7 @@ _VER="$1" options="${options} --enable-imap --enable-pop3 --enable-smtp" if [ "${_OS}" = 'win' ]; then options="${options} --enable-ldap --enable-ldaps --with-ldap-lib=wldap32" - elif [ "${_OS}" != 'mac' ] || [ "${_OSVER}" -lt '1010' ]; then # On macOS we use the built-in LDAP lib + elif [ "${_OS}" != 'mac' ] || [ "${_OSVER}" -ge '1010' ]; then # On macOS we use the built-in LDAP lib options="${options} --disable-ldap --disable-ldaps" fi fi diff --git a/curl-cmake.sh b/curl-cmake.sh index ec7facb51..9ba5d5bed 100755 --- a/curl-cmake.sh +++ b/curl-cmake.sh @@ -101,7 +101,7 @@ _VER="$1" [ "${_BRANCH#*noftp*}" != "${_BRANCH}" ] && options="${options} -DCURL_DISABLE_FTP=ON" if [ "${_OS}" = 'win' ]; then LIBS="${LIBS} -lwldap32" - elif [ "${_OS}" != 'mac' ] || [ "${_OSVER}" -lt '1010' ]; then # On macOS we use the built-in LDAP lib + elif [ "${_OS}" != 'mac' ] || [ "${_OSVER}" -ge '1010' ]; then # On macOS we use the built-in LDAP lib options="${options} -DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON" fi fi