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, ...@@ -31,11 +31,12 @@ AC_DEFUN(MU_CHECK_TLS,
31 [WITH_GNUTLS=no]) 31 [WITH_GNUTLS=no])
32 if test "$WITH_GNUTLS" != "no"; then 32 if test "$WITH_GNUTLS" != "no"; then
33 saved_LIBS=$LIBS 33 saved_LIBS=$LIBS
34 AC_CHECK_LIB(gnutls, gnutls_global_init,
35 [TLS_LIBS="-lgnutls"],
36 [WITH_GNUTLS=no])
37 AC_CHECK_LIB(gcrypt, main, 34 AC_CHECK_LIB(gcrypt, main,
38 [TLS_LIBS="$TLS_LIBS -lgcrypt"], 35 [TLS_LIBS="-lgcrypt"],
36 [WITH_GNUTLS=no])
37 LIBS="$LIBS $TLS_LIBS"
38 AC_CHECK_LIB(gnutls, gnutls_global_init,
39 [TLS_LIBS="-lgnutls $TLS_LIBS"],
39 [WITH_GNUTLS=no]) 40 [WITH_GNUTLS=no])
40 LIBS=$saved_LIBS 41 LIBS=$saved_LIBS
41 fi 42 fi
......