From 789cb13decdbd7a25eef6a9fbebe46af8a2b197b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 18 Oct 2011 13:28:01 +0000 Subject: [PATCH] Avoid readline auto-detection when cross-compiling. Still feasible to use readline if you specify the path to it. --- m4/readline.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m4/readline.m4 b/m4/readline.m4 index e2eba85..218b3da 100644 --- a/m4/readline.m4 +++ b/m4/readline.m4 @@ -14,6 +14,10 @@ AC_DEFUN([AC_CHECK_READLINE],[ AC_MSG_CHECKING(for readline.h) + if test "x$cross_compiling" == "xyes"; then + without_readline=yes + fi + if test "x$without_readline" != "xyes"; then for i in $with_arg \ /usr/include: \