2019-05-16 16:12:41 +02:00
|
|
|
From e674e29ceba34e55c9149ce99489e543aa4ebb01 Mon Sep 17 00:00:00 2001
|
2017-03-08 00:00:26 +01:00
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Tue, 7 Mar 2017 22:19:47 +0100
|
|
|
|
Subject: [PATCH] Adjust getaddrinfo() test for cross-compilation
|
|
|
|
|
|
|
|
The getaddrinfo() test in configure.ac uses AC_RUN_IFELSE(), which isn't
|
|
|
|
cross-compilation friendly.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2019-05-16 16:12:41 +02:00
|
|
|
[Peter: update for 2.7.16]
|
|
|
|
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
2017-03-08 00:00:26 +01:00
|
|
|
---
|
|
|
|
configure.ac | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2019-05-16 16:12:41 +02:00
|
|
|
index 6bd8369105..77ca6d86ca 100644
|
2017-03-08 00:00:26 +01:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2019-05-16 16:12:41 +02:00
|
|
|
@@ -3563,7 +3563,7 @@ fi
|
2017-03-08 00:00:26 +01:00
|
|
|
|
|
|
|
AC_MSG_RESULT($ac_cv_buggy_getaddrinfo)
|
|
|
|
|
|
|
|
-if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
|
|
|
|
+if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes
|
|
|
|
then
|
|
|
|
if test $ipv6 = yes
|
|
|
|
then
|
|
|
|
--
|
2019-05-16 16:12:41 +02:00
|
|
|
2.11.0
|
2017-03-08 00:00:26 +01:00
|
|
|
|