Skip to content

Commit 66bdd83

Browse files
committed
PHPC-1185: Restore sasl_client_done check
The check for sasl_client_done was inadvertently removed by aab92e1. This ensures that we check for the symbol regardless of whether SASL was found with pgk-config or PHP_CHECK_LIBRARY.
1 parent dee8c6d commit 66bdd83

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/autotools/libmongoc/CheckSasl.m4

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ AS_IF([test "$PHP_MONGODB_SASL" = "cyrus" -o "$PHP_MONGODB_SASL" = "auto"],[
3030
fi
3131
])
3232
33+
if test "$found_cyrus" = "yes"; then
34+
PHP_CHECK_LIBRARY([sasl2],
35+
[sasl_client_done],
36+
[have_sasl_client_done=yes],
37+
[have_sasl_client_done=no],
38+
$MONGODB_SHARED_LIBADD)
39+
fi
40+
3341
if test "$PHP_MONGODB_SASL" = "cyrus" -a "$found_cyrus" != "yes"; then
3442
AC_MSG_ERROR([Cyrus SASL libraries and development headers could not be found])
3543
fi

0 commit comments

Comments
 (0)