diff options
author | Gerald Combs <gerald@wireshark.org> | 2008-08-08 00:04:38 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2008-08-08 00:04:38 +0000 |
commit | 9fbab46ad446ad9076c7257733f749a8fccb3cb7 (patch) | |
tree | abcef37e826b8d882227d20f77d967bcea7171a8 /acinclude.m4 | |
parent | 9569e7a29910c29727349a3772a4177850e26f06 (diff) |
Add support for c-ares to the GNU toolchain.
svn path=/trunk/; revision=25955
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 31 |
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], |