Skip to content

Commit d60e587

Browse files
committed
PHPC-2342: Remove --with-libbson and --with-libmongoc configure options
1 parent ea94e98 commit d60e587

File tree

2 files changed

+3
-36
lines changed

2 files changed

+3
-36
lines changed

UPGRADE-2.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ UPGRADE FROM 1.x to 2.0
99
* The constants `MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW` and
1010
`MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW` have been
1111
removed. Use the `ALGORITHM_RANGE` and `QUERY_TYPE_RANGE` instead.
12+
* The `--with-libbson` and `--with-libmongoc` configure options have been
13+
removed. Use `--with-mongodb-system-libs` instead.
14+

config.m4

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -226,22 +226,6 @@ if test "$PHP_MONGODB" != "no"; then
226226
[no])
227227
PHP_MONGODB_VALIDATE_ARG([PHP_MONGODB_SYSTEM_LIBS], [yes no])
228228

229-
PHP_ARG_WITH([libbson],
230-
[whether to use system libbson],
231-
[AS_HELP_STRING([--with-libbson=@<:@yes/no@:>@],
232-
[MongoDB: Use system libbson (deprecated for --with-mongodb-system-libs) [default=no]])],
233-
[no],
234-
[no])
235-
PHP_MONGODB_VALIDATE_ARG([PHP_LIBBSON], [yes no])
236-
237-
PHP_ARG_WITH([libmongoc],
238-
[whether to use system libmongoc],
239-
[AS_HELP_STRING([--with-libmongoc=@<:@yes/no@:>@],
240-
[MongoDB: Use system libmongoc (deprecated for --with-mongodb-system-libs) [default=no]])],
241-
[no],
242-
[no])
243-
PHP_MONGODB_VALIDATE_ARG([PHP_LIBMONGOC], [yes no])
244-
245229
PHP_ARG_WITH([mongodb-client-side-encryption],
246230
[whether to enable client-side encryption],
247231
[AS_HELP_STRING([--with-mongodb-client-side-encryption=@<:@auto/yes/no@:>@],
@@ -250,26 +234,6 @@ if test "$PHP_MONGODB" != "no"; then
250234
[no])
251235
PHP_MONGODB_VALIDATE_ARG([PHP_MONGODB_CLIENT_SIDE_ENCRYPTION], [auto yes no])
252236

253-
if test "$PHP_LIBBSON" != "no"; then
254-
AC_MSG_WARN(Using --with-libbson is deprecated and will be removed in a future version. Please use --with-system-libs instead)
255-
256-
if test "$PHP_LIBMONGOC" = "no"; then
257-
AC_MSG_ERROR(Cannot use system libbson and bundled libmongoc)
258-
fi
259-
260-
PHP_MONGODB_SYSTEM_LIBS="yes"
261-
fi
262-
263-
if test "$PHP_LIBMONGOC" != "no"; then
264-
AC_MSG_WARN(Using --with-libmongoc is deprecated and will be removed in a future version. Please use --with-system-libs instead)
265-
266-
if test "$PHP_LIBBSON" = "no"; then
267-
AC_MSG_ERROR(Cannot use system libmongoc and bundled libbson)
268-
fi
269-
270-
PHP_MONGODB_SYSTEM_LIBS="yes"
271-
fi
272-
273237
PHP_MONGODB_BSON_VERSION_STRING="None"
274238
PHP_MONGODB_MONGOC_VERSION_STRING="None"
275239
PHP_MONGODB_MONGOCRYPT_VERSION_STRING="None"

0 commit comments

Comments
 (0)