001-allow-disable-libidn.patch (1354B)
1 diff --git a/configure.ac b/configure.ac 2 index 8435d9a..148453c 100644 3 --- a/configure.ac 4 +++ b/configure.ac 5 @@ -109,9 +109,22 @@ else 6 fi 7 AC_SUBST([TEST_DIRS]) 8 9 -PKG_CHECK_MODULES(LIBIDN, libidn, have_idn=yes, have_idn=no) 10 -if test "x$have_idn" = "xyes"; then 11 - AC_DEFINE(HAVE_IDN, 1, [Define if IDN support is included]) 12 +dnl +--------------------------------------------------------+ 13 +dnl | Checking for libidn support |- 14 +dnl +--------------------------------------------------------+ 15 +AC_ARG_WITH(idn, 16 + AS_HELP_STRING([--with-idn=@<:@auto|no@:>@], 17 + [Whether to use libidn [[default=auto]]]), 18 + ac_idn=$withval, 19 + ac_idn=auto) 20 + 21 +if test "x$ac_idn" = "xauto"; then 22 + PKG_CHECK_MODULES(LIBIDN, libidn, enable_idn=yes, enable_idn=no) 23 + if test "x$enable_idn" = "xyes"; then 24 + AC_DEFINE(HAVE_IDN, 1, [Define if IDN support is included]) 25 + fi 26 +else 27 + enable_idn=no 28 fi 29 30 dnl Gtk doc 31 @@ -323,7 +336,7 @@ echo " 32 33 prefix: ${prefix} 34 compiler: ${CC} 35 - Have IDN support: ${have_idn} 36 + Enable IDN support: ${enable_idn} 37 Enable SSL: ${enable_ssl} 38 Asynchronous DNS: ${enable_asyncns} 39 Linux TCP keepalives: ${use_keepalives}