From: Matthias Klose Date: Thu, 15 Mar 2012 19:42:23 +0000 (+0100) Subject: - Issue #14324: Fix configure tests for cross builds. X-Git-Tag: v3.3.0a2~170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9635013a8fb68c044ea2cae2ec344b3940c188b2;p=thirdparty%2FPython%2Fcpython.git - Issue #14324: Fix configure tests for cross builds. when configured with --(en|dis)able-ipv6 for cross builds, don't fail the configury due to the missing buggy-getaddrinfo check. --- diff --git a/configure b/configure index ee518ccbaa1e..7c83bb4a9623 100755 --- 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. */ diff --git a/configure.ac b/configure.ac index 1ae79cc5e0ab..6db4f3ea00c9 100644 --- a/configure.ac +++ b/configure.ac @@ -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)