From: Rogier Wolff Date: Sat, 20 Dec 2014 09:04:11 +0000 (+0100) Subject: removed AC check for features newdns doesn't use X-Git-Tag: v0.88~43^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfcbfb9db72e88c8124ac5e181666b49d3716329;p=thirdparty%2Fmtr.git removed AC check for features newdns doesn't use --- diff --git a/configure.ac b/configure.ac index d50c253..708db4f 100644 --- a/configure.ac +++ b/configure.ac @@ -139,57 +139,6 @@ AC_CHECK_FUNC(getaddrinfo, USES_IPV6=yes fi]) -AC_DEFUN([NEED_RES_STATE_EXT_TEST_SRC], [ -AC_LANG_PROGRAM([[ -#include -#include -#ifdef __GLIBC__ -#define RESEXTIN6(r,i) (*(r._u._ext.nsaddrs[i])) -#else -#define RESEXTIN6(r,i) (r._u._ext.ext->nsaddrs[i].sin6) -#endif -]], [[ -struct __res_state res; -return RESEXTIN6(res,0).sin6_addr.s6_addr[0]; -]])]) -AC_DEFUN([DEFINE_RES_STATE_EXT_TEST_SRC], [ -AC_LANG_PROGRAM([[ -#include -#include -#ifdef __GLIBC__ -#define RESEXTIN6(r,i) (*(r._u._ext.nsaddrs[i])) -#else -#define RESEXTIN6(r,i) (r._u._ext.ext->nsaddrs[i].sin6) -struct __res_state_ext { - union res_sockaddr_union nsaddrs[MAXNS]; - struct sort_list { - int af; - union { - struct in_addr ina; - struct in6_addr in6a; - } addr, mask; - } sort_list[MAXRESOLVSORT]; - char nsuffix[64]; - char nsuffix2[64]; -}; -#endif -]], [[ -struct __res_state res; -return RESEXTIN6(res,0).sin6_addr.s6_addr[0]; -]])]) -if test "x$USES_IPV6" = "xyes"; then - AC_MSG_CHECKING([whether __res_state_ext needs to be defined]) - AC_COMPILE_IFELSE([NEED_RES_STATE_EXT_TEST_SRC], - [AC_MSG_RESULT([no])], - [AC_MSG_RESULT([yes]) - AC_MSG_CHECKING([whether provided __res_state_ext definition can be compiled]) - AC_COMPILE_IFELSE([DEFINE_RES_STATE_EXT_TEST_SRC], - [AC_MSG_RESULT([yes]) - AC_DEFINE(NEED_RES_STATE_EXT, 1, [Define if struct __res_state_ext needs to be defined.])], - [AC_MSG_RESULT([no]) - AC_MSG_ERROR(Need definition for struct __res_state_ext but unable to define it.)])]) -fi - AC_CHECK_DECLS(errno, , , [[ #include #include