Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a5f8bb57
Commit
a5f8bb57
authored
Sep 05, 2001
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for RFC 2553 API. Fixes bug #454493.
parent
4c483c4d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
348 additions
and
309 deletions
+348
-309
configure
configure
+327
-306
configure.in
configure.in
+21
-3
No files found.
configure
View file @
a5f8bb57
This diff is collapsed.
Click to expand it.
configure.in
View file @
a5f8bb57
...
...
@@ -968,7 +968,7 @@ else
fi
# Check for enable-ipv6
AC_MSG_CHECKING([
whether to enable ipv6
])
AC_MSG_CHECKING([
if --enable-ipv6 is specified
])
AC_ARG_ENABLE(ipv6,
[ --enable-ipv6 Enable ipv6 (with ipv4) support
--disable-ipv6 Disable ipv6 support],
...
...
@@ -983,6 +983,8 @@ AC_ARG_ENABLE(ipv6,
;;
esac ],
[
dnl the check does not work on cross compilation case...
AC_TRY_RUN([ /* AF_INET6 available check */
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -995,13 +997,29 @@ main()
}
],
AC_MSG_RESULT(yes)
AC_DEFINE(ENABLE_IPV6)
ipv6=yes,
AC_MSG_RESULT(no)
ipv6=no,
AC_MSG_RESULT(no)
ipv6=no
))
)
if test "$ipv6" = "yes"; then
AC_MSG_CHECKING(if RFC2553 API is available)
AC_TRY_COMPILE([#include <sys/types.h>
#include <netinet/in.h>],
[struct sockaddr_in6 x;
x.sin6_scope_id;],
AC_MSG_RESULT(yes)
ipv6=yes,
AC_MSG_RESULT(no, IPv6 disabled)
ipv6=no)
fi
if test "$ipv6" = "yes"; then
AC_DEFINE(ENABLE_IPV6)
fi
])
ipv6type=unknown
ipv6lib=none
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment