532
532
CPPFLAGS="$old_CPPFLAGS"
535
dnl D-Bus (required for support for KWallet and GNOME Keyring) -------------------
535
dnl D-Bus (required for support for KWallet) -------------------
537
537
if test -n "$PKG_CONFIG"; then
538
538
AC_MSG_CHECKING([for D-Bus .pc file])
582
582
if test "$svn_enable_shared" = "yes"; then
583
583
if test "$APR_HAS_DSO" = "yes"; then
584
584
if test -n "$PKG_CONFIG"; then
585
if test "$HAVE_DBUS" = "yes"; then
586
AC_MSG_CHECKING([for GLib and GNOME Keyring .pc files])
587
if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
585
AC_MSG_CHECKING([for GLib and GNOME Keyring .pc files])
586
if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then
588
old_CPPFLAGS="$CPPFLAGS"
589
SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
590
CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
591
AC_CHECK_HEADER(gnome-keyring.h, with_gnome_keyring=yes, with_gnome_keyring=no)
592
AC_MSG_CHECKING([for GNOME Keyring])
593
if test "$with_gnome_keyring" = "yes"; then
588
594
AC_MSG_RESULT([yes])
589
old_CPPFLAGS="$CPPFLAGS"
590
SVN_GNOME_KEYRING_INCLUDES="$DBUS_CPPFLAGS `$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`"
591
CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES"
592
AC_CHECK_HEADER(gnome-keyring.h, with_gnome_keyring=yes, with_gnome_keyring=no)
593
AC_MSG_CHECKING([for GNOME Keyring])
594
if test "$with_gnome_keyring" = "yes"; then
596
AC_DEFINE([SVN_HAVE_GNOME_KEYRING], [1],
597
[Is GNOME Keyring support enabled?])
598
CPPFLAGS="$old_CPPFLAGS"
599
SVN_GNOME_KEYRING_LIBS="$DBUS_LIBS `$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
602
AC_MSG_ERROR([cannot find GNOME Keyring])
595
AC_DEFINE([SVN_HAVE_GNOME_KEYRING], [1],
596
[Is GNOME Keyring support enabled?])
597
CPPFLAGS="$old_CPPFLAGS"
598
SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`"
605
600
AC_MSG_RESULT([no])
606
AC_MSG_ERROR([cannot find GLib and GNOME Keyring .pc files])
601
AC_MSG_ERROR([cannot find GNOME Keyring])
609
AC_MSG_ERROR([cannot find D-Bus])
605
AC_MSG_ERROR([cannot find GLib and GNOME Keyring .pc files])
612
608
AC_MSG_ERROR([cannot find pkg-config])