Add Paul Vixie's implementation of inet_ntop and inet_pton for
[rsync/rsync.git] / configure.in
index d8d415d..e9381a6 100644 (file)
@@ -252,8 +252,10 @@ if test x"$ac_cv_func_connect" = x"no"; then
     fi
 fi
 
+AC_CHECK_LIB(resolv, inet_ntop)
+
 AC_MSG_NOTICE([Looking in libraries: $LIBS])
-AC_REPLACE_FUNCS(getaddrinfo getnameinfo)
+AC_REPLACE_FUNCS(getaddrinfo getnameinfo inet_ntop inet_pton)
 
 AC_CHECK_MEMBER([struct sockaddr.sa_len], 
                [ AC_DEFINE(HAVE_SOCKADDR_LEN) ],