]> git.pld-linux.org Git - packages/mplayer.git/blob - mplayer-check-byteswap.patch
- release 6 (libvpx 1.14)
[packages/mplayer.git] / mplayer-check-byteswap.patch
1 --- MPlayer-1.5/configure.orig  2023-04-11 20:43:22.582368374 +0200
2 +++ MPlayer-1.5/configure       2023-04-11 20:44:20.978718680 +0200
3 @@ -4193,6 +4193,21 @@ fi
4  echores "$_alloca"
5  
6  
7 +echocheck "byteswap.h"
8 +cat > $TMPC << EOF
9 +#include <byteswap.h>
10 +int main(void) { (void) bswap_16(0); (void) bswap_32(0); (void) bswap_64(0); return 0; }
11 +EOF
12 +_byteswap=no
13 +cc_check && _byteswap=yes
14 +if cc_check ; then
15 +  def_byteswap_h='#define HAVE_BYTESWAP_H 1'
16 +else
17 +  def_byteswap_h='#undef HAVE_BYTESWAP_H'
18 +fi
19 +echores "$_byteswap"
20 +
21 +
22  echocheck "fastmemcpy"
23  if test "$_fastmemcpy" = yes ; then
24    def_fastmemcpy='#define CONFIG_FASTMEMCPY 1'
25 @@ -9164,6 +9179,7 @@ $def_sys_uio_h
26  /* system headers */
27  $def_alloca_h
28  $def_altivec_h
29 +$def_byteswap_h
30  $def_malloc_h
31  $def_mman_h
32  $def_mman_has_map_failed
This page took 0.033547 seconds and 3 git commands to generate.