summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2009-09-11 14:56:08 +1000
committerDarren Tucker <dtucker@zip.com.au>2009-09-11 14:56:08 +1000
commite02b49a80643e8e22566c72bf39b76e89acdf312 (patch)
treecdec42a0325ec32b7b4a76b858a70a69d7c0922e
parente5d5a17fe16b5bb22259cb84ef13cd47e60d77d7 (diff)
- (dtucker) [configure.ac] Change the -lresolv check so it works on Mac OS X
10.6 (which doesn't have BIND8_COMPAT and thus uses res_9_query). Patch from jbasney at ncsa uiuc edu.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac27
2 files changed, 27 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index dcb471b53..83664dc3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120090911
2 - (dtucker) [configure.ac] Change the -lresolv check so it works on Mac OS X
3 10.6 (which doesn't have BIND8_COMPAT and thus uses res_9_query). Patch
4 from jbasney at ncsa uiuc edu.
5
120090908 620090908
2 - (djm) [serverloop.c] Fix test for server-assigned remote forwarding port 7 - (djm) [serverloop.c] Fix test for server-assigned remote forwarding port
3 (-R 0:...); bz#1578, spotted and fix by gavin AT emf.net; ok dtucker@ 8 (-R 0:...); bz#1578, spotted and fix by gavin AT emf.net; ok dtucker@
diff --git a/configure.ac b/configure.ac
index a0b781ee4..ea9f1bb56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.426 2009/09/01 08:26:00 dtucker Exp $ 1# $Id: configure.ac,v 1.427 2009/09/11 04:56:08 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -15,7 +15,7 @@
15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 16
17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) 17AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
18AC_REVISION($Revision: 1.426 $) 18AC_REVISION($Revision: 1.427 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20 20
21AC_CONFIG_HEADER(config.h) 21AC_CONFIG_HEADER(config.h)
@@ -3324,12 +3324,30 @@ AC_SEARCH_LIBS(getrrsetbyname, resolv,
3324 AC_SEARCH_LIBS(res_query, resolv) 3324 AC_SEARCH_LIBS(res_query, resolv)
3325 AC_SEARCH_LIBS(dn_expand, resolv) 3325 AC_SEARCH_LIBS(dn_expand, resolv)
3326 AC_MSG_CHECKING(if res_query will link) 3326 AC_MSG_CHECKING(if res_query will link)
3327 AC_TRY_LINK_FUNC(res_query, AC_MSG_RESULT(yes), 3327 AC_LINK_IFELSE([
3328#include "confdefs.h"
3329#include <sys/types.h>
3330#include <netinet/in.h>
3331#include <arpa/nameser.h>
3332#include <netdb.h>
3333#include <resolv.h>
3334int main()
3335{
3336 res_query (0, 0, 0, 0, 0);
3337 return 0;
3338}
3339 ],
3340 AC_MSG_RESULT(yes),
3328 [AC_MSG_RESULT(no) 3341 [AC_MSG_RESULT(no)
3329 saved_LIBS="$LIBS" 3342 saved_LIBS="$LIBS"
3330 LIBS="$LIBS -lresolv" 3343 LIBS="$LIBS -lresolv"
3331 AC_MSG_CHECKING(for res_query in -lresolv) 3344 AC_MSG_CHECKING(for res_query in -lresolv)
3332 AC_LINK_IFELSE([ 3345 AC_LINK_IFELSE([
3346#include "confdefs.h"
3347#include <sys/types.h>
3348#include <netinet/in.h>
3349#include <arpa/nameser.h>
3350#include <netdb.h>
3333#include <resolv.h> 3351#include <resolv.h>
3334int main() 3352int main()
3335{ 3353{
@@ -3337,8 +3355,7 @@ int main()
3337 return 0; 3355 return 0;
3338} 3356}
3339 ], 3357 ],
3340 [LIBS="$LIBS -lresolv" 3358 [AC_MSG_RESULT(yes)],
3341 AC_MSG_RESULT(yes)],
3342 [LIBS="$saved_LIBS" 3359 [LIBS="$saved_LIBS"
3343 AC_MSG_RESULT(no)]) 3360 AC_MSG_RESULT(no)])
3344 ]) 3361 ])