From 1edc1b3751496885b236f5ab1194ad667c96b174 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Tue, 29 Jan 2013 20:31:01 -0500 Subject: [PATCH] Fix DNS check for recent OS X releases * configure.ac: OS X now needs BIND_8_COMPAT and -lresolv --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 87bd18fcf..bbf6e65b5 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # configure.ac script for GnuPG # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, -# 2008, 2009, 2010, 2012 Free Software Foundation, Inc. +# 2008, 2009, 2010, 2012, 2013 Free Software Foundation, Inc. # # This file is part of GnuPG. # @@ -722,7 +722,8 @@ if test x"$use_dns_pka" = xyes || test x"$use_dns_srv" = xyes || test x"$use_dns # define in bind 8 for some reason. if test x"$have_resolver" != xyes ; then - AC_MSG_CHECKING([whether I can make the resolver usable with BIND_8_COMPAT]) + AC_MSG_CHECKING([whether I can make the resolver usable with BIND_8_COMPAT and libresolv]) + LIBS="$LIBS -lresolv" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define BIND_8_COMPAT #include #include