diff options
author | doko@ubuntu.com <doko@ubuntu.com> | 2012-06-30 16:25:32 (GMT) |
---|---|---|
committer | doko@ubuntu.com <doko@ubuntu.com> | 2012-06-30 16:25:32 (GMT) |
commit | 5884449539510313c826d69835829c7957c7154a (patch) | |
tree | df663a5bd446544a45e96d48dda626f3a9b53c67 /configure.ac | |
parent | f2967c73ad1f73bdb5320bf99a595761edd040ba (diff) | |
download | cpython-5884449539510313c826d69835829c7957c7154a.zip cpython-5884449539510313c826d69835829c7957c7154a.tar.gz cpython-5884449539510313c826d69835829c7957c7154a.tar.bz2 |
- Issue #3754: Use readelf instead of ldd for the cross build readline check
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index eb0763a..00ed902 100644 --- a/configure.ac +++ b/configure.ac @@ -926,6 +926,16 @@ then 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) |