[telepathy-gabble/master] Add a disabled-by-default build option for plugins

Will Thompson will.thompson at collabora.co.uk
Fri Nov 13 02:21:21 PST 2009


---
 configure.ac |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 88e06fb..8aeaf11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -111,6 +111,18 @@ AC_SUBST(HANDLE_LEAK_DEBUG_CFLAGS)
 
 AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
 
+AC_ARG_ENABLE(plugins,
+  AC_HELP_STRING([--enable-plugins],
+                 [enable experimental plugin support]),
+    [enable_plugins=$enableval], [enable_plugins=no])
+
+if test x$enable_plugins = xyes; then
+  AC_DEFINE(ENABLE_PLUGINS, [], [Enable plugins])
+fi
+
+AM_CONDITIONAL(ENABLE_PLUGINS, test x$enable_plugins = xyes)
+AC_SUBST(ENABLE_PLUGINS)
+
 dnl Check for Glib
 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.16, gobject-2.0 >= 2.16, gthread-2.0 >= 2.16])
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list