diff options
| author | Bruce Momjian <bruce@momjian.us> | 2003-01-06 06:06:04 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2003-01-06 06:06:04 +0000 |
| commit | f240746739f5d2484a173a4e2b09562b0fddc3f4 (patch) | |
| tree | c928903b8b6aba876312e1415c16dea34178ebb3 /configure.in | |
| parent | 895f954f24c1215d7876f9c4e40c8dc4e03693ae (diff) | |
| download | postgresql-f240746739f5d2484a173a4e2b09562b0fddc3f4.tar.gz | |
Add test for netinet/ip6.h and getaddrinfo, to enable IPv6.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 6180a057be..4c8512bd0e 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.226 2003/01/06 05:46:18 momjian Exp $ +dnl $Header: /cvsroot/pgsql/configure.in,v 1.227 2003/01/06 06:06:04 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -788,7 +788,9 @@ AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>]) # This exports HAVE_IPV6 to both C files and Makefiles AC_CHECK_FUNC(getaddrinfo, - [HAVE_IPV6="yes"; AC_DEFINE(HAVE_IPV6, 1, [])], []) + [AC_CHECK_HEADER(netinet/ip6.h, + [HAVE_IPV6="yes"; AC_DEFINE(HAVE_IPV6, 1, [])], + [])]) AC_SUBST(HAVE_IPV6) AC_CACHE_CHECK([for PS_STRINGS], [pgac_cv_var_PS_STRINGS], |
