Skip to content

Commit

Permalink
fix LDAP condition for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Oct 4, 2023
1 parent 69e11cf commit cc90262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion curl-autotools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion curl-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc90262

Please sign in to comment.