From 359c523873438c2585e6820ea989725d23cd2988 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Tue, 9 Jun 2009 16:33:15 +0200 Subject: [PATCH] [build] Do not use automagic dependencies for gnome-keyring --- configure.ac | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 152cab05..8105b404 100644 --- a/configure.ac +++ b/configure.ac @@ -164,6 +164,13 @@ if test "$with_gtk_unix_print" = "yes"; then fi dnl ========= Check for Keyring + +if test "$os_win32" = yes; then + with_keyring_default=no +else + with_keyring_default=yes +fi + AC_ARG_WITH(keyring, AC_HELP_STRING([--without-keyring],[disable the use of gnome-keyring]), [case "${withval}" in @@ -171,23 +178,13 @@ AC_ARG_WITH(keyring, no) WITH_KEYRING=no ;; *) AC_MSG_ERROR(bad value ${withval} for --with-keyring) ;; esac], - [WITH_KEYRING=check]) dnl Default value - -if test x$WITH_KEYRING != "xno"; then - PKG_CHECK_MODULES(KEYRING, gnome-keyring-1 >= $KEYRING_REQUIRED, - WITH_KEYRING=yes, - if test "x$WITH_KEYRING" = "xcheck"; then - WITH_KEYRING=no - AC_MSG_WARN(The use of gnome-keyring is disabled since required library gnome-keyring-1 >= $KEYRING_REQUIRED was not found.) - else - AC_MSG_FAILURE(Gnome-keyring test failed: $KEYRING_PKG_ERRORS) - fi - ) -fi + [WITH_KEYRING=$with_keyring_default]) dnl Default value +AM_CONDITIONAL(WITH_KEYRING, test x$WITH_KEYRING = "xyes") + if test x$WITH_KEYRING = "xyes"; then + PKG_CHECK_MODULES(KEYRING, gnome-keyring-1 >= $KEYRING_REQUIRED) AC_DEFINE([WITH_KEYRING],[1],[Define if KEYRING support is enabled]) fi -AM_CONDITIONAL(WITH_KEYRING, test x$WITH_KEYRING = "xyes") GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) -- 2.43.5