aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-08-08 00:04:38 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-08-08 00:04:38 +0000
commita9fc761fdb1c79e932adc02fe4bacc4d7f24faac (patch)
treeabcef37e826b8d882227d20f77d967bcea7171a8 /acinclude.m4
parentd732ba9c82985a7f400e31937aa8e1c2df593a88 (diff)
Add support for c-ares to the GNU toolchain.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25955 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m431
1 files changed, 31 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index ca97345c2f..d08bb1183b 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1193,6 +1193,37 @@ AC_DEFUN([AC_WIRESHARK_GNU_SED_CHECK],
])
#
+# AC_WIRESHARK_C_ARES_CHECK
+#
+AC_DEFUN([AC_WIRESHARK_C_ARES_CHECK],
+[
+ want_c_ares=defaultyes
+
+ if test "x$want_c_ares" = "xdefaultyes"; then
+ want_c_ares=yes
+ if test "x$ac_cv_enable_usr_local" = "xyes" ; then
+ withval=/usr/local
+ if test -d "$withval"; then
+ AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
+ fi
+ fi
+ fi
+
+ if test "x$want_c_ares" = "xyes"; then
+ AC_CHECK_LIB(cares, ares_init,
+ [
+ C_ARES_LIBS=-lcares
+ AC_DEFINE(HAVE_C_ARES, 1, [Define to use c-ares library])
+ have_good_c_ares=yes
+ ],, $SOCKET_LIBS $NSL_LIBS
+ )
+ else
+ AC_MSG_RESULT(not required)
+ fi
+])
+
+
+#
# AC_WIRESHARK_ADNS_CHECK
#
AC_DEFUN([AC_WIRESHARK_ADNS_CHECK],