diff options
author | Travis Reitter <treitter@gmail.com> | 2010-02-12 07:09:32 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-02-12 07:19:54 +0800 |
commit | 2aa506e8a17ef67ddf43ee716b21afc780a9d0d2 (patch) | |
tree | 53d9c41aa9ab11296b5a0a3f739ced1b21b7b87d /configure.ac | |
parent | 1abde726f2920d166728b79cc6e2cdc5e72ea1df (diff) | |
download | gsoc2013-empathy-2aa506e8a17ef67ddf43ee716b21afc780a9d0d2.tar gsoc2013-empathy-2aa506e8a17ef67ddf43ee716b21afc780a9d0d2.tar.gz gsoc2013-empathy-2aa506e8a17ef67ddf43ee716b21afc780a9d0d2.tar.bz2 gsoc2013-empathy-2aa506e8a17ef67ddf43ee716b21afc780a9d0d2.tar.lz gsoc2013-empathy-2aa506e8a17ef67ddf43ee716b21afc780a9d0d2.tar.xz gsoc2013-empathy-2aa506e8a17ef67ddf43ee716b21afc780a9d0d2.tar.zst gsoc2013-empathy-2aa506e8a17ef67ddf43ee716b21afc780a9d0d2.zip |
Separate the accounts dialog into its own program which works with the Gnome preferences and control center.
Where available, this also supports embedding the preferences dialog in the
"extensible-shell" control center (currently in development, but likely to be
mainlined soon).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a21841299..33340df12 100644 --- a/configure.ac +++ b/configure.ac @@ -83,6 +83,8 @@ AC_PATH_PROG(GCONFTOOL, gconftool-2) AM_GCONF_SOURCE_2 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal` AC_SUBST(GLIB_GENMARSHAL) +CONTROL_CENTER_EXTENSIONDIR=`$PKG_CONFIG --variable=extensiondir libgnome-control-center-extension` +AC_SUBST(CONTROL_CENTER_EXTENSIONDIR) AC_CHECK_PROGS([XSLTPROC], [xsltproc]) if test -z "$XSLTPROC"; then @@ -181,6 +183,20 @@ PKG_CHECK_MODULES(EMPATHY, gnome-keyring-1 >= $KEYRING_REQUIRED ]) +PKG_CHECK_MODULES(LIBEMPATHY_ACCOUNTS_PANEL, +[ + glib-2.0 >= $GLIB_REQUIRED + gobject-2.0 + gio-2.0 >= $GLIB_REQUIRED + gdk-x11-2.0 + gtk+-2.0 >= $GTK_REQUIRED + libebook-1.2 + dbus-glib-1 + telepathy-glib >= $TELEPATHY_GLIB_REQUIRED + unique-1.0 + gnome-keyring-1 >= $KEYRING_REQUIRED +]) + PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED) # ----------------------------------------------------------- @@ -438,6 +454,35 @@ fi AM_CONDITIONAL(HAVE_NST, test "x$have_nst" = "xyes") # ----------------------------------------------------------- +# new, single-window control center +# ----------------------------------------------------------- +AC_ARG_ENABLE(control_center_embedding, + AS_HELP_STRING([--enable-control-center-embedding=@<:@no/yes/auto@:>@], + [Enable support for single-window control center]), + , enable_control_center_embedding=auto) + +if test "x$enable_control_center_embedding" != "xno"; then + PKG_CHECK_MODULES(CONTROL_CENTER_EMBEDDING, + [ + libgnome-control-center-extension + ], have_control_center_embedding="yes", have_control_center_embedding="no") + + if test "x$have_control_center_embedding" = "xyes"; then + AC_DEFINE(HAVE_CONTROL_CENTER_EMBEDDING, 1, [Define if you have the single-window control center]) + fi +else + have_control_center_embedding="no" +fi + +if test "x$enable_control_center_embedding" = "xyes" -a "x$have_control_center_embedding" != "xyes"; then + AC_MSG_ERROR([Couldn't find single-window control center dependencies.]) +fi + +AM_CONDITIONAL(HAVE_CONTROL_CENTER_EMBEDDING, test "x$have_control_center_embedding" = "xyes") +AC_SUBST(CONTROL_CENTER_EMBEDDING_CFLAGS) +AC_SUBST(CONTROL_CENTER_EMBEDDING_LIBS) + +# ----------------------------------------------------------- # Coding style checks # ----------------------------------------------------------- AC_ARG_ENABLE(coding-style-checks, @@ -452,6 +497,7 @@ AC_OUTPUT([ Makefile data/Makefile data/empathy.desktop.in + data/empathy-accounts.desktop.in data/icons/Makefile extensions/Makefile po/Makefile.in @@ -480,6 +526,7 @@ Configure summary: Location awareness (Geoclue): ${have_geoclue} Adium themes (Webkit).......: ${have_webkit} Moblin widgets .............: ${have_moblin} + Control center embedding....: ${have_control_center_embedding} Connectivity: NetworkManager integration..: ${have_nm} |