diff options
| author | Sam Varshavchik | 2018-07-23 21:14:02 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2018-07-23 21:14:02 -0400 |
| commit | a925caf69bd414999369b855fe47a39e8e41affb (patch) | |
| tree | 9466eea4ffd7780e744770c79d6e1308cd87bfe5 /tcpd | |
| parent | 14179a773e02455620b8db480e5cde990301bdb1 (diff) | |
| download | courier-libs-a925caf69bd414999369b855fe47a39e8e41affb.tar.bz2 | |
librfc1035: use UTF8 for DNS queries
DNS lookups use libidn to convert UTF8 hostname to ACE.
DNS replies convert ACE to UTF8 hostnames.
Diffstat (limited to 'tcpd')
| -rw-r--r-- | tcpd/Makefile.am | 2 | ||||
| -rw-r--r-- | tcpd/configure.ac | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tcpd/Makefile.am b/tcpd/Makefile.am index 7c0e23d..9374e50 100644 --- a/tcpd/Makefile.am +++ b/tcpd/Makefile.am @@ -43,6 +43,7 @@ couriertcpd_LDADD= libspipe.la \ ../waitlib/libwaitlib.la\ ../soxwrap/libsoxwrap.a\ ../md5/libmd5.la ../random128/librandom128.la \ + @LIBIDN_LIBS@ \ $(couriertcpd_t:%=-Wl,%) couriertcpd_LDFLAGS=-static @@ -65,6 +66,7 @@ couriertls_DEPENDENCIES=libcouriertls.la libspipe.la ../rfc1035/librfc1035.a \ couriertls_LDADD=libcouriertls.la libspipe.la ../rfc1035/librfc1035.a \ ../md5/libmd5.la ../random128/librandom128.la \ ../numlib/libnumlib.la ../liblock/liblock.la \ + @LIBIDN_LIBS@ \ ../soxwrap/libsoxwrap.a $(couriertls_t:%=-Wl,%) couriertls_LDFLAGS=-static diff --git a/tcpd/configure.ac b/tcpd/configure.ac index 5f1e1e2..8f6d1fc 100644 --- a/tcpd/configure.ac +++ b/tcpd/configure.ac @@ -61,6 +61,12 @@ saveLIBS="$LIBS" AC_CHECK_LIB(dl, dlopen, [ LIBDL="-ldl" ]) LIBS="$saveLIBS" +PKG_CHECK_MODULES(LIBIDN, libidn >= 0.0.0, [libidn=yes], [libidn=no]) +if test "$libidn" != "yes" +then + AC_MSG_ERROR([libidn not found]) +fi + dnl Determine whether transport libraries are created static or shared AC_SUBST(LIBDL) |
