summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-11 15:31:53 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-11 15:31:53 +0000
commit0cec4f5c7a131a2e5be42bf5fb2582e099831fe1 (patch)
tree7a505f8984338ae7570fb8ecfea819971a014592 /configure
parent7e5899961efb6abddc30217b27afe9b0a74cee87 (diff)
downloadmpv-0cec4f5c7a131a2e5be42bf5fb2582e099831fe1.tar.bz2
mpv-0cec4f5c7a131a2e5be42bf5fb2582e099831fe1.tar.xz
cosmetics: Move CPU byte order check to a more sensible place.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28300 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure54
1 files changed, 28 insertions, 26 deletions
diff --git a/configure b/configure
index edcb679fa6..bde547c180 100755
--- a/configure
+++ b/configure
@@ -2289,6 +2289,34 @@ if test "$_runtime_cpudetection" = yes ; then
fi
+# endian testing
+echocheck "byte order"
+if test "$_big_endian" = auto ; then
+ cat > $TMPC <<EOF
+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(void) { return (int)ascii_name; }
+EOF
+ if cc_check ; then
+ if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then
+ _big_endian=yes
+ else
+ _big_endian=no
+ fi
+ else
+ echo ${_echo_n} "failed to autodetect byte order, defaulting to ${_echo_c}"
+ fi
+fi
+if test "$_big_endian" = yes ; then
+ _byte_order='big-endian'
+ _def_words_endian='#define WORDS_BIGENDIAN 1'
+else
+ _byte_order='little-endian'
+ _def_words_endian='#undef WORDS_BIGENDIAN'
+fi
+echores "$_byte_order"
+
+
echocheck "extern symbol prefix"
cat > $TMPC << EOF
int ff_extern;
@@ -7449,32 +7477,6 @@ else
fi
echores "$_vstream"
-# endian testing
-echocheck "byte order"
-if test "$_big_endian" = auto ; then
- cat > $TMPC <<EOF
-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(void) { return (int)ascii_name; }
-EOF
- if cc_check ; then
- if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then
- _big_endian=yes
- else
- _big_endian=no
- fi
- else
- echo ${_echo_n} "failed to autodetect byte order, defaulting to ${_echo_c}"
- fi
-fi
-if test "$_big_endian" = yes ; then
- _byte_order='big-endian'
- _def_words_endian='#define WORDS_BIGENDIAN 1'
-else
- _byte_order='little-endian'
- _def_words_endian='#undef WORDS_BIGENDIAN'
-fi
-echores "$_byte_order"
echocheck "OSD menu"
if test "$_menu" = yes ; then