summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2013-01-08 19:03:07 (GMT)
committerCharles-François Natali <neologix@free.fr>2013-01-08 19:03:07 (GMT)
commitcd18e78897eb2a776bba62c30aac87b57e3a7579 (patch)
tree37362d9d57a403136ceaec7ac3fb955178967328 /configure
parentf43c4d66bed0be1d0d7172ece317b7a836cbaa8f (diff)
parent1aa004b45dbfb1c8512c179bd7d3a35410df8b82 (diff)
downloadcpython-cd18e78897eb2a776bba62c30aac87b57e3a7579.zip
cpython-cd18e78897eb2a776bba62c30aac87b57e3a7579.tar.gz
cpython-cd18e78897eb2a776bba62c30aac87b57e3a7579.tar.bz2
Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 7 insertions, 18 deletions
diff --git a/configure b/configure
index 550dd71..9381ec0 100755
--- a/configure
+++ b/configure
@@ -9795,28 +9795,20 @@ $as_echo "yes" >&6; }
esac
else
- if test "$cross_compiling" = yes; then :
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- ipv6=no
-
-else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* AF_INET6 available check */
#include <sys/types.h>
#include <sys/socket.h>
-main()
+int
+main ()
{
- if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
- exit(1);
- else
- exit(0);
+int domain = AF_INET6;
+ ;
+ return 0;
}
-
_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
+if ac_fn_c_try_compile "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
@@ -9829,10 +9821,7 @@ $as_echo "no" >&6; }
ipv6=no
fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$ipv6" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5