From d896b012f9386cab398c579601f90606c90fb542 Mon Sep 17 00:00:00 2001 From: Ryan Cox Date: Wed, 3 Nov 2010 14:04:09 +0100 Subject: [PATCH] configure.in: Check for libmongoc. --- configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.in b/configure.in index 9b6397f8..6a8899ed 100644 --- a/configure.in +++ b/configure.in @@ -1241,6 +1241,15 @@ AC_CHECK_MEMBERS([kstat_io_t.nwritten, kstat_io_t.writes, kstat_io_t.nwrites, ks # # Checks for libraries begin here # + +with_libmongoc="yes" +AC_CHECK_LIB(mongoc, mongo_run_command, +[ + AC_DEFINE(HAVE_LIBMONGOC, 1, [Define to 1 if you have the 'mongoc' library (-lmongoc).]) +], +[with_libmongoc="no"]) +AM_CONDITIONAL(BUILD_WITH_LIBMONGOC, test "x$with_libmongoc" = "xyes") + with_libresolv="yes" AC_CHECK_LIB(resolv, res_search, [ -- 2.30.2