diff configure.ac @ 14266:63ef6342db05

[gaim-migrate @ 16948] * Initial commit of the Contact Availability Prediction plugin * Located in trunk/gtk/plugins/cap * Check README for further information and requirements for build committer: Tailor Script <tailor@pidgin.im>
author Geoff Foster <g-off_>
date Mon, 21 Aug 2006 07:44:31 +0000
parents c18bdf510325
children 985e5e3f6f2c
line wrap: on
line diff
--- a/configure.ac	Mon Aug 21 07:17:40 2006 +0000
+++ b/configure.ac	Mon Aug 21 07:44:31 2006 +0000
@@ -519,6 +519,7 @@
 AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes")
 
 AC_ARG_ENABLE(mono, [AC_HELP_STRING([--enable-mono], [compile with Mono runtime support])], , enable_mono=no)
+AC_ARG_ENABLE(cap, [AC_HELP_STRING([--enable-cap], [compile with Contact Availability Prediction Plugin])], , enable_cap=no)
 AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes)
 AC_ARG_ENABLE(perl, [AC_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes)
 AC_ARG_ENABLE(tcl, [AC_HELP_STRING([--disable-tcl], [compile without Tcl scripting])], , enable_tcl=yes)
@@ -975,6 +976,18 @@
 GC_TM_GMTOFF
 
 dnl #######################################################################
+dnl # Contact Availability Prediction (CAP)
+dnl #######################################################################
+if test "x$enable_cap" = "xyes"; then
+	AC_CHECK_HEADERS(dbi/dbi.h, [], enable_cap=no)
+fi
+if test "x$enable_cap" = "xyes"; then
+	AC_CHECK_LIB(dbi, dbi_result_field_is_null, [CAP_LIBS="-ldbi"], [enable_cap=no])
+fi
+AC_SUBST(CAP_LIBS)
+AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes")
+
+dnl #######################################################################
 dnl # Check for Mono support
 dnl #######################################################################
 
@@ -1819,6 +1832,7 @@
 		   gtk/pixmaps/status/Makefile
 		   gtk/pixmaps/status/default/Makefile
 		   gtk/plugins/Makefile
+		   gtk/plugins/cap/Makefile
 		   gtk/plugins/docklet/Makefile
 		   gtk/plugins/gevolution/Makefile
 		   gtk/plugins/gestures/Makefile