[Development] os: add gnutls_x509_crt_print() implementation, older systems
don't have it and improve backward compatibility of TLS code.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4277 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/configure.ac b/configure.ac
index a05e2fd..0c70936 100644
--- a/configure.ac
+++ b/configure.ac
@@ -107,6 +107,12 @@
AC_MSG_RESULT(yes),
[AC_DEFINE(HAVE_OLD_GNUTLS, 1, [Does gnutls lack the gnutls_transport_set_global_errno() function? ])
AC_MSG_RESULT(no)])
+ AC_MSG_CHECKING([for gnutls_x509_crt_print() function])
+ AC_LINK_IFELSE(AC_LANG_CALL([], gnutls_x509_crt_print),
+ [AC_DEFINE(HAVE_GNUTLS_X509_CRT_PRINT, 1, [Is the gnutls_x509_crt_print() function present? ])
+ AC_MSG_RESULT(yes)],
+ AC_MSG_RESULT(no))
+
LIBS=${SAVE_LIBS}
fi
AC_SUBST([GNUTLS_LIBS])