summaryrefslogtreecommitdiff
path: root/macros/neon.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/neon.m4')
-rw-r--r--macros/neon.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4
index 6b476e6..9b3abbd 100644
--- a/macros/neon.m4
+++ b/macros/neon.m4
@@ -967,6 +967,17 @@ gnutls)
if test ${ac_cv_func_gnutls_x509_dn_get_rdn_ava}X${ac_cv_header_iconv_h} = yesXyes; then
AC_CHECK_FUNCS(iconv)
fi
+
+ if test x${ac_cv_func_gnutls_sign_callback_set} = xyes; then
+ # PKCS#11... ho!
+ NE_PKG_CONFIG(NE_PK11, pakchois,
+ [AC_MSG_NOTICE(using pakchois for PKCS11 support)
+ AC_DEFINE(HAVE_PAKCHOIS, 1, [Define if pakchois library supported])
+ CPPFLAGS="$CPPFLAGS ${NE_PK11_CFLAGS}"
+ NEON_LIBS="${NEON_LIBS} ${NE_PK11_LIBS}"],
+ [AC_MSG_NOTICE(pakchois library not found; no PKCS11 support)])
+ fi
+
;;
*) # Default to off; only create crypto-enabled binaries if requested.
NE_DISABLE_SUPPORT(SSL, [SSL support is not enabled])