Skip to content

Commit 88bdd78

Browse files
committed
PHPC-1185: Warn for unrecognized mongodb-sasl values
1 parent aab92e1 commit 88bdd78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/build/autotools/CheckSasl.m4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ AS_IF([test "$PHP_MONGODB_SASL" = "auto"],[
6464
PHP_MONGODB_SASL="no"
6565
])
6666

67+
dnl Warn for unsupported values (e.g. Cyrus SASL search path)
68+
if test ! \( "$PHP_MONGODB_SASL" = "cyrus" -o "$PHP_MONGODB_SASL" = "gssapi" -o "$PHP_MONGODB_SASL" = "no" \); then
69+
AC_MSG_WARN([unsupported --with-mongodb-sasl value: $PHP_MONGODB_SASL])
70+
fi
71+
6772
AC_MSG_CHECKING([which SASL library to use])
6873
AC_MSG_RESULT([$PHP_MONGODB_SASL])
6974

0 commit comments

Comments
 (0)