From 78db40f25c6479b14da5a73adf7207bfbec5ccc5 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 21 Aug 2018 15:00:23 -0700 Subject: [PATCH] Add autoconf check for libunistring when checking for idn2. -lunistring is only explicitly needed when compiling statically, so add a AC_SEARCH_LIBS to add it to LIBS if it is found. Thanks to Fabrice Fontaine for the heads-up about the problem and the merge request. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 41550180..3e477f2f 100644 --- a/configure.ac +++ b/configure.ac @@ -1367,6 +1367,8 @@ if test "x$with_idn2" != "xno"; then AC_SEARCH_LIBS([idn2_check_version], [idn2], [ AC_DEFINE([HAVE_LIBIDN2], 1, [Define to 1 if you have the GNU idn2 library]) + dnl -lunistring is needed for static linking + AC_SEARCH_LIBS([u8_strconv_from_locale], [unistring]) MUTTLIBS="$MUTTLIBS $LIBS" dnl libidn2 >= 2.0.0 declares compatibility macros in idn2.h -- 2.50.1