@@ -17,6 +17,9 @@ PHP_ARG_ENABLE(memcached-igbinary, whether to enable memcached igbinary serializ
1717PHP_ARG_ENABLE(memcached-json, whether to enable memcached json serializer support,
1818[ --enable-memcached-json Enable memcached json serializer support] , no, no)
1919
20+ PHP_ARG_ENABLE(memcached-sasl, whether to disable memcached sasl support,
21+ [ --disable-memcached-sasl Disable memcached sasl support] , no, no)
22+
2023if test -z "$PHP_ZLIB_DIR"; then
2124PHP_ARG_WITH(zlib-dir, for ZLIB,
2225[ --with-zlib-dir[ =DIR] Set the path to ZLIB install prefix.] , no)
@@ -226,10 +229,12 @@ if test "$PHP_MEMCACHED" != "no"; then
226229 fi
227230 done
228231 fi
229-
230- AC_CHECK_HEADERS ( [ sasl/sasl.h] , [ memcached_enable_sasl="yes"] , [ memcached_enable_sasl="no"] )
231- AC_MSG_CHECKING ( [ whether to enable sasl support] )
232- AC_MSG_RESULT ( [ $memcached_enable_sasl] )
232+
233+ if test "$PHP_MEMCACHED_SASL" != "no"; then
234+ AC_CHECK_HEADERS ( [ sasl/sasl.h] , [ memcached_enable_sasl="yes"] , [ memcached_enable_sasl="no"] )
235+ AC_MSG_CHECKING ( [ whether to enable sasl support] )
236+ AC_MSG_RESULT ( [ $memcached_enable_sasl] )
237+ fi
233238
234239 AC_MSG_CHECKING ( [ for libmemcached location] )
235240 if test "$PHP_LIBMEMCACHED_DIR" = "no"; then
0 commit comments