mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
build: Fix check for resolver library on macOS.
* configure.ac: Check for the mangled name of 'dn_skipname' first. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
2b23a321ac
commit
2e64ccb0f9
11
configure.ac
11
configure.ac
@ -1074,8 +1074,15 @@ if test x"$use_dns_srv" = xyes || test x"$use_dns_cert" = xyes; then
|
||||
AC_SEARCH_LIBS(__res_query,resolv bind,,have_resolver=no))
|
||||
AC_SEARCH_LIBS(dn_expand,resolv bind,,
|
||||
AC_SEARCH_LIBS(__dn_expand,resolv bind,,have_resolver=no))
|
||||
AC_SEARCH_LIBS(dn_skipname,resolv bind,,
|
||||
AC_SEARCH_LIBS(__dn_skipname,resolv bind,,have_resolver=no))
|
||||
|
||||
# macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
|
||||
# and for some reason fools us into believing we don't need
|
||||
# -lresolv even if we do. Since the test program checking for the
|
||||
# symbol does not include <resolv.h>, we need to check for the
|
||||
# renamed symbol explicitly.
|
||||
AC_SEARCH_LIBS(res_9_dn_skipname,resolv bind,,
|
||||
AC_SEARCH_LIBS(dn_skipname,resolv bind,,
|
||||
AC_SEARCH_LIBS(__dn_skipname,resolv bind,,have_resolver=no)))
|
||||
|
||||
if test x"$have_resolver" != xno ; then
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user