s3-smbcontrol: use correct PRINTER_NOTIFY flags.
[Samba.git] / source4 / heimdal / cf / resolv.m4
blobb4045094d8026522e0dee0671f66379eb44ed372
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])
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(dn_expand, resolv,
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
92 [0,0,0,0,0])
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])