1 --- neon-0.24.7/macros/neon.m4.old 2005-02-24 16:28:01 +00:00
2 +++ neon-0.24.7/macros/neon.m4 2005-02-24 16:40:17 +00:00
4 # Enable getaddrinfo() support only if all the necessary functions
7 -NE_CHECK_FUNCS(getaddrinfo gai_strerror inet_ntop,,[ne_enable_gai=no; break])
8 -if test $ne_enable_gai = yes; then
9 - AC_DEFINE(USE_GETADDRINFO, 1, [Define if getaddrinfo() should be used])
10 - AC_CACHE_CHECK([for working AI_ADDRCONFIG], [ne_cv_gai_addrconfig], [
11 - AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>],
12 -[struct addrinfo hints = {0}, *result;
13 -hints.ai_flags = AI_ADDRCONFIG;
14 -if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;])],
15 - ne_cv_gai_addrconfig=yes, ne_cv_gai_addrconfig=no)])
16 - if test $ne_cv_gai_addrconfig = yes; then
17 - AC_DEFINE(USE_GAI_ADDRCONFIG, 1, [Define if getaddrinfo supports AI_ADDRCONFIG])
20 - # Checks for non-getaddrinfo() based resolver interfaces.
21 - NE_SEARCH_LIBS(hstrerror, resolv,,[:])
22 - NE_CHECK_FUNCS(hstrerror)
23 - # Older Unixes don't declare h_errno.
24 - AC_CHECK_DECL(h_errno,,,[#define _XOPEN_SOURCE_EXTENDED 1
27 +ne_cv_gai_addrconfig=yes
28 +AC_DEFINE(USE_GETADDRINFO, 1, [Define if getaddrinfo() should be used])
29 +AC_DEFINE(USE_GAI_ADDRCONFIG, 1, [Define if getaddrinfo supports AI_ADDRCONFIG])
31 AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,
32 AC_MSG_WARN([no timezone handling in date parsing on this platform]),