Check in the configure.ac check to go along with that #ifdef... Refs #10412.

Sat, 10 Oct 2009 03:37:48 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Sat, 10 Oct 2009 03:37:48 +0000
changeset 28654
4be5f3da3edb
parent 28653
f88a1253ed92
child 28655
69e23620d813

Check in the configure.ac check to go along with that #ifdef... Refs #10412.

configure.ac file | annotate | diff | comparison | revisions
--- a/configure.ac	Sat Oct 10 03:34:01 2009 +0000
+++ b/configure.ac	Sat Oct 10 03:37:48 2009 +0000
@@ -1773,6 +1773,23 @@
         LIBS="$LIBS_save"
 fi
 
+if test "x$enable_gnutls" = "xyes"; then
+	AC_MSG_CHECKING(for GNUTLS_CERT_INSECURE_ALGORITHM)
+	LIBS_save="$LIBS"
+	LIBS="$LIBS $GNUTLS_LIBS"
+	CPPFLAGS_save="$CPPFLAGS"
+	CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
+	AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]],
+                                        [[unsigned int verify = GNUTLS_CERT_INSECURE_ALGORITHM;]])],
+	               [AC_DEFINE([HAVE_GNUTLS_CERT_INSECURE_ALGORITHM], 1,
+                                  [Define if your gnutls has the GNUTLS_CERT_INSECURE_ALGORITHM flag])
+	                AC_MSG_RESULT(yes)],
+	               [AC_MSG_RESULT(no)])
+	CPPFLAGS="$CPPFLAGS_save"
+        LIBS="$LIBS_save"
+fi
+
+
 AM_CONDITIONAL(USE_GNUTLS, test "x$enable_gnutls" = "xyes")
 
 

mercurial