Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf240746

Browse files
committed
Add test for netinet/ip6.h and getaddrinfo, to enable IPv6.
1 parent895f954 commitf240746

File tree

2 files changed

+109
-2
lines changed

2 files changed

+109
-2
lines changed

‎configure

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10028,13 +10028,118 @@ fi
1002810028
echo"$as_me:$LINENO: result:$ac_cv_func_getaddrinfo">&5
1002910029
echo"${ECHO_T}$ac_cv_func_getaddrinfo">&6
1003010030
iftest$ac_cv_func_getaddrinfo = yes;then
10031+
iftest"${ac_cv_header_netinet_ip6_h+set}" =set;then
10032+
echo"$as_me:$LINENO: checking for netinet/ip6.h">&5
10033+
echo$ECHO_N"checking for netinet/ip6.h...$ECHO_C">&6
10034+
iftest"${ac_cv_header_netinet_ip6_h+set}" =set;then
10035+
echo$ECHO_N"(cached)$ECHO_C">&6
10036+
fi
10037+
echo"$as_me:$LINENO: result:$ac_cv_header_netinet_ip6_h">&5
10038+
echo"${ECHO_T}$ac_cv_header_netinet_ip6_h">&6
10039+
else
10040+
# Is the header compilable?
10041+
echo"$as_me:$LINENO: checking netinet/ip6.h usability">&5
10042+
echo$ECHO_N"checking netinet/ip6.h usability...$ECHO_C">&6
10043+
cat>conftest.$ac_ext<<_ACEOF
10044+
#line$LINENO "configure"
10045+
#include "confdefs.h"
10046+
$ac_includes_default
10047+
#include <netinet/ip6.h>
10048+
_ACEOF
10049+
rm -f conftest.$ac_objext
10050+
if { (evalecho"$as_me:$LINENO:\"$ac_compile\"")>&5
10051+
(eval$ac_compile)2>&5
10052+
ac_status=$?
10053+
echo"$as_me:$LINENO:\$? =$ac_status">&5
10054+
(exit$ac_status); }&&
10055+
{ ac_try='test -s conftest.$ac_objext'
10056+
{ (evalecho"$as_me:$LINENO:\"$ac_try\"")>&5
10057+
(eval$ac_try)2>&5
10058+
ac_status=$?
10059+
echo"$as_me:$LINENO:\$? =$ac_status">&5
10060+
(exit$ac_status); }; };then
10061+
ac_header_compiler=yes
10062+
else
10063+
echo"$as_me: failed program was:">&5
10064+
cat conftest.$ac_ext>&5
10065+
ac_header_compiler=no
10066+
fi
10067+
rm -f conftest.$ac_objext conftest.$ac_ext
10068+
echo"$as_me:$LINENO: result:$ac_header_compiler">&5
10069+
echo"${ECHO_T}$ac_header_compiler">&6
10070+
10071+
# Is the header present?
10072+
echo"$as_me:$LINENO: checking netinet/ip6.h presence">&5
10073+
echo$ECHO_N"checking netinet/ip6.h presence...$ECHO_C">&6
10074+
cat>conftest.$ac_ext<<_ACEOF
10075+
#line$LINENO "configure"
10076+
#include "confdefs.h"
10077+
#include <netinet/ip6.h>
10078+
_ACEOF
10079+
if { (evalecho"$as_me:$LINENO:\"$ac_cpp conftest.$ac_ext\"")>&5
10080+
(eval$ac_cpp conftest.$ac_ext)2>conftest.er1
10081+
ac_status=$?
10082+
egrep -v'^ *\+' conftest.er1>conftest.err
10083+
rm -f conftest.er1
10084+
cat conftest.err>&5
10085+
echo"$as_me:$LINENO:\$? =$ac_status">&5
10086+
(exit$ac_status); }>/dev/null;then
10087+
iftest -s conftest.err;then
10088+
ac_cpp_err=$ac_c_preproc_warn_flag
10089+
else
10090+
ac_cpp_err=
10091+
fi
10092+
else
10093+
ac_cpp_err=yes
10094+
fi
10095+
iftest -z"$ac_cpp_err";then
10096+
ac_header_preproc=yes
10097+
else
10098+
echo"$as_me: failed program was:">&5
10099+
cat conftest.$ac_ext>&5
10100+
ac_header_preproc=no
10101+
fi
10102+
rm -f conftest.err conftest.$ac_ext
10103+
echo"$as_me:$LINENO: result:$ac_header_preproc">&5
10104+
echo"${ECHO_T}$ac_header_preproc">&6
10105+
10106+
# So? What about this header?
10107+
case$ac_header_compiler:$ac_header_preprocin
10108+
yes:no )
10109+
{echo"$as_me:$LINENO: WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!">&5
10110+
echo"$as_me: WARNING: netinet/ip6.h: accepted by the compiler, rejected by the preprocessor!">&2;}
10111+
{echo"$as_me:$LINENO: WARNING: netinet/ip6.h: proceeding with the preprocessor's result">&5
10112+
echo"$as_me: WARNING: netinet/ip6.h: proceeding with the preprocessor's result">&2;};;
10113+
no:yes )
10114+
{echo"$as_me:$LINENO: WARNING: netinet/ip6.h: present but cannot be compiled">&5
10115+
echo"$as_me: WARNING: netinet/ip6.h: present but cannot be compiled">&2;}
10116+
{echo"$as_me:$LINENO: WARNING: netinet/ip6.h: check for missing prerequisite headers?">&5
10117+
echo"$as_me: WARNING: netinet/ip6.h: check for missing prerequisite headers?">&2;}
10118+
{echo"$as_me:$LINENO: WARNING: netinet/ip6.h: proceeding with the preprocessor's result">&5
10119+
echo"$as_me: WARNING: netinet/ip6.h: proceeding with the preprocessor's result">&2;};;
10120+
esac
10121+
echo"$as_me:$LINENO: checking for netinet/ip6.h">&5
10122+
echo$ECHO_N"checking for netinet/ip6.h...$ECHO_C">&6
10123+
iftest"${ac_cv_header_netinet_ip6_h+set}" =set;then
10124+
echo$ECHO_N"(cached)$ECHO_C">&6
10125+
else
10126+
ac_cv_header_netinet_ip6_h=$ac_header_preproc
10127+
fi
10128+
echo"$as_me:$LINENO: result:$ac_cv_header_netinet_ip6_h">&5
10129+
echo"${ECHO_T}$ac_cv_header_netinet_ip6_h">&6
10130+
10131+
fi
10132+
iftest$ac_cv_header_netinet_ip6_h = yes;then
1003110133
HAVE_IPV6="yes"; cat>>confdefs.h<<\_ACEOF
1003210134
#define HAVE_IPV6 1
1003310135
_ACEOF
1003410136
1003510137
fi
1003610138
1003710139
10140+
fi
10141+
10142+
1003810143
1003910144
echo"$as_me:$LINENO: checking for PS_STRINGS">&5
1004010145
echo$ECHO_N"checking for PS_STRINGS...$ECHO_C">&6

‎configure.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.226 2003/01/0605:46:18 momjian Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.227 2003/01/0606:06:04 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -788,7 +788,9 @@ AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>])
788788

789789
# This exports HAVE_IPV6 to both C files and Makefiles
790790
AC_CHECK_FUNC(getaddrinfo,
791-
[HAVE_IPV6="yes"; AC_DEFINE(HAVE_IPV6, 1, [])], [])
791+
[AC_CHECK_HEADER(netinet/ip6.h,
792+
[HAVE_IPV6="yes"; AC_DEFINE(HAVE_IPV6, 1, [])],
793+
[])])
792794
AC_SUBST(HAVE_IPV6)
793795

794796
AC_CACHE_CHECK([for PS_STRINGS], [pgac_cv_var_PS_STRINGS],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp