aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-03-13 22:46:34 +0000
committerMåns Rullgård <mans@mansr.com>2008-03-13 22:46:34 +0000
commitccae51d5b943108368e6bdf921fd5546f3a1748f (patch)
treead50eae7c4ac3b9bd58689dae9aa7f10fe6b947e
parent768a9205727498087e63b14826e0b21a3879f4a4 (diff)
downloadffmpeg-ccae51d5b943108368e6bdf921fd5546f3a1748f.tar.gz
hopefully portable endian test
Originally committed as revision 12436 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index afcdca5bb8..03e38b8457 100755
--- a/configure
+++ b/configure
@@ -1565,7 +1565,7 @@ enabled vis && add_cflags "-mcpu=ultrasparc -mtune=ultrasparc"
check_cc <<EOF || die "endian test failed"
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
EOF
-tr -c -d BIGE < $TMPO | grep -q BIGE && enable bigendian
+od -t x1 $TMPO | grep -q '42 49 47 45' && enable bigendian
# ---
# check availability of some header files