pidgin: 1a582204: Check in the configure.ac check to go al...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Fri Oct 9 23:40:26 EDT 2009


-----------------------------------------------------------------
Revision: 1a58220499c7d85ea9df28a72a0ddedfd5c7101e
Ancestor: 41f6339e4cf6ad2b76ee4457c4c0b2136067fe8b
Author: darkrain42 at pidgin.im
Date: 2009-10-10T03:37:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1a58220499c7d85ea9df28a72a0ddedfd5c7101e

Modified files:
        configure.ac

ChangeLog: 

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

-------------- next part --------------
============================================================
--- configure.ac	330085c031f5c559ce83a90fb4f87e488a0f1577
+++ configure.ac	99bdad4d938c91f392ab6589df7f7185cfd27339
@@ -1773,6 +1773,23 @@ fi
         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")
 
 


More information about the Commits mailing list