2016-09-08 12:22:34 +02:00
|
|
|
From 25d313275e87dc236e86c0e713cad08ea64253f8 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
|
|
|
Date: Thu, 8 Sep 2016 10:58:34 +0100
|
|
|
|
Subject: [PATCH] configure.ac: do not assume broken inet_pton in case of cross
|
2015-10-31 22:54:34 +01:00
|
|
|
compiling
|
|
|
|
|
|
|
|
Patch configure.ac to not assume broken inet_pton in case of cross
|
|
|
|
compiling.
|
|
|
|
|
2016-09-08 12:22:34 +02:00
|
|
|
[Vincent: adapt the patch for 2.2.0]
|
|
|
|
|
2015-10-31 22:54:34 +01:00
|
|
|
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
2016-09-08 12:22:34 +02:00
|
|
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
2015-10-31 22:54:34 +01:00
|
|
|
---
|
|
|
|
configure.ac | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2016-09-08 12:22:34 +02:00
|
|
|
index c43e366..9672831 100644
|
2015-10-31 22:54:34 +01:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2016-09-08 12:22:34 +02:00
|
|
|
@@ -2373,8 +2373,8 @@ int main()
|
2015-10-31 22:54:34 +01:00
|
|
|
#endif
|
|
|
|
}], [AC_MSG_RESULT(ok);
|
|
|
|
have_inet_pton=yes], [AC_MSG_RESULT(broken);
|
2016-09-08 12:22:34 +02:00
|
|
|
-have_inet_pton=no], [AC_MSG_RESULT([cross compiling, assume it is broken]);
|
2015-10-31 22:54:34 +01:00
|
|
|
-have_inet_pton=no])],
|
|
|
|
+have_inet_pton=no], [AC_MSG_RESULT([cross compiling, assume it is broken... not here]);
|
|
|
|
+have_inet_pton=yes])],
|
|
|
|
have_inet_pton=no)
|
|
|
|
if test "$have_inet_pton" = no; then
|
2016-09-08 12:22:34 +02:00
|
|
|
AC_LIBOBJ(inet_pton)
|
2015-10-31 22:54:34 +01:00
|
|
|
--
|
2016-09-08 12:22:34 +02:00
|
|
|
2.7.3
|
2015-10-31 22:54:34 +01:00
|
|
|
|