]> git.pld-linux.org Git - packages/mplayer.git/blob - mplayer-check-byteswap.patch
- up to 20171222
[packages/mplayer.git] / mplayer-check-byteswap.patch
1 --- MPlayer-1.0rc2/configure~   2008-02-07 13:58:05.000000000 +0200
2 +++ MPlayer-1.0rc2/configure    2008-02-07 13:58:10.395099351 +0200
3 @@ -2998,6 +2998,21 @@
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 "mman.h"
23  cat > $TMPC << EOF
24  #include <sys/types.h>
25 @@ -8568,6 +8568,7 @@
26  $def_alsa_asoundlib_h
27  $def_altivec_h
28  $def_malloc_h
29 +$def_byteswap_h
30  $def_mman_h
31  $def_mman_has_map_failed
32  $def_soundcard_h
This page took 0.070087 seconds and 3 git commands to generate.