1 diff --git a/configure.ac b/configure.ac
2 index 8435d9a..148453c 100644
5 @@ -109,9 +109,22 @@ else
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 +--------------------------------------------------------+
16 + AS_HELP_STRING([--with-idn=@<:@auto|no@:>@],
17 + [Whether to use libidn [[default=auto]]]),
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])
31 @@ -323,7 +336,7 @@ echo "
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}