1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 06:30:06 +00:00

some people have GREP_OPTIONS set to --ignore-case what makes it a bit dangerous to rely on the string MPlayer for the big endian check

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13831 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2004-10-31 18:19:28 +00:00
parent eee1e83c8a
commit b4d0ea9adb

7
configure vendored
View File

@ -5949,14 +5949,15 @@ echores "$_ftp"
echocheck "byte order"
if test "$_big_endian" = auto ; then
cat > $TMPC <<EOF
short asci_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|0)};
short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'),
(('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0};
int main(){
char* s = (char*)asci_name;
char* s = (char*)ascii_name;
return 0;
}
EOF
if cc_check ; then
if test `grep -l MPlayer $TMPO` ; then
if test `grep -l MPlayerBigEndian $TMPO` ; then
_big_endian=yes
else
_big_endian=no