[Mplayer-cvslog] CVS: main configure,1.915,1.916
Sascha Sommer CVS
syncmail at mplayerhq.hu
Sun Sep 26 16:49:36 CEST 2004
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv4355
Modified Files:
configure
Log Message:
detect byte order even for cross-compiling
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.915
retrieving revision 1.916
diff -u -r1.915 -r1.916
--- configure 26 Sep 2004 14:40:59 -0000 1.915
+++ configure 26 Sep 2004 14:49:33 -0000 1.916
@@ -5844,14 +5844,14 @@
echocheck "byte order"
if test "$_big_endian" = auto ; then
cat > $TMPC <<EOF
-#include <inttypes.h>
-int main(void) {
- volatile uint32_t i=0x01234567;
- return (*((uint8_t*)(&i))) == 0x67;
-}
+short asci_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|0)};
+int main(){
+ char* s = (char*)asci_name;
+ return 0;
+}
EOF
if cc_check ; then
- if $TMPO ; then
+ if test `grep -l MPlayer $TMPO` ; then
_big_endian=yes
else
_big_endian=no
More information about the MPlayer-cvslog
mailing list