comparison configure @ 32194:26f7bcb5fd7f

misc whitespace cosmetics
author diego
date Thu, 16 Sep 2010 18:58:21 +0000
parents 14b77ef5dbc5
children 3c169d0b1966
comparison
equal deleted inserted replaced
32193:7773438f5abf 32194:26f7bcb5fd7f
401 --enable-muxer=MUXER enable specified FFmpeg muxer 401 --enable-muxer=MUXER enable specified FFmpeg muxer
402 402
403 Video output: 403 Video output:
404 --disable-vidix disable VIDIX [for x86 *nix] 404 --disable-vidix disable VIDIX [for x86 *nix]
405 --with-vidix-drivers[=*] list of VIDIX drivers to be compiled in 405 --with-vidix-drivers[=*] list of VIDIX drivers to be compiled in
406 Available: cyberblade,ivtv,mach64,mga,mga_crtc2, 406 Available: cyberblade, ivtv, mach64, mga, mga_crtc2,
407 nvidia,pm2,pm3,radeon,rage128,s3,sis,unichrome 407 nvidia, pm2, pm3, radeon, rage128, s3, sis, unichrome
408 --disable-vidix-pcidb disable VIDIX PCI device name database 408 --disable-vidix-pcidb disable VIDIX PCI device name database
409 --enable-dhahelper enable VIDIX dhahelper support 409 --enable-dhahelper enable VIDIX dhahelper support
410 --enable-svgalib_helper enable VIDIX svgalib_helper support 410 --enable-svgalib_helper enable VIDIX svgalib_helper support
411 --enable-gl enable OpenGL video output [autodetect] 411 --enable-gl enable OpenGL video output [autodetect]
412 --disable-matrixview disable OpenGL MatrixView video output [autodetect] 412 --disable-matrixview disable OpenGL MatrixView video output [autodetect]
1783 extcheck $_3dnow "3dnow" "femms" 1783 extcheck $_3dnow "3dnow" "femms"
1784 extcheck $_3dnowext "3dnowext" "pswapd %%mm0, %%mm0" 1784 extcheck $_3dnowext "3dnowext" "pswapd %%mm0, %%mm0"
1785 extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse" 1785 extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse"
1786 extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse2" 1786 extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _gcc3_ext="$_gcc3_ext -mno-sse2"
1787 extcheck $_ssse3 "ssse3" "pabsd %%xmm0, %%xmm0" 1787 extcheck $_ssse3 "ssse3" "pabsd %%xmm0, %%xmm0"
1788 extcheck $_cmov "cmov" "cmovb %%eax,%%ebx" 1788 extcheck $_cmov "cmov" "cmovb %%eax, %%ebx"
1789 1789
1790 echocheck "mtrr support" 1790 echocheck "mtrr support"
1791 if test "$_mtrr" = kernel_check ; then 1791 if test "$_mtrr" = kernel_check ; then
1792 _mtrr="yes" 1792 _mtrr="yes"
1793 _optimizing="$_optimizing mtrr" 1793 _optimizing="$_optimizing mtrr"
2445 2445
2446 # endian testing 2446 # endian testing
2447 echocheck "byte order" 2447 echocheck "byte order"
2448 if test "$_big_endian" = auto ; then 2448 if test "$_big_endian" = auto ; then
2449 cat > $TMPC <<EOF 2449 cat > $TMPC <<EOF
2450 short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'), 2450 short ascii_name[] = {
2451 (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0}; 2451 (('M' << 8) | 'P'), (('l' << 8) | 'a'), (('y' << 8) | 'e'),
2452 (('r' << 8) | 'B'), (('i' << 8) | 'g'), (('E' << 8) | 'n'),
2453 (('d' << 8) | 'i'), (('a' << 8) | 'n'), 0 };
2452 int main(void) { return (long)ascii_name; } 2454 int main(void) { return (long)ascii_name; }
2453 EOF 2455 EOF
2454 if cc_check ; then 2456 if cc_check ; then
2455 if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then 2457 if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then
2456 _big_endian=yes 2458 _big_endian=yes
2511 # wrong code with this flag, but this can be worked around by adding 2513 # wrong code with this flag, but this can be worked around by adding
2512 # -fno-unit-at-a-time as described in the blog post at 2514 # -fno-unit-at-a-time as described in the blog post at
2513 # http://www.dribin.org/dave/blog/archives/2006/12/05/missing_third_param/ 2515 # http://www.dribin.org/dave/blog/archives/2006/12/05/missing_third_param/
2514 cat > $TMPC << EOF 2516 cat > $TMPC << EOF
2515 __attribute__((noinline)) static int foo3(int i1, int i2, int i3) { return i3; } 2517 __attribute__((noinline)) static int foo3(int i1, int i2, int i3) { return i3; }
2516 int main(void) { return foo3(1,2,3) == 3 ? 0 : 1; } 2518 int main(void) { return foo3(1, 2, 3) == 3 ? 0 : 1; }
2517 EOF 2519 EOF
2518 cc_check -O4 -mstackrealign && tmp_run && cflags_stackrealign=-mstackrealign 2520 cc_check -O4 -mstackrealign && tmp_run && cflags_stackrealign=-mstackrealign
2519 test -z "$cflags_stackrealign" && cc_check -O4 -mstackrealign -fno-unit-at-a-time \ 2521 test -z "$cflags_stackrealign" && cc_check -O4 -mstackrealign -fno-unit-at-a-time \
2520 && tmp_run && cflags_stackrealign="-mstackrealign -fno-unit-at-a-time" 2522 && tmp_run && cflags_stackrealign="-mstackrealign -fno-unit-at-a-time"
2521 test -n "$cflags_stackrealign" && echores "yes" || echores "no" 2523 test -n "$cflags_stackrealign" && echores "yes" || echores "no"
3401 3403
3402 3404
3403 echocheck "int_fastXY_t in inttypes.h" 3405 echocheck "int_fastXY_t in inttypes.h"
3404 cat > $TMPC << EOF 3406 cat > $TMPC << EOF
3405 #include <inttypes.h> 3407 #include <inttypes.h>
3406 int main(void) { 3408 int main(void) { volatile int_fast16_t v = 0; return v; }
3407 volatile int_fast16_t v= 0;
3408 return v; }
3409 EOF 3409 EOF
3410 _fast_inttypes=no 3410 _fast_inttypes=no
3411 cc_check && _fast_inttypes=yes 3411 cc_check && _fast_inttypes=yes
3412 if test "$_fast_inttypes" = no ; then 3412 if test "$_fast_inttypes" = no ; then
3413 def_fast_inttypes=' 3413 def_fast_inttypes='
3441 function_check malloc.h 'memalign(64, sizeof(char))' && _memalign=yes 3441 function_check malloc.h 'memalign(64, sizeof(char))' && _memalign=yes
3442 if test "$_memalign" = yes ; then 3442 if test "$_memalign" = yes ; then
3443 def_memalign='#define HAVE_MEMALIGN 1' 3443 def_memalign='#define HAVE_MEMALIGN 1'
3444 else 3444 else
3445 def_memalign='#define HAVE_MEMALIGN 0' 3445 def_memalign='#define HAVE_MEMALIGN 0'
3446 def_map_memalign='#define memalign(a,b) malloc(b)' 3446 def_map_memalign='#define memalign(a, b) malloc(b)'
3447 darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1' 3447 darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1'
3448 fi 3448 fi
3449 echores "$_memalign" 3449 echores "$_memalign"
3450 3450
3451 3451
3877 #include <stdlib.h> 3877 #include <stdlib.h>
3878 #include <sys/types.h> 3878 #include <sys/types.h>
3879 #include <string.h> 3879 #include <string.h>
3880 #include <sys/time.h> 3880 #include <sys/time.h>
3881 #include <unistd.h> 3881 #include <unistd.h>
3882 int main(void) {int nfds = 1; fd_set readfds; struct timeval timeout; select(nfds,&readfds,NULL,NULL,&timeout); return 0; } 3882 int main(void) {int nfds = 1; fd_set readfds; struct timeval timeout; select(nfds, &readfds, NULL, NULL, &timeout); return 0; }
3883 EOF 3883 EOF
3884 _posix_select=no 3884 _posix_select=no
3885 def_posix_select='#undef HAVE_POSIX_SELECT' 3885 def_posix_select='#undef HAVE_POSIX_SELECT'
3886 #select() of kLIBC (OS/2) supports socket only 3886 #select() of kLIBC (OS/2) supports socket only
3887 ! os2 && cc_check && _posix_select=yes \ 3887 ! os2 && cc_check && _posix_select=yes \
3967 3967
3968 3968
3969 echocheck "sys/sysinfo.h" 3969 echocheck "sys/sysinfo.h"
3970 cat > $TMPC << EOF 3970 cat > $TMPC << EOF
3971 #include <sys/sysinfo.h> 3971 #include <sys/sysinfo.h>
3972 int main(void) { 3972 int main(void) { struct sysinfo s_info; sysinfo(&s_info); return 0; }
3973 struct sysinfo s_info;
3974 sysinfo(&s_info);
3975 return 0;
3976 }
3977 EOF 3973 EOF
3978 _sys_sysinfo=no 3974 _sys_sysinfo=no
3979 cc_check && _sys_sysinfo=yes 3975 cc_check && _sys_sysinfo=yes
3980 if test "$_sys_sysinfo" = yes ; then 3976 if test "$_sys_sysinfo" = yes ; then
3981 def_sys_sysinfo_h='#define HAVE_SYS_SYSINFO_H 1' 3977 def_sys_sysinfo_h='#define HAVE_SYS_SYSINFO_H 1'
4049 if test "$_apple_ir" = auto ; then 4045 if test "$_apple_ir" = auto ; then
4050 _apple_ir=no 4046 _apple_ir=no
4051 cat > $TMPC <<EOF 4047 cat > $TMPC <<EOF
4052 #include <linux/types.h> 4048 #include <linux/types.h>
4053 #include <linux/input.h> 4049 #include <linux/input.h>
4054 int main(void) { 4050 int main(void) { struct input_event ev; struct input_id id; return 0; }
4055 struct input_event ev;
4056 struct input_id id;
4057 return 0;
4058 }
4059 EOF 4051 EOF
4060 cc_check && _apple_ir=yes 4052 cc_check && _apple_ir=yes
4061 fi 4053 fi
4062 if test "$_apple_ir" = yes ; then 4054 if test "$_apple_ir" = yes ; then
4063 def_apple_ir='#define CONFIG_APPLE_IR 1' 4055 def_apple_ir='#define CONFIG_APPLE_IR 1'
4710 aa_context *c; 4702 aa_context *c;
4711 aa_renderparams *p; 4703 aa_renderparams *p;
4712 aa_init(0, 0, 0); 4704 aa_init(0, 0, 0);
4713 c = aa_autoinit(&aa_defparams); 4705 c = aa_autoinit(&aa_defparams);
4714 p = aa_getrenderparams(); 4706 p = aa_getrenderparams();
4715 aa_autoinitkbd(c,0); 4707 aa_autoinitkbd(c, 0);
4716 return 0; } 4708 return 0; }
4717 EOF 4709 EOF
4718 _aa=no 4710 _aa=no
4719 for _ld_tmp in "-laa" ; do 4711 for _ld_tmp in "-laa" ; do
4720 cc_check $_ld_tmp && libs_mplayer="$libs_mplayer $_ld_tmp" && _aa=yes && break 4712 cc_check $_ld_tmp && libs_mplayer="$libs_mplayer $_ld_tmp" && _aa=yes && break
5920 _bluray=no 5912 _bluray=no
5921 5913
5922 cat > $TMPC << EOF 5914 cat > $TMPC << EOF
5923 #include <stdlib.h> 5915 #include <stdlib.h>
5924 #include <libbluray/bluray.h> 5916 #include <libbluray/bluray.h>
5925 int main(void) { 5917 int main(void) { BLURAY_TITLE_INFO *i = bd_get_title_info(NULL, 0); return 0; }
5926 BLURAY_TITLE_INFO *i = bd_get_title_info(NULL, 0);
5927 return 0;
5928 }
5929 EOF 5918 EOF
5930 compile_check $TMPC -lbluray && _bluray=yes 5919 compile_check $TMPC -lbluray && _bluray=yes
5931 fi 5920 fi
5932 if test "$_bluray" = yes ; then 5921 if test "$_bluray" = yes ; then
5933 def_bluray='#define CONFIG_LIBBLURAY 1' 5922 def_bluray='#define CONFIG_LIBBLURAY 1'
6787 6776
6788 echocheck "LADSPA plugin support" 6777 echocheck "LADSPA plugin support"
6789 if test "$_ladspa" = auto ; then 6778 if test "$_ladspa" = auto ; then
6790 cat > $TMPC <<EOF 6779 cat > $TMPC <<EOF
6791 #include <ladspa.h> 6780 #include <ladspa.h>
6792 int main(void) { 6781 int main(void) { LADSPA_Descriptor ld = {0}; return 0; }
6793 LADSPA_Descriptor ld = {0};
6794 return 0;
6795 }
6796 EOF 6782 EOF
6797 _ladspa=no 6783 _ladspa=no
6798 cc_check && _ladspa=yes 6784 cc_check && _ladspa=yes
6799 fi 6785 fi
6800 if test "$_ladspa" = yes; then 6786 if test "$_ladspa" = yes; then
7794 int exitvar = 0; 7780 int exitvar = 0;
7795 int eventbase, errorbase; 7781 int eventbase, errorbase;
7796 if (getenv("DISPLAY")) 7782 if (getenv("DISPLAY"))
7797 name=getenv("DISPLAY"); 7783 name=getenv("DISPLAY");
7798 wsDisplay=XOpenDisplay(name); 7784 wsDisplay=XOpenDisplay(name);
7799 if (!XShapeQueryExtension(wsDisplay,&eventbase,&errorbase)) 7785 if (!XShapeQueryExtension(wsDisplay, &eventbase, &errorbase))
7800 exitvar=1; 7786 exitvar=1;
7801 XCloseDisplay(wsDisplay); 7787 XCloseDisplay(wsDisplay);
7802 return exitvar; 7788 return exitvar;
7803 } 7789 }
7804 EOF 7790 EOF