test for getaddrinfo's that doesn't like numeric services

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10493 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2001-08-15 19:41:18 +00:00
parent 68a8e28104
commit c55413c24c
2 changed files with 31 additions and 0 deletions

View File

@@ -404,6 +404,13 @@ if test "$ac_cv_func_getnameinfo" = "yes"; then
fi
fi
if test "$ac_cv_func_getaddrinfo" = "yes"; then
rk_BROKEN_GETADDRINFO
if test "$ac_cv_func_getaddrinfo_numserv" = no; then
LIBOBJS="$LIBOBJS getaddrinfo.o"
fi
fi
AC_NEED_PROTO([#include <stdlib.h>], setenv)
AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
AC_NEED_PROTO([#include <unistd.h>], gethostname)