aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openldap/cyrus-sasl.diff
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/openldap/cyrus-sasl.diff
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/openldap/cyrus-sasl.diff')
-rw-r--r--vcpkg/ports/openldap/cyrus-sasl.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/openldap/cyrus-sasl.diff b/vcpkg/ports/openldap/cyrus-sasl.diff
new file mode 100644
index 0000000..5b622bb
--- /dev/null
+++ b/vcpkg/ports/openldap/cyrus-sasl.diff
@@ -0,0 +1,22 @@
+diff --git a/configure.ac b/configure.ac
+index f01b7e6..c4a6faa 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2008,14 +2008,13 @@ WITH_SASL=no
+ ol_link_sasl=no
+ ol_link_spasswd=no
+ if test $ol_with_cyrus_sasl != no ; then
++ PKG_CHECK_MODULES(SASL, libsasl2, [have_openssl=yes], [AC_MSG_FAILURE([OpenSSL is required])])
++ CFLAGS="$CFLAGS $SASL_CFLAGS"
+ AC_CHECK_HEADERS(sasl/sasl.h sasl.h)
+
+ if test $ac_cv_header_sasl_sasl_h = yes ||
+ test $ac_cv_header_sasl_h = yes; then
+- AC_CHECK_LIB(sasl2, sasl_client_init,
+- [ol_link_sasl="-lsasl2"],
+- [AC_CHECK_LIB(sasl, sasl_client_init,
+- [ol_link_sasl="-lsasl"])])
++ ol_link_sasl="$SASL_LIBS"
+ fi
+
+ if test $ol_link_sasl = no ; then