diff options
Diffstat (limited to 'server/external')
-rw-r--r-- | server/external/libcares.m4 | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/server/external/libcares.m4 b/server/external/libcares.m4 index 020a1708..657deac5 100644 --- a/server/external/libcares.m4 +++ b/server/external/libcares.m4 @@ -7,25 +7,14 @@ AC_CHECK_HEADERS(ares.h, [AC_MSG_ERROR([c-ares header files are not installed])] ) -dnl Check if this particular version of c-ares supports parsing of SRV records +dnl Check if this particular version of c-ares supports the generic ares_free_data function AC_CHECK_LIB([cares], - [ares_parse_srv_reply], - [AC_DEFINE([HAVE_ARES_PARSE_SRV], 1, [Does c-ares support srv parsing?]) + [ares_free_data], + [AC_DEFINE([HAVE_ARES_DATA], 1, [Does c-ares have ares_free_data()?]) ], [ - ares_build_srv=1 + ares_data=1 ] ) -dnl Check if this particular version of c-ares supports parsing of TXT records -AC_CHECK_LIB([cares], - [ares_parse_txt_reply], - [AC_DEFINE([HAVE_ARES_PARSE_TXT], 1, [Does c-ares support txt parsing?]) - ], - [ - ares_build_txt=1 - ] -) - -AM_CONDITIONAL(BUILD_ARES_PARSE_SRV, test x$ares_build_srv = x1) -AM_CONDITIONAL(BUILD_ARES_PARSE_TXT, test x$ares_build_txt = x1) +AM_CONDITIONAL(BUILD_ARES_DATA, test x$ares_data = x1) |