cf: Do not redefine realloc() when ASAN is used
[heimdal.git] / cf / resolv.m4
blob49c868ab0ec6042ead5b2e3d0999d1c62a919348
1 dnl stuff used by DNS resolv code in roken
2 dnl
3 dnl $Id$
4 dnl
6 AC_DEFUN([rk_RESOLV],[
8 AC_CHECK_HEADERS([arpa/nameser.h dns.h])
10 AC_CHECK_HEADERS(resolv.h, , , [AC_INCLUDES_DEFAULT
11 #ifdef HAVE_SYS_TYPES_H
12 #include <sys/types.h>
13 #endif
14 #ifdef HAVE_NETINET_IN_H
15 #include <netinet/in.h>
16 #endif
17 #ifdef HAVE_ARPA_NAMESER_H
18 #include <arpa/nameser.h>
19 #endif
22 AC_FIND_FUNC(res_search, resolv,
24 #include <stdio.h>
25 #ifdef HAVE_SYS_TYPES_H
26 #include <sys/types.h>
27 #endif
28 #ifdef HAVE_NETINET_IN_H
29 #include <netinet/in.h>
30 #endif
31 #ifdef HAVE_ARPA_NAMESER_H
32 #include <arpa/nameser.h>
33 #endif
34 #ifdef HAVE_RESOLV_H
35 #include <resolv.h>
36 #endif
38 [0,0,0,0,0])
40 AC_FIND_FUNC(res_nsearch, resolv,
42 #include <stdio.h>
43 #ifdef HAVE_SYS_TYPES_H
44 #include <sys/types.h>
45 #endif
46 #ifdef HAVE_NETINET_IN_H
47 #include <netinet/in.h>
48 #endif
49 #ifdef HAVE_ARPA_NAMESER_H
50 #include <arpa/nameser.h>
51 #endif
52 #ifdef HAVE_RESOLV_H
53 #include <resolv.h>
54 #endif
56 [0,0,0,0,0,0])
58 AC_FIND_FUNC(res_ndestroy, resolv,
60 #include <stdio.h>
61 #ifdef HAVE_SYS_TYPES_H
62 #include <sys/types.h>
63 #endif
64 #ifdef HAVE_NETINET_IN_H
65 #include <netinet/in.h>
66 #endif
67 #ifdef HAVE_ARPA_NAMESER_H
68 #include <arpa/nameser.h>
69 #endif
70 #ifdef HAVE_RESOLV_H
71 #include <resolv.h>
72 #endif
74 [0])
76 AC_FIND_FUNC_NO_LIBS(dns_search,,
78 #ifdef HAVE_DNS_H
79 #include <dns.h>
80 #endif
82 [0,0,0,0,0,0,0,0])
85 AC_FIND_FUNC(dn_expand, resolv,
87 #include <stdio.h>
88 #ifdef HAVE_SYS_TYPES_H
89 #include <sys/types.h>
90 #endif
91 #ifdef HAVE_NETINET_IN_H
92 #include <netinet/in.h>
93 #endif
94 #ifdef HAVE_ARPA_NAMESER_H
95 #include <arpa/nameser.h>
96 #endif
97 #ifdef HAVE_RESOLV_H
98 #include <resolv.h>
99 #endif
101 [0,0,0,0,0])
103 rk_CHECK_VAR(_res, 
104 [#include <stdio.h>
105 #ifdef HAVE_SYS_TYPES_H
106 #include <sys/types.h>
107 #endif
108 #ifdef HAVE_NETINET_IN_H
109 #include <netinet/in.h>
110 #endif
111 #ifdef HAVE_ARPA_NAMESER_H
112 #include <arpa/nameser.h>
113 #endif
114 #ifdef HAVE_RESOLV_H
115 #include <resolv.h>
116 #endif])