]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
fixed compilation without p11-kit
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 29 Sep 2011 10:58:15 +0000 (12:58 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 29 Sep 2011 10:58:15 +0000 (12:58 +0200)
configure.ac
src/p11common.c

index b3b6fb36d13257d5bdd8652d4dc8591084b0dbc9..e60c58a3e78ebe9cc17e3302ebfafb474f129816 100644 (file)
@@ -136,6 +136,7 @@ if test "$with_p11_kit" != "no"; then
                        GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
                fi
        else
+               with_p11_kit=no
                AC_MSG_WARN([[
 *** 
 *** p11-kit was not found. PKCS #11 support will be disabled.
index 0a8cf85299208f5727cbfcfc6eee9e557d753dfa..8deda79ab7c66dccd5ec0bc1d0d02c0abd4c09b8 100644 (file)
@@ -28,6 +28,8 @@
 #include <gnutls/pkcs11.h>
 #include <p11common.h>
 
+#ifdef ENABLE_PKCS11
+
 #define MIN(x,y) ((x)<(y))?(x):(y)
 
 #define MAX_CACHE_TRIES 5
@@ -130,3 +132,4 @@ pkcs11_common (void)
 
 }
 
+#endif