mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-11 21:48:50 +01:00
* configure.ac: Make sure that the resolver API actually compiles, and not
just that the right functions exist.
This commit is contained in:
parent
5028edd538
commit
fef77d93b7
@ -1,3 +1,8 @@
|
|||||||
|
2003-11-12 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* configure.ac: Make sure that the resolver API actually compiles,
|
||||||
|
and not just that the right functions exist.
|
||||||
|
|
||||||
2003-10-30 David Shaw <dshaw@jabberwocky.com>
|
2003-10-30 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* configure.ac: Locate libbz2 for bzip2 compression support.
|
* configure.ac: Locate libbz2 for bzip2 compression support.
|
||||||
|
15
configure.ac
15
configure.ac
@ -460,11 +460,24 @@ if test x"$try_hkp" = xyes && test x"$use_dns_srv" = xyes ; then
|
|||||||
AC_SEARCH_LIBS(dn_skipname,resolv bind,,
|
AC_SEARCH_LIBS(dn_skipname,resolv bind,,
|
||||||
AC_SEARCH_LIBS(__dn_skipname,resolv bind,,use_dns_srv=no))
|
AC_SEARCH_LIBS(__dn_skipname,resolv bind,,use_dns_srv=no))
|
||||||
|
|
||||||
|
if test x"$use_dns_srv" = xyes ; then
|
||||||
|
|
||||||
|
# Make sure that the BIND 4 resolver interface is workable before
|
||||||
|
# enabling SRVs. At some point I'll rewrite the code to use the
|
||||||
|
# BIND 8 resolver API.
|
||||||
|
|
||||||
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#include <arpa/nameser.h>
|
||||||
|
#include <resolv.h>],
|
||||||
|
[[unsigned char answer[PACKETSZ]; res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);]])],,use_dns_srv=no)
|
||||||
|
fi
|
||||||
|
|
||||||
if test x"$use_dns_srv" = xyes ; then
|
if test x"$use_dns_srv" = xyes ; then
|
||||||
AC_DEFINE(USE_DNS_SRV,1,[define to use DNS SRV])
|
AC_DEFINE(USE_DNS_SRV,1,[define to use DNS SRV])
|
||||||
SRVLIBS=$LIBS
|
SRVLIBS=$LIBS
|
||||||
else
|
else
|
||||||
AC_MSG_WARN([Resolver functions not found. Disabling DNS SRV.])
|
AC_MSG_WARN([Resolver functions not found or not usable. Disabling DNS SRV.])
|
||||||
fi
|
fi
|
||||||
LIBS=$_srv_save_libs
|
LIBS=$_srv_save_libs
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user