summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-28 19:13:25 +0000
committerYang Tse <yangsita@gmail.com>2008-10-28 19:13:25 +0000
commit0989cd358aae91067b20a37d45dca4a29696e37a (patch)
tree9c7832643c6603eec2e7ce312b40442968b75edf /configure.ac
parent6e0739931d3627f378abaa109fea4e62bcca1673 (diff)
downloadcurl-0989cd358aae91067b20a37d45dca4a29696e37a.tar.gz
Initial attempt to detect at configuration time if the getaddrinfo()
function returns an addrinfo with an unfreeable ai_addr member ptr.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3fdf376bb..7f687b8f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2016,6 +2016,8 @@ CURL_CHECK_MSG_NOSIGNAL
CURL_CHECK_FUNC_ALARM
CURL_CHECK_FUNC_FDOPEN
CURL_CHECK_FUNC_FTRUNCATE
+CURL_CHECK_FUNC_GETADDRINFO
+CURL_CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR
CURL_CHECK_FUNC_GETHOSTBYADDR_R
CURL_CHECK_FUNC_GETHOSTBYNAME_R
CURL_CHECK_FUNC_GETHOSTNAME
@@ -2120,7 +2122,11 @@ dnl and get the types of five of its arguments.
CURL_CHECK_FUNC_GETNAMEINFO
if test "$ipv6" = "yes"; then
- CURL_CHECK_WORKING_GETADDRINFO
+ if test "$ac_cv_func_getaddrinfo" = "yes"; then
+ AC_DEFINE(ENABLE_IPV6, 1, [Define if you want to enable IPv6 support])
+ IPV6_ENABLED=1
+ AC_SUBST(IPV6_ENABLED)
+ fi
CURL_CHECK_NI_WITHSCOPEID
fi