Commit 6526a4f8 authored by mru's avatar mru

new attempt at portable endian test


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12437 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3f758af9
......@@ -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
od -t x1 $TMPO | grep -q '42 49 47 45' && enable bigendian
od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
# ---
# check availability of some header files
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment