aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in35
1 files changed, 32 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 6e4adfe4df..e508650d39 100644
--- a/configure.in
+++ b/configure.in
@@ -1269,9 +1269,6 @@ AC_SUBST(camel_providerdir)
componentdir="$privlibdir/components"
AC_SUBST(componentdir)
-plugindir="$privlibdir/plugins"
-AC_SUBST(plugindir)
-
idldir="$datadir/idl/evolution-$BASE_VERSION"
AC_SUBST(idldir)
@@ -1331,6 +1328,35 @@ AC_DEFINE_UNQUOTED(INTERFACE_VERSION, "$INTERFACE_VERSION", [IDL interface versi
EVO_SERVER_RULE=$srcdir/server.mk
AC_SUBST_FILE(EVO_SERVER_RULE)
+dnl ************************
+dnl Plugins
+dnl ************************
+
+plugindir="$privlibdir/plugins"
+AC_SUBST(plugindir)
+
+EVO_PLUGIN_RULE=$srcdir/plugin.mk
+AC_SUBST_FILE(EVO_PLUGIN_RULE)
+
+AC_ARG_ENABLE(plugins, [ --enable-plugins=[no/all/list] Enable plugins.],enable_plugins="$enableval",enable_plugins=no)
+
+dnl Add any new plugins here
+plugins_all="subject-thread"
+
+if test x"$enable_plugins" = "xno"; then
+ plugins_enabled=""
+ msg_plugins="no"
+else
+ if test x"$enable_plugins" = "xall"; then
+ plugins_enabled="$plugins_all"
+ else
+ plugins_enabled="$enable_plugins"
+ fi
+ msg_plugins="$enable_plugins"
+fi
+AC_SUBST(plugins_enabled)
+AC_SUBST(plugins_all)
+
##################################################
# Check for gtk-doc.
##################################################
@@ -1506,6 +1532,8 @@ mail/Makefile
mail/default/Makefile
mail/default/C/Makefile
mail/importers/Makefile
+plugins/Makefile
+plugins/subject-thread/Makefile
smime/Makefile
smime/lib/Makefile
smime/gui/Makefile
@@ -1537,6 +1565,7 @@ echo "\
IPv6 support: $msg_ipv6
Dot Locking: $msg_dot
File Locking: $msg_file
+ Plugins: $msg_plugins
Gtk-doc: $enable_gtk_doc"
if test x$enable_gtk_doc = xyes; then