Skip to content

Commit dd4f04e

Browse files
jmikolaalcaeus
authored andcommitted
PHPC-2342: Remove --with-libbson and --with-libmongoc configure options
1 parent c66b16a commit dd4f04e

File tree

2 files changed

+4
-36
lines changed

2 files changed

+4
-36
lines changed

UPGRADE-2.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ UPGRADE FROM 1.x to 2.0
1919
`MongoDB\Driver\Cursor::getId()` and
2020
`MongoDB\Driver\CursorInterface::getId()` now return a `MongoDB\BSON\Int64`
2121
instance.
22+
23+
* The `--with-libbson` and `--with-libmongoc` configure options have been
24+
removed. Use `--with-mongodb-system-libs` instead.
25+

config.m4

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

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

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

0 commit comments

Comments
 (0)