summaryrefslogtreecommitdiffstats
path: root/server/external/libcares.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-11-27 09:39:41 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-12-09 10:05:18 -0500
commita3b55a024b03321be969a892cb0992bad14266af (patch)
tree9dfa66057df41bd5910ab9e09b14cfd4db4a0a2e /server/external/libcares.m4
parent2446a71baaae100bafee0589a2e18bb8a16dff1b (diff)
downloadsssd-a3b55a024b03321be969a892cb0992bad14266af.tar.gz
sssd-a3b55a024b03321be969a892cb0992bad14266af.tar.xz
sssd-a3b55a024b03321be969a892cb0992bad14266af.zip
Import ares 1.7.0 helpers
Diffstat (limited to 'server/external/libcares.m4')
-rw-r--r--server/external/libcares.m421
1 files changed, 5 insertions, 16 deletions
diff --git a/server/external/libcares.m4 b/server/external/libcares.m4
index 020a1708d..657deac59 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)