]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: only say ipv6 enabled when the variable is set
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 Nov 2019 12:59:35 +0000 (13:59 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Nov 2019 15:48:39 +0000 (16:48 +0100)
Previously it could say "IPv6: enabled" at the end of the configure run
but the define wasn't set because of a missing getaddrinfo().

Reported-by: Marcel Raad
Fixes #4555
Closes #4560

configure.ac

index f6cf2ed0b45cdb68c26322cee4edd778f41321b5..cb8f4943e5a79912aebf2efe17897a1a0298e124 100755 (executable)
@@ -1227,10 +1227,6 @@ main()
   ipv6=yes
 ))
 
-if test "$ipv6" = "yes"; then
-  curl_ipv6_msg="enabled"
-fi
-
 # Check if struct sockaddr_in6 have sin6_scope_id member
 if test "$ipv6" = yes; then
   AC_MSG_CHECKING([if struct sockaddr_in6 has sin6_scope_id member])
@@ -3969,6 +3965,7 @@ if test "$ipv6" = "yes"; then
     AC_DEFINE(ENABLE_IPV6, 1, [Define if you want to enable IPv6 support])
     IPV6_ENABLED=1
     AC_SUBST(IPV6_ENABLED)
+    curl_ipv6_msg="enabled"
   fi
 fi