Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
[tprouty/samba.git] / source4 / heimdal / cf / resolv.m4
1 dnl stuff used by DNS resolv code in roken
2 dnl
3 dnl $Id$
4 dnl
5
6 AC_DEFUN([rk_RESOLV],[
7
8 AC_CHECK_HEADERS([arpa/nameser.h])
9
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
20 ])
21
22 AC_FIND_FUNC(res_search, resolv,
23 [
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
37 ],
38 [0,0,0,0,0])
39
40 AC_FIND_FUNC(res_nsearch, resolv,
41 [
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
55 ],
56 [0,0,0,0,0,0])
57
58 AC_FIND_FUNC(res_ndestroy, resolv,
59 [
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
73 ],
74 [0])
75
76 AC_FIND_FUNC(dn_expand, resolv,
77 [
78 #include <stdio.h>
79 #ifdef HAVE_SYS_TYPES_H
80 #include <sys/types.h>
81 #endif
82 #ifdef HAVE_NETINET_IN_H
83 #include <netinet/in.h>
84 #endif
85 #ifdef HAVE_ARPA_NAMESER_H
86 #include <arpa/nameser.h>
87 #endif
88 #ifdef HAVE_RESOLV_H
89 #include <resolv.h>
90 #endif
91 ],
92 [0,0,0,0,0])
93
94 rk_CHECK_VAR(_res, 
95 [#include <stdio.h>
96 #ifdef HAVE_SYS_TYPES_H
97 #include <sys/types.h>
98 #endif
99 #ifdef HAVE_NETINET_IN_H
100 #include <netinet/in.h>
101 #endif
102 #ifdef HAVE_ARPA_NAMESER_H
103 #include <arpa/nameser.h>
104 #endif
105 #ifdef HAVE_RESOLV_H
106 #include <resolv.h>
107 #endif])
108
109 ])