diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-02 00:49:28 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-02 00:49:28 +0000 |
commit | 1da6eb7fdaa79a93972c290174bd7136672a894f (patch) | |
tree | f678004bfc882908975bfa8fbe7c831ba9935306 /configure.in | |
parent | f8a15f632dbdc0d24f8aa2d6a1164ed1b0f6b607 (diff) | |
download | postgresql-1da6eb7fdaa79a93972c290174bd7136672a894f.tar.gz |
Whack getaddrinfo() patch around until it works, more or less, on
machines without IPv6. Or at least it works on HPUX 10.20 ...
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/configure.in b/configure.in index a7d961ecb1..ed59aa9025 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Header: /cvsroot/pgsql/configure.in,v 1.240 2003/03/29 11:31:51 petere Exp $ +dnl $Header: /cvsroot/pgsql/configure.in,v 1.241 2003/04/02 00:49:28 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -746,6 +746,7 @@ AC_C_VOLATILE AC_STRUCT_TIMEZONE PGAC_UNION_SEMUN PGAC_STRUCT_SOCKADDR_UN +PGAC_STRUCT_ADDRINFO AC_CHECK_TYPES([struct cmsgcred, struct fcred, struct sockcred], [], [], [#include <sys/param.h> @@ -847,7 +848,15 @@ else AC_CHECK_FUNCS([fpclass fp_class fp_class_d class], [break]) fi -AC_REPLACE_FUNCS([fseeko getaddrinfo gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul]) +AC_REPLACE_FUNCS([fseeko gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul]) + +# system's version of getaddrinfo(), if any, may be used only if we found +# a definition for struct addrinfo; see notes in src/include/getaddrinfo.h +if test x"$ac_cv_type_struct_addrinfo" = xyes ; then + AC_REPLACE_FUNCS([getaddrinfo]) +else + AC_LIBOBJ(getaddrinfo) +fi # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos # We override the previous test that said fseeko/ftello didn't exist |