]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/neon/files/no-func-checks.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / neon / files / no-func-checks.patch
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
3 @@ -508,26 +508,9 @@
4  # Enable getaddrinfo() support only if all the necessary functions
5  # are found.
6  ne_enable_gai=yes
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])
18 -   fi
19 -else
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
25 -#include <netdb.h>])
26 -fi
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])
30  
31  AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,
32  AC_MSG_WARN([no timezone handling in date parsing on this platform]),