]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: assume IPv6 works when cross-compiled
authorDaniel Stenberg <daniel@haxx.se>
Tue, 12 Jan 2016 09:30:54 +0000 (10:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 12 Jan 2016 09:30:54 +0000 (10:30 +0100)
The configure test uses AC_TRY_RUN to figure out if an ipv6 socket
works, and testing like that doesn't work for cross-compiles. These days
IPv6 support is widespread so a blind guess is probably more likely to
be 'yes' than 'no' now.

Further: anyone who cross-compiles can use configure's --disable-ipv6 to
explicitly disable IPv6 and that also works for cross-compiles.

Made happen after discussions in issue #594

configure.ac

index 7593e9609d66aa0c4ccc259c35e8ee2d11f0ae2c..d6d3466b8d92d25aa327211f50cc469f86e4c9b9 100644 (file)
@@ -5,7 +5,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -1101,8 +1101,8 @@ main()
   ipv6=yes,
   AC_MSG_RESULT(no)
   ipv6=no,
-  AC_MSG_RESULT(no)
-  ipv6=no
+  AC_MSG_RESULT(yes)
+  ipv6=yes
 ))
 
 if test "$ipv6" = "yes"; then