Commit 78db40f2 authored by Kevin J. McCarthy's avatar Kevin J. McCarthy
Browse files

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.
parent ed9d7727
Pipeline #28393558 passed with stage
in 13 minutes and 15 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment