diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-09-13 13:06:33 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-09-13 13:12:55 +0200 |
commit | fa63a565ee8e708d2b3d0abc521e7bef1e182b46 (patch) | |
tree | f95e6cd2c82348bc5a9108abda53da8f21390e54 /configure.ac | |
parent | a3e790483032fd53d2819624e3e6e3fc3cbdf8c0 (diff) | |
download | gnutls-fa63a565ee8e708d2b3d0abc521e7bef1e182b46.tar.gz |
simulate pkcs11x.h when it doesn't exist
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fe64424d57..73561aab7e 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,7 @@ AC_MSG_RESULT([*** ]) dnl Checks for programs. +PKG_PROG_PKG_CONFIG AC_PROG_CC gl_EARLY ggl_EARLY @@ -391,6 +392,7 @@ system_priority_file="/etc/gnutls/default-priorities" AC_DEFINE_UNQUOTED([SYSTEM_PRIORITY_FILE], ["$system_priority_file"], [The system priority file]) + dnl Check for p11-kit P11_KIT_MINIMUM=0.20.0 AC_ARG_WITH(p11-kit, @@ -405,6 +407,9 @@ if test "$with_p11_kit" != "no"; then else GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1" fi + if $PKG_CONFIG --atleast-version=2.20.6 p11-kit; then + AC_DEFINE([HAVE_PKCS11X_H], 1, [There is p11-kit/pkcs11x.h]) + fi else with_p11_kit=no AC_MSG_WARN([[ |