Mercurial > mplayer.hg
comparison configure @ 13830:f7ddd8c4c547
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
author | faust3 |
---|---|
date | Sun, 31 Oct 2004 18:19:28 +0000 |
parents | ed0b4de9b1b3 |
children | 334a9a0192c7 |
comparison
equal
deleted
inserted
replaced
13829:87f739790de5 | 13830:f7ddd8c4c547 |
---|---|
5947 | 5947 |
5948 # endian testing | 5948 # endian testing |
5949 echocheck "byte order" | 5949 echocheck "byte order" |
5950 if test "$_big_endian" = auto ; then | 5950 if test "$_big_endian" = auto ; then |
5951 cat > $TMPC <<EOF | 5951 cat > $TMPC <<EOF |
5952 short asci_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|0)}; | 5952 short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'), |
5953 (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0}; | |
5953 int main(){ | 5954 int main(){ |
5954 char* s = (char*)asci_name; | 5955 char* s = (char*)ascii_name; |
5955 return 0; | 5956 return 0; |
5956 } | 5957 } |
5957 EOF | 5958 EOF |
5958 if cc_check ; then | 5959 if cc_check ; then |
5959 if test `grep -l MPlayer $TMPO` ; then | 5960 if test `grep -l MPlayerBigEndian $TMPO` ; then |
5960 _big_endian=yes | 5961 _big_endian=yes |
5961 else | 5962 else |
5962 _big_endian=no | 5963 _big_endian=no |
5963 fi | 5964 fi |
5964 else | 5965 else |