Code

configure.in: Check for libmongoc.
authorRyan Cox <ryan.a.cox@gmail.com>
Wed, 3 Nov 2010 13:04:09 +0000 (14:04 +0100)
committerChris Lundquist <chris.lundquist@bluebox.net>
Tue, 24 Jan 2012 19:53:22 +0000 (11:53 -0800)
configure.in

index 9b6397f863716c7e16df5a450fae44ab8a8670a8..6a8899ed888462a7870d2d4e0c2c546ef5feba86 100644 (file)
@@ -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,
 [