Skip to content

Commit 28abd55

Browse files
committed
PHPC-151: Bump to libbson-1.1.0 and mongoc-1.1.0 and fix build
1 parent 7d42eba commit 28abd55

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

.gitmodules

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[submodule "src/libmongoc"]
22
path = src/libmongoc
3-
url = https://github.com/bjori/mongo-c-driver.git
4-
branch = phongo
3+
url = https://github.com/mongodb/mongo-c-driver.git
4+
branch = master
55
[submodule "src/libbson"]
66
path = src/libbson
77
url = https://github.com/mongodb/libbson.git

config.m4

+22-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,27 @@ PHP_ARG_WITH(openssl-dir, OpenSSL dir for phongo,
55
[ --with-openssl-dir[=DIR] openssl install prefix], yes, no)
66

77

8+
AC_DEFUN([MONGOC_DEFINE_FLUSH],[
9+
[echo "#endif" >> $srcdir/src/libmongoc/src/mongoc/mongoc-config.h]
10+
])
11+
AC_DEFUN([BSON_DEFINE_FLUSH],[
12+
[echo "#endif" >> $srcdir/src/libbson/src/bson/bson-config.h]
13+
])
14+
15+
816
AC_DEFUN([MONGOC_DEFINE_RESET],[
9-
[echo "" > $srcdir/src/libmongoc/src/mongoc/mongoc-config.h]
17+
[echo -e "/* Generated by phongo */
18+
#ifndef MONGOC_CONFIG_H
19+
#define MONGOC_CONFIG_H
20+
21+
" > $srcdir/src/libmongoc/src/mongoc/mongoc-config.h]
1022
])
1123
AC_DEFUN([BSON_DEFINE_RESET],[
12-
[echo "" > $srcdir/src/libbson/src/bson/bson-config.h]
24+
[echo "/* Generated by phongo */
25+
#ifndef BSON_CONFIG_H
26+
#define BSON_CONFIG_H
27+
28+
" > $srcdir/src/libbson/src/bson/bson-config.h]
1329
])
1430
dnl borrowed from PHP acinclude.m4
1531
AC_DEFUN([BSON_DEFINE],[
@@ -219,6 +235,7 @@ if test "$PHONGO" != "no"; then
219235
mongoc-array.c \
220236
mongoc-buffer.c \
221237
mongoc-bulk-operation.c \
238+
mongoc-b64.c \
222239
mongoc-client.c \
223240
mongoc-client-pool.c \
224241
mongoc-cluster.c \
@@ -391,6 +408,9 @@ dnl }}}
391408
BSON_DEFINE([BSON_HAVE_SNPRINTF], 1)
392409
fi
393410

411+
MONGOC_DEFINE_FLUSH()
412+
BSON_DEFINE_FLUSH()
413+
394414
dnl This must come after PHP_NEW_EXTENSION, otherwise the srcdir won't be set
395415
PHP_ADD_MAKEFILE_FRAGMENT
396416

0 commit comments

Comments
 (0)