1 dnl stuff used by DNS resolv code in roken
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>
14 #ifdef HAVE_NETINET_IN_H
15 #include <netinet/in.h>
17 #ifdef HAVE_ARPA_NAMESER_H
18 #include <arpa/nameser.h>
22 AC_FIND_FUNC(res_search, resolv,
25 #ifdef HAVE_SYS_TYPES_H
26 #include <sys/types.h>
28 #ifdef HAVE_NETINET_IN_H
29 #include <netinet/in.h>
31 #ifdef HAVE_ARPA_NAMESER_H
32 #include <arpa/nameser.h>
40 AC_FIND_FUNC(res_nsearch, resolv,
43 #ifdef HAVE_SYS_TYPES_H
44 #include <sys/types.h>
46 #ifdef HAVE_NETINET_IN_H
47 #include <netinet/in.h>
49 #ifdef HAVE_ARPA_NAMESER_H
50 #include <arpa/nameser.h>
58 AC_FIND_FUNC(res_ndestroy, resolv,
61 #ifdef HAVE_SYS_TYPES_H
62 #include <sys/types.h>
64 #ifdef HAVE_NETINET_IN_H
65 #include <netinet/in.h>
67 #ifdef HAVE_ARPA_NAMESER_H
68 #include <arpa/nameser.h>
76 AC_FIND_FUNC_NO_LIBS(dns_search,,
85 AC_FIND_FUNC(dn_expand, resolv,
88 #ifdef HAVE_SYS_TYPES_H
89 #include <sys/types.h>
91 #ifdef HAVE_NETINET_IN_H
92 #include <netinet/in.h>
94 #ifdef HAVE_ARPA_NAMESER_H
95 #include <arpa/nameser.h>
105 #ifdef HAVE_SYS_TYPES_H
106 #include <sys/types.h>
108 #ifdef HAVE_NETINET_IN_H
109 #include <netinet/in.h>
111 #ifdef HAVE_ARPA_NAMESER_H
112 #include <arpa/nameser.h>