- Issue #3754: Use readelf instead of ldd for the cross build readline check
diff --git a/configure.ac b/configure.ac
index eb0763a..00ed902 100644
--- a/configure.ac
+++ b/configure.ac
@@ -926,6 +926,16 @@
ARFLAGS="rc"
fi
+AC_CHECK_TOOLS([READELF], [readelf], [:])
+if test "$cross_compiling" = yes; then
+ case "$READELF" in
+ readelf|:)
+ AC_MSG_ERROR([readelf for the host is required for cross builds])
+ ;;
+ esac
+fi
+AC_SUBST(READELF)
+
AC_SUBST(DISABLE_ASDLGEN)
DISABLE_ASDLGEN=""
AC_CHECK_PROG(HAS_PYTHON, python, found, not-found)