summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-25 13:14:58 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-25 13:14:58 +1100
commit58e298d11b8752062c21b693126e4206458bdad8 (patch)
tree8917421c741b77469b5057f235b18eca2c7ea33b /configure.ac
parentfaec5ca73f27d4fe5a0d6c2075de8031160037b0 (diff)
- (dtucker) [configure.ac] Apply tim's fix for older systems where the
resolver state in resolv.h is "state" not "__res_state". With slight modification by me to also work on old AIXes. ok djm@
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 339c23437..2149f5af6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.309 2005/11/24 11:34:54 dtucker Exp $ 1# $Id: configure.ac,v 1.310 2005/11/25 02:14:58 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -2534,6 +2534,17 @@ OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
2534OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX) 2534OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
2535 2535
2536AC_CHECK_MEMBERS([struct stat.st_blksize]) 2536AC_CHECK_MEMBERS([struct stat.st_blksize])
2537AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE(__res_state, state,
2538 [Define if we don't have struct __res_state in resolv.h])],
2539[
2540#include <stdio.h>
2541#if HAVE_SYS_TYPES_H
2542# include <sys/types.h>
2543#endif
2544#include <netinet/in.h>
2545#include <arpa/nameser.h>
2546#include <resolv.h>
2547])
2537 2548
2538AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage], 2549AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
2539 ac_cv_have_ss_family_in_struct_ss, [ 2550 ac_cv_have_ss_family_in_struct_ss, [