summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-31 17:43:29 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-31 17:43:29 +0200
commit0e03d097ade12cfb170154b6065bd6c3115606c3 (patch)
tree73279189a967b783a0800aea7fb13ad70aa3acf7
parentd1b1294cc53a8efb069fc9454370f74cca72fef2 (diff)
downloadgnutls-0e03d097ade12cfb170154b6065bd6c3115606c3.tar.gz
do not exit configure if p11-kit is not found.
-rw-r--r--lib/configure.ac17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/configure.ac b/lib/configure.ac
index 27c8064724..63164ce375 100644
--- a/lib/configure.ac
+++ b/lib/configure.ac
@@ -102,11 +102,18 @@ AC_ARG_WITH(p11-kit,
[Build without p11-kit and PKCS#11 support]))
AM_CONDITIONAL(ENABLE_PKCS11, test "$with_p11_kit" != "no")
if test "$with_p11_kit" != "no"; then
- PKG_CHECK_MODULES(P11_KIT, [p11-kit-1])
- AC_DEFINE(ENABLE_PKCS11, 1, [Build PKCS#11 support])
- CFLAGS="$CFLAGS $P11_KIT_CFLAGS"
- LIBS="$LIBS $P11_KIT_LIBS"
- with_p11_kit=yes
+ PKG_CHECK_MODULES(P11_KIT, [p11-kit-1 >= 0.4], [with_p11_kit=yes], [with_p11_kit=no])
+ if test "$with_p11_kit" != "no";then
+ AC_DEFINE([ENABLE_PKCS11], 1, [Build PKCS#11 support])
+ CFLAGS="$CFLAGS $P11_KIT_CFLAGS"
+ LIBS="$LIBS $P11_KIT_LIBS"
+ else
+ AC_MSG_WARN([[
+***
+*** p11-kit was not found. PKCS #11 support will be disabled.
+*** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
+*** ]])
+ fi
fi
lgl_INIT