From 5f86620759f2e522bda0e73f6c56fcb7c50d5295 Mon Sep 17 00:00:00 2001 From: Brent Hull Date: Sat, 15 Dec 2012 20:04:05 -0500 Subject: Make mate-keyring support optional --- configure.ac | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e15db51..f2db80c 100644 --- a/configure.ac +++ b/configure.ac @@ -151,7 +151,6 @@ PKG_CHECK_MODULES(DBUS,[ PKG_CHECK_MODULES(MATE, [ gtk+-2.0 >= $GTK_REQUIRED - mate-keyring-1 >= $MATE_KEYRING_REQUIRED cairo >= $CAIRO_REQUIRED]) PKG_CHECK_MODULES(GDK, [ @@ -250,6 +249,22 @@ else fi AM_CONDITIONAL([HAVE_TESTS], [test $have_tests = yes]) +dnl --------------------------------------------------------------------------- +dnl - Build mate-keyring support +dnl --------------------------------------------------------------------------- +AC_ARG_WITH(keyring, + [AS_HELP_STRING([--without-keyring], + [Disable the use of mate-keyring])], + [], + [with_keyring=yes]) + +AM_CONDITIONAL([WITH_KEYRING],[test "$with_keyring" = "yes"]) + +if test "$with_keyring" = "yes"; then + PKG_CHECK_MODULES(KEYRING, mate-keyring-1 >= $MATE_KEYRING_REQUIRED) + AC_DEFINE([WITH_KEYRING],[1],[Define if KEYRING support is enabled]) +fi + dnl --------------------------------------------------------------------------- dnl - Build applets dnl --------------------------------------------------------------------------- @@ -400,6 +415,7 @@ echo " datadir: ${datadir} compiler: ${CC} cflags: ${CFLAGS} + mate-keyring support: ${with_keyring} Building extra applets: ${enable_applets} Self test support: ${have_tests} Use libunique: ${enable_libunique} -- cgit v1.2.1