mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
dirmngr: Improve detection of ADNS.
* configure.ac (HAVE_ADNS_FREE): New ac_define. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
bce0e3f71d
commit
f92e95175e
10
configure.ac
10
configure.ac
@ -943,12 +943,8 @@ AC_ARG_WITH(adns,
|
|||||||
LDFLAGS="${LDFLAGS} -L$withval/lib"
|
LDFLAGS="${LDFLAGS} -L$withval/lib"
|
||||||
fi])
|
fi])
|
||||||
if test "$with_adns" != "no"; then
|
if test "$with_adns" != "no"; then
|
||||||
AC_CHECK_HEADERS(adns.h,
|
AC_CHECK_HEADERS(adns.h,AC_CHECK_LIB(adns, adns_init_strcfg,[have_adns=yes]))
|
||||||
AC_CHECK_LIB(adns, adns_free,
|
AC_CHECK_FUNCS(adns_free)
|
||||||
[have_adns=yes],
|
|
||||||
[CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}]),
|
|
||||||
[CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([if adns supports adns_if_tormode])
|
AC_MSG_CHECKING([if adns supports adns_if_tormode])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
#include <adns.h>
|
#include <adns.h>
|
||||||
@ -959,6 +955,8 @@ if test "$with_adns" != "no"; then
|
|||||||
AC_DEFINE(HAVE_ADNS_IF_TORMODE,1,[define if adns_if_tormode is available])
|
AC_DEFINE(HAVE_ADNS_IF_TORMODE,1,[define if adns_if_tormode is available])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
CPPFLAGS=${_cppflags}
|
||||||
|
LDFLAGS=${_ldflags}
|
||||||
if test "$have_adns" = "yes"; then
|
if test "$have_adns" = "yes"; then
|
||||||
ADNSLIBS="-ladns"
|
ADNSLIBS="-ladns"
|
||||||
fi
|
fi
|
||||||
|
@ -65,6 +65,11 @@
|
|||||||
# define AI_ADDRCONFIG 0
|
# define AI_ADDRCONFIG 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Provide a replacement function for older ADNS versions. */
|
||||||
|
#ifndef HAVE_ADNS_FREE
|
||||||
|
# define adns_free(a) free ((a))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Not every installation has gotten around to supporting SRVs or
|
/* Not every installation has gotten around to supporting SRVs or
|
||||||
CERTs yet... */
|
CERTs yet... */
|
||||||
#ifndef T_SRV
|
#ifndef T_SRV
|
||||||
|
Loading…
x
Reference in New Issue
Block a user