]> granicus.if.org Git - python/commitdiff
- Issue #14324: Fix configure tests for cross builds.
authorMatthias Klose <doko@ubuntu.com>
Thu, 15 Mar 2012 19:42:23 +0000 (20:42 +0100)
committerMatthias Klose <doko@ubuntu.com>
Thu, 15 Mar 2012 19:42:23 +0000 (20:42 +0100)
when configured with --(en|dis)able-ipv6 for cross builds, don't fail the configury due to the missing buggy-getaddrinfo check.

configure
configure.ac

index ee518ccbaa1ea8b9b79996729de39df3c958e8cb..7c83bb4a962380c9be229283744e19e78295e533 100755 (executable)
--- a/configure
+++ b/configure
@@ -10854,7 +10854,12 @@ $as_echo_n "checking getaddrinfo bug... " >&6; }
   $as_echo_n "(cached) " >&6
 else
   if test "$cross_compiling" = yes; then :
+
+if test "${enable_ipv6+set}" = set; then
+  ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
+else
   ac_cv_buggy_getaddrinfo=yes
+fi
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
index 1ae79cc5e0ab712966ee835d734f5210ae849ee3..6db4f3ea00c956f759ce6be8e984ec7be1a515f9 100644 (file)
@@ -3009,7 +3009,12 @@ int main()
 ]]])],
 [ac_cv_buggy_getaddrinfo=no],
 [ac_cv_buggy_getaddrinfo=yes],
-[ac_cv_buggy_getaddrinfo=yes]))
+[
+if test "${enable_ipv6+set}" = set; then
+  ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
+else
+  ac_cv_buggy_getaddrinfo=yes
+fi]))
 fi
 
 AC_MSG_RESULT($ac_cv_buggy_getaddrinfo)