summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-31 18:19:28 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-31 18:19:28 +0000
commitb4d0ea9adbc977f48db53c6949b426cbbe429864 (patch)
treea758d840cd43132022b13586fbb349208bde0441 /configure
parenteee1e83c8aa5187fca837180ba3086de04b5dec0 (diff)
downloadmpv-b4d0ea9adbc977f48db53c6949b426cbbe429864.tar.bz2
mpv-b4d0ea9adbc977f48db53c6949b426cbbe429864.tar.xz
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index 47c9a1c4f8..0b0b33fad4 100755
--- a/configure
+++ b/configure
@@ -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