Commit ce2e1107 ce2e1107074a441a3dd61c7aaf2bf9639f7821e3 by Sergey Poznyakoff

Reverted order of checks for libgnutls and libgcrypt. Thanks Simon Josefsson.

1 parent 216963b9
......@@ -31,11 +31,12 @@ AC_DEFUN(MU_CHECK_TLS,
[WITH_GNUTLS=no])
if test "$WITH_GNUTLS" != "no"; then
saved_LIBS=$LIBS
AC_CHECK_LIB(gnutls, gnutls_global_init,
[TLS_LIBS="-lgnutls"],
[WITH_GNUTLS=no])
AC_CHECK_LIB(gcrypt, main,
[TLS_LIBS="$TLS_LIBS -lgcrypt"],
[TLS_LIBS="-lgcrypt"],
[WITH_GNUTLS=no])
LIBS="$LIBS $TLS_LIBS"
AC_CHECK_LIB(gnutls, gnutls_global_init,
[TLS_LIBS="-lgnutls $TLS_LIBS"],
[WITH_GNUTLS=no])
LIBS=$saved_LIBS
fi
......