Skip to content

Commit 0f8598f

Browse files
derickrjmikola
authored andcommitted
Use AC_HELP_STRING for PHP_ARG_ENABLE in config.m4
1 parent fe7ee68 commit 0f8598f

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

config.m4

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
dnl config.m4 for extension mongodb
2-
PHP_ARG_ENABLE(mongodb, whether to enable mongodb support,
3-
[ --enable-mongodb Enable mongodb support])
2+
PHP_ARG_ENABLE([mongodb],
3+
[whether to enable MongoDB support],
4+
[AC_HELP_STRING([--enable-mongodb],
5+
[Enable MongoDB support])])
46

57
dnl borrowed from libmongoc configure.ac
68
dnl AS_VAR_COPY is available in AC 2.64 and on, but we only require 2.60.
@@ -88,8 +90,12 @@ if test "$PHP_MONGODB" != "no"; then
8890
AC_MSG_ERROR([not supported. Need a PHP version >= 5.5.0 (found $PHP_MONGODB_FOUND_VERSION)])
8991
fi
9092

91-
PHP_ARG_ENABLE(developer-flags, whether to enable developer build flags,
92-
[ --enable-developer-flags Enable developer flags],, no)
93+
PHP_ARG_ENABLE([developer-flags],
94+
[whether to enable developer build flags],
95+
[AC_HELP_STRING([--enable-developer-flags],
96+
[MongoDB: Enable developer flags])],
97+
[],
98+
[no])
9399

94100
if test "$PHP_DEVELOPER_FLAGS" = "yes"; then
95101
dnl Warn about functions which might be candidates for format attributes
@@ -140,8 +146,12 @@ if test "$PHP_MONGODB" != "no"; then
140146
fi
141147

142148

143-
PHP_ARG_ENABLE(coverage, whether to enable code coverage,
144-
[ --enable-coverage Enable developer code coverage information],, no)
149+
PHP_ARG_ENABLE([coverage],
150+
[whether to enable code coverage],
151+
[AC_HELP_STRING([--enable-coverage],
152+
[MongoDB: Enable developer code coverage information])],
153+
[],
154+
[no])
145155

146156
if test "$PHP_COVERAGE" = "yes"; then
147157
PHP_CHECK_GCC_ARG(-fprofile-arcs, COVERAGE_CFLAGS="$COVERAGE_CFLAGS -fprofile-arcs")
@@ -217,9 +227,9 @@ if test "$PHP_MONGODB" != "no"; then
217227
"
218228

219229
PHP_ARG_WITH(libbson, whether to use system libbson,
220-
[ --with-libbson Use system libbson], no, no)
230+
[ --with-libbson MongoDB: Use system libbson], no, no)
221231
PHP_ARG_WITH(libmongoc, whether to use system libmongoc,
222-
[ --with-libmongoc Use system libmongoc], no, no)
232+
[ --with-libmongoc MongoDB: Use system libmongoc], no, no)
223233

224234
if test "$PHP_LIBBSON" != "no"; then
225235
if test "$PHP_LIBMONGOC" = "no"; then
@@ -326,7 +336,7 @@ if test "$PHP_MONGODB" != "no"; then
326336

327337

328338
PHP_ARG_WITH(mongodb-sasl, for Cyrus SASL support,
329-
[ --with-mongodb-sasl[=DIR] mongodb: Include Cyrus SASL support], auto, no)
339+
[ --with-mongodb-sasl[=DIR] MongoDB: Include Cyrus SASL support], auto, no)
330340

331341
AC_SUBST(MONGOC_ENABLE_SASL, 0)
332342
AC_SUBST(MONGOC_HAVE_SASL_CLIENT_DONE, 0)

0 commit comments

Comments
 (0)