summaryrefslogtreecommitdiff
path: root/mplayer-check-byteswap.patch
blob: 2b4ac6bb5b98ec6484121dd46234e09a8ca2a129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- MPlayer-1.4/configure.orig	2021-04-30 07:15:02.624028723 +0200
+++ MPlayer-1.4/configure	2021-04-30 07:15:53.046668447 +0200
@@ -3955,6 +3955,21 @@ fi
 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_h='#define HAVE_BYTESWAP_H 1'
+else
+  def_byteswap_h='#undef HAVE_BYTESWAP_H'
+fi
+echores "$_byteswap"
+
+
 echocheck "fastmemcpy"
 if test "$_fastmemcpy" = yes ; then
   def_fastmemcpy='#define CONFIG_FASTMEMCPY 1'
@@ -8902,6 +8917,7 @@ $def_sys_uio_h
 $def_alloca_h
 $def_altivec_h
 $def_malloc_h
+$def_byteswap_h
 $def_mman_h
 $def_mman_has_map_failed
 $def_soundcard_h