aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2013-01-30 01:31:01 +0000
committerDavid Shaw <[email protected]>2013-01-30 01:31:01 +0000
commit1edc1b3751496885b236f5ab1194ad667c96b174 (patch)
tree3f4bc14e5ea7b481005138b78bd0326b4b813d42
parentAutomake 1.13 compatibility fix. (diff)
downloadgnupg-1edc1b3751496885b236f5ab1194ad667c96b174.tar.gz
gnupg-1edc1b3751496885b236f5ab1194ad667c96b174.zip
Fix DNS check for recent OS X releases
* configure.ac: OS X now needs BIND_8_COMPAT and -lresolv
-rw-r--r--configure.ac5
1 files 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 <sys/types.h>
#include <netinet/in.h>