diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-09-11 22:23:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-09-11 22:23:52 +0200 |
commit | ed6afa825ea8e1c88fe931a10e1adfd32851fe39 (patch) | |
tree | fb693ee1bb06530362c8d69dde4edd6c4fbc883e | |
parent | 16c133294af482665fd72c6e40a42b6480aea3e1 (diff) |
fix #6594: better test for gnutls_record_uncork
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index dc9e560f..2dbafcb5 100644 --- a/configure.ac +++ b/configure.ac @@ -1587,7 +1587,7 @@ AC_ARG_WITH([[gnutls]], CPPFLAGS="-I$with_gnutls/include $CPPFLAGS" have_gnutls_pkgcfg=no AC_CHECK_HEADERS([gnutls/gnutls.h], - [AC_CHECK_LIB([gnutls], [gnutls_priority_set], + [AC_CHECK_LIB([gnutls], [gnutls_record_uncork], [ GNUTLS_CPPFLAGS="-I$with_gnutls/include" GNUTLS_LDFLAGS="-L$with_gnutls/lib" @@ -1699,7 +1699,7 @@ choke me now # check for GnuTLS at default paths have_gnutls_pkgcfg='no' AC_CHECK_HEADERS([gnutls/gnutls.h], - [AC_CHECK_LIB([gnutls], [gnutls_priority_set], + [AC_CHECK_LIB([gnutls], [gnutls_record_uncork], [ GNUTLS_LIBS="-lgnutls" have_gnutls=yes @@ -1726,8 +1726,8 @@ AS_IF([test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes"], # A bit of hack: unset cache variable to force recheck AS_UNSET([ac_cv_header_gnutls_gnutls_h]) AC_CHECK_HEADERS([gnutls/gnutls.h], - [AS_UNSET([ac_cv_lib_gnutls_gnutls_priority_set]) # A bit of hack: unset cache variable to force recheck - AC_CHECK_LIB([gnutls], [gnutls_priority_set], + [AS_UNSET([ac_cv_lib_gnutls_gnutls_record_uncork]) # A bit of hack: unset cache variable to force recheck + AC_CHECK_LIB([gnutls], [gnutls_record_uncork], [ GNUTLS_CPPFLAGS="$LIBGCRYPT_CFLAGS" GNUTLS_CFLAGS="$LIBGCRYPT_CFLAGS" |