]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: enable IPv6 by default if available
authorPeter Wu <peter@lekensteyn.nl>
Mon, 13 Oct 2014 09:19:36 +0000 (11:19 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Oct 2014 09:21:03 +0000 (11:21 +0200)
commitaec7c5a87c8482b6ddffa352d7d220698652262e
treebc2c74812f2d1980fba61ecb4de64d174a48e2fc
parentb55502cdae4e9eb773762b87694f347a8d11ed8b
cmake: enable IPv6 by default if available

ENABLE_IPV6 depends on HAVE_GETADDRINFO or you will get a
Curl_getaddrinfo_ex error. Enable IPv6 by default, disabling it if
struct sockaddr_in6 is not found in netinet/in.h.

Note that HAVE_GETADDRINFO_THREADSAFE is still not set as it needs more
platform checks even though POSIX requires a thread-safe getaddrinfo.

Verified on Arch Linux x86_64 with glibc 2.20-2 and Linux 3.16-rc7.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
CMakeLists.txt
docs/INSTALL.cmake