X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/3949f61cb6a890cbf6cfa08ee285276921f544cb..f8d6fc7b379fc963c1a310872fb030c69c7aff7d:/configure.ac diff --git a/configure.ac b/configure.ac index 33ce67dd..887f81d3 100644 --- a/configure.ac +++ b/configure.ac @@ -9,19 +9,18 @@ dnl----- Licensing notice --------------------------------------------------- dnl dnl This file is part of Trivial IP Encryption (TrIPE). dnl -dnl TrIPE is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2 of the License, or -dnl (at your option) any later version. +dnl TrIPE is free software: you can redistribute it and/or modify it under +dnl the terms of the GNU General Public License as published by the Free +dnl Software Foundation; either version 3 of the License, or (at your +dnl option) any later version. dnl -dnl TrIPE is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -dnl GNU General Public License for more details. +dnl TrIPE is distributed in the hope that it will be useful, but WITHOUT +dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +dnl for more details. dnl dnl You should have received a copy of the GNU General Public License -dnl along with TrIPE; if not, write to the Free Software Foundation, -dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +dnl along with TrIPE. If not, see . dnl-------------------------------------------------------------------------- dnl Initialization. @@ -38,7 +37,7 @@ AM_PROG_CC_C_O AX_CFLAGS_WARN_ALL AX_TYPE_SOCKLEN_T AC_CANONICAL_HOST -AM_PROG_LIBTOOL +AC_PROG_RANLIB AC_CHECK_PROGS([AUTOM4TE], [autom4te]) @@ -64,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])