From: Ryan Cox Date: Wed, 3 Nov 2010 13:04:09 +0000 (+0100) Subject: configure.in: Check for libmongoc. X-Git-Tag: collectd-5.1.0~40^2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d896b012f9386cab398c579601f90606c90fb542;p=collectd.git configure.in: Check for libmongoc. --- 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, [