@@ -301,7 +301,7 @@ MONGOC_SOURCES_SASL=mongoc-sasl.c
301
301
PHP_ADD_SOURCES_X(PHP_EXT_DIR(mongodb), $MONGODB_CONTRIB, [ $STD_CFLAGS $MAINTAINER_CFLAGS $COVERAGE_CFLAGS] , shared_objects_mongodb, yes)
302
302
fi
303
303
304
- PHP_ARG_WITH(libbson, Use system libbson,
304
+ PHP_ARG_WITH(libbson, whether to use system libbson,
305
305
[ --with-libbson Use system libbson] , no, no)
306
306
307
307
if test "$PHP_LIBBSON" != "no"; then
@@ -331,7 +331,7 @@ dnl libmongoc stuff {{{
331
331
AC_MSG_CHECKING ( configuring libmongoc )
332
332
AC_MSG_RESULT ( ... )
333
333
334
- PHP_ARG_WITH(libmongoc, Use system libmongoc,
334
+ PHP_ARG_WITH(libmongoc, whether to use system libmongoc,
335
335
[ --with-libmongoc Use system libmongoc] , no, no)
336
336
337
337
AC_DEFINE ( HAVE_MONGOC , 1 , [ Kinda useless extension without it..] )
@@ -370,7 +370,7 @@ PHP_ARG_WITH(libmongoc, Use system libmongoc,
370
370
fi
371
371
372
372
373
- PHP_ARG_WITH(pcre-dir, pcre-dir install prefix
373
+ PHP_ARG_WITH(pcre-dir, for pcre-dir install prefix,
374
374
[ --with-pcre-dir[ =DIR] mongodb: pcre install prefix] , auto, yes)
375
375
376
376
if test "$PHP_PCRE_DIR" != "no"; then
@@ -390,8 +390,8 @@ if test "$PHP_PCRE_DIR" != "no"; then
390
390
fi
391
391
fi
392
392
393
- PHP_ARG_WITH(mongodb-sasl, Build with Cyrus SASL support,
394
- [ --with-mongodb-sasl[ =DIR] mongodb: Include Cyrus SASL support] , auto, yes )
393
+ PHP_ARG_WITH(mongodb-sasl, for Cyrus SASL support,
394
+ [ --with-mongodb-sasl[ =DIR] mongodb: Include Cyrus SASL support] , auto, no )
395
395
396
396
if test "$PHP_MONGODB_SASL" != "no"; then
397
397
AC_MSG_CHECKING ( for SASL )
@@ -405,31 +405,35 @@ if test "$PHP_MONGODB_SASL" != "no"; then
405
405
406
406
if test -z "$MONGODB_SASL_DIR"; then
407
407
AC_MSG_RESULT ( not found )
408
- if test "$MONGODB_SASL " != "auto"; then
408
+ if test "$PHP_MONGODB_SASL " != "auto"; then
409
409
AC_MSG_ERROR ( [ sasl.h not found!] )
410
+ else
411
+ AC_SUBST ( MONGOC_ENABLE_SASL , 0 )
412
+ AC_SUBST ( MONGOC_HAVE_SASL_CLIENT_DONE , 0 )
410
413
fi
411
- fi
414
+ else
412
415
413
- PHP_CHECK_LIBRARY(sasl2, sasl_version,
414
- [
415
- PHP_ADD_INCLUDE($MONGODB_SASL_DIR)
416
- PHP_ADD_LIBRARY_WITH_PATH(sasl2, $MONGODB_SASL_DIR/$PHP_LIBDIR, MONGODB_SHARED_LIBADD)
417
- MONGOC_ENABLE_SASL=1
418
- AC_SUBST ( MONGOC_ENABLE_SASL )
419
- ] , [
420
- if test "$MONGODB_SASL" != "auto"; then
421
- AC_MSG_ERROR ( [ MONGO SASL check failed. Please check config.log for more information.] )
422
- fi
423
- ] , [
424
- -L$MONGODB_SASL_DIR/$PHP_LIBDIR
425
- ] )
416
+ PHP_CHECK_LIBRARY(sasl2, sasl_version,
417
+ [
418
+ PHP_ADD_INCLUDE($MONGODB_SASL_DIR)
419
+ PHP_ADD_LIBRARY_WITH_PATH(sasl2, $MONGODB_SASL_DIR/$PHP_LIBDIR, MONGODB_SHARED_LIBADD)
420
+ MONGOC_ENABLE_SASL=1
421
+ AC_SUBST ( MONGOC_ENABLE_SASL )
422
+ ] , [
423
+ if test "$MONGODB_SASL" != "auto"; then
424
+ AC_MSG_ERROR ( [ MONGO SASL check failed. Please check config.log for more information.] )
425
+ fi
426
+ ] , [
427
+ -L$MONGODB_SASL_DIR/$PHP_LIBDIR
428
+ ] )
426
429
427
- PHP_CHECK_LIBRARY(sasl2, sasl_client_done,
428
- [
429
- AC_SUBST ( MONGOC_HAVE_SASL_CLIENT_DONE , 1 )
430
- ] , [
431
- AC_SUBST ( MONGOC_HAVE_SASL_CLIENT_DONE , 0 )
432
- ] )
430
+ PHP_CHECK_LIBRARY(sasl2, sasl_client_done,
431
+ [
432
+ AC_SUBST ( MONGOC_HAVE_SASL_CLIENT_DONE , 1 )
433
+ ] , [
434
+ AC_SUBST ( MONGOC_HAVE_SASL_CLIENT_DONE , 0 )
435
+ ] )
436
+ fi
433
437
else
434
438
AC_SUBST ( MONGOC_ENABLE_SASL , 0 )
435
439
AC_SUBST ( MONGOC_HAVE_SASL_CLIENT_DONE , 0 )
0 commit comments