Do not check for gethostbyname_r versions if we have getaddrinfo

This commit is contained in:
Nick Mathewson 2011-01-31 17:36:49 -05:00
parent 3c8f4e758e
commit c1260b0e7c

View File

@ -201,6 +201,8 @@ AC_HEADER_TIME
dnl Checks for library functions.
AC_CHECK_FUNCS(gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getaddrinfo getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getservbyname getprotobynumber setenv unsetenv putenv)
if test "$ac_cv_func_getaddrinfo" != "yes" ; then
# Check for gethostbyname_r in all its glorious incompatible versions.
# (This is cut-and-pasted from Tor, which based its logic on
# Python's configure.in.)
@ -257,6 +259,7 @@ AC_CHECK_FUNC(gethostbyname_r, [
CFLAGS=$OLD_CFLAGS
])
fi
AC_CHECK_SIZEOF(long)