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:
parent
eee1e83c8a
commit
b4d0ea9adb
7
configure
vendored
7
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user