| 719 | | |
| 720 | | AC_ARG_WITH(idn, AC_HELP_STRING([--with-idn=[PFX]], [Use GNU libidn for domain names]), |
| 721 | | [ |
| 722 | | if test "$with_idn" != "no" ; then |
| 723 | | if test "$with_idn" != "yes" ; then |
| 724 | | CPPFLAGS="$CPPFLAGS -I$with_idn/include" |
| 725 | | LDFLAGS="$LDFLAGS -L$with_idn/lib" |
| 726 | | fi |
| 727 | | fi |
| 728 | | ] |
| 729 | | ) |
| 730 | | |
| 731 | | if test "x$with_idn" != "xno"; then |
| 732 | | AC_CHECK_LIB(idn, stringprep_check_version) |
| 733 | | AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z) |
| 734 | | AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z) |
| 735 | | AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale) |
| 736 | | fi |
| | 1034 | dnl -- IDN depends on iconv |
| | 1035 | |
| | 1036 | AC_ARG_WITH(idn, AC_HELP_STRING([--with-idn=[PFX]], [Use GNU libidn for domain names]), |
| | 1037 | [ |
| | 1038 | if test "$with_idn" != "no" ; then |
| | 1039 | if test "$with_idn" != "yes" ; then |
| | 1040 | CPPFLAGS="$CPPFLAGS -I$with_idn/include" |
| | 1041 | LDFLAGS="$LDFLAGS -L$with_idn/lib" |
| | 1042 | fi |
| | 1043 | fi |
| | 1044 | ] |
| | 1045 | ) |
| | 1046 | |
| | 1047 | if test "x$with_idn" != "xno"; then |
| | 1048 | if test "$am_cv_func_iconv" != "yes" |
| | 1049 | then |
| | 1050 | if test "x$with_idn" != "x" |
| | 1051 | then |
| | 1052 | AC_MSG_ERROR([IDN requested but iconv is disabled or unavailable]) |
| | 1053 | fi |
| | 1054 | else |
| | 1055 | AC_CHECK_LIB(idn, stringprep_check_version) |
| | 1056 | AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z) |
| | 1057 | AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z) |
| | 1058 | AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale) |
| | 1059 | fi |
| | 1060 | fi |
| | 1061 | |