X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/11ad66c29764521f87f0dd399a1e592147c7af36..f8d6fc7b379fc963c1a310872fb030c69c7aff7d:/configure.ac diff --git a/configure.ac b/configure.ac index 84fcf5a9..887f81d3 100644 --- a/configure.ac +++ b/configure.ac @@ -63,6 +63,27 @@ case "$host_os" in ;; esac +AC_ARG_WITH([adns], + AS_HELP_STRING([--with-adns], + [use ADNS library for background name resolution]), + [want_adns=$withval], + [want_adns=auto]) +case $want_adns in + no) ;; + *) AC_CHECK_LIB([adns], [adns_submit], [have_adns=yes], [have_adns=no]) ;; +esac +AC_SUBST([ADNS_LIBS]) +case $want_adns,$have_adns in + yes,no) + AC_MSG_ERROR([ADNS library not found but explicitly requested]) + ;; + yes,yes | auto,yes) + ADNS_LIBS="-ladns" + AC_DEFINE([HAVE_LIBADNS], [1], + [Define if the GNU adns library is available.]) + ;; +esac + PKG_CHECK_MODULES([mLib], [mLib >= 2.2.1]) PKG_CHECK_MODULES([catacomb], [catacomb >= 2.2.2-38])