diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fd8f4cf8..b44cb1b7 100644 --- a/configure.ac +++ b/configure.ac @@ -512,6 +512,27 @@ if test "$gtk_ok" = "yes"; then [Define if _NL_MEASUREMENT_MEASUREMENT is available]) fi +AC_ARG_ENABLE([in-process], + [AS_HELP_STRING([--enable-in-process], + [Build all applets in-process])], + [enable_in_process=$enableval], + [enable_in_process=no]) + +# Automake conditional on whether to build in-process +AM_CONDITIONAL([ENABLE_IN_PROCESS], [test "x$enable_in_process" = "xyes"]) +# Automake value expected to be substitued in .mate-panel-apple.* for the value of "InProcess" +AS_IF([test "x$enable_in_process" = "xyes"], + [AC_SUBST([APPLET_IN_PROCESS], [true])], + [AC_SUBST([APPLET_IN_PROCESS], [false])]) +# C conditional on whether to build in-process +AS_IF([test "x$enable_in_process" = "xyes"], + [AC_DEFINE([ENABLE_IN_PROCESS], [1], [building in-process])]) +# Convenience C define selecting the right applet factory +AS_IF([test "x$enable_in_process" = "xyes"], + [factory=MATE_PANEL_APPLET_IN_PROCESS_FACTORY], + [factory=MATE_PANEL_APPLET_OUT_PROCESS_FACTORY]) +AC_DEFINE_UNQUOTED([PANEL_APPLET_FACTORY], [$factory], [Panel applet factory]) + dnl *************************************************************************** dnl *** Honour aclocal flags *** dnl *************************************************************************** @@ -656,4 +677,5 @@ Configure summary: Using UPOWER: $HAVE_UPOWER Using libnotify: $HAVE_LIBNOTIFY Enabling IPv6: $have_ipv6 + Build in-process: $enable_in_process " >&2 |