--- gnome-keyring-2.25.1/configure.in.bak	2008-12-08 23:01:46.276220000 +0800
+++ gnome-keyring-2.25.1/configure.in	2008-12-08 23:15:31.570402000 +0800
@@ -394,13 +394,9 @@
 
 GKR_LIBTASN1_VERSION=0.3.4
 
-AM_PATH_LIBTASN1($GKR_LIBTASN1_VERSION,,
-	AC_MSG_ERROR([[
-*** 
-*** LibtASN1 ${GKR_LIBTASN1_VERSION} was not found. 
-]]))
-libtasn=yes
-AC_DEFINE_UNQUOTED(GKR_LIBGCRYPT_VERSION, "$GKR_LIBTASN1_VERSION", [Version of libtasn1 we expect])
+PKG_CHECK_MODULES(LIBTASN1,libtasn1 >= 1.0)
+AC_SUBST([LIBTASN1_LIBS])
+AC_SUBST([LIBTASN1_CFLAGS])
 
 DAEMON_CFLAGS="$DAEMON_CFLAGS $LIBTASN1_CFLAGS"
 DAEMON_LIBS="$DAEMON_LIBS $LIBTASN1_LIBS"
