Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
620bbabc
Commit
620bbabc
authored
Nov 24, 2001
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to get IPv6 support, unless --disable-ipv6 is explicitly specified.
parent
7ef6aa64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
37 deletions
+10
-37
configure.in
configure.in
+10
-37
No files found.
configure.in
View file @
620bbabc
...
...
@@ -92,44 +92,17 @@ AC_DEFINE(ss_family, __ss_family, [KAME hack])
AC_DEFINE(ss_len, __ss_len, [KAME hack])
CFLAGS="$CFLAGS"
AC_MSG_CHECKING([whether IPv6 is explicitly enabled])
AC_ARG_ENABLE(ipv6,
[ --enable-ipv6 Enable ipv6 (with ipv4) support
--disable-ipv6 Disable ipv6 support],
[ case "$enableval" in
no)
AC_MSG_RESULT(no)
ipv6=no
;;
*)
AC_MSG_RESULT(yes)
AC_DEFINE(ENABLE_IPV6)
ipv6=yes
;;
esac ],
[
AC_MSG_RESULT(no)
dnl not specified; let's try
AC_MSG_CHECKING([whether IPv6 works anyhow])
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
],
[
main()
{
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
exit(1);
else
exit(0);
}
],
[
AC_MSG_RESULT(yes)
AC_DEFINE(ENABLE_IPV6)
ipv6=yes],
[AC_MSG_RESULT(no)
ipv6=no])])
AC_HELP_STRING([--disable-ipv6], [do not try to support IPv6]))
AC_MSG_CHECKING([whether IPv6 is explicitly disabled])
if test "$xenable_ipv6" = xyes
then
AC_MSG_RESULT(yes)
ipv6=no
else
AC_MSG_RESULT(no)
ipv6=yes
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