SOURCES: mplayer-check-byteswap.patch (NEW) - add check for bytesw...

glen glen at pld-linux.org
Thu Feb 7 13:06:16 CET 2008


Author: glen                         Date: Thu Feb  7 12:06:16 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- add check for byteswap.h header

---- Files affected:
SOURCES:
   mplayer-check-byteswap.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/mplayer-check-byteswap.patch
diff -u /dev/null SOURCES/mplayer-check-byteswap.patch:1.1
--- /dev/null	Thu Feb  7 13:06:16 2008
+++ SOURCES/mplayer-check-byteswap.patch	Thu Feb  7 13:06:10 2008
@@ -0,0 +1,34 @@
+--- MPlayer-1.0rc2/configure~	2008-02-07 13:58:05.000000000 +0200
++++ MPlayer-1.0rc2/configure	2008-02-07 13:58:10.395099351 +0200
+@@ -2998,6 +2998,21 @@
+ echores "$_alloca"
+ 
+ 
++echocheck "byteswap.h"
++cat > $TMPC << EOF
++#include <byteswap.h>
++int main(void) { (void) bswap_16(0); (void) bswap_32(0); (void) bswap_64(0); return 0; }
++EOF
++_byteswap=no
++cc_check && _byteswap=yes
++if cc_check ; then
++  _def_byteswap='#define HAVE_BYTESWAP_H 1'
++else
++  _def_byteswap='#undef HAVE_BYTESWAP_H'
++fi
++echores "$_byteswap"
++
++
+ echocheck "mman.h"
+ cat > $TMPC << EOF
+ #include <sys/types.h>
+@@ -7949,6 +7964,9 @@
+ /* Define this if your system has the "alloca.h" header file */
+ $_def_alloca
+ 
++/* yes, we have byteswap.h */
++$_def_byteswap
++
+ /* Define this if your system has the "sys/mman.h" header file */
+ $_def_mman
+ $_def_mman_has_map_failed
================================================================


More information about the pld-cvs-commit mailing list