1*ebfedea0SLionel Sambucdnl stuff used by DNS resolv code in roken 2*ebfedea0SLionel Sambucdnl 3*ebfedea0SLionel Sambucdnl Id 4*ebfedea0SLionel Sambucdnl 5*ebfedea0SLionel Sambuc 6*ebfedea0SLionel SambucAC_DEFUN([rk_RESOLV],[ 7*ebfedea0SLionel Sambuc 8*ebfedea0SLionel SambucAC_CHECK_HEADERS([arpa/nameser.h dns.h]) 9*ebfedea0SLionel Sambuc 10*ebfedea0SLionel SambucAC_CHECK_HEADERS(resolv.h, , , [AC_INCLUDES_DEFAULT 11*ebfedea0SLionel Sambuc#ifdef HAVE_SYS_TYPES_H 12*ebfedea0SLionel Sambuc#include <sys/types.h> 13*ebfedea0SLionel Sambuc#endif 14*ebfedea0SLionel Sambuc#ifdef HAVE_NETINET_IN_H 15*ebfedea0SLionel Sambuc#include <netinet/in.h> 16*ebfedea0SLionel Sambuc#endif 17*ebfedea0SLionel Sambuc#ifdef HAVE_ARPA_NAMESER_H 18*ebfedea0SLionel Sambuc#include <arpa/nameser.h> 19*ebfedea0SLionel Sambuc#endif 20*ebfedea0SLionel Sambuc]) 21*ebfedea0SLionel Sambuc 22*ebfedea0SLionel SambucAC_FIND_FUNC(res_search, resolv, 23*ebfedea0SLionel Sambuc[ 24*ebfedea0SLionel Sambuc#include <stdio.h> 25*ebfedea0SLionel Sambuc#ifdef HAVE_SYS_TYPES_H 26*ebfedea0SLionel Sambuc#include <sys/types.h> 27*ebfedea0SLionel Sambuc#endif 28*ebfedea0SLionel Sambuc#ifdef HAVE_NETINET_IN_H 29*ebfedea0SLionel Sambuc#include <netinet/in.h> 30*ebfedea0SLionel Sambuc#endif 31*ebfedea0SLionel Sambuc#ifdef HAVE_ARPA_NAMESER_H 32*ebfedea0SLionel Sambuc#include <arpa/nameser.h> 33*ebfedea0SLionel Sambuc#endif 34*ebfedea0SLionel Sambuc#ifdef HAVE_RESOLV_H 35*ebfedea0SLionel Sambuc#include <resolv.h> 36*ebfedea0SLionel Sambuc#endif 37*ebfedea0SLionel Sambuc], 38*ebfedea0SLionel Sambuc[0,0,0,0,0]) 39*ebfedea0SLionel Sambuc 40*ebfedea0SLionel SambucAC_FIND_FUNC(res_nsearch, resolv, 41*ebfedea0SLionel Sambuc[ 42*ebfedea0SLionel Sambuc#include <stdio.h> 43*ebfedea0SLionel Sambuc#ifdef HAVE_SYS_TYPES_H 44*ebfedea0SLionel Sambuc#include <sys/types.h> 45*ebfedea0SLionel Sambuc#endif 46*ebfedea0SLionel Sambuc#ifdef HAVE_NETINET_IN_H 47*ebfedea0SLionel Sambuc#include <netinet/in.h> 48*ebfedea0SLionel Sambuc#endif 49*ebfedea0SLionel Sambuc#ifdef HAVE_ARPA_NAMESER_H 50*ebfedea0SLionel Sambuc#include <arpa/nameser.h> 51*ebfedea0SLionel Sambuc#endif 52*ebfedea0SLionel Sambuc#ifdef HAVE_RESOLV_H 53*ebfedea0SLionel Sambuc#include <resolv.h> 54*ebfedea0SLionel Sambuc#endif 55*ebfedea0SLionel Sambuc], 56*ebfedea0SLionel Sambuc[0,0,0,0,0,0]) 57*ebfedea0SLionel Sambuc 58*ebfedea0SLionel SambucAC_FIND_FUNC(res_ndestroy, resolv, 59*ebfedea0SLionel Sambuc[ 60*ebfedea0SLionel Sambuc#include <stdio.h> 61*ebfedea0SLionel Sambuc#ifdef HAVE_SYS_TYPES_H 62*ebfedea0SLionel Sambuc#include <sys/types.h> 63*ebfedea0SLionel Sambuc#endif 64*ebfedea0SLionel Sambuc#ifdef HAVE_NETINET_IN_H 65*ebfedea0SLionel Sambuc#include <netinet/in.h> 66*ebfedea0SLionel Sambuc#endif 67*ebfedea0SLionel Sambuc#ifdef HAVE_ARPA_NAMESER_H 68*ebfedea0SLionel Sambuc#include <arpa/nameser.h> 69*ebfedea0SLionel Sambuc#endif 70*ebfedea0SLionel Sambuc#ifdef HAVE_RESOLV_H 71*ebfedea0SLionel Sambuc#include <resolv.h> 72*ebfedea0SLionel Sambuc#endif 73*ebfedea0SLionel Sambuc], 74*ebfedea0SLionel Sambuc[0]) 75*ebfedea0SLionel Sambuc 76*ebfedea0SLionel SambucAC_FIND_FUNC_NO_LIBS(dns_search,, 77*ebfedea0SLionel Sambuc[ 78*ebfedea0SLionel Sambuc#ifdef HAVE_DNS_H 79*ebfedea0SLionel Sambuc#include <dns.h> 80*ebfedea0SLionel Sambuc#endif 81*ebfedea0SLionel Sambuc], 82*ebfedea0SLionel Sambuc[0,0,0,0,0,0,0,0]) 83*ebfedea0SLionel Sambuc 84*ebfedea0SLionel Sambuc 85*ebfedea0SLionel SambucAC_FIND_FUNC(dn_expand, resolv, 86*ebfedea0SLionel Sambuc[ 87*ebfedea0SLionel Sambuc#include <stdio.h> 88*ebfedea0SLionel Sambuc#ifdef HAVE_SYS_TYPES_H 89*ebfedea0SLionel Sambuc#include <sys/types.h> 90*ebfedea0SLionel Sambuc#endif 91*ebfedea0SLionel Sambuc#ifdef HAVE_NETINET_IN_H 92*ebfedea0SLionel Sambuc#include <netinet/in.h> 93*ebfedea0SLionel Sambuc#endif 94*ebfedea0SLionel Sambuc#ifdef HAVE_ARPA_NAMESER_H 95*ebfedea0SLionel Sambuc#include <arpa/nameser.h> 96*ebfedea0SLionel Sambuc#endif 97*ebfedea0SLionel Sambuc#ifdef HAVE_RESOLV_H 98*ebfedea0SLionel Sambuc#include <resolv.h> 99*ebfedea0SLionel Sambuc#endif 100*ebfedea0SLionel Sambuc], 101*ebfedea0SLionel Sambuc[0,0,0,0,0]) 102*ebfedea0SLionel Sambuc 103*ebfedea0SLionel Sambucrk_CHECK_VAR(_res, 104*ebfedea0SLionel Sambuc[#include <stdio.h> 105*ebfedea0SLionel Sambuc#ifdef HAVE_SYS_TYPES_H 106*ebfedea0SLionel Sambuc#include <sys/types.h> 107*ebfedea0SLionel Sambuc#endif 108*ebfedea0SLionel Sambuc#ifdef HAVE_NETINET_IN_H 109*ebfedea0SLionel Sambuc#include <netinet/in.h> 110*ebfedea0SLionel Sambuc#endif 111*ebfedea0SLionel Sambuc#ifdef HAVE_ARPA_NAMESER_H 112*ebfedea0SLionel Sambuc#include <arpa/nameser.h> 113*ebfedea0SLionel Sambuc#endif 114*ebfedea0SLionel Sambuc#ifdef HAVE_RESOLV_H 115*ebfedea0SLionel Sambuc#include <resolv.h> 116*ebfedea0SLionel Sambuc#endif]) 117*ebfedea0SLionel Sambuc 118*ebfedea0SLionel Sambuc]) 119