From 2025f093ca1737dd96014d92708fc83fde2e0938 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 26 May 2008 21:37:27 +0300 Subject: [PATCH] AC_C_BIGENDIAN works nowadays --- configure.ac | 58 ++-------------------------------------------------- 1 file changed, 2 insertions(+), 56 deletions(-) diff --git a/configure.ac b/configure.ac index b0adb3d76a..2e451f103f 100644 --- a/configure.ac +++ b/configure.ac @@ -5595,63 +5595,9 @@ then fi dnl -dnl Endianness check, AC_C_BIGENDIAN doesn't work if we are cross-compiling +dnl Endianness check dnl -dnl We give the user the opportunity to specify -dnl --with-words=big or --with-words=little ; otherwise, try to guess -dnl -AC_ARG_WITH(words, - [ --with-words=endianness set endianness (big or little)]) - case "${with_words}" in - big) - ac_cv_c_bigendian=yes - ;; - little) - ac_cv_c_bigendian=no - ;; - *) - dnl Try to guess endianness by matching patterns on a compiled - dnl binary, by looking for an ASCII or EBCDIC string - AC_CACHE_CHECK([whether the byte order is big-endian], - [ac_cv_c_bigendian], - [ac_cv_c_bigendian="unknown" - [cat >conftest.c <>config.log 2>&1 \ - && test -f conftest.o - then - if test "`strings conftest.o | grep BIGenDianSyS`" - then - ac_cv_c_bigendian="yes" - fi - if test "`strings conftest.o | grep LiTTleEnDian`" - then - ac_cv_c_bigendian="no" - fi - fi - fi - ]) - if test "${ac_cv_c_bigendian}" = "unknown" - then - AC_MSG_ERROR([Could not guess endianness, please use --with-words]) - fi - ;; - esac -dnl Now we know what to use for endianness, just put it in the header -if test "${ac_cv_c_bigendian}" = "yes" -then - AC_DEFINE(WORDS_BIGENDIAN, 1, big endian system) -fi +AC_C_BIGENDIAN dnl dnl DLL loader copied from MPlayer copied from somewhere else (WINE ?) -- 2.39.5