[PATCH] configure: Try -lgnutls as gnutls default lib.

Stefan Dösinger stefan at codeweavers.com
Thu May 7 11:22:02 CDT 2020


This allows configure on MacOS to pick up a homebrew installed gnutls without
PKGCONFIG and manually added GNUTLS_LIBS var.

Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 27db99f304..60a8d210f5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1446,7 +1446,7 @@ fi
 dnl **** Check for libgnutls ****
 if test "x$with_gnutls" != "xno"
 then
-    WINE_PACKAGE_FLAGS(GNUTLS,[gnutls],,,,
+    WINE_PACKAGE_FLAGS(GNUTLS,[gnutls],[-lgnutls],,,
         [AC_CHECK_HEADER(gnutls/gnutls.h,
             [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>
 #include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
-- 
2.24.2 (Apple Git-127)




More information about the wine-devel mailing list