From: Miek Gieben Date: Mon, 23 May 2005 11:51:51 +0000 (+0000) Subject: drill1 autoconf patch X-Git-Tag: release-0.60^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0b82ff042a7510a3c6dc44c8cc477a490bffbf4;p=thirdparty%2Fldns.git drill1 autoconf patch --- diff --git a/tests/configure.ac b/tests/configure.ac index 68c16629..aa9c4c5b 100644 --- a/tests/configure.ac +++ b/tests/configure.ac @@ -26,47 +26,12 @@ AC_CHECK_HEADERS(sys/param.h sys/mount.h,,, ]) # ripped from http://autoconf-archive.cryp.to/check_ssl.html -AC_DEFUN([CHECK_LDNS], -[AC_MSG_CHECKING(for ldns/dns.h) -AC_ARG_WITH(ldns, -[ --with-ldns location of ldns [[/usr/local/ldns /usr/lib/ldns - /usr/ldns /usr/pkg /usr/local /usr]] -], -[ AC_MSG_RESULT(yes) - for dir in $withval /usr/local/ldns /usr/lib/ldns /usr/ldns /usr/pkg /usr/local /usr; do - ldnsdir="$dir" - if test -f "$dir/include/ldns/dns.h"; then - found_ldns="yes"; - CFLAGS="$CFLAGS -I$ldnsdir/include/ -DHAVE_LDNS"; - CXXFLAGS="$CXXFLAGS -I$ldnsdir/include/ -DHAVE_LDNS"; - break; - fi - if test -f "$dir/ldns/dns.h"; then - found_ldns="yes"; - CFLAGS="$CFLAGS -I$ldnsdir/ -DHAVE_LDNS"; - CXXFLAGS="$CXXFLAGS -I$ldnsdir/ -DHAVE_LDNS"; - break - fi - done - if test x_$found_ldns != x_yes; then - AC_MSG_ERROR(Cannot find ldns libraries) - else -# printf "ldns found in $ldnsdir\n"; - LIBS="$LIBS -lldns"; - LDFLAGS="$LDFLAGS -L$ldnsdir/lib"; - LDFLAGS="$LDFLAGS -L$ldnsdir/.libs"; # hack for dev. - HAVE_LDNS=yes - fi - AC_SUBST(HAVE_LDNS) -], -[ - AC_MSG_RESULT(no) -]) -])dnl + # check for ldns +AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=pathname],[])) AC_MSG_CHECKING(for ldns/dns.h) -for dir in /usr/local/ldns /usr/lib/ldns /usr/ldns /usr/pkg /usr/local /usr; do +for dir in $withval /usr/local/ldns /usr/lib/ldns /usr/ldns /usr/pkg /usr/local /usr; do ldnsdir="$dir" if test -f "$dir/include/ldns/dns.h"; then found_ldns="yes";