You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.3 KiB

  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. -PKG_CHECK_MODULES(LIBIDN, libidn, have_idn=yes, have_idn=no)
  9. -if test "x$have_idn" = "xyes"; then
  10. - AC_DEFINE(HAVE_IDN, 1, [Define if IDN support is included])
  11. +dnl +--------------------------------------------------------+
  12. +dnl | Checking for libidn support |-
  13. +dnl +--------------------------------------------------------+
  14. +AC_ARG_WITH(idn,
  15. + AS_HELP_STRING([--with-idn=@<:@auto|no@:>@],
  16. + [Whether to use libidn [[default=auto]]]),
  17. + ac_idn=$withval,
  18. + ac_idn=auto)
  19. +
  20. +if test "x$ac_idn" = "xauto"; then
  21. + PKG_CHECK_MODULES(LIBIDN, libidn, enable_idn=yes, enable_idn=no)
  22. + if test "x$enable_idn" = "xyes"; then
  23. + AC_DEFINE(HAVE_IDN, 1, [Define if IDN support is included])
  24. + fi
  25. +else
  26. + enable_idn=no
  27. fi
  28. dnl Gtk doc
  29. @@ -323,7 +336,7 @@ echo "
  30. prefix: ${prefix}
  31. compiler: ${CC}
  32. - Have IDN support: ${have_idn}
  33. + Enable IDN support: ${enable_idn}
  34. Enable SSL: ${enable_ssl}
  35. Asynchronous DNS: ${enable_asyncns}
  36. Linux TCP keepalives: ${use_keepalives}