Mercurial > mplayer.hg
comparison configure @ 28454:d553eb6c18b9
cosmetics: Remove leading underscore from all def_ variables.
author | diego |
---|---|
date | Sun, 08 Feb 2009 22:49:52 +0000 |
parents | f9c1c96944c2 |
children | 6abda55d2574 |
comparison
equal
deleted
inserted
replaced
28453:f9c1c96944c2 | 28454:d553eb6c18b9 |
---|---|
28 # int main(void) { return 0; } | 28 # int main(void) { return 0; } |
29 # EOF | 29 # EOF |
30 # _feature=no | 30 # _feature=no |
31 # cc_check && _feature=yes | 31 # cc_check && _feature=yes |
32 # if test "$_feature" = yes ; then | 32 # if test "$_feature" = yes ; then |
33 # _def_feature='#define CONFIG_FEATURE 1' | 33 # def_feature='#define CONFIG_FEATURE 1' |
34 # else | 34 # else |
35 # _def_feature='#undef CONFIG_FEATURE' | 35 # def_feature='#undef CONFIG_FEATURE' |
36 # fi | 36 # fi |
37 # echores "$_feature" | 37 # echores "$_feature" |
38 # | 38 # |
39 # Furthermore you need to add the variable _feature to the list of default | 39 # Furthermore you need to add the variable _feature to the list of default |
40 # settings and set it to one of yes/no/auto. Also add appropriate | 40 # settings and set it to one of yes/no/auto. Also add appropriate |
42 # The results of the check should be written to config.h and config.mak | 42 # The results of the check should be written to config.h and config.mak |
43 # at the end of this script. The variable names used for this should be | 43 # at the end of this script. The variable names used for this should be |
44 # uniform, i.e. if the option is named 'feature': | 44 # uniform, i.e. if the option is named 'feature': |
45 # | 45 # |
46 # _feature : should have a value of yes/no/auto | 46 # _feature : should have a value of yes/no/auto |
47 # _def_feature : '#define ... 1' or '#undef ...' for conditional compilation | 47 # def_feature : '#define ... 1' or '#undef ...' for conditional compilation |
48 # _ld_feature : '-L/path/dir -lfeature' GCC options | 48 # _ld_feature : '-L/path/dir -lfeature' GCC options |
49 # | 49 # |
50 ############################################################################# | 50 ############################################################################# |
51 | 51 |
52 # Prevent locale nonsense from breaking basic text processing utils | 52 # Prevent locale nonsense from breaking basic text processing utils |
717 _ass=auto | 717 _ass=auto |
718 _rpath=no | 718 _rpath=no |
719 _asmalign_pot=auto | 719 _asmalign_pot=auto |
720 _stream_cache=yes | 720 _stream_cache=yes |
721 def_dos_paths="#define HAVE_DOS_PATHS 0" | 721 def_dos_paths="#define HAVE_DOS_PATHS 0" |
722 _def_stream_cache="#define CONFIG_STREAM_CACHE 1" | 722 def_stream_cache="#define CONFIG_STREAM_CACHE 1" |
723 _def_pthread_cache="#undef PTHREAD_CACHE" | 723 def_pthread_cache="#undef PTHREAD_CACHE" |
724 _need_shmem=yes | 724 _need_shmem=yes |
725 for ac_option do | 725 for ac_option do |
726 case "$ac_option" in | 726 case "$ac_option" in |
727 --help|-help|-h) | 727 --help|-help|-h) |
728 show_help | 728 show_help |
1443 | 1443 |
1444 if amigaos ; then | 1444 if amigaos ; then |
1445 _select=no | 1445 _select=no |
1446 _sighandler=no | 1446 _sighandler=no |
1447 _stream_cache=no | 1447 _stream_cache=no |
1448 _def_stream_cache="#undef CONFIG_STREAM_CACHE" | 1448 def_stream_cache="#undef CONFIG_STREAM_CACHE" |
1449 fi | 1449 fi |
1450 | 1450 |
1451 if qnx ; then | 1451 if qnx ; then |
1452 _ld_extra="$_ld_extra -lph" | 1452 _ld_extra="$_ld_extra -lph" |
1453 fi | 1453 fi |
1693 case "$host_arch" in | 1693 case "$host_arch" in |
1694 i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686) | 1694 i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686) |
1695 _arch='X86 X86_32' | 1695 _arch='X86 X86_32' |
1696 _target_arch_x86="ARCH_X86 = yes" | 1696 _target_arch_x86="ARCH_X86 = yes" |
1697 _target_arch="ARCH_X86_32 = yes" | 1697 _target_arch="ARCH_X86_32 = yes" |
1698 _def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1' | 1698 def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1' |
1699 iproc=486 | 1699 iproc=486 |
1700 proc=i486 | 1700 proc=i486 |
1701 | 1701 |
1702 | 1702 |
1703 if test "$_runtime_cpudetection" = no ; then | 1703 if test "$_runtime_cpudetection" = no ; then |
1933 | 1933 |
1934 x86_64|amd64) | 1934 x86_64|amd64) |
1935 _arch='X86 X86_64' | 1935 _arch='X86 X86_64' |
1936 _target_arch='ARCH_X86_64 = yes' | 1936 _target_arch='ARCH_X86_64 = yes' |
1937 _target_arch_x86="ARCH_X86 = yes" | 1937 _target_arch_x86="ARCH_X86 = yes" |
1938 _def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1' | 1938 def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1' |
1939 def_fast_64bit='#define HAVE_FAST_64BIT 1' | 1939 def_fast_64bit='#define HAVE_FAST_64BIT 1' |
1940 iproc='x86_64' | 1940 iproc='x86_64' |
1941 | 1941 |
1942 # gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead | 1942 # gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead |
1943 if test "$cc_vendor" = "gnu" && test "$_cc_major" -gt 3 -o "$_cc_major" -eq 3 -a "$_cc_minor" -ge 4 ; then | 1943 if test "$cc_vendor" = "gnu" && test "$_cc_major" -gt 3 -o "$_cc_major" -eq 3 -a "$_cc_minor" -ge 4 ; then |
2054 iproc='sh4' | 2054 iproc='sh4' |
2055 ;; | 2055 ;; |
2056 | 2056 |
2057 ppc|ppc64|powerpc|powerpc64) | 2057 ppc|ppc64|powerpc|powerpc64) |
2058 _arch='PPC' | 2058 _arch='PPC' |
2059 _def_dcbzl='#define HAVE_DCBZL 0' | 2059 def_dcbzl='#define HAVE_DCBZL 0' |
2060 _target_arch='ARCH_PPC = yes' | 2060 _target_arch='ARCH_PPC = yes' |
2061 _def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1' | 2061 def_fast_unaligned='#define HAVE_FAST_UNALIGNED 1' |
2062 iproc='ppc' | 2062 iproc='ppc' |
2063 | 2063 |
2064 if test "$host_arch" = "ppc64" -o "$host_arch" = "powerpc64" ; then | 2064 if test "$host_arch" = "ppc64" -o "$host_arch" = "powerpc64" ; then |
2065 def_fast_64bit='#define HAVE_FAST_64BIT 1' | 2065 def_fast_64bit='#define HAVE_FAST_64BIT 1' |
2066 fi | 2066 fi |
2127 fi | 2127 fi |
2128 # gcc 3.2 and up supports 970 | 2128 # gcc 3.2 and up supports 970 |
2129 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then | 2129 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then |
2130 case "$proc" in | 2130 case "$proc" in |
2131 970*|PPC970*) _march='-mcpu=970' _mcpu='-mtune=970' | 2131 970*|PPC970*) _march='-mcpu=970' _mcpu='-mtune=970' |
2132 _def_dcbzl='#define HAVE_DCBZL 1' ;; | 2132 def_dcbzl='#define HAVE_DCBZL 1' ;; |
2133 *) ;; | 2133 *) ;; |
2134 esac | 2134 esac |
2135 fi | 2135 fi |
2136 # gcc 3.3 and up supports POWER4 | 2136 # gcc 3.3 and up supports POWER4 |
2137 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then | 2137 if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then |
2311 echo ${_echo_n} "failed to autodetect byte order, defaulting to ${_echo_c}" | 2311 echo ${_echo_n} "failed to autodetect byte order, defaulting to ${_echo_c}" |
2312 fi | 2312 fi |
2313 fi | 2313 fi |
2314 if test "$_big_endian" = yes ; then | 2314 if test "$_big_endian" = yes ; then |
2315 _byte_order='big-endian' | 2315 _byte_order='big-endian' |
2316 _def_words_endian='#define WORDS_BIGENDIAN 1' | 2316 def_words_endian='#define WORDS_BIGENDIAN 1' |
2317 else | 2317 else |
2318 _byte_order='little-endian' | 2318 _byte_order='little-endian' |
2319 _def_words_endian='#undef WORDS_BIGENDIAN' | 2319 def_words_endian='#undef WORDS_BIGENDIAN' |
2320 fi | 2320 fi |
2321 echores "$_byte_order" | 2321 echores "$_byte_order" |
2322 | 2322 |
2323 | 2323 |
2324 echocheck "extern symbol prefix" | 2324 echocheck "extern symbol prefix" |
2326 int ff_extern; | 2326 int ff_extern; |
2327 EOF | 2327 EOF |
2328 cc_check -c || die "Symbol mangling check failed." | 2328 cc_check -c || die "Symbol mangling check failed." |
2329 sym=$($_nm -P -g $TMPEXE) | 2329 sym=$($_nm -P -g $TMPEXE) |
2330 extern_prefix=${sym%%ff_extern*} | 2330 extern_prefix=${sym%%ff_extern*} |
2331 _def_extern_prefix="#define EXTERN_PREFIX \"$extern_prefix\"" | 2331 def_extern_prefix="#define EXTERN_PREFIX \"$extern_prefix\"" |
2332 echores $extern_prefix | 2332 echores $extern_prefix |
2333 | 2333 |
2334 | 2334 |
2335 echocheck "assembler support of -pipe option" | 2335 echocheck "assembler support of -pipe option" |
2336 cat > $TMPC << EOF | 2336 cat > $TMPC << EOF |
2339 cc_check -pipe && _pipe="-pipe" && echores "yes" || echores "no" | 2339 cc_check -pipe && _pipe="-pipe" && echores "yes" || echores "no" |
2340 | 2340 |
2341 | 2341 |
2342 echocheck "compiler support of named assembler arguments" | 2342 echocheck "compiler support of named assembler arguments" |
2343 _named_asm_args=yes | 2343 _named_asm_args=yes |
2344 _def_named_asm_args="#define NAMED_ASM_ARGS 1" | 2344 def_named_asm_args="#define NAMED_ASM_ARGS 1" |
2345 if test "$cc_vendor" = "gnu" && test "$_cc_major" -lt 3 \ | 2345 if test "$cc_vendor" = "gnu" && test "$_cc_major" -lt 3 \ |
2346 -o "$_cc_major" -eq 3 -a "$_cc_minor" = 0 ; then | 2346 -o "$_cc_major" -eq 3 -a "$_cc_minor" = 0 ; then |
2347 _named_asm_args=no | 2347 _named_asm_args=no |
2348 _def_named_asm_args="#undef NAMED_ASM_ARGS" | 2348 def_named_asm_args="#undef NAMED_ASM_ARGS" |
2349 fi | 2349 fi |
2350 echores $_named_asm_args | 2350 echores $_named_asm_args |
2351 | 2351 |
2352 | 2352 |
2353 if darwin && test "$cc_vendor" = "gnu" ; then | 2353 if darwin && test "$cc_vendor" = "gnu" ; then |
2456 int main(void) { __asm__ (".align 3"); return 0; } | 2456 int main(void) { __asm__ (".align 3"); return 0; } |
2457 EOF | 2457 EOF |
2458 cc_check && _asmalign_pot=yes | 2458 cc_check && _asmalign_pot=yes |
2459 fi | 2459 fi |
2460 if test "$_asmalign_pot" = "yes" ; then | 2460 if test "$_asmalign_pot" = "yes" ; then |
2461 _def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"' | 2461 def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"' |
2462 else | 2462 else |
2463 _def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"' | 2463 def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"' |
2464 fi | 2464 fi |
2465 echores $_asmalign_pot | 2465 echores $_asmalign_pot |
2466 | 2466 |
2467 if x86 ; then | 2467 if x86 ; then |
2468 echocheck "yasm" | 2468 echocheck "yasm" |
2488 | 2488 |
2489 echo "pabsw xmm0, xmm0" > $TMPS | 2489 echo "pabsw xmm0, xmm0" > $TMPS |
2490 yasm_check || _yasm="" | 2490 yasm_check || _yasm="" |
2491 if test $_yasm ; then | 2491 if test $_yasm ; then |
2492 test "$_mmx" = "yes" && fft_mmx="yes" | 2492 test "$_mmx" = "yes" && fft_mmx="yes" |
2493 _def_yasm='#define HAVE_YASM 1' | 2493 def_yasm='#define HAVE_YASM 1' |
2494 _have_yasm="yes" | 2494 _have_yasm="yes" |
2495 echores "$_yasm" | 2495 echores "$_yasm" |
2496 else | 2496 else |
2497 _def_yasm='#define HAVE_YASM 0' | 2497 def_yasm='#define HAVE_YASM 0' |
2498 fft_mmx="no" | 2498 fft_mmx="no" |
2499 _have_yasm="no" | 2499 _have_yasm="no" |
2500 echores "no" | 2500 echores "no" |
2501 fi | 2501 fi |
2502 | 2502 |
2704 EOF | 2704 EOF |
2705 _langinfo=no | 2705 _langinfo=no |
2706 cc_check && _langinfo=yes | 2706 cc_check && _langinfo=yes |
2707 fi | 2707 fi |
2708 if test "$_langinfo" = yes ; then | 2708 if test "$_langinfo" = yes ; then |
2709 _def_langinfo='#define HAVE_LANGINFO 1' | 2709 def_langinfo='#define HAVE_LANGINFO 1' |
2710 else | 2710 else |
2711 _def_langinfo='#undef HAVE_LANGINFO' | 2711 def_langinfo='#undef HAVE_LANGINFO' |
2712 fi | 2712 fi |
2713 echores "$_langinfo" | 2713 echores "$_langinfo" |
2714 | 2714 |
2715 | 2715 |
2716 echocheck "language" | 2716 echocheck "language" |
2750 echores "messages: $msg_lang - man pages: $man_langs - documentation: $doc_langs" | 2750 echores "messages: $msg_lang - man pages: $man_langs - documentation: $doc_langs" |
2751 | 2751 |
2752 | 2752 |
2753 echocheck "enable sighandler" | 2753 echocheck "enable sighandler" |
2754 if test "$_sighandler" = yes ; then | 2754 if test "$_sighandler" = yes ; then |
2755 _def_sighandler='#define CONFIG_SIGHANDLER 1' | 2755 def_sighandler='#define CONFIG_SIGHANDLER 1' |
2756 else | 2756 else |
2757 _def_sighandler='#undef CONFIG_SIGHANDLER' | 2757 def_sighandler='#undef CONFIG_SIGHANDLER' |
2758 fi | 2758 fi |
2759 echores "$_sighandler" | 2759 echores "$_sighandler" |
2760 | 2760 |
2761 echocheck "runtime cpudetection" | 2761 echocheck "runtime cpudetection" |
2762 if test "$_runtime_cpudetection" = yes ; then | 2762 if test "$_runtime_cpudetection" = yes ; then |
2763 _optimizing="Runtime CPU-Detection enabled" | 2763 _optimizing="Runtime CPU-Detection enabled" |
2764 _def_runtime_cpudetection='#define RUNTIME_CPUDETECT 1' | 2764 def_runtime_cpudetection='#define RUNTIME_CPUDETECT 1' |
2765 else | 2765 else |
2766 _def_runtime_cpudetection='#undef RUNTIME_CPUDETECT' | 2766 def_runtime_cpudetection='#undef RUNTIME_CPUDETECT' |
2767 fi | 2767 fi |
2768 echores "$_runtime_cpudetection" | 2768 echores "$_runtime_cpudetection" |
2769 | 2769 |
2770 | 2770 |
2771 echocheck "restrict keyword" | 2771 echocheck "restrict keyword" |
2772 for restrict_keyword in restrict __restrict __restrict__ ; do | 2772 for restrict_keyword in restrict __restrict __restrict__ ; do |
2773 echo "void foo(char * $restrict_keyword p); int main(void) { return 0; }" > $TMPC | 2773 echo "void foo(char * $restrict_keyword p); int main(void) { return 0; }" > $TMPC |
2774 if cc_check; then | 2774 if cc_check; then |
2775 _def_restrict_keyword=$restrict_keyword | 2775 def_restrict_keyword=$restrict_keyword |
2776 break; | 2776 break; |
2777 fi | 2777 fi |
2778 done | 2778 done |
2779 if [ -n "$_def_restrict_keyword" ]; then | 2779 if [ -n "$def_restrict_keyword" ]; then |
2780 echores "$_def_restrict_keyword" | 2780 echores "$def_restrict_keyword" |
2781 else | 2781 else |
2782 echores "none" | 2782 echores "none" |
2783 fi | 2783 fi |
2784 # Avoid infinite recursion loop ("#define restrict restrict") | 2784 # Avoid infinite recursion loop ("#define restrict restrict") |
2785 if [ "$_def_restrict_keyword" != "restrict" ]; then | 2785 if [ "$def_restrict_keyword" != "restrict" ]; then |
2786 _def_restrict_keyword="#define restrict $_def_restrict_keyword" | 2786 def_restrict_keyword="#define restrict $def_restrict_keyword" |
2787 else | 2787 else |
2788 _def_restrict_keyword="" | 2788 def_restrict_keyword="" |
2789 fi | 2789 fi |
2790 | 2790 |
2791 | 2791 |
2792 echocheck "__builtin_expect" | 2792 echocheck "__builtin_expect" |
2793 # GCC branch prediction hint | 2793 # GCC branch prediction hint |
2799 int main(void) { return foo(10) && foo(0); } | 2799 int main(void) { return foo(10) && foo(0); } |
2800 EOF | 2800 EOF |
2801 _builtin_expect=no | 2801 _builtin_expect=no |
2802 cc_check && _builtin_expect=yes | 2802 cc_check && _builtin_expect=yes |
2803 if test "$_builtin_expect" = yes ; then | 2803 if test "$_builtin_expect" = yes ; then |
2804 _def_builtin_expect='#define HAVE_BUILTIN_EXPECT 1' | 2804 def_builtin_expect='#define HAVE_BUILTIN_EXPECT 1' |
2805 else | 2805 else |
2806 _def_builtin_expect='#undef HAVE_BUILTIN_EXPECT' | 2806 def_builtin_expect='#undef HAVE_BUILTIN_EXPECT' |
2807 fi | 2807 fi |
2808 echores "$_builtin_expect" | 2808 echores "$_builtin_expect" |
2809 | 2809 |
2810 | 2810 |
2811 echocheck "kstat" | 2811 echocheck "kstat" |
2814 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; } | 2814 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; } |
2815 EOF | 2815 EOF |
2816 _kstat=no | 2816 _kstat=no |
2817 cc_check -lkstat && _kstat=yes | 2817 cc_check -lkstat && _kstat=yes |
2818 if test "$_kstat" = yes ; then | 2818 if test "$_kstat" = yes ; then |
2819 _def_kstat="#define HAVE_LIBKSTAT 1" | 2819 def_kstat="#define HAVE_LIBKSTAT 1" |
2820 _ld_extra="$_ld_extra -lkstat" | 2820 _ld_extra="$_ld_extra -lkstat" |
2821 else | 2821 else |
2822 _def_kstat="#undef HAVE_LIBKSTAT" | 2822 def_kstat="#undef HAVE_LIBKSTAT" |
2823 fi | 2823 fi |
2824 echores "$_kstat" | 2824 echores "$_kstat" |
2825 | 2825 |
2826 | 2826 |
2827 echocheck "posix4" | 2827 echocheck "posix4" |
2844 int main(void) { long (*foo)(float); foo = $func; (void)(*foo)(0.0); return 0; } | 2844 int main(void) { long (*foo)(float); foo = $func; (void)(*foo)(0.0); return 0; } |
2845 EOF | 2845 EOF |
2846 eval _$func=no | 2846 eval _$func=no |
2847 cc_check -D_ISOC99_SOURCE $_ld_lm && eval _$func=yes | 2847 cc_check -D_ISOC99_SOURCE $_ld_lm && eval _$func=yes |
2848 if eval test "x\$_$func" = "xyes"; then | 2848 if eval test "x\$_$func" = "xyes"; then |
2849 eval _def_$func="\"#define HAVE_`echo $func | tr '[a-z]' '[A-Z]'` 1\"" | 2849 eval def_$func="\"#define HAVE_`echo $func | tr '[a-z]' '[A-Z]'` 1\"" |
2850 echores yes | 2850 echores yes |
2851 else | 2851 else |
2852 eval _def_$func="\"#define HAVE_`echo $func | tr '[a-z]' '[A-Z]'` 0\"" | 2852 eval def_$func="\"#define HAVE_`echo $func | tr '[a-z]' '[A-Z]'` 0\"" |
2853 echores no | 2853 echores no |
2854 fi | 2854 fi |
2855 done | 2855 done |
2856 | 2856 |
2857 | 2857 |
2861 int main(void) { char a; mkstemp(&a); return 0; } | 2861 int main(void) { char a; mkstemp(&a); return 0; } |
2862 EOF | 2862 EOF |
2863 _mkstemp=no | 2863 _mkstemp=no |
2864 cc_check && _mkstemp=yes | 2864 cc_check && _mkstemp=yes |
2865 if test "$_mkstemp" = yes ; then | 2865 if test "$_mkstemp" = yes ; then |
2866 _def_mkstemp='#define HAVE_MKSTEMP 1' | 2866 def_mkstemp='#define HAVE_MKSTEMP 1' |
2867 else | 2867 else |
2868 _def_mkstemp='#undef HAVE_MKSTEMP' | 2868 def_mkstemp='#undef HAVE_MKSTEMP' |
2869 fi | 2869 fi |
2870 echores "$_mkstemp" | 2870 echores "$_mkstemp" |
2871 | 2871 |
2872 | 2872 |
2873 echocheck "nanosleep" | 2873 echocheck "nanosleep" |
2877 int main(void) { (void) nanosleep(0, 0); return 0; } | 2877 int main(void) { (void) nanosleep(0, 0); return 0; } |
2878 EOF | 2878 EOF |
2879 _nanosleep=no | 2879 _nanosleep=no |
2880 cc_check && _nanosleep=yes | 2880 cc_check && _nanosleep=yes |
2881 if test "$_nanosleep" = yes ; then | 2881 if test "$_nanosleep" = yes ; then |
2882 _def_nanosleep='#define HAVE_NANOSLEEP 1' | 2882 def_nanosleep='#define HAVE_NANOSLEEP 1' |
2883 else | 2883 else |
2884 _def_nanosleep='#undef HAVE_NANOSLEEP' | 2884 def_nanosleep='#undef HAVE_NANOSLEEP' |
2885 fi | 2885 fi |
2886 echores "$_nanosleep" | 2886 echores "$_nanosleep" |
2887 | 2887 |
2888 | 2888 |
2889 echocheck "socklib" | 2889 echocheck "socklib" |
2975 int main(void) { socklen_t v = 0; return v; } | 2975 int main(void) { socklen_t v = 0; return v; } |
2976 EOF | 2976 EOF |
2977 cc_check && _socklen_t=yes && break | 2977 cc_check && _socklen_t=yes && break |
2978 done | 2978 done |
2979 if test "$_socklen_t" = yes ; then | 2979 if test "$_socklen_t" = yes ; then |
2980 _def_socklen_t='#define HAVE_SOCKLEN_T 1' | 2980 def_socklen_t='#define HAVE_SOCKLEN_T 1' |
2981 else | 2981 else |
2982 _def_socklen_t='#define HAVE_SOCKLEN_T 0' | 2982 def_socklen_t='#define HAVE_SOCKLEN_T 0' |
2983 fi | 2983 fi |
2984 echores "$_socklen_t" | 2984 echores "$_socklen_t" |
2985 | 2985 |
2986 | 2986 |
2987 echocheck "closesocket()" | 2987 echocheck "closesocket()" |
2990 #include <winsock2.h> | 2990 #include <winsock2.h> |
2991 int main(void) { closesocket(~0); return 0; } | 2991 int main(void) { closesocket(~0); return 0; } |
2992 EOF | 2992 EOF |
2993 cc_check $_ld_sock && _closesocket=yes | 2993 cc_check $_ld_sock && _closesocket=yes |
2994 if test "$_closesocket" = yes ; then | 2994 if test "$_closesocket" = yes ; then |
2995 _def_closesocket='#define HAVE_CLOSESOCKET 1' | 2995 def_closesocket='#define HAVE_CLOSESOCKET 1' |
2996 else | 2996 else |
2997 _def_closesocket='#define HAVE_CLOSESOCKET 0' | 2997 def_closesocket='#define HAVE_CLOSESOCKET 0' |
2998 fi | 2998 fi |
2999 echores "$_closesocket" | 2999 echores "$_closesocket" |
3000 | 3000 |
3001 | 3001 |
3002 echocheck "network" | 3002 echocheck "network" |
3003 test $_winsock2_h = no && test $inet_pton = no && | 3003 test $_winsock2_h = no && test $inet_pton = no && |
3004 test $inet_aton = no && _network=no | 3004 test $inet_aton = no && _network=no |
3005 if test "$_network" = yes ; then | 3005 if test "$_network" = yes ; then |
3006 _def_network='#define CONFIG_NETWORK 1' | 3006 def_network='#define CONFIG_NETWORK 1' |
3007 _ld_extra="$_ld_extra $_ld_sock" | 3007 _ld_extra="$_ld_extra $_ld_sock" |
3008 _inputmodules="network $_inputmodules" | 3008 _inputmodules="network $_inputmodules" |
3009 else | 3009 else |
3010 _noinputmodules="network $_noinputmodules" | 3010 _noinputmodules="network $_noinputmodules" |
3011 _def_network='#undef CONFIG_NETWORK' | 3011 def_network='#undef CONFIG_NETWORK' |
3012 _ftp=no | 3012 _ftp=no |
3013 fi | 3013 fi |
3014 echores "$_network" | 3014 echores "$_network" |
3015 | 3015 |
3016 | 3016 |
3030 if cc_check $_ld_sock ; then | 3030 if cc_check $_ld_sock ; then |
3031 _inet6=yes | 3031 _inet6=yes |
3032 fi | 3032 fi |
3033 fi | 3033 fi |
3034 if test "$_inet6" = yes ; then | 3034 if test "$_inet6" = yes ; then |
3035 _def_inet6='#define HAVE_AF_INET6 1' | 3035 def_inet6='#define HAVE_AF_INET6 1' |
3036 else | 3036 else |
3037 _def_inet6='#undef HAVE_AF_INET6' | 3037 def_inet6='#undef HAVE_AF_INET6' |
3038 fi | 3038 fi |
3039 echores "$_inet6" | 3039 echores "$_inet6" |
3040 | 3040 |
3041 | 3041 |
3042 echocheck "gethostbyname2" | 3042 echocheck "gethostbyname2" |
3051 if cc_check ; then | 3051 if cc_check ; then |
3052 _gethostbyname2=yes | 3052 _gethostbyname2=yes |
3053 fi | 3053 fi |
3054 fi | 3054 fi |
3055 if test "$_gethostbyname2" = yes ; then | 3055 if test "$_gethostbyname2" = yes ; then |
3056 _def_gethostbyname2='#define HAVE_GETHOSTBYNAME2 1' | 3056 def_gethostbyname2='#define HAVE_GETHOSTBYNAME2 1' |
3057 else | 3057 else |
3058 _def_gethostbyname2='#undef HAVE_GETHOSTBYNAME2' | 3058 def_gethostbyname2='#undef HAVE_GETHOSTBYNAME2' |
3059 fi | 3059 fi |
3060 echores "$_gethostbyname2" | 3060 echores "$_gethostbyname2" |
3061 | 3061 |
3062 | 3062 |
3063 echocheck "inttypes.h (required)" | 3063 echocheck "inttypes.h (required)" |
3092 return v; } | 3092 return v; } |
3093 EOF | 3093 EOF |
3094 _fast_inttypes=no | 3094 _fast_inttypes=no |
3095 cc_check && _fast_inttypes=yes | 3095 cc_check && _fast_inttypes=yes |
3096 if test "$_fast_inttypes" = no ; then | 3096 if test "$_fast_inttypes" = no ; then |
3097 _def_fast_inttypes=' | 3097 def_fast_inttypes=' |
3098 typedef signed char int_fast8_t; | 3098 typedef signed char int_fast8_t; |
3099 typedef signed int int_fast16_t; | 3099 typedef signed int int_fast16_t; |
3100 typedef signed int int_fast32_t; | 3100 typedef signed int int_fast32_t; |
3101 typedef signed long long int_fast64_t; | 3101 typedef signed long long int_fast64_t; |
3102 typedef unsigned char uint_fast8_t; | 3102 typedef unsigned char uint_fast8_t; |
3124 echores "$_malloc" | 3124 echores "$_malloc" |
3125 | 3125 |
3126 | 3126 |
3127 echocheck "memalign()" | 3127 echocheck "memalign()" |
3128 # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ? | 3128 # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ? |
3129 _def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0' | 3129 def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0' |
3130 cat > $TMPC << EOF | 3130 cat > $TMPC << EOF |
3131 #include <malloc.h> | 3131 #include <malloc.h> |
3132 int main(void) { (void) memalign(64, sizeof(char)); return 0; } | 3132 int main(void) { (void) memalign(64, sizeof(char)); return 0; } |
3133 EOF | 3133 EOF |
3134 _memalign=no | 3134 _memalign=no |
3135 cc_check && _memalign=yes | 3135 cc_check && _memalign=yes |
3136 if test "$_memalign" = yes ; then | 3136 if test "$_memalign" = yes ; then |
3137 _def_memalign='#define HAVE_MEMALIGN 1' | 3137 def_memalign='#define HAVE_MEMALIGN 1' |
3138 else | 3138 else |
3139 _def_memalign='#undef HAVE_MEMALIGN' | 3139 def_memalign='#undef HAVE_MEMALIGN' |
3140 _def_map_memalign='#define memalign(a,b) malloc(b)' | 3140 def_map_memalign='#define memalign(a,b) malloc(b)' |
3141 darwin || _def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1' | 3141 darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1' |
3142 fi | 3142 fi |
3143 echores "$_memalign" | 3143 echores "$_memalign" |
3144 | 3144 |
3145 | 3145 |
3146 echocheck "alloca.h" | 3146 echocheck "alloca.h" |
3158 echores "$_alloca" | 3158 echores "$_alloca" |
3159 | 3159 |
3160 | 3160 |
3161 echocheck "fastmemcpy" | 3161 echocheck "fastmemcpy" |
3162 if test "$_fastmemcpy" = yes ; then | 3162 if test "$_fastmemcpy" = yes ; then |
3163 _def_fastmemcpy='#define CONFIG_FASTMEMCPY 1' | 3163 def_fastmemcpy='#define CONFIG_FASTMEMCPY 1' |
3164 else | 3164 else |
3165 _def_fastmemcpy='#undef CONFIG_FASTMEMCPY' | 3165 def_fastmemcpy='#undef CONFIG_FASTMEMCPY' |
3166 fi | 3166 fi |
3167 echores "$_fastmemcpy" | 3167 echores "$_fastmemcpy" |
3168 | 3168 |
3169 | 3169 |
3170 echocheck "mman.h" | 3170 echocheck "mman.h" |
3189 int main(void) { void *p = MAP_FAILED; return 0; } | 3189 int main(void) { void *p = MAP_FAILED; return 0; } |
3190 EOF | 3190 EOF |
3191 _mman_has_map_failed=no | 3191 _mman_has_map_failed=no |
3192 cc_check && _mman_has_map_failed=yes | 3192 cc_check && _mman_has_map_failed=yes |
3193 if test "$_mman_has_map_failed" = yes ; then | 3193 if test "$_mman_has_map_failed" = yes ; then |
3194 _def_mman_has_map_failed='' | 3194 def_mman_has_map_failed='' |
3195 else | 3195 else |
3196 _def_mman_has_map_failed='#define MAP_FAILED ((void *) -1)' | 3196 def_mman_has_map_failed='#define MAP_FAILED ((void *) -1)' |
3197 fi | 3197 fi |
3198 | 3198 |
3199 echocheck "dynamic loader" | 3199 echocheck "dynamic loader" |
3200 cat > $TMPC << EOF | 3200 cat > $TMPC << EOF |
3201 #include <stddef.h> | 3201 #include <stddef.h> |
3205 _dl=no | 3205 _dl=no |
3206 for _ld_tmp in "" "-ldl" ; do | 3206 for _ld_tmp in "" "-ldl" ; do |
3207 cc_check $_ld_tmp && _ld_dl="$_ld_tmp" && _dl=yes && break | 3207 cc_check $_ld_tmp && _ld_dl="$_ld_tmp" && _dl=yes && break |
3208 done | 3208 done |
3209 if test "$_dl" = yes ; then | 3209 if test "$_dl" = yes ; then |
3210 _def_dl='#define HAVE_LIBDL 1' | 3210 def_dl='#define HAVE_LIBDL 1' |
3211 else | 3211 else |
3212 _def_dl='#undef HAVE_LIBDL' | 3212 def_dl='#undef HAVE_LIBDL' |
3213 fi | 3213 fi |
3214 echores "$_dl" | 3214 echores "$_dl" |
3215 | 3215 |
3216 | 3216 |
3217 echocheck "dynamic a/v plugins support" | 3217 echocheck "dynamic a/v plugins support" |
3218 if test "$_dl" = no ; then | 3218 if test "$_dl" = no ; then |
3219 _dynamic_plugins=no | 3219 _dynamic_plugins=no |
3220 fi | 3220 fi |
3221 if test "$_dynamic_plugins" = yes ; then | 3221 if test "$_dynamic_plugins" = yes ; then |
3222 _def_dynamic_plugins='#define CONFIG_DYNAMIC_PLUGINS 1' | 3222 def_dynamic_plugins='#define CONFIG_DYNAMIC_PLUGINS 1' |
3223 else | 3223 else |
3224 _def_dynamic_plugins='#undef CONFIG_DYNAMIC_PLUGINS' | 3224 def_dynamic_plugins='#undef CONFIG_DYNAMIC_PLUGINS' |
3225 fi | 3225 fi |
3226 echores "$_dynamic_plugins" | 3226 echores "$_dynamic_plugins" |
3227 | 3227 |
3228 | 3228 |
3229 _def_threads='#undef HAVE_THREADS' | 3229 def_threads='#undef HAVE_THREADS' |
3230 | 3230 |
3231 echocheck "pthread" | 3231 echocheck "pthread" |
3232 if test "$_pthreads" = auto ; then | 3232 if test "$_pthreads" = auto ; then |
3233 cat > $TMPC << EOF | 3233 cat > $TMPC << EOF |
3234 #include <pthread.h> | 3234 #include <pthread.h> |
3243 done | 3243 done |
3244 fi | 3244 fi |
3245 fi | 3245 fi |
3246 if test "$_pthreads" = yes ; then | 3246 if test "$_pthreads" = yes ; then |
3247 test $_ld_pthread && _res_comment="using $_ld_pthread" | 3247 test $_ld_pthread && _res_comment="using $_ld_pthread" |
3248 _def_pthreads='#define HAVE_PTHREADS 1' | 3248 def_pthreads='#define HAVE_PTHREADS 1' |
3249 _def_threads='#define HAVE_THREADS 1' | 3249 def_threads='#define HAVE_THREADS 1' |
3250 else | 3250 else |
3251 _res_comment="v4l, v4l2, ao_nas, win32 loader disabled" | 3251 _res_comment="v4l, v4l2, ao_nas, win32 loader disabled" |
3252 _def_pthreads='#undef HAVE_PTHREADS' | 3252 def_pthreads='#undef HAVE_PTHREADS' |
3253 _nas=no ; _tv_v4l1=no ; _tv_v4l2=no | 3253 _nas=no ; _tv_v4l1=no ; _tv_v4l2=no |
3254 mingw32 || _win32dll=no | 3254 mingw32 || _win32dll=no |
3255 fi | 3255 fi |
3256 echores "$_pthreads" | 3256 echores "$_pthreads" |
3257 | 3257 |
3258 if cygwin ; then | 3258 if cygwin ; then |
3259 if test "$_pthreads" = yes ; then | 3259 if test "$_pthreads" = yes ; then |
3260 _def_pthread_cache="#define PTHREAD_CACHE 1" | 3260 def_pthread_cache="#define PTHREAD_CACHE 1" |
3261 else | 3261 else |
3262 _stream_cache=no | 3262 _stream_cache=no |
3263 _def_stream_cache="#undef CONFIG_STREAM_CACHE" | 3263 def_stream_cache="#undef CONFIG_STREAM_CACHE" |
3264 fi | 3264 fi |
3265 fi | 3265 fi |
3266 | 3266 |
3267 echocheck "w32threads" | 3267 echocheck "w32threads" |
3268 if test "$_pthreads" = yes ; then | 3268 if test "$_pthreads" = yes ; then |
3271 fi | 3271 fi |
3272 if test "$_w32threads" = auto ; then | 3272 if test "$_w32threads" = auto ; then |
3273 _w32threads=no | 3273 _w32threads=no |
3274 mingw32 && _w32threads=yes | 3274 mingw32 && _w32threads=yes |
3275 fi | 3275 fi |
3276 test "$_w32threads" = yes && _def_threads='#define HAVE_THREADS 1' | 3276 test "$_w32threads" = yes && def_threads='#define HAVE_THREADS 1' |
3277 echores "$_w32threads" | 3277 echores "$_w32threads" |
3278 | 3278 |
3279 echocheck "rpath" | 3279 echocheck "rpath" |
3280 netbsd &&_rpath=yes | 3280 netbsd &&_rpath=yes |
3281 if test "$_rpath" = yes ; then | 3281 if test "$_rpath" = yes ; then |
3325 cc_check $_ld_lm $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && \ | 3325 cc_check $_ld_lm $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && \ |
3326 _iconv=yes && break | 3326 _iconv=yes && break |
3327 done | 3327 done |
3328 fi | 3328 fi |
3329 if test "$_iconv" = yes ; then | 3329 if test "$_iconv" = yes ; then |
3330 _def_iconv='#define CONFIG_ICONV 1' | 3330 def_iconv='#define CONFIG_ICONV 1' |
3331 else | 3331 else |
3332 _def_iconv='#undef CONFIG_ICONV' | 3332 def_iconv='#undef CONFIG_ICONV' |
3333 fi | 3333 fi |
3334 echores "$_iconv" | 3334 echores "$_iconv" |
3335 | 3335 |
3336 | 3336 |
3337 echocheck "soundcard.h" | 3337 echocheck "soundcard.h" |
3363 int main(void) { return 0; } | 3363 int main(void) { return 0; } |
3364 EOF | 3364 EOF |
3365 _dvdio=no | 3365 _dvdio=no |
3366 cc_check && _dvdio=yes | 3366 cc_check && _dvdio=yes |
3367 if test "$_dvdio" = yes ; then | 3367 if test "$_dvdio" = yes ; then |
3368 _def_dvdio='#define DVD_STRUCT_IN_SYS_DVDIO_H 1' | 3368 def_dvdio='#define DVD_STRUCT_IN_SYS_DVDIO_H 1' |
3369 else | 3369 else |
3370 _def_dvdio='#undef DVD_STRUCT_IN_SYS_DVDIO_H' | 3370 def_dvdio='#undef DVD_STRUCT_IN_SYS_DVDIO_H' |
3371 fi | 3371 fi |
3372 echores "$_dvdio" | 3372 echores "$_dvdio" |
3373 | 3373 |
3374 | 3374 |
3375 echocheck "sys/cdio.h" | 3375 echocheck "sys/cdio.h" |
3379 int main(void) { return 0; } | 3379 int main(void) { return 0; } |
3380 EOF | 3380 EOF |
3381 _cdio=no | 3381 _cdio=no |
3382 cc_check && _cdio=yes | 3382 cc_check && _cdio=yes |
3383 if test "$_cdio" = yes ; then | 3383 if test "$_cdio" = yes ; then |
3384 _def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' | 3384 def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' |
3385 else | 3385 else |
3386 _def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H' | 3386 def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H' |
3387 fi | 3387 fi |
3388 echores "$_cdio" | 3388 echores "$_cdio" |
3389 | 3389 |
3390 | 3390 |
3391 echocheck "linux/cdrom.h" | 3391 echocheck "linux/cdrom.h" |
3395 int main(void) { return 0; } | 3395 int main(void) { return 0; } |
3396 EOF | 3396 EOF |
3397 _cdrom=no | 3397 _cdrom=no |
3398 cc_check && _cdrom=yes | 3398 cc_check && _cdrom=yes |
3399 if test "$_cdrom" = yes ; then | 3399 if test "$_cdrom" = yes ; then |
3400 _def_cdrom='#define DVD_STRUCT_IN_LINUX_CDROM_H 1' | 3400 def_cdrom='#define DVD_STRUCT_IN_LINUX_CDROM_H 1' |
3401 else | 3401 else |
3402 _def_cdrom='#undef DVD_STRUCT_IN_LINUX_CDROM_H' | 3402 def_cdrom='#undef DVD_STRUCT_IN_LINUX_CDROM_H' |
3403 fi | 3403 fi |
3404 echores "$_cdrom" | 3404 echores "$_cdrom" |
3405 | 3405 |
3406 | 3406 |
3407 echocheck "dvd.h" | 3407 echocheck "dvd.h" |
3410 int main(void) { return 0; } | 3410 int main(void) { return 0; } |
3411 EOF | 3411 EOF |
3412 _dvd=no | 3412 _dvd=no |
3413 cc_check && _dvd=yes | 3413 cc_check && _dvd=yes |
3414 if test "$_dvd" = yes ; then | 3414 if test "$_dvd" = yes ; then |
3415 _def_dvd='#define DVD_STRUCT_IN_DVD_H 1' | 3415 def_dvd='#define DVD_STRUCT_IN_DVD_H 1' |
3416 else | 3416 else |
3417 _def_dvd='#undef DVD_STRUCT_IN_DVD_H' | 3417 def_dvd='#undef DVD_STRUCT_IN_DVD_H' |
3418 fi | 3418 fi |
3419 echores "$_dvd" | 3419 echores "$_dvd" |
3420 | 3420 |
3421 | 3421 |
3422 if bsdos; then | 3422 if bsdos; then |
3426 int main(void) { return 0; } | 3426 int main(void) { return 0; } |
3427 EOF | 3427 EOF |
3428 _bsdi_dvd=no | 3428 _bsdi_dvd=no |
3429 cc_check && _bsdi_dvd=yes | 3429 cc_check && _bsdi_dvd=yes |
3430 if test "$_bsdi_dvd" = yes ; then | 3430 if test "$_bsdi_dvd" = yes ; then |
3431 _def_bsdi_dvd='#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1' | 3431 def_bsdi_dvd='#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1' |
3432 else | 3432 else |
3433 _def_bsdi_dvd='#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H' | 3433 def_bsdi_dvd='#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H' |
3434 fi | 3434 fi |
3435 echores "$_bsdi_dvd" | 3435 echores "$_bsdi_dvd" |
3436 fi #if bsdos | 3436 fi #if bsdos |
3437 | 3437 |
3438 | 3438 |
3444 int main(void) { return 0; } | 3444 int main(void) { return 0; } |
3445 EOF | 3445 EOF |
3446 _hpux_scsi_h=no | 3446 _hpux_scsi_h=no |
3447 cc_check && _hpux_scsi_h=yes | 3447 cc_check && _hpux_scsi_h=yes |
3448 if test "$_hpux_scsi_h" = yes ; then | 3448 if test "$_hpux_scsi_h" = yes ; then |
3449 _def_hpux_scsi_h='#define HPUX_SCTL_IO 1' | 3449 def_hpux_scsi_h='#define HPUX_SCTL_IO 1' |
3450 else | 3450 else |
3451 _def_hpux_scsi_h='#undef HPUX_SCTL_IO' | 3451 def_hpux_scsi_h='#undef HPUX_SCTL_IO' |
3452 fi | 3452 fi |
3453 echores "$_hpux_scsi_h" | 3453 echores "$_hpux_scsi_h" |
3454 fi #if hpux | 3454 fi #if hpux |
3455 | 3455 |
3456 | 3456 |
3464 int main(void) { return 0; } | 3464 int main(void) { return 0; } |
3465 EOF | 3465 EOF |
3466 _sol_scsi_h=no | 3466 _sol_scsi_h=no |
3467 cc_check && _sol_scsi_h=yes | 3467 cc_check && _sol_scsi_h=yes |
3468 if test "$_sol_scsi_h" = yes ; then | 3468 if test "$_sol_scsi_h" = yes ; then |
3469 _def_sol_scsi_h='#define SOLARIS_USCSI 1' | 3469 def_sol_scsi_h='#define SOLARIS_USCSI 1' |
3470 else | 3470 else |
3471 _def_sol_scsi_h='#undef SOLARIS_USCSI' | 3471 def_sol_scsi_h='#undef SOLARIS_USCSI' |
3472 fi | 3472 fi |
3473 echores "$_sol_scsi_h" | 3473 echores "$_sol_scsi_h" |
3474 fi #if sunos | 3474 fi #if sunos |
3475 | 3475 |
3476 | 3476 |
3486 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ | 3486 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ |
3487 && _termcap=yes && break | 3487 && _termcap=yes && break |
3488 done | 3488 done |
3489 fi | 3489 fi |
3490 if test "$_termcap" = yes ; then | 3490 if test "$_termcap" = yes ; then |
3491 _def_termcap='#define HAVE_TERMCAP 1' | 3491 def_termcap='#define HAVE_TERMCAP 1' |
3492 test $_ld_tmp && _res_comment="using $_ld_tmp" | 3492 test $_ld_tmp && _res_comment="using $_ld_tmp" |
3493 else | 3493 else |
3494 _def_termcap='#undef HAVE_TERMCAP' | 3494 def_termcap='#undef HAVE_TERMCAP' |
3495 fi | 3495 fi |
3496 echores "$_termcap" | 3496 echores "$_termcap" |
3497 | 3497 |
3498 | 3498 |
3499 echocheck "termios" | 3499 echocheck "termios" |
3500 _def_termios='#undef HAVE_TERMIOS' | 3500 def_termios='#undef HAVE_TERMIOS' |
3501 def_termios_h='#undef HAVE_TERMIOS_H' | 3501 def_termios_h='#undef HAVE_TERMIOS_H' |
3502 def_termios_sys_h='#undef HAVE_SYS_TERMIOS_H' | 3502 def_termios_sys_h='#undef HAVE_SYS_TERMIOS_H' |
3503 if test "$_termios" = auto ; then | 3503 if test "$_termios" = auto ; then |
3504 _termios=no | 3504 _termios=no |
3505 for _termios_header in "sys/termios.h" "termios.h"; do | 3505 for _termios_header in "sys/termios.h" "termios.h"; do |
3510 cc_check && _termios=yes && _res_comment="using $_termios_header" && break | 3510 cc_check && _termios=yes && _res_comment="using $_termios_header" && break |
3511 done | 3511 done |
3512 fi | 3512 fi |
3513 | 3513 |
3514 if test "$_termios" = yes ; then | 3514 if test "$_termios" = yes ; then |
3515 _def_termios='#define HAVE_TERMIOS 1' | 3515 def_termios='#define HAVE_TERMIOS 1' |
3516 if test "$_termios_header" = "termios.h" ; then | 3516 if test "$_termios_header" = "termios.h" ; then |
3517 def_termios_h='#define HAVE_TERMIOS_H 1' | 3517 def_termios_h='#define HAVE_TERMIOS_H 1' |
3518 else | 3518 else |
3519 def_termios_sys_h='#define HAVE_SYS_TERMIOS_H 1' | 3519 def_termios_sys_h='#define HAVE_SYS_TERMIOS_H 1' |
3520 fi | 3520 fi |
3531 EOF | 3531 EOF |
3532 _shm=no | 3532 _shm=no |
3533 cc_check && _shm=yes | 3533 cc_check && _shm=yes |
3534 fi | 3534 fi |
3535 if test "$_shm" = yes ; then | 3535 if test "$_shm" = yes ; then |
3536 _def_shm='#define HAVE_SHM 1' | 3536 def_shm='#define HAVE_SHM 1' |
3537 else | 3537 else |
3538 _def_shm='#undef HAVE_SHM' | 3538 def_shm='#undef HAVE_SHM' |
3539 fi | 3539 fi |
3540 echores "$_shm" | 3540 echores "$_shm" |
3541 | 3541 |
3542 | 3542 |
3543 echocheck "strsep()" | 3543 echocheck "strsep()" |
3546 int main(void) { char *s = "Hello, world!"; (void) strsep(&s, ","); return 0; } | 3546 int main(void) { char *s = "Hello, world!"; (void) strsep(&s, ","); return 0; } |
3547 EOF | 3547 EOF |
3548 _strsep=no | 3548 _strsep=no |
3549 cc_check && _strsep=yes | 3549 cc_check && _strsep=yes |
3550 if test "$_strsep" = yes ; then | 3550 if test "$_strsep" = yes ; then |
3551 _def_strsep='#define HAVE_STRSEP 1' | 3551 def_strsep='#define HAVE_STRSEP 1' |
3552 _need_strsep=no | 3552 _need_strsep=no |
3553 else | 3553 else |
3554 _def_strsep='#undef HAVE_STRSEP' | 3554 def_strsep='#undef HAVE_STRSEP' |
3555 _need_strsep=yes | 3555 _need_strsep=yes |
3556 fi | 3556 fi |
3557 echores "$_strsep" | 3557 echores "$_strsep" |
3558 | 3558 |
3559 | 3559 |
3565 int main(void) { vsscanf(0, 0, 0); return 0; } | 3565 int main(void) { vsscanf(0, 0, 0); return 0; } |
3566 EOF | 3566 EOF |
3567 _vsscanf=no | 3567 _vsscanf=no |
3568 cc_check && _vsscanf=yes | 3568 cc_check && _vsscanf=yes |
3569 if test "$_vsscanf" = yes ; then | 3569 if test "$_vsscanf" = yes ; then |
3570 _def_vsscanf='#define HAVE_VSSCANF 1' | 3570 def_vsscanf='#define HAVE_VSSCANF 1' |
3571 _need_vsscanf=no | 3571 _need_vsscanf=no |
3572 else | 3572 else |
3573 _def_vsscanf='#undef HAVE_VSSCANF' | 3573 def_vsscanf='#undef HAVE_VSSCANF' |
3574 _need_vsscanf=yes | 3574 _need_vsscanf=yes |
3575 fi | 3575 fi |
3576 echores "$_vsscanf" | 3576 echores "$_vsscanf" |
3577 | 3577 |
3578 | 3578 |
3583 int main(void) { swab(0, 0, 0); return 0; } | 3583 int main(void) { swab(0, 0, 0); return 0; } |
3584 EOF | 3584 EOF |
3585 _swab=no | 3585 _swab=no |
3586 cc_check && _swab=yes | 3586 cc_check && _swab=yes |
3587 if test "$_swab" = yes ; then | 3587 if test "$_swab" = yes ; then |
3588 _def_swab='#define HAVE_SWAB 1' | 3588 def_swab='#define HAVE_SWAB 1' |
3589 _need_swab=no | 3589 _need_swab=no |
3590 else | 3590 else |
3591 _def_swab='#undef HAVE_SWAB' | 3591 def_swab='#undef HAVE_SWAB' |
3592 _need_swab=yes | 3592 _need_swab=yes |
3593 fi | 3593 fi |
3594 echores "$_swab" | 3594 echores "$_swab" |
3595 | 3595 |
3596 echocheck "POSIX select()" | 3596 echocheck "POSIX select()" |
3602 #include <sys/time.h> | 3602 #include <sys/time.h> |
3603 #include <unistd.h> | 3603 #include <unistd.h> |
3604 int main(void) {int nfds = 1; fd_set readfds; struct timeval timeout; select(nfds,&readfds,NULL,NULL,&timeout); return 0; } | 3604 int main(void) {int nfds = 1; fd_set readfds; struct timeval timeout; select(nfds,&readfds,NULL,NULL,&timeout); return 0; } |
3605 EOF | 3605 EOF |
3606 _posix_select=no | 3606 _posix_select=no |
3607 _def_posix_select='#undef HAVE_POSIX_SELECT' | 3607 def_posix_select='#undef HAVE_POSIX_SELECT' |
3608 #select() of kLIBC (OS/2) supports socket only | 3608 #select() of kLIBC (OS/2) supports socket only |
3609 ! os2 && cc_check && _posix_select=yes \ | 3609 ! os2 && cc_check && _posix_select=yes \ |
3610 && _def_posix_select='#define HAVE_POSIX_SELECT 1' | 3610 && def_posix_select='#define HAVE_POSIX_SELECT 1' |
3611 echores "$_posix_select" | 3611 echores "$_posix_select" |
3612 | 3612 |
3613 | 3613 |
3614 echocheck "audio select()" | 3614 echocheck "audio select()" |
3615 if test "$_select" = no ; then | 3615 if test "$_select" = no ; then |
3616 _def_select='#undef HAVE_AUDIO_SELECT' | 3616 def_select='#undef HAVE_AUDIO_SELECT' |
3617 elif test "$_select" = yes ; then | 3617 elif test "$_select" = yes ; then |
3618 _def_select='#define HAVE_AUDIO_SELECT 1' | 3618 def_select='#define HAVE_AUDIO_SELECT 1' |
3619 fi | 3619 fi |
3620 echores "$_select" | 3620 echores "$_select" |
3621 | 3621 |
3622 | 3622 |
3623 echocheck "gettimeofday()" | 3623 echocheck "gettimeofday()" |
3627 int main(void) {struct timeval tv_start; gettimeofday(&tv_start, NULL); return 0; } | 3627 int main(void) {struct timeval tv_start; gettimeofday(&tv_start, NULL); return 0; } |
3628 EOF | 3628 EOF |
3629 _gettimeofday=no | 3629 _gettimeofday=no |
3630 cc_check && _gettimeofday=yes | 3630 cc_check && _gettimeofday=yes |
3631 if test "$_gettimeofday" = yes ; then | 3631 if test "$_gettimeofday" = yes ; then |
3632 _def_gettimeofday='#define HAVE_GETTIMEOFDAY 1' | 3632 def_gettimeofday='#define HAVE_GETTIMEOFDAY 1' |
3633 _need_gettimeofday=no | 3633 _need_gettimeofday=no |
3634 else | 3634 else |
3635 _def_gettimeofday='#undef HAVE_GETTIMEOFDAY' | 3635 def_gettimeofday='#undef HAVE_GETTIMEOFDAY' |
3636 _need_gettimeofday=yes | 3636 _need_gettimeofday=yes |
3637 fi | 3637 fi |
3638 echores "$_gettimeofday" | 3638 echores "$_gettimeofday" |
3639 | 3639 |
3640 | 3640 |
3645 int main(void) { glob_t gg; glob("filename",0,NULL,&gg); return 0; } | 3645 int main(void) { glob_t gg; glob("filename",0,NULL,&gg); return 0; } |
3646 EOF | 3646 EOF |
3647 _glob=no | 3647 _glob=no |
3648 cc_check && _glob=yes | 3648 cc_check && _glob=yes |
3649 if test "$_glob" = yes ; then | 3649 if test "$_glob" = yes ; then |
3650 _def_glob='#define HAVE_GLOB 1' | 3650 def_glob='#define HAVE_GLOB 1' |
3651 _need_glob=no | 3651 _need_glob=no |
3652 else | 3652 else |
3653 _def_glob='#undef HAVE_GLOB' | 3653 def_glob='#undef HAVE_GLOB' |
3654 _need_glob=yes | 3654 _need_glob=yes |
3655 fi | 3655 fi |
3656 echores "$_glob" | 3656 echores "$_glob" |
3657 | 3657 |
3658 | 3658 |
3662 int main(void) { setenv("","",0); return 0; } | 3662 int main(void) { setenv("","",0); return 0; } |
3663 EOF | 3663 EOF |
3664 _setenv=no | 3664 _setenv=no |
3665 cc_check && _setenv=yes | 3665 cc_check && _setenv=yes |
3666 if test "$_setenv" = yes ; then | 3666 if test "$_setenv" = yes ; then |
3667 _def_setenv='#define HAVE_SETENV 1' | 3667 def_setenv='#define HAVE_SETENV 1' |
3668 _need_setenv=no | 3668 _need_setenv=no |
3669 else | 3669 else |
3670 _def_setenv='#undef HAVE_SETENV' | 3670 def_setenv='#undef HAVE_SETENV' |
3671 _need_setenv=yes | 3671 _need_setenv=yes |
3672 fi | 3672 fi |
3673 echores "$_setenv" | 3673 echores "$_setenv" |
3674 | 3674 |
3675 | 3675 |
3680 int main(void) { sysi86(0); return 0; } | 3680 int main(void) { sysi86(0); return 0; } |
3681 EOF | 3681 EOF |
3682 _sysi86=no | 3682 _sysi86=no |
3683 cc_check && _sysi86=yes | 3683 cc_check && _sysi86=yes |
3684 if test "$_sysi86" = yes ; then | 3684 if test "$_sysi86" = yes ; then |
3685 _def_sysi86='#define HAVE_SYSI86 1' | 3685 def_sysi86='#define HAVE_SYSI86 1' |
3686 cat > $TMPC << EOF | 3686 cat > $TMPC << EOF |
3687 #include <sys/sysi86.h> | 3687 #include <sys/sysi86.h> |
3688 int main(void) { int sysi86(int, void*); sysi86(0); return 0; } | 3688 int main(void) { int sysi86(int, void*); sysi86(0); return 0; } |
3689 EOF | 3689 EOF |
3690 cc_check && _def_sysi86_iv='#define HAVE_SYSI86_iv 1' | 3690 cc_check && def_sysi86_iv='#define HAVE_SYSI86_iv 1' |
3691 else | 3691 else |
3692 _def_sysi86='#undef HAVE_SYSI86' | 3692 def_sysi86='#undef HAVE_SYSI86' |
3693 fi | 3693 fi |
3694 echores "$_sysi86" | 3694 echores "$_sysi86" |
3695 fi #if sunos | 3695 fi #if sunos |
3696 | 3696 |
3697 | 3697 |
3734 int main(void) { return 0; } | 3734 int main(void) { return 0; } |
3735 EOF | 3735 EOF |
3736 if cc_check -framework CoreAudio; then | 3736 if cc_check -framework CoreAudio; then |
3737 _ld_extra="$_ld_extra -framework CoreAudio -framework AudioUnit -framework AudioToolbox" | 3737 _ld_extra="$_ld_extra -framework CoreAudio -framework AudioUnit -framework AudioToolbox" |
3738 _coreaudio=yes | 3738 _coreaudio=yes |
3739 _def_coreaudio='#define CONFIG_COREAUDIO 1' | 3739 def_coreaudio='#define CONFIG_COREAUDIO 1' |
3740 _aomodules="macosx $_aomodules" | 3740 _aomodules="macosx $_aomodules" |
3741 else | 3741 else |
3742 _coreaudio=no | 3742 _coreaudio=no |
3743 _def_coreaudio='#undef CONFIG_COREAUDIO' | 3743 def_coreaudio='#undef CONFIG_COREAUDIO' |
3744 _noaomodules="macosx $_noaomodules" | 3744 _noaomodules="macosx $_noaomodules" |
3745 fi | 3745 fi |
3746 cat > $TMPC <<EOF | 3746 cat > $TMPC <<EOF |
3747 #include <Carbon/Carbon.h> | 3747 #include <Carbon/Carbon.h> |
3748 #include <QuickTime/QuickTime.h> | 3748 #include <QuickTime/QuickTime.h> |
3754 } | 3754 } |
3755 EOF | 3755 EOF |
3756 if cc_check -framework Carbon -framework QuickTime; then | 3756 if cc_check -framework Carbon -framework QuickTime; then |
3757 _ld_extra="$_ld_extra -framework Carbon -framework QuickTime" | 3757 _ld_extra="$_ld_extra -framework Carbon -framework QuickTime" |
3758 _quartz=yes | 3758 _quartz=yes |
3759 _def_quartz='#define CONFIG_QUARTZ 1' | 3759 def_quartz='#define CONFIG_QUARTZ 1' |
3760 _vomodules="quartz $_vomodules" | 3760 _vomodules="quartz $_vomodules" |
3761 _def_quicktime='#define CONFIG_QUICKTIME 1' | 3761 def_quicktime='#define CONFIG_QUICKTIME 1' |
3762 else | 3762 else |
3763 _quartz=no | 3763 _quartz=no |
3764 _def_quartz='#undef CONFIG_QUARTZ' | 3764 def_quartz='#undef CONFIG_QUARTZ' |
3765 _novomodules="quartz $_novomodules" | 3765 _novomodules="quartz $_novomodules" |
3766 _def_quicktime='#undef CONFIG_QUICKTIME' | 3766 def_quicktime='#undef CONFIG_QUICKTIME' |
3767 fi | 3767 fi |
3768 cat > $TMPC <<EOF | 3768 cat > $TMPC <<EOF |
3769 #include <Carbon/Carbon.h> | 3769 #include <Carbon/Carbon.h> |
3770 #include <QuartzCore/CoreVideo.h> | 3770 #include <QuartzCore/CoreVideo.h> |
3771 int main(void) { return 0; } | 3771 int main(void) { return 0; } |
3772 EOF | 3772 EOF |
3773 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then | 3773 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then |
3774 _vomodules="macosx $_vomodules" | 3774 _vomodules="macosx $_vomodules" |
3775 _ld_extra="$_ld_extra -framework Cocoa -framework QuartzCore -framework OpenGL" | 3775 _ld_extra="$_ld_extra -framework Cocoa -framework QuartzCore -framework OpenGL" |
3776 _def_corevideo='#define CONFIG_COREVIDEO 1' | 3776 def_corevideo='#define CONFIG_COREVIDEO 1' |
3777 _corevideo=yes | 3777 _corevideo=yes |
3778 else | 3778 else |
3779 _novomodules="macosx $_novomodules" | 3779 _novomodules="macosx $_novomodules" |
3780 _def_corevideo='#undef CONFIG_COREVIDEO' | 3780 def_corevideo='#undef CONFIG_COREVIDEO' |
3781 _corevideo=no | 3781 _corevideo=no |
3782 fi | 3782 fi |
3783 fi | 3783 fi |
3784 echores "$_macosx" | 3784 echores "$_macosx" |
3785 | 3785 |
3786 echocheck "Mac OS X Finder Support" | 3786 echocheck "Mac OS X Finder Support" |
3787 if test "$_macosx_finder" = auto ; then | 3787 if test "$_macosx_finder" = auto ; then |
3788 _macosx_finder=$_macosx | 3788 _macosx_finder=$_macosx |
3789 fi | 3789 fi |
3790 if test "$_macosx_finder" = yes; then | 3790 if test "$_macosx_finder" = yes; then |
3791 _def_macosx_finder='#define CONFIG_MACOSX_FINDER 1' | 3791 def_macosx_finder='#define CONFIG_MACOSX_FINDER 1' |
3792 _macosx_finder=yes | 3792 _macosx_finder=yes |
3793 else | 3793 else |
3794 _def_macosx_finder='#undef CONFIG_MACOSX_FINDER' | 3794 def_macosx_finder='#undef CONFIG_MACOSX_FINDER' |
3795 _macosx_finder=no | 3795 _macosx_finder=no |
3796 fi | 3796 fi |
3797 echores "$_macosx_finder" | 3797 echores "$_macosx_finder" |
3798 | 3798 |
3799 echocheck "Mac OS X Bundle file locations" | 3799 echocheck "Mac OS X Bundle file locations" |
3800 if test "$_macosx_bundle" = auto ; then | 3800 if test "$_macosx_bundle" = auto ; then |
3801 _macosx_bundle=$_macosx_finder | 3801 _macosx_bundle=$_macosx_finder |
3802 fi | 3802 fi |
3803 if test "$_macosx_bundle" = yes; then | 3803 if test "$_macosx_bundle" = yes; then |
3804 _def_macosx_bundle='#define CONFIG_MACOSX_BUNDLE 1' | 3804 def_macosx_bundle='#define CONFIG_MACOSX_BUNDLE 1' |
3805 else | 3805 else |
3806 _def_macosx_bundle='#undef CONFIG_MACOSX_BUNDLE' | 3806 def_macosx_bundle='#undef CONFIG_MACOSX_BUNDLE' |
3807 _macosx_bundle=no | 3807 _macosx_bundle=no |
3808 fi | 3808 fi |
3809 echores "$_macosx_bundle" | 3809 echores "$_macosx_bundle" |
3810 | 3810 |
3811 echocheck "Apple Remote" | 3811 echocheck "Apple Remote" |
3836 } | 3836 } |
3837 EOF | 3837 EOF |
3838 cc_check -framework IOKit && tmp_run && _apple_remote=yes | 3838 cc_check -framework IOKit && tmp_run && _apple_remote=yes |
3839 fi | 3839 fi |
3840 if test "$_apple_remote" = yes ; then | 3840 if test "$_apple_remote" = yes ; then |
3841 _def_apple_remote='#define CONFIG_APPLE_REMOTE 1' | 3841 def_apple_remote='#define CONFIG_APPLE_REMOTE 1' |
3842 _ld_extra="$_ld_extra -framework IOKit" | 3842 _ld_extra="$_ld_extra -framework IOKit" |
3843 else | 3843 else |
3844 _def_apple_remote='#undef CONFIG_APPLE_REMOTE' | 3844 def_apple_remote='#undef CONFIG_APPLE_REMOTE' |
3845 fi | 3845 fi |
3846 echores "$_apple_remote" | 3846 echores "$_apple_remote" |
3847 | 3847 |
3848 fi #if darwin | 3848 fi #if darwin |
3849 | 3849 |
3862 } | 3862 } |
3863 EOF | 3863 EOF |
3864 cc_check && tmp_run && _apple_ir=yes | 3864 cc_check && tmp_run && _apple_ir=yes |
3865 fi | 3865 fi |
3866 if test "$_apple_ir" = yes ; then | 3866 if test "$_apple_ir" = yes ; then |
3867 _def_apple_ir='#define CONFIG_APPLE_IR 1' | 3867 def_apple_ir='#define CONFIG_APPLE_IR 1' |
3868 else | 3868 else |
3869 _def_apple_ir='#undef CONFIG_APPLE_IR' | 3869 def_apple_ir='#undef CONFIG_APPLE_IR' |
3870 fi | 3870 fi |
3871 echores "$_apple_ir" | 3871 echores "$_apple_ir" |
3872 fi #if linux | 3872 fi #if linux |
3873 | 3873 |
3874 echocheck "pkg-config" | 3874 echocheck "pkg-config" |
3899 _smb=yes && break | 3899 _smb=yes && break |
3900 done | 3900 done |
3901 fi | 3901 fi |
3902 | 3902 |
3903 if test "$_smb" = yes; then | 3903 if test "$_smb" = yes; then |
3904 _def_smb="#define CONFIG_LIBSMBCLIENT" | 3904 def_smb="#define CONFIG_LIBSMBCLIENT" |
3905 _inputmodules="smb $_inputmodules" | 3905 _inputmodules="smb $_inputmodules" |
3906 else | 3906 else |
3907 _def_smb="#undef CONFIG_LIBSMBCLIENT" | 3907 def_smb="#undef CONFIG_LIBSMBCLIENT" |
3908 _noinputmodules="smb $_noinputmodules" | 3908 _noinputmodules="smb $_noinputmodules" |
3909 fi | 3909 fi |
3910 echores "$_smb" | 3910 echores "$_smb" |
3911 | 3911 |
3912 | 3912 |
3915 ######### | 3915 ######### |
3916 | 3916 |
3917 | 3917 |
3918 echocheck "tdfxfb" | 3918 echocheck "tdfxfb" |
3919 if test "$_tdfxfb" = yes ; then | 3919 if test "$_tdfxfb" = yes ; then |
3920 _def_tdfxfb='#define CONFIG_TDFXFB 1' | 3920 def_tdfxfb='#define CONFIG_TDFXFB 1' |
3921 _vomodules="tdfxfb $_vomodules" | 3921 _vomodules="tdfxfb $_vomodules" |
3922 else | 3922 else |
3923 _def_tdfxfb='#undef CONFIG_TDFXFB' | 3923 def_tdfxfb='#undef CONFIG_TDFXFB' |
3924 _novomodules="tdfxfb $_novomodules" | 3924 _novomodules="tdfxfb $_novomodules" |
3925 fi | 3925 fi |
3926 echores "$_tdfxfb" | 3926 echores "$_tdfxfb" |
3927 | 3927 |
3928 echocheck "s3fb" | 3928 echocheck "s3fb" |
3929 if test "$_s3fb" = yes ; then | 3929 if test "$_s3fb" = yes ; then |
3930 _def_s3fb='#define CONFIG_S3FB 1' | 3930 def_s3fb='#define CONFIG_S3FB 1' |
3931 _vomodules="s3fb $_vomodules" | 3931 _vomodules="s3fb $_vomodules" |
3932 else | 3932 else |
3933 _def_s3fb='#undef CONFIG_S3FB' | 3933 def_s3fb='#undef CONFIG_S3FB' |
3934 _novomodules="s3fb $_novomodules" | 3934 _novomodules="s3fb $_novomodules" |
3935 fi | 3935 fi |
3936 echores "$_s3fb" | 3936 echores "$_s3fb" |
3937 | 3937 |
3938 echocheck "wii" | 3938 echocheck "wii" |
3939 if test "$_wii" = yes ; then | 3939 if test "$_wii" = yes ; then |
3940 _def_wii='#define CONFIG_WII 1' | 3940 def_wii='#define CONFIG_WII 1' |
3941 _vomodules="wii $_vomodules" | 3941 _vomodules="wii $_vomodules" |
3942 else | 3942 else |
3943 _def_wii='#undef CONFIG_WII' | 3943 def_wii='#undef CONFIG_WII' |
3944 _novomodules="wii $_novomodules" | 3944 _novomodules="wii $_novomodules" |
3945 fi | 3945 fi |
3946 echores "$_wii" | 3946 echores "$_wii" |
3947 | 3947 |
3948 echocheck "tdfxvid" | 3948 echocheck "tdfxvid" |
3949 if test "$_tdfxvid" = yes ; then | 3949 if test "$_tdfxvid" = yes ; then |
3950 _def_tdfxvid='#define CONFIG_TDFX_VID 1' | 3950 def_tdfxvid='#define CONFIG_TDFX_VID 1' |
3951 _vomodules="tdfx_vid $_vomodules" | 3951 _vomodules="tdfx_vid $_vomodules" |
3952 else | 3952 else |
3953 _def_tdfxvid='#undef CONFIG_TDFX_VID' | 3953 def_tdfxvid='#undef CONFIG_TDFX_VID' |
3954 _novomodules="tdfx_vid $_novomodules" | 3954 _novomodules="tdfx_vid $_novomodules" |
3955 fi | 3955 fi |
3956 echores "$_tdfxvid" | 3956 echores "$_tdfxvid" |
3957 | 3957 |
3958 echocheck "xvr100" | 3958 echocheck "xvr100" |
3971 EOF | 3971 EOF |
3972 _xvr100=no | 3972 _xvr100=no |
3973 cc_check && _xvr100=yes | 3973 cc_check && _xvr100=yes |
3974 fi | 3974 fi |
3975 if test "$_xvr100" = yes ; then | 3975 if test "$_xvr100" = yes ; then |
3976 _def_xvr100='#define CONFIG_XVR100 1' | 3976 def_xvr100='#define CONFIG_XVR100 1' |
3977 _vomodules="xvr100 $_vomodules" | 3977 _vomodules="xvr100 $_vomodules" |
3978 else | 3978 else |
3979 _def_tdfxvid='#undef CONFIG_XVR100' | 3979 def_tdfxvid='#undef CONFIG_XVR100' |
3980 _novomodules="xvr100 $_novomodules" | 3980 _novomodules="xvr100 $_novomodules" |
3981 fi | 3981 fi |
3982 echores "$_xvr100" | 3982 echores "$_xvr100" |
3983 | 3983 |
3984 echocheck "tga" | 3984 echocheck "tga" |
3985 if test "$_tga" = yes ; then | 3985 if test "$_tga" = yes ; then |
3986 _def_tga='#define CONFIG_TGA 1' | 3986 def_tga='#define CONFIG_TGA 1' |
3987 _vomodules="tga $_vomodules" | 3987 _vomodules="tga $_vomodules" |
3988 else | 3988 else |
3989 _def_tga='#undef CONFIG_TGA' | 3989 def_tga='#undef CONFIG_TGA' |
3990 _novomodules="tga $_novomodules" | 3990 _novomodules="tga $_novomodules" |
3991 fi | 3991 fi |
3992 echores "$_tga" | 3992 echores "$_tga" |
3993 | 3993 |
3994 | 3994 |
3995 echocheck "md5sum support" | 3995 echocheck "md5sum support" |
3996 if test "$_md5sum" = yes; then | 3996 if test "$_md5sum" = yes; then |
3997 _def_md5sum="#define CONFIG_MD5SUM" | 3997 def_md5sum="#define CONFIG_MD5SUM" |
3998 _vomodules="md5sum $_vomodules" | 3998 _vomodules="md5sum $_vomodules" |
3999 else | 3999 else |
4000 _def_md5sum="#undef CONFIG_MD5SUM" | 4000 def_md5sum="#undef CONFIG_MD5SUM" |
4001 _novomodules="md5sum $_novomodules" | 4001 _novomodules="md5sum $_novomodules" |
4002 fi | 4002 fi |
4003 echores "$_md5sum" | 4003 echores "$_md5sum" |
4004 | 4004 |
4005 | 4005 |
4006 echocheck "yuv4mpeg support" | 4006 echocheck "yuv4mpeg support" |
4007 if test "$_yuv4mpeg" = yes; then | 4007 if test "$_yuv4mpeg" = yes; then |
4008 _def_yuv4mpeg="#define CONFIG_YUV4MPEG" | 4008 def_yuv4mpeg="#define CONFIG_YUV4MPEG" |
4009 _vomodules="yuv4mpeg $_vomodules" | 4009 _vomodules="yuv4mpeg $_vomodules" |
4010 else | 4010 else |
4011 _def_yuv4mpeg="#undef CONFIG_YUV4MPEG" | 4011 def_yuv4mpeg="#undef CONFIG_YUV4MPEG" |
4012 _novomodules="yuv4mpeg $_novomodules" | 4012 _novomodules="yuv4mpeg $_novomodules" |
4013 fi | 4013 fi |
4014 echores "$_yuv4mpeg" | 4014 echores "$_yuv4mpeg" |
4015 | 4015 |
4016 | 4016 |
4017 echocheck "bl" | 4017 echocheck "bl" |
4018 if test "$_bl" = yes ; then | 4018 if test "$_bl" = yes ; then |
4019 _def_bl='#define CONFIG_BL 1' | 4019 def_bl='#define CONFIG_BL 1' |
4020 _vomodules="bl $_vomodules" | 4020 _vomodules="bl $_vomodules" |
4021 else | 4021 else |
4022 _def_bl='#undef CONFIG_BL' | 4022 def_bl='#undef CONFIG_BL' |
4023 _novomodules="bl $_novomodules" | 4023 _novomodules="bl $_novomodules" |
4024 fi | 4024 fi |
4025 echores "$_bl" | 4025 echores "$_bl" |
4026 | 4026 |
4027 | 4027 |
4055 _dfb_major=`echo $_directfb_version | cut -d . -f 1` | 4055 _dfb_major=`echo $_directfb_version | cut -d . -f 1` |
4056 _dfb_minor=`echo $_directfb_version | cut -d . -f 2` | 4056 _dfb_minor=`echo $_directfb_version | cut -d . -f 2` |
4057 _dfb_micro=`echo $_directfb_version | cut -d . -f 3` | 4057 _dfb_micro=`echo $_directfb_version | cut -d . -f 3` |
4058 _dfb_version=`dfb_version $_dfb_major $_dfb_minor $_dfb_micro` | 4058 _dfb_version=`dfb_version $_dfb_major $_dfb_minor $_dfb_micro` |
4059 if test "$_dfb_version" -ge `dfb_version 0 9 13`; then | 4059 if test "$_dfb_version" -ge `dfb_version 0 9 13`; then |
4060 _def_directfb_version="#define DIRECTFBVERSION $_dfb_version" | 4060 def_directfb_version="#define DIRECTFBVERSION $_dfb_version" |
4061 _res_comment="$_directfb_version" | 4061 _res_comment="$_directfb_version" |
4062 test "$_dfb_version" -ge `dfb_version 0 9 15` && _dfbmga=yes | 4062 test "$_dfb_version" -ge `dfb_version 0 9 15` && _dfbmga=yes |
4063 else | 4063 else |
4064 _def_directfb_version='#undef DIRECTFBVERSION' | 4064 def_directfb_version='#undef DIRECTFBVERSION' |
4065 _directfb=no | 4065 _directfb=no |
4066 _res_comment="version >=0.9.13 required" | 4066 _res_comment="version >=0.9.13 required" |
4067 fi | 4067 fi |
4068 else | 4068 else |
4069 _directfb=no | 4069 _directfb=no |
4071 fi | 4071 fi |
4072 fi | 4072 fi |
4073 echores "$_directfb" | 4073 echores "$_directfb" |
4074 | 4074 |
4075 if test "$_directfb" = yes ; then | 4075 if test "$_directfb" = yes ; then |
4076 _def_directfb='#define CONFIG_DIRECTFB 1' | 4076 def_directfb='#define CONFIG_DIRECTFB 1' |
4077 _vomodules="directfb $_vomodules" | 4077 _vomodules="directfb $_vomodules" |
4078 _libs_mplayer="$_libs_mplayer -ldirectfb" | 4078 _libs_mplayer="$_libs_mplayer -ldirectfb" |
4079 else | 4079 else |
4080 _def_directfb='#undef CONFIG_DIRECTFB' | 4080 def_directfb='#undef CONFIG_DIRECTFB' |
4081 _novomodules="directfb $_novomodules" | 4081 _novomodules="directfb $_novomodules" |
4082 fi | 4082 fi |
4083 if test "$_dfbmga" = yes; then | 4083 if test "$_dfbmga" = yes; then |
4084 _vomodules="dfbmga $_vomodules" | 4084 _vomodules="dfbmga $_vomodules" |
4085 _def_dfbmga='#define CONFIG_DFBMGA 1' | 4085 def_dfbmga='#define CONFIG_DFBMGA 1' |
4086 else | 4086 else |
4087 _novomodules="dfbmga $_novomodules" | 4087 _novomodules="dfbmga $_novomodules" |
4088 _def_dfbmga='#undef CONFIG_DFBMGA' | 4088 def_dfbmga='#undef CONFIG_DFBMGA' |
4089 fi | 4089 fi |
4090 | 4090 |
4091 | 4091 |
4092 echocheck "X11 headers presence" | 4092 echocheck "X11 headers presence" |
4093 _x11_headers="no" | 4093 _x11_headers="no" |
4129 cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" \ | 4129 cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" \ |
4130 && _x11=yes && break | 4130 && _x11=yes && break |
4131 done | 4131 done |
4132 fi | 4132 fi |
4133 if test "$_x11" = yes ; then | 4133 if test "$_x11" = yes ; then |
4134 _def_x11='#define CONFIG_X11 1' | 4134 def_x11='#define CONFIG_X11 1' |
4135 _vomodules="x11 xover $_vomodules" | 4135 _vomodules="x11 xover $_vomodules" |
4136 else | 4136 else |
4137 _x11=no | 4137 _x11=no |
4138 _def_x11='#undef CONFIG_X11' | 4138 def_x11='#undef CONFIG_X11' |
4139 _novomodules="x11 $_novomodules" | 4139 _novomodules="x11 $_novomodules" |
4140 _res_comment="check if the dev(el) packages are installed" | 4140 _res_comment="check if the dev(el) packages are installed" |
4141 # disable stuff that depends on X | 4141 # disable stuff that depends on X |
4142 _xv=no ; _xvmc=no ; _xinerama=no ; _vm=no ; _xf86keysym=no | 4142 _xv=no ; _xvmc=no ; _xinerama=no ; _vm=no ; _xf86keysym=no |
4143 fi | 4143 fi |
4152 EOF | 4152 EOF |
4153 _xss=no | 4153 _xss=no |
4154 cc_check -lXss && _xss=yes | 4154 cc_check -lXss && _xss=yes |
4155 fi | 4155 fi |
4156 if test "$_xss" = yes ; then | 4156 if test "$_xss" = yes ; then |
4157 _def_xss='#define CONFIG_XSS 1' | 4157 def_xss='#define CONFIG_XSS 1' |
4158 _libs_mplayer="$_libs_mplayer -lXss" | 4158 _libs_mplayer="$_libs_mplayer -lXss" |
4159 else | 4159 else |
4160 _def_xss='#undef CONFIG_XSS' | 4160 def_xss='#undef CONFIG_XSS' |
4161 fi | 4161 fi |
4162 echores "$_xss" | 4162 echores "$_xss" |
4163 | 4163 |
4164 echocheck "DPMS" | 4164 echocheck "DPMS" |
4165 _xdpms3=no | 4165 _xdpms3=no |
4180 int main(void) { (void) DPMSQueryExtension(0, 0, 0); return 0; } | 4180 int main(void) { (void) DPMSQueryExtension(0, 0, 0); return 0; } |
4181 EOF | 4181 EOF |
4182 cc_check -lXext && _xdpms4=yes | 4182 cc_check -lXext && _xdpms4=yes |
4183 fi | 4183 fi |
4184 if test "$_xdpms4" = yes ; then | 4184 if test "$_xdpms4" = yes ; then |
4185 _def_xdpms='#define CONFIG_XDPMS 1' | 4185 def_xdpms='#define CONFIG_XDPMS 1' |
4186 _res_comment="using Xdpms 4" | 4186 _res_comment="using Xdpms 4" |
4187 echores "yes" | 4187 echores "yes" |
4188 elif test "$_xdpms3" = yes ; then | 4188 elif test "$_xdpms3" = yes ; then |
4189 _def_xdpms='#define CONFIG_XDPMS 1' | 4189 def_xdpms='#define CONFIG_XDPMS 1' |
4190 _libs_mplayer="$_libs_mplayer -lXdpms" | 4190 _libs_mplayer="$_libs_mplayer -lXdpms" |
4191 _res_comment="using Xdpms 3" | 4191 _res_comment="using Xdpms 3" |
4192 echores "yes" | 4192 echores "yes" |
4193 else | 4193 else |
4194 _def_xdpms='#undef CONFIG_XDPMS' | 4194 def_xdpms='#undef CONFIG_XDPMS' |
4195 echores "no" | 4195 echores "no" |
4196 fi | 4196 fi |
4197 | 4197 |
4198 | 4198 |
4199 echocheck "Xv" | 4199 echocheck "Xv" |
4209 _xv=no | 4209 _xv=no |
4210 cc_check -lXv && _xv=yes | 4210 cc_check -lXv && _xv=yes |
4211 fi | 4211 fi |
4212 | 4212 |
4213 if test "$_xv" = yes ; then | 4213 if test "$_xv" = yes ; then |
4214 _def_xv='#define CONFIG_XV 1' | 4214 def_xv='#define CONFIG_XV 1' |
4215 _libs_mplayer="$_libs_mplayer -lXv" | 4215 _libs_mplayer="$_libs_mplayer -lXv" |
4216 _vomodules="xv $_vomodules" | 4216 _vomodules="xv $_vomodules" |
4217 else | 4217 else |
4218 _def_xv='#undef CONFIG_XV' | 4218 def_xv='#undef CONFIG_XV' |
4219 _novomodules="xv $_novomodules" | 4219 _novomodules="xv $_novomodules" |
4220 fi | 4220 fi |
4221 echores "$_xv" | 4221 echores "$_xv" |
4222 | 4222 |
4223 | 4223 |
4236 for _ld_tmp in $_xvmclib XvMCNVIDIA XvMCW I810XvMC ; do | 4236 for _ld_tmp in $_xvmclib XvMCNVIDIA XvMCW I810XvMC ; do |
4237 cc_check -lXvMC -l$_ld_tmp && _xvmc=yes && _xvmclib="$_ld_tmp" && break | 4237 cc_check -lXvMC -l$_ld_tmp && _xvmc=yes && _xvmclib="$_ld_tmp" && break |
4238 done | 4238 done |
4239 fi | 4239 fi |
4240 if test "$_xvmc" = yes ; then | 4240 if test "$_xvmc" = yes ; then |
4241 _def_xvmc='#define CONFIG_XVMC 1' | 4241 def_xvmc='#define CONFIG_XVMC 1' |
4242 _libs_mplayer="$_libs_mplayer -lXvMC -l$_xvmclib" | 4242 _libs_mplayer="$_libs_mplayer -lXvMC -l$_xvmclib" |
4243 _vomodules="xvmc $_vomodules" | 4243 _vomodules="xvmc $_vomodules" |
4244 _res_comment="using $_xvmclib" | 4244 _res_comment="using $_xvmclib" |
4245 else | 4245 else |
4246 _def_xvmc='#define CONFIG_XVMC 0' | 4246 def_xvmc='#define CONFIG_XVMC 0' |
4247 _novomodules="xvmc $_novomodules" | 4247 _novomodules="xvmc $_novomodules" |
4248 _libavdecoders=`echo $_libavdecoders | sed -e s/MPEG_XVMC_DECODER// ` | 4248 _libavdecoders=`echo $_libavdecoders | sed -e s/MPEG_XVMC_DECODER// ` |
4249 fi | 4249 fi |
4250 echores "$_xvmc" | 4250 echores "$_xvmc" |
4251 | 4251 |
4260 _xinerama=no | 4260 _xinerama=no |
4261 cc_check -lXinerama && _xinerama=yes | 4261 cc_check -lXinerama && _xinerama=yes |
4262 fi | 4262 fi |
4263 | 4263 |
4264 if test "$_xinerama" = yes ; then | 4264 if test "$_xinerama" = yes ; then |
4265 _def_xinerama='#define CONFIG_XINERAMA 1' | 4265 def_xinerama='#define CONFIG_XINERAMA 1' |
4266 _libs_mplayer="$_libs_mplayer -lXinerama" | 4266 _libs_mplayer="$_libs_mplayer -lXinerama" |
4267 else | 4267 else |
4268 _def_xinerama='#undef CONFIG_XINERAMA' | 4268 def_xinerama='#undef CONFIG_XINERAMA' |
4269 fi | 4269 fi |
4270 echores "$_xinerama" | 4270 echores "$_xinerama" |
4271 | 4271 |
4272 | 4272 |
4273 # Note: the -lXxf86vm library is the VideoMode extension and though it's not | 4273 # Note: the -lXxf86vm library is the VideoMode extension and though it's not |
4284 EOF | 4284 EOF |
4285 _vm=no | 4285 _vm=no |
4286 cc_check -lXxf86vm && _vm=yes | 4286 cc_check -lXxf86vm && _vm=yes |
4287 fi | 4287 fi |
4288 if test "$_vm" = yes ; then | 4288 if test "$_vm" = yes ; then |
4289 _def_vm='#define CONFIG_XF86VM 1' | 4289 def_vm='#define CONFIG_XF86VM 1' |
4290 _libs_mplayer="$_libs_mplayer -lXxf86vm" | 4290 _libs_mplayer="$_libs_mplayer -lXxf86vm" |
4291 else | 4291 else |
4292 _def_vm='#undef CONFIG_XF86VM' | 4292 def_vm='#undef CONFIG_XF86VM' |
4293 fi | 4293 fi |
4294 echores "$_vm" | 4294 echores "$_vm" |
4295 | 4295 |
4296 # Check for the presence of special keycodes, like audio control buttons | 4296 # Check for the presence of special keycodes, like audio control buttons |
4297 # that XFree86 might have. Used to be bundled with the xf86vm check, but | 4297 # that XFree86 might have. Used to be bundled with the xf86vm check, but |
4306 int main(void) { return XF86XK_AudioPause; } | 4306 int main(void) { return XF86XK_AudioPause; } |
4307 EOF | 4307 EOF |
4308 cc_check && _xf86keysym=yes | 4308 cc_check && _xf86keysym=yes |
4309 fi | 4309 fi |
4310 if test "$_xf86keysym" = yes ; then | 4310 if test "$_xf86keysym" = yes ; then |
4311 _def_xf86keysym='#define CONFIG_XF86XK 1' | 4311 def_xf86keysym='#define CONFIG_XF86XK 1' |
4312 else | 4312 else |
4313 _def_xf86keysym='#undef CONFIG_XF86XK' | 4313 def_xf86keysym='#undef CONFIG_XF86XK' |
4314 fi | 4314 fi |
4315 echores "$_xf86keysym" | 4315 echores "$_xf86keysym" |
4316 | 4316 |
4317 echocheck "DGA" | 4317 echocheck "DGA" |
4318 if test "$_dga2" = auto && test "$_x11" = yes ; then | 4318 if test "$_dga2" = auto && test "$_x11" = yes ; then |
4333 _dga1=no | 4333 _dga1=no |
4334 cc_check -lXxf86dga -lXxf86vm && _dga1=yes | 4334 cc_check -lXxf86dga -lXxf86vm && _dga1=yes |
4335 fi | 4335 fi |
4336 | 4336 |
4337 _dga=no | 4337 _dga=no |
4338 _def_dga='#undef CONFIG_DGA' | 4338 def_dga='#undef CONFIG_DGA' |
4339 _def_dga1='#undef CONFIG_DGA1' | 4339 def_dga1='#undef CONFIG_DGA1' |
4340 _def_dga2='#undef CONFIG_DGA2' | 4340 def_dga2='#undef CONFIG_DGA2' |
4341 if test "$_dga1" = yes ; then | 4341 if test "$_dga1" = yes ; then |
4342 _dga=yes | 4342 _dga=yes |
4343 _def_dga1='#define CONFIG_DGA1 1' | 4343 def_dga1='#define CONFIG_DGA1 1' |
4344 _res_comment="using DGA 1.0" | 4344 _res_comment="using DGA 1.0" |
4345 elif test "$_dga2" = yes ; then | 4345 elif test "$_dga2" = yes ; then |
4346 _dga=yes | 4346 _dga=yes |
4347 _def_dga2='#define CONFIG_DGA2 1' | 4347 def_dga2='#define CONFIG_DGA2 1' |
4348 _res_comment="using DGA 2.0" | 4348 _res_comment="using DGA 2.0" |
4349 fi | 4349 fi |
4350 if test "$_dga" = yes ; then | 4350 if test "$_dga" = yes ; then |
4351 _def_dga='#define CONFIG_DGA 1' | 4351 def_dga='#define CONFIG_DGA 1' |
4352 _libs_mplayer="$_libs_mplayer -lXxf86dga" | 4352 _libs_mplayer="$_libs_mplayer -lXxf86dga" |
4353 _vomodules="dga $_vomodules" | 4353 _vomodules="dga $_vomodules" |
4354 else | 4354 else |
4355 _novomodules="dga $_novomodules" | 4355 _novomodules="dga $_novomodules" |
4356 fi | 4356 fi |
4357 echores "$_dga" | 4357 echores "$_dga" |
4358 | 4358 |
4359 | 4359 |
4360 echocheck "3dfx" | 4360 echocheck "3dfx" |
4361 if test "$_3dfx" = yes && test "$_dga" = yes ; then | 4361 if test "$_3dfx" = yes && test "$_dga" = yes ; then |
4362 _def_3dfx='#define CONFIG_3DFX 1' | 4362 def_3dfx='#define CONFIG_3DFX 1' |
4363 _vomodules="3dfx $_vomodules" | 4363 _vomodules="3dfx $_vomodules" |
4364 else | 4364 else |
4365 _def_3dfx='#undef CONFIG_3DFX' | 4365 def_3dfx='#undef CONFIG_3DFX' |
4366 _novomodules="3dfx $_novomodules" | 4366 _novomodules="3dfx $_novomodules" |
4367 fi | 4367 fi |
4368 echores "$_3dfx" | 4368 echores "$_3dfx" |
4369 | 4369 |
4370 | 4370 |
4405 fi | 4405 fi |
4406 else | 4406 else |
4407 _gl=no | 4407 _gl=no |
4408 fi | 4408 fi |
4409 if test "$_gl" = yes ; then | 4409 if test "$_gl" = yes ; then |
4410 _def_gl='#define CONFIG_GL 1' | 4410 def_gl='#define CONFIG_GL 1' |
4411 if test "$_gl_win32" = yes ; then | 4411 if test "$_gl_win32" = yes ; then |
4412 _def_gl_win32='#define GL_WIN32 1' | 4412 def_gl_win32='#define GL_WIN32 1' |
4413 _res_comment="win32 version" | 4413 _res_comment="win32 version" |
4414 fi | 4414 fi |
4415 _vomodules="opengl $_vomodules" | 4415 _vomodules="opengl $_vomodules" |
4416 else | 4416 else |
4417 _def_gl='#undef CONFIG_GL' | 4417 def_gl='#undef CONFIG_GL' |
4418 _def_gl_win32='#undef GL_WIN32' | 4418 def_gl_win32='#undef GL_WIN32' |
4419 _novomodules="opengl $_novomodules" | 4419 _novomodules="opengl $_novomodules" |
4420 fi | 4420 fi |
4421 echores "$_gl" | 4421 echores "$_gl" |
4422 | 4422 |
4423 | 4423 |
4424 echocheck "VIDIX" | 4424 echocheck "VIDIX" |
4425 _def_vidix='#undef CONFIG_VIDIX' | 4425 def_vidix='#undef CONFIG_VIDIX' |
4426 _def_vidix_drv_cyberblade='#undef CONFIG_VIDIX_DRV_CYBERBLADE' | 4426 def_vidix_drv_cyberblade='#undef CONFIG_VIDIX_DRV_CYBERBLADE' |
4427 _vidix_drv_cyberblade=no | 4427 _vidix_drv_cyberblade=no |
4428 _def_vidix_drv_ivtv='#undef CONFIG_VIDIX_DRV_IVTV' | 4428 def_vidix_drv_ivtv='#undef CONFIG_VIDIX_DRV_IVTV' |
4429 _vidix_drv_ivtv=no | 4429 _vidix_drv_ivtv=no |
4430 _def_vidix_drv_ivtv='#undef CONFIG_VIDIX_DRV_IVTV' | 4430 def_vidix_drv_ivtv='#undef CONFIG_VIDIX_DRV_IVTV' |
4431 _vidix_drv_ivtv=no | 4431 _vidix_drv_ivtv=no |
4432 _def_vidix_drv_mach64='#undef CONFIG_VIDIX_DRV_MACH64' | 4432 def_vidix_drv_mach64='#undef CONFIG_VIDIX_DRV_MACH64' |
4433 _vidix_drv_mach64=no | 4433 _vidix_drv_mach64=no |
4434 _def_vidix_drv_mga='#undef CONFIG_VIDIX_DRV_MGA' | 4434 def_vidix_drv_mga='#undef CONFIG_VIDIX_DRV_MGA' |
4435 _vidix_drv_mga=no | 4435 _vidix_drv_mga=no |
4436 _def_vidix_drv_mga_crtc2='#undef CONFIG_VIDIX_DRV_MGA_CRTC2' | 4436 def_vidix_drv_mga_crtc2='#undef CONFIG_VIDIX_DRV_MGA_CRTC2' |
4437 _vidix_drv_mga_crtc2=no | 4437 _vidix_drv_mga_crtc2=no |
4438 _def_vidix_drv_nvidia='#undef CONFIG_VIDIX_DRV_NVIDIA' | 4438 def_vidix_drv_nvidia='#undef CONFIG_VIDIX_DRV_NVIDIA' |
4439 _vidix_drv_nvidia=no | 4439 _vidix_drv_nvidia=no |
4440 _def_vidix_drv_pm2='#undef CONFIG_VIDIX_DRV_PM2' | 4440 def_vidix_drv_pm2='#undef CONFIG_VIDIX_DRV_PM2' |
4441 _vidix_drv_pm2=no | 4441 _vidix_drv_pm2=no |
4442 _def_vidix_drv_pm3='#undef CONFIG_VIDIX_DRV_PM3' | 4442 def_vidix_drv_pm3='#undef CONFIG_VIDIX_DRV_PM3' |
4443 _vidix_drv_pm3=no | 4443 _vidix_drv_pm3=no |
4444 _def_vidix_drv_radeon='#undef CONFIG_VIDIX_DRV_RADEON' | 4444 def_vidix_drv_radeon='#undef CONFIG_VIDIX_DRV_RADEON' |
4445 _vidix_drv_radeon=no | 4445 _vidix_drv_radeon=no |
4446 _def_vidix_drv_rage128='#undef CONFIG_VIDIX_DRV_RAGE128' | 4446 def_vidix_drv_rage128='#undef CONFIG_VIDIX_DRV_RAGE128' |
4447 _vidix_drv_rage128=no | 4447 _vidix_drv_rage128=no |
4448 _def_vidix_drv_s3='#undef CONFIG_VIDIX_DRV_S3' | 4448 def_vidix_drv_s3='#undef CONFIG_VIDIX_DRV_S3' |
4449 _vidix_drv_s3=no | 4449 _vidix_drv_s3=no |
4450 _def_vidix_drv_sh_veu='#undef CONFIG_VIDIX_DRV_SH_VEU' | 4450 def_vidix_drv_sh_veu='#undef CONFIG_VIDIX_DRV_SH_VEU' |
4451 _vidix_drv_sh_veu=no | 4451 _vidix_drv_sh_veu=no |
4452 _def_vidix_drv_sis='#undef CONFIG_VIDIX_DRV_SIS' | 4452 def_vidix_drv_sis='#undef CONFIG_VIDIX_DRV_SIS' |
4453 _vidix_drv_sis=no | 4453 _vidix_drv_sis=no |
4454 _def_vidix_drv_unichrome='#undef CONFIG_VIDIX_DRV_UNICHROME' | 4454 def_vidix_drv_unichrome='#undef CONFIG_VIDIX_DRV_UNICHROME' |
4455 _vidix_drv_unichrome=no | 4455 _vidix_drv_unichrome=no |
4456 if test "$_vidix" = auto ; then | 4456 if test "$_vidix" = auto ; then |
4457 _vidix=no | 4457 _vidix=no |
4458 x86 && (linux || freebsd || netbsd || openbsd || dragonfly || sunos || win32) \ | 4458 x86 && (linux || freebsd || netbsd || openbsd || dragonfly || sunos || win32) \ |
4459 && _vidix=yes | 4459 && _vidix=yes |
4460 (ppc || alpha) && linux && _vidix=yes | 4460 (ppc || alpha) && linux && _vidix=yes |
4461 fi | 4461 fi |
4462 echores "$_vidix" | 4462 echores "$_vidix" |
4463 | 4463 |
4464 if test "$_vidix" = yes ; then | 4464 if test "$_vidix" = yes ; then |
4465 _def_vidix='#define CONFIG_VIDIX 1' | 4465 def_vidix='#define CONFIG_VIDIX 1' |
4466 _vomodules="cvidix $_vomodules" | 4466 _vomodules="cvidix $_vomodules" |
4467 test "$_vidix_drivers" || _vidix_drivers="cyberblade ivtv mach64 mga mga_crtc2 nvidia pm2 pm3 radeon rage128 s3 sh_veu sis unichrome" | 4467 test "$_vidix_drivers" || _vidix_drivers="cyberblade ivtv mach64 mga mga_crtc2 nvidia pm2 pm3 radeon rage128 s3 sh_veu sis unichrome" |
4468 test $_ivtv = "yes" || _vidix_drivers=`echo $_vidix_drivers | sed s/ivtv//` | 4468 test $_ivtv = "yes" || _vidix_drivers=`echo $_vidix_drivers | sed s/ivtv//` |
4469 | 4469 |
4470 # some vidix drivers are architecture and os specific, discard them elsewhere | 4470 # some vidix drivers are architecture and os specific, discard them elsewhere |
4472 (test $host_arch = "sh" && linux) || _vidix_drivers=`echo $_vidix_drivers | sed s/sh_veu//` | 4472 (test $host_arch = "sh" && linux) || _vidix_drivers=`echo $_vidix_drivers | sed s/sh_veu//` |
4473 | 4473 |
4474 for driver in $_vidix_drivers ; do | 4474 for driver in $_vidix_drivers ; do |
4475 uc_driver=`echo $driver | tr '[a-z]' '[A-Z]'` | 4475 uc_driver=`echo $driver | tr '[a-z]' '[A-Z]'` |
4476 eval _vidix_drv_${driver}=yes | 4476 eval _vidix_drv_${driver}=yes |
4477 eval _def_vidix_drv_${driver}=\"\#define CONFIG_VIDIX_DRV_${uc_driver} 1\" | 4477 eval def_vidix_drv_${driver}=\"\#define CONFIG_VIDIX_DRV_${uc_driver} 1\" |
4478 done | 4478 done |
4479 | 4479 |
4480 echocheck "VIDIX PCI device name database" | 4480 echocheck "VIDIX PCI device name database" |
4481 echores "$_vidix_pcidb" | 4481 echores "$_vidix_pcidb" |
4482 if test "$_vidix_pcidb" = yes ; then | 4482 if test "$_vidix_pcidb" = yes ; then |
4515 if test "$_mga" = auto ; then | 4515 if test "$_mga" = auto ; then |
4516 _mga=no | 4516 _mga=no |
4517 test -c /dev/mga_vid && _mga=yes | 4517 test -c /dev/mga_vid && _mga=yes |
4518 fi | 4518 fi |
4519 if test "$_mga" = yes ; then | 4519 if test "$_mga" = yes ; then |
4520 _def_mga='#define CONFIG_MGA 1' | 4520 def_mga='#define CONFIG_MGA 1' |
4521 _vomodules="mga $_vomodules" | 4521 _vomodules="mga $_vomodules" |
4522 else | 4522 else |
4523 _def_mga='#undef CONFIG_MGA' | 4523 def_mga='#undef CONFIG_MGA' |
4524 _novomodules="mga $_novomodules" | 4524 _novomodules="mga $_novomodules" |
4525 fi | 4525 fi |
4526 echores "$_mga" | 4526 echores "$_mga" |
4527 | 4527 |
4528 | 4528 |
4530 if test "$_xmga" = auto ; then | 4530 if test "$_xmga" = auto ; then |
4531 _xmga=no | 4531 _xmga=no |
4532 test "$_x11" = yes && test "$_mga" = yes && _xmga=yes | 4532 test "$_x11" = yes && test "$_mga" = yes && _xmga=yes |
4533 fi | 4533 fi |
4534 if test "$_xmga" = yes ; then | 4534 if test "$_xmga" = yes ; then |
4535 _def_xmga='#define CONFIG_XMGA 1' | 4535 def_xmga='#define CONFIG_XMGA 1' |
4536 _vomodules="xmga $_vomodules" | 4536 _vomodules="xmga $_vomodules" |
4537 else | 4537 else |
4538 _def_xmga='#undef CONFIG_XMGA' | 4538 def_xmga='#undef CONFIG_XMGA' |
4539 _novomodules="xmga $_novomodules" | 4539 _novomodules="xmga $_novomodules" |
4540 fi | 4540 fi |
4541 echores "$_xmga" | 4541 echores "$_xmga" |
4542 | 4542 |
4543 | 4543 |
4549 EOF | 4549 EOF |
4550 _ggi=no | 4550 _ggi=no |
4551 cc_check -lggi && _ggi=yes | 4551 cc_check -lggi && _ggi=yes |
4552 fi | 4552 fi |
4553 if test "$_ggi" = yes ; then | 4553 if test "$_ggi" = yes ; then |
4554 _def_ggi='#define CONFIG_GGI 1' | 4554 def_ggi='#define CONFIG_GGI 1' |
4555 _libs_mplayer="$_libs_mplayer -lggi" | 4555 _libs_mplayer="$_libs_mplayer -lggi" |
4556 _vomodules="ggi $_vomodules" | 4556 _vomodules="ggi $_vomodules" |
4557 else | 4557 else |
4558 _def_ggi='#undef CONFIG_GGI' | 4558 def_ggi='#undef CONFIG_GGI' |
4559 _novomodules="ggi $_novomodules" | 4559 _novomodules="ggi $_novomodules" |
4560 fi | 4560 fi |
4561 echores "$_ggi" | 4561 echores "$_ggi" |
4562 | 4562 |
4563 echocheck "GGI extension: libggiwmh" | 4563 echocheck "GGI extension: libggiwmh" |
4571 cc_check -lggi -lggiwmh && _ggiwmh=yes | 4571 cc_check -lggi -lggiwmh && _ggiwmh=yes |
4572 fi | 4572 fi |
4573 # needed to get right output on obscure combination | 4573 # needed to get right output on obscure combination |
4574 # like --disable-ggi --enable-ggiwmh | 4574 # like --disable-ggi --enable-ggiwmh |
4575 if test "$_ggi" = yes && test "$_ggiwmh" = yes ; then | 4575 if test "$_ggi" = yes && test "$_ggiwmh" = yes ; then |
4576 _def_ggiwmh='#define CONFIG_GGIWMH 1' | 4576 def_ggiwmh='#define CONFIG_GGIWMH 1' |
4577 _libs_mplayer="$_libs_mplayer -lggiwmh" | 4577 _libs_mplayer="$_libs_mplayer -lggiwmh" |
4578 else | 4578 else |
4579 _ggiwmh=no | 4579 _ggiwmh=no |
4580 _def_ggiwmh='#undef CONFIG_GGIWMH' | 4580 def_ggiwmh='#undef CONFIG_GGIWMH' |
4581 fi | 4581 fi |
4582 echores "$_ggiwmh" | 4582 echores "$_ggiwmh" |
4583 | 4583 |
4584 | 4584 |
4585 echocheck "AA" | 4585 echocheck "AA" |
4601 for _ld_tmp in "-laa" ; do | 4601 for _ld_tmp in "-laa" ; do |
4602 cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" && _aa=yes && break | 4602 cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" && _aa=yes && break |
4603 done | 4603 done |
4604 fi | 4604 fi |
4605 if test "$_aa" = yes ; then | 4605 if test "$_aa" = yes ; then |
4606 _def_aa='#define CONFIG_AA 1' | 4606 def_aa='#define CONFIG_AA 1' |
4607 if cygwin ; then | 4607 if cygwin ; then |
4608 _libs_mplayer="$_libs_mplayer `aalib-config --libs | cut -d " " -f 2,5,6`" | 4608 _libs_mplayer="$_libs_mplayer `aalib-config --libs | cut -d " " -f 2,5,6`" |
4609 fi | 4609 fi |
4610 _vomodules="aa $_vomodules" | 4610 _vomodules="aa $_vomodules" |
4611 else | 4611 else |
4612 _def_aa='#undef CONFIG_AA' | 4612 def_aa='#undef CONFIG_AA' |
4613 _novomodules="aa $_novomodules" | 4613 _novomodules="aa $_novomodules" |
4614 fi | 4614 fi |
4615 echores "$_aa" | 4615 echores "$_aa" |
4616 | 4616 |
4617 | 4617 |
4628 EOF | 4628 EOF |
4629 cc_check `caca-config --libs` && _caca=yes | 4629 cc_check `caca-config --libs` && _caca=yes |
4630 fi | 4630 fi |
4631 fi | 4631 fi |
4632 if test "$_caca" = yes ; then | 4632 if test "$_caca" = yes ; then |
4633 _def_caca='#define CONFIG_CACA 1' | 4633 def_caca='#define CONFIG_CACA 1' |
4634 _inc_extra="$_inc_extra `caca-config --cflags`" | 4634 _inc_extra="$_inc_extra `caca-config --cflags`" |
4635 _libs_mplayer="$_libs_mplayer `caca-config --libs`" | 4635 _libs_mplayer="$_libs_mplayer `caca-config --libs`" |
4636 _vomodules="caca $_vomodules" | 4636 _vomodules="caca $_vomodules" |
4637 else | 4637 else |
4638 _def_caca='#undef CONFIG_CACA' | 4638 def_caca='#undef CONFIG_CACA' |
4639 _novomodules="caca $_novomodules" | 4639 _novomodules="caca $_novomodules" |
4640 fi | 4640 fi |
4641 echores "$_caca" | 4641 echores "$_caca" |
4642 | 4642 |
4643 | 4643 |
4649 EOF | 4649 EOF |
4650 _svga=no | 4650 _svga=no |
4651 cc_check -lvga $_ld_lm && _svga=yes | 4651 cc_check -lvga $_ld_lm && _svga=yes |
4652 fi | 4652 fi |
4653 if test "$_svga" = yes ; then | 4653 if test "$_svga" = yes ; then |
4654 _def_svga='#define CONFIG_SVGALIB 1' | 4654 def_svga='#define CONFIG_SVGALIB 1' |
4655 _libs_mplayer="$_libs_mplayer -lvga" | 4655 _libs_mplayer="$_libs_mplayer -lvga" |
4656 _vomodules="svga $_vomodules" | 4656 _vomodules="svga $_vomodules" |
4657 else | 4657 else |
4658 _def_svga='#undef CONFIG_SVGALIB' | 4658 def_svga='#undef CONFIG_SVGALIB' |
4659 _novomodules="svga $_novomodules" | 4659 _novomodules="svga $_novomodules" |
4660 fi | 4660 fi |
4661 echores "$_svga" | 4661 echores "$_svga" |
4662 | 4662 |
4663 | 4663 |
4665 if test "$_fbdev" = auto ; then | 4665 if test "$_fbdev" = auto ; then |
4666 _fbdev=no | 4666 _fbdev=no |
4667 linux && _fbdev=yes | 4667 linux && _fbdev=yes |
4668 fi | 4668 fi |
4669 if test "$_fbdev" = yes ; then | 4669 if test "$_fbdev" = yes ; then |
4670 _def_fbdev='#define CONFIG_FBDEV 1' | 4670 def_fbdev='#define CONFIG_FBDEV 1' |
4671 _vomodules="fbdev $_vomodules" | 4671 _vomodules="fbdev $_vomodules" |
4672 else | 4672 else |
4673 _def_fbdev='#undef CONFIG_FBDEV' | 4673 def_fbdev='#undef CONFIG_FBDEV' |
4674 _novomodules="fbdev $_novomodules" | 4674 _novomodules="fbdev $_novomodules" |
4675 fi | 4675 fi |
4676 echores "$_fbdev" | 4676 echores "$_fbdev" |
4677 | 4677 |
4678 | 4678 |
4698 _inc_extra="$_inc_extra $_inc_tmp" && break | 4698 _inc_extra="$_inc_extra $_inc_tmp" && break |
4699 done | 4699 done |
4700 fi | 4700 fi |
4701 echores "$_dvb" | 4701 echores "$_dvb" |
4702 if test "$_dvb" = yes ; then | 4702 if test "$_dvb" = yes ; then |
4703 _def_dvb='#define CONFIG_DVB 1' | 4703 def_dvb='#define CONFIG_DVB 1' |
4704 _def_dvbin='#define CONFIG_DVBIN 1' | 4704 def_dvbin='#define CONFIG_DVBIN 1' |
4705 _aomodules="mpegpes(dvb) $_aomodules" | 4705 _aomodules="mpegpes(dvb) $_aomodules" |
4706 _vomodules="mpegpes(dvb) $_vomodules" | 4706 _vomodules="mpegpes(dvb) $_vomodules" |
4707 fi | 4707 fi |
4708 | 4708 |
4709 echocheck "DVB HEAD" | 4709 echocheck "DVB HEAD" |
4727 _inc_extra="$_inc_extra $_inc_tmp" && break | 4727 _inc_extra="$_inc_extra $_inc_tmp" && break |
4728 done | 4728 done |
4729 fi | 4729 fi |
4730 echores "$_dvbhead" | 4730 echores "$_dvbhead" |
4731 if test "$_dvbhead" = yes ; then | 4731 if test "$_dvbhead" = yes ; then |
4732 _def_dvb='#define CONFIG_DVB 1' | 4732 def_dvb='#define CONFIG_DVB 1' |
4733 _def_dvb_head='#define CONFIG_DVB_HEAD 1' | 4733 def_dvb_head='#define CONFIG_DVB_HEAD 1' |
4734 _def_dvbin='#define CONFIG_DVBIN 1' | 4734 def_dvbin='#define CONFIG_DVBIN 1' |
4735 _aomodules="mpegpes(dvb) $_aomodules" | 4735 _aomodules="mpegpes(dvb) $_aomodules" |
4736 _vomodules="mpegpes(dvb) $_vomodules" | 4736 _vomodules="mpegpes(dvb) $_vomodules" |
4737 fi | 4737 fi |
4738 | 4738 |
4739 if test "$_dvbhead" = no && test "$_dvb" = no ; then | 4739 if test "$_dvbhead" = no && test "$_dvb" = no ; then |
4740 _def_dvb='#undef CONFIG_DVB' | 4740 def_dvb='#undef CONFIG_DVB' |
4741 _def_dvb_head='#undef CONFIG_DVB_HEAD' | 4741 def_dvb_head='#undef CONFIG_DVB_HEAD' |
4742 _def_dvbin='#undef CONFIG_DVBIN ' | 4742 def_dvbin='#undef CONFIG_DVBIN ' |
4743 _aomodules="mpegpes(file) $_aomodules" | 4743 _aomodules="mpegpes(file) $_aomodules" |
4744 _vomodules="mpegpes(file) $_vomodules" | 4744 _vomodules="mpegpes(file) $_vomodules" |
4745 fi | 4745 fi |
4746 | 4746 |
4747 if test "$_dvb" = yes || test "$_dvbhead" = yes ; then | 4747 if test "$_dvb" = yes || test "$_dvbhead" = yes ; then |
4781 fi | 4781 fi |
4782 fi | 4782 fi |
4783 fi | 4783 fi |
4784 echores "$_png" | 4784 echores "$_png" |
4785 if test "$_png" = yes ; then | 4785 if test "$_png" = yes ; then |
4786 _def_png='#define CONFIG_PNG 1' | 4786 def_png='#define CONFIG_PNG 1' |
4787 _ld_extra="$_ld_extra -lpng -lz" | 4787 _ld_extra="$_ld_extra -lpng -lz" |
4788 _vomodules="png $_vomodules" | 4788 _vomodules="png $_vomodules" |
4789 else | 4789 else |
4790 _def_png='#undef CONFIG_PNG' | 4790 def_png='#undef CONFIG_PNG' |
4791 _novomodules="png $_novomodules" | 4791 _novomodules="png $_novomodules" |
4792 fi | 4792 fi |
4793 | 4793 |
4794 echocheck "MNG support" | 4794 echocheck "MNG support" |
4795 if test "$_mng" = auto ; then | 4795 if test "$_mng" = auto ; then |
4805 _mng=yes | 4805 _mng=yes |
4806 fi | 4806 fi |
4807 fi | 4807 fi |
4808 echores "$_mng" | 4808 echores "$_mng" |
4809 if test "$_mng" = yes ; then | 4809 if test "$_mng" = yes ; then |
4810 _def_mng='#define CONFIG_MNG 1' | 4810 def_mng='#define CONFIG_MNG 1' |
4811 _ld_extra="$_ld_extra -lmng -lz" | 4811 _ld_extra="$_ld_extra -lmng -lz" |
4812 else | 4812 else |
4813 _def_mng='#undef CONFIG_MNG' | 4813 def_mng='#undef CONFIG_MNG' |
4814 fi | 4814 fi |
4815 | 4815 |
4816 echocheck "JPEG support" | 4816 echocheck "JPEG support" |
4817 if test "$_jpeg" = auto ; then | 4817 if test "$_jpeg" = auto ; then |
4818 _jpeg=no | 4818 _jpeg=no |
4831 fi | 4831 fi |
4832 fi | 4832 fi |
4833 echores "$_jpeg" | 4833 echores "$_jpeg" |
4834 | 4834 |
4835 if test "$_jpeg" = yes ; then | 4835 if test "$_jpeg" = yes ; then |
4836 _def_jpeg='#define CONFIG_JPEG 1' | 4836 def_jpeg='#define CONFIG_JPEG 1' |
4837 _vomodules="jpeg $_vomodules" | 4837 _vomodules="jpeg $_vomodules" |
4838 _ld_extra="$_ld_extra -ljpeg" | 4838 _ld_extra="$_ld_extra -ljpeg" |
4839 else | 4839 else |
4840 _def_jpeg='#undef CONFIG_JPEG' | 4840 def_jpeg='#undef CONFIG_JPEG' |
4841 _novomodules="jpeg $_novomodules" | 4841 _novomodules="jpeg $_novomodules" |
4842 fi | 4842 fi |
4843 | 4843 |
4844 | 4844 |
4845 | 4845 |
4846 echocheck "PNM support" | 4846 echocheck "PNM support" |
4847 if test "$_pnm" = yes; then | 4847 if test "$_pnm" = yes; then |
4848 _def_pnm="#define CONFIG_PNM 1" | 4848 def_pnm="#define CONFIG_PNM 1" |
4849 _vomodules="pnm $_vomodules" | 4849 _vomodules="pnm $_vomodules" |
4850 else | 4850 else |
4851 _def_pnm="#undef CONFIG_PNM" | 4851 def_pnm="#undef CONFIG_PNM" |
4852 _novomodules="pnm $_novomodules" | 4852 _novomodules="pnm $_novomodules" |
4853 fi | 4853 fi |
4854 echores "$_pnm" | 4854 echores "$_pnm" |
4855 | 4855 |
4856 | 4856 |
4888 _gif=yes | 4888 _gif=yes |
4889 _ld_gif="-lgif" | 4889 _ld_gif="-lgif" |
4890 fi | 4890 fi |
4891 | 4891 |
4892 if test "$_gif" = yes ; then | 4892 if test "$_gif" = yes ; then |
4893 _def_gif='#define CONFIG_GIF 1' | 4893 def_gif='#define CONFIG_GIF 1' |
4894 _codecmodules="gif $_codecmodules" | 4894 _codecmodules="gif $_codecmodules" |
4895 _vomodules="gif89a $_vomodules" | 4895 _vomodules="gif89a $_vomodules" |
4896 _res_comment="old version, some encoding functions disabled" | 4896 _res_comment="old version, some encoding functions disabled" |
4897 _def_gif_4='#undef CONFIG_GIF_4' | 4897 def_gif_4='#undef CONFIG_GIF_4' |
4898 _ld_extra="$_ld_extra $_ld_gif" | 4898 _ld_extra="$_ld_extra $_ld_gif" |
4899 | 4899 |
4900 cat > $TMPC << EOF | 4900 cat > $TMPC << EOF |
4901 #include <signal.h> | 4901 #include <signal.h> |
4902 #include <gif_lib.h> | 4902 #include <gif_lib.h> |
4907 EGifSetGifVersion("89a"); // this will segfault a buggy gif lib. | 4907 EGifSetGifVersion("89a"); // this will segfault a buggy gif lib. |
4908 return 0; | 4908 return 0; |
4909 } | 4909 } |
4910 EOF | 4910 EOF |
4911 if cc_check "$_ld_gif" && tmp_run ; then | 4911 if cc_check "$_ld_gif" && tmp_run ; then |
4912 _def_gif_4='#define CONFIG_GIF_4 1' | 4912 def_gif_4='#define CONFIG_GIF_4 1' |
4913 _res_comment="" | 4913 _res_comment="" |
4914 fi | 4914 fi |
4915 else | 4915 else |
4916 _def_gif='#undef CONFIG_GIF' | 4916 def_gif='#undef CONFIG_GIF' |
4917 _def_gif_4='#undef CONFIG_GIF_4' | 4917 def_gif_4='#undef CONFIG_GIF_4' |
4918 _novomodules="gif89a $_novomodules" | 4918 _novomodules="gif89a $_novomodules" |
4919 _nocodecmodules="gif $_nocodecmodules" | 4919 _nocodecmodules="gif $_nocodecmodules" |
4920 fi | 4920 fi |
4921 echores "$_gif" | 4921 echores "$_gif" |
4922 | 4922 |
4923 | 4923 |
4924 case "$_gif" in yes*) | 4924 case "$_gif" in yes*) |
4925 echocheck "broken giflib workaround" | 4925 echocheck "broken giflib workaround" |
4926 _def_gif_tvt_hack='#define CONFIG_GIF_TVT_HACK 1' | 4926 def_gif_tvt_hack='#define CONFIG_GIF_TVT_HACK 1' |
4927 | 4927 |
4928 cat > $TMPC << EOF | 4928 cat > $TMPC << EOF |
4929 #include <gif_lib.h> | 4929 #include <gif_lib.h> |
4930 int main(void) { | 4930 int main(void) { |
4931 GifFileType gif; | 4931 GifFileType gif; |
4932 printf("UserData is at address %p\n", gif.UserData); | 4932 printf("UserData is at address %p\n", gif.UserData); |
4933 return 0; | 4933 return 0; |
4934 } | 4934 } |
4935 EOF | 4935 EOF |
4936 if cc_check "$_ld_gif" && tmp_run ; then | 4936 if cc_check "$_ld_gif" && tmp_run ; then |
4937 _def_gif_tvt_hack='#undef CONFIG_GIF_TVT_HACK' | 4937 def_gif_tvt_hack='#undef CONFIG_GIF_TVT_HACK' |
4938 echores "disabled" | 4938 echores "disabled" |
4939 else | 4939 else |
4940 echores "enabled" | 4940 echores "enabled" |
4941 fi | 4941 fi |
4942 ;; | 4942 ;; |
4951 EOF | 4951 EOF |
4952 _vesa=no | 4952 _vesa=no |
4953 cc_check -lvbe -llrmi && _vesa=yes | 4953 cc_check -lvbe -llrmi && _vesa=yes |
4954 fi | 4954 fi |
4955 if test "$_vesa" = yes ; then | 4955 if test "$_vesa" = yes ; then |
4956 _def_vesa='#define CONFIG_VESA 1' | 4956 def_vesa='#define CONFIG_VESA 1' |
4957 _libs_mplayer="$_libs_mplayer -lvbe -llrmi" | 4957 _libs_mplayer="$_libs_mplayer -lvbe -llrmi" |
4958 _vomodules="vesa $_vomodules" | 4958 _vomodules="vesa $_vomodules" |
4959 else | 4959 else |
4960 _def_vesa='#undef CONFIG_VESA' | 4960 def_vesa='#undef CONFIG_VESA' |
4961 _novomodules="vesa $_novomodules" | 4961 _novomodules="vesa $_novomodules" |
4962 fi | 4962 fi |
4963 echores "$_vesa" | 4963 echores "$_vesa" |
4964 | 4964 |
4965 ################# | 4965 ################# |
4989 if "$_sdlconfig" --version >>"$TMPLOG" 2>&1 ; then | 4989 if "$_sdlconfig" --version >>"$TMPLOG" 2>&1 ; then |
4990 if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` >>"$TMPLOG" 2>&1 ; then | 4990 if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` >>"$TMPLOG" 2>&1 ; then |
4991 _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'` | 4991 _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'` |
4992 if test "$_sdlversion" -gt 116 ; then | 4992 if test "$_sdlversion" -gt 116 ; then |
4993 if test "$_sdlversion" -lt 121 ; then | 4993 if test "$_sdlversion" -lt 121 ; then |
4994 _def_sdlbuggy='#define BUGGY_SDL' | 4994 def_sdlbuggy='#define BUGGY_SDL' |
4995 else | 4995 else |
4996 _def_sdlbuggy='#undef BUGGY_SDL' | 4996 def_sdlbuggy='#undef BUGGY_SDL' |
4997 fi | 4997 fi |
4998 _sdl=yes | 4998 _sdl=yes |
4999 fi | 4999 fi |
5000 fi | 5000 fi |
5001 fi | 5001 fi |
5002 fi | 5002 fi |
5003 if test "$_sdl" = yes ; then | 5003 if test "$_sdl" = yes ; then |
5004 _def_sdl='#define CONFIG_SDL 1' | 5004 def_sdl='#define CONFIG_SDL 1' |
5005 if cygwin ; then | 5005 if cygwin ; then |
5006 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/`" | 5006 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/`" |
5007 _inc_extra="$_inc_extra `$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/`" | 5007 _inc_extra="$_inc_extra `$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/`" |
5008 elif mingw32 ; then | 5008 elif mingw32 ; then |
5009 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//`" | 5009 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//`" |
5014 fi | 5014 fi |
5015 _vomodules="sdl $_vomodules" | 5015 _vomodules="sdl $_vomodules" |
5016 _aomodules="sdl $_aomodules" | 5016 _aomodules="sdl $_aomodules" |
5017 _res_comment="using $_sdlconfig" | 5017 _res_comment="using $_sdlconfig" |
5018 else | 5018 else |
5019 _def_sdl='#undef CONFIG_SDL' | 5019 def_sdl='#undef CONFIG_SDL' |
5020 _novomodules="sdl $_novomodules" | 5020 _novomodules="sdl $_novomodules" |
5021 _noaomodules="sdl $_noaomodules" | 5021 _noaomodules="sdl $_noaomodules" |
5022 fi | 5022 fi |
5023 echores "$_sdl" | 5023 echores "$_sdl" |
5024 | 5024 |
5034 EOF | 5034 EOF |
5035 _win32waveout=no | 5035 _win32waveout=no |
5036 cc_check -lwinmm && _win32waveout=yes | 5036 cc_check -lwinmm && _win32waveout=yes |
5037 fi | 5037 fi |
5038 if test "$_win32waveout" = yes ; then | 5038 if test "$_win32waveout" = yes ; then |
5039 _def_win32waveout='#define CONFIG_WIN32WAVEOUT 1' | 5039 def_win32waveout='#define CONFIG_WIN32WAVEOUT 1' |
5040 _libs_mplayer="$_libs_mplayer -lwinmm" | 5040 _libs_mplayer="$_libs_mplayer -lwinmm" |
5041 _aomodules="win32 $_aomodules" | 5041 _aomodules="win32 $_aomodules" |
5042 else | 5042 else |
5043 _def_win32waveout='#undef CONFIG_WIN32WAVEOUT' | 5043 def_win32waveout='#undef CONFIG_WIN32WAVEOUT' |
5044 _noaomodules="win32 $_noaomodules" | 5044 _noaomodules="win32 $_noaomodules" |
5045 fi | 5045 fi |
5046 echores "$_win32waveout" | 5046 echores "$_win32waveout" |
5047 | 5047 |
5048 echocheck "Direct3D" | 5048 echocheck "Direct3D" |
5054 EOF | 5054 EOF |
5055 _direct3d=no | 5055 _direct3d=no |
5056 cc_check -ld3d9 && _direct3d=yes | 5056 cc_check -ld3d9 && _direct3d=yes |
5057 fi | 5057 fi |
5058 if test "$_direct3d" = yes ; then | 5058 if test "$_direct3d" = yes ; then |
5059 _def_direct3d='#define CONFIG_DIRECT3D 1' | 5059 def_direct3d='#define CONFIG_DIRECT3D 1' |
5060 _libs_mplayer="$_libs_mplayer -ld3d9" | 5060 _libs_mplayer="$_libs_mplayer -ld3d9" |
5061 _vomodules="direct3d $_vomodules" | 5061 _vomodules="direct3d $_vomodules" |
5062 else | 5062 else |
5063 _def_direct3d='#undef CONFIG_DIRECT3D' | 5063 def_direct3d='#undef CONFIG_DIRECT3D' |
5064 _novomodules="direct3d $_novomodules" | 5064 _novomodules="direct3d $_novomodules" |
5065 fi | 5065 fi |
5066 echores "$_direct3d" | 5066 echores "$_direct3d" |
5067 | 5067 |
5068 echocheck "Directx" | 5068 echocheck "Directx" |
5075 EOF | 5075 EOF |
5076 _directx=no | 5076 _directx=no |
5077 cc_check -lgdi32 && _directx=yes | 5077 cc_check -lgdi32 && _directx=yes |
5078 fi | 5078 fi |
5079 if test "$_directx" = yes ; then | 5079 if test "$_directx" = yes ; then |
5080 _def_directx='#define CONFIG_DIRECTX 1' | 5080 def_directx='#define CONFIG_DIRECTX 1' |
5081 _libs_mplayer="$_libs_mplayer -lgdi32" | 5081 _libs_mplayer="$_libs_mplayer -lgdi32" |
5082 _vomodules="directx $_vomodules" | 5082 _vomodules="directx $_vomodules" |
5083 _aomodules="dsound $_aomodules" | 5083 _aomodules="dsound $_aomodules" |
5084 else | 5084 else |
5085 _def_directx='#undef CONFIG_DIRECTX' | 5085 def_directx='#undef CONFIG_DIRECTX' |
5086 _novomodules="directx $_novomodules" | 5086 _novomodules="directx $_novomodules" |
5087 _noaomodules="dsound $_noaomodules" | 5087 _noaomodules="dsound $_noaomodules" |
5088 fi | 5088 fi |
5089 echores "$_directx" | 5089 echores "$_directx" |
5090 | 5090 |
5102 cc_check $_inc_tmp && _dxr2=yes && \ | 5102 cc_check $_inc_tmp && _dxr2=yes && \ |
5103 _inc_extra="$_inc_extra $_inc_tmp" && break | 5103 _inc_extra="$_inc_extra $_inc_tmp" && break |
5104 done | 5104 done |
5105 fi | 5105 fi |
5106 if test "$_dxr2" = yes; then | 5106 if test "$_dxr2" = yes; then |
5107 _def_dxr2='#define CONFIG_DXR2 1' | 5107 def_dxr2='#define CONFIG_DXR2 1' |
5108 _aomodules="dxr2 $_aomodules" | 5108 _aomodules="dxr2 $_aomodules" |
5109 _vomodules="dxr2 $_vomodules" | 5109 _vomodules="dxr2 $_vomodules" |
5110 else | 5110 else |
5111 _def_dxr2='#undef CONFIG_DXR2' | 5111 def_dxr2='#undef CONFIG_DXR2' |
5112 _noaomodules="dxr2 $_noaomodules" | 5112 _noaomodules="dxr2 $_noaomodules" |
5113 _novomodules="dxr2 $_novomodules" | 5113 _novomodules="dxr2 $_novomodules" |
5114 fi | 5114 fi |
5115 echores "$_dxr2" | 5115 echores "$_dxr2" |
5116 | 5116 |
5122 EOF | 5122 EOF |
5123 _dxr3=no | 5123 _dxr3=no |
5124 cc_check && _dxr3=yes | 5124 cc_check && _dxr3=yes |
5125 fi | 5125 fi |
5126 if test "$_dxr3" = yes ; then | 5126 if test "$_dxr3" = yes ; then |
5127 _def_dxr3='#define CONFIG_DXR3 1' | 5127 def_dxr3='#define CONFIG_DXR3 1' |
5128 _vomodules="dxr3 $_vomodules" | 5128 _vomodules="dxr3 $_vomodules" |
5129 else | 5129 else |
5130 _def_dxr3='#undef CONFIG_DXR3' | 5130 def_dxr3='#undef CONFIG_DXR3' |
5131 _novomodules="dxr3 $_novomodules" | 5131 _novomodules="dxr3 $_novomodules" |
5132 fi | 5132 fi |
5133 echores "$_dxr3" | 5133 echores "$_dxr3" |
5134 | 5134 |
5135 | 5135 |
5151 EOF | 5151 EOF |
5152 _ivtv=no | 5152 _ivtv=no |
5153 cc_check && _ivtv=yes | 5153 cc_check && _ivtv=yes |
5154 fi | 5154 fi |
5155 if test "$_ivtv" = yes ; then | 5155 if test "$_ivtv" = yes ; then |
5156 _def_ivtv='#define CONFIG_IVTV 1' | 5156 def_ivtv='#define CONFIG_IVTV 1' |
5157 _vomodules="ivtv $_vomodules" | 5157 _vomodules="ivtv $_vomodules" |
5158 _aomodules="ivtv $_aomodules" | 5158 _aomodules="ivtv $_aomodules" |
5159 else | 5159 else |
5160 _def_ivtv='#undef CONFIG_IVTV' | 5160 def_ivtv='#undef CONFIG_IVTV' |
5161 _novomodules="ivtv $_novomodules" | 5161 _novomodules="ivtv $_novomodules" |
5162 _noaomodules="ivtv $_noaomodules" | 5162 _noaomodules="ivtv $_noaomodules" |
5163 fi | 5163 fi |
5164 echores "$_ivtv" | 5164 echores "$_ivtv" |
5165 | 5165 |
5184 EOF | 5184 EOF |
5185 _v4l2=no | 5185 _v4l2=no |
5186 cc_check && _v4l2=yes | 5186 cc_check && _v4l2=yes |
5187 fi | 5187 fi |
5188 if test "$_v4l2" = yes ; then | 5188 if test "$_v4l2" = yes ; then |
5189 _def_v4l2='#define CONFIG_V4L2_DECODER 1' | 5189 def_v4l2='#define CONFIG_V4L2_DECODER 1' |
5190 _vomodules="v4l2 $_vomodules" | 5190 _vomodules="v4l2 $_vomodules" |
5191 _aomodules="v4l2 $_aomodules" | 5191 _aomodules="v4l2 $_aomodules" |
5192 else | 5192 else |
5193 _def_v4l2='#undef CONFIG_V4L2_DECODER' | 5193 def_v4l2='#undef CONFIG_V4L2_DECODER' |
5194 _novomodules="v4l2 $_novomodules" | 5194 _novomodules="v4l2 $_novomodules" |
5195 _noaomodules="v4l2 $_noaomodules" | 5195 _noaomodules="v4l2 $_noaomodules" |
5196 fi | 5196 fi |
5197 echores "$_v4l2" | 5197 echores "$_v4l2" |
5198 | 5198 |
5212 EOF | 5212 EOF |
5213 _ossaudio=no | 5213 _ossaudio=no |
5214 cc_check && _ossaudio=yes | 5214 cc_check && _ossaudio=yes |
5215 fi | 5215 fi |
5216 if test "$_ossaudio" = yes ; then | 5216 if test "$_ossaudio" = yes ; then |
5217 _def_ossaudio='#define CONFIG_OSS_AUDIO 1' | 5217 def_ossaudio='#define CONFIG_OSS_AUDIO 1' |
5218 _aomodules="oss $_aomodules" | 5218 _aomodules="oss $_aomodules" |
5219 if test "$_linux_devfs" = yes; then | 5219 if test "$_linux_devfs" = yes; then |
5220 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"' | 5220 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"' |
5221 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"' | 5221 def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"' |
5222 else | 5222 else |
5223 cat > $TMPC << EOF | 5223 cat > $TMPC << EOF |
5224 #include <sys/ioctl.h> | 5224 #include <sys/ioctl.h> |
5225 #include <$_soundcard_header> | 5225 #include <$_soundcard_header> |
5226 #ifdef OPEN_SOUND_SYSTEM | 5226 #ifdef OPEN_SOUND_SYSTEM |
5230 #endif | 5230 #endif |
5231 EOF | 5231 EOF |
5232 _real_ossaudio=no | 5232 _real_ossaudio=no |
5233 cc_check && _real_ossaudio=yes | 5233 cc_check && _real_ossaudio=yes |
5234 if test "$_real_ossaudio" = yes; then | 5234 if test "$_real_ossaudio" = yes; then |
5235 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' | 5235 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' |
5236 elif netbsd || openbsd ; then | 5236 elif netbsd || openbsd ; then |
5237 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"' | 5237 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"' |
5238 _ld_extra="$_ld_extra -lossaudio" | 5238 _ld_extra="$_ld_extra -lossaudio" |
5239 else | 5239 else |
5240 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' | 5240 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' |
5241 fi | 5241 fi |
5242 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' | 5242 def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' |
5243 fi | 5243 fi |
5244 else | 5244 else |
5245 _def_ossaudio='#undef CONFIG_OSS_AUDIO' | 5245 def_ossaudio='#undef CONFIG_OSS_AUDIO' |
5246 _def_ossaudio_devdsp='#define PATH_DEV_DSP ""' | 5246 def_ossaudio_devdsp='#define PATH_DEV_DSP ""' |
5247 _def_ossaudio_devmixer='#define PATH_DEV_MIXER ""' | 5247 def_ossaudio_devmixer='#define PATH_DEV_MIXER ""' |
5248 _noaomodules="oss $_noaomodules" | 5248 _noaomodules="oss $_noaomodules" |
5249 fi | 5249 fi |
5250 echores "$_ossaudio" | 5250 echores "$_ossaudio" |
5251 | 5251 |
5252 | 5252 |
5263 | 5263 |
5264 fi | 5264 fi |
5265 fi | 5265 fi |
5266 | 5266 |
5267 if test "$_arts" = yes ; then | 5267 if test "$_arts" = yes ; then |
5268 _def_arts='#define CONFIG_ARTS 1' | 5268 def_arts='#define CONFIG_ARTS 1' |
5269 _aomodules="arts $_aomodules" | 5269 _aomodules="arts $_aomodules" |
5270 _libs_mplayer="$_libs_mplayer `artsc-config --libs`" | 5270 _libs_mplayer="$_libs_mplayer `artsc-config --libs`" |
5271 _inc_extra="$_inc_extra `artsc-config --cflags`" | 5271 _inc_extra="$_inc_extra `artsc-config --cflags`" |
5272 else | 5272 else |
5273 _noaomodules="arts $_noaomodules" | 5273 _noaomodules="arts $_noaomodules" |
5289 fi | 5289 fi |
5290 fi | 5290 fi |
5291 echores "$_esd" | 5291 echores "$_esd" |
5292 | 5292 |
5293 if test "$_esd" = yes ; then | 5293 if test "$_esd" = yes ; then |
5294 _def_esd='#define CONFIG_ESD 1' | 5294 def_esd='#define CONFIG_ESD 1' |
5295 _aomodules="esd $_aomodules" | 5295 _aomodules="esd $_aomodules" |
5296 _libs_mplayer="$_libs_mplayer `esd-config --libs`" | 5296 _libs_mplayer="$_libs_mplayer `esd-config --libs`" |
5297 _inc_extra="$_inc_extra `esd-config --cflags`" | 5297 _inc_extra="$_inc_extra `esd-config --cflags`" |
5298 | 5298 |
5299 echocheck "esd_get_latency()" | 5299 echocheck "esd_get_latency()" |
5300 cat > $TMPC << EOF | 5300 cat > $TMPC << EOF |
5301 #include <esd.h> | 5301 #include <esd.h> |
5302 int main(void) { return esd_get_latency(0); } | 5302 int main(void) { return esd_get_latency(0); } |
5303 EOF | 5303 EOF |
5304 cc_check `esd-config --libs` `esd-config --cflags` && _esd_latency=yes && _def_esd_latency='#define CONFIG_ESD_LATENCY' | 5304 cc_check `esd-config --libs` `esd-config --cflags` && _esd_latency=yes && def_esd_latency='#define CONFIG_ESD_LATENCY' |
5305 echores "$_esd_latency" | 5305 echores "$_esd_latency" |
5306 else | 5306 else |
5307 _def_esd='#undef CONFIG_ESD' | 5307 def_esd='#undef CONFIG_ESD' |
5308 _def_esd_latency='#undef CONFIG_ESD_LATENCY' | 5308 def_esd_latency='#undef CONFIG_ESD_LATENCY' |
5309 _noaomodules="esd $_noaomodules" | 5309 _noaomodules="esd $_noaomodules" |
5310 fi | 5310 fi |
5311 | 5311 |
5312 | 5312 |
5313 echocheck "NAS" | 5313 echocheck "NAS" |
5318 EOF | 5318 EOF |
5319 _nas=no | 5319 _nas=no |
5320 cc_check $_ld_lm -laudio -lXt && _nas=yes | 5320 cc_check $_ld_lm -laudio -lXt && _nas=yes |
5321 fi | 5321 fi |
5322 if test "$_nas" = yes ; then | 5322 if test "$_nas" = yes ; then |
5323 _def_nas='#define CONFIG_NAS 1' | 5323 def_nas='#define CONFIG_NAS 1' |
5324 _libs_mplayer="$_libs_mplayer -laudio -lXt" | 5324 _libs_mplayer="$_libs_mplayer -laudio -lXt" |
5325 _aomodules="nas $_aomodules" | 5325 _aomodules="nas $_aomodules" |
5326 else | 5326 else |
5327 _noaomodules="nas $_noaomodules" | 5327 _noaomodules="nas $_noaomodules" |
5328 _def_nas='#undef CONFIG_NAS' | 5328 def_nas='#undef CONFIG_NAS' |
5329 fi | 5329 fi |
5330 echores "$_nas" | 5330 echores "$_nas" |
5331 | 5331 |
5332 | 5332 |
5333 echocheck "pulse" | 5333 echocheck "pulse" |
5344 fi | 5344 fi |
5345 fi | 5345 fi |
5346 echores "$_pulse" | 5346 echores "$_pulse" |
5347 | 5347 |
5348 if test "$_pulse" = yes ; then | 5348 if test "$_pulse" = yes ; then |
5349 _def_pulse='#define CONFIG_PULSE 1' | 5349 def_pulse='#define CONFIG_PULSE 1' |
5350 _aomodules="pulse $_aomodules" | 5350 _aomodules="pulse $_aomodules" |
5351 _libs_mplayer="$_libs_mplayer `$_pkg_config --libs libpulse`" | 5351 _libs_mplayer="$_libs_mplayer `$_pkg_config --libs libpulse`" |
5352 _inc_extra="$_inc_extra `$_pkg_config --cflags libpulse`" | 5352 _inc_extra="$_inc_extra `$_pkg_config --cflags libpulse`" |
5353 else | 5353 else |
5354 _def_pulse='#undef CONFIG_PULSE' | 5354 def_pulse='#undef CONFIG_PULSE' |
5355 _noaomodules="pulse $_noaomodules" | 5355 _noaomodules="pulse $_noaomodules" |
5356 fi | 5356 fi |
5357 | 5357 |
5358 | 5358 |
5359 echocheck "JACK" | 5359 echocheck "JACK" |
5373 _jack=no | 5373 _jack=no |
5374 fi | 5374 fi |
5375 fi | 5375 fi |
5376 | 5376 |
5377 if test "$_jack" = yes ; then | 5377 if test "$_jack" = yes ; then |
5378 _def_jack='#define CONFIG_JACK 1' | 5378 def_jack='#define CONFIG_JACK 1' |
5379 _aomodules="jack $_aomodules" | 5379 _aomodules="jack $_aomodules" |
5380 else | 5380 else |
5381 _noaomodules="jack $_noaomodules" | 5381 _noaomodules="jack $_noaomodules" |
5382 fi | 5382 fi |
5383 echores "$_jack" | 5383 echores "$_jack" |
5397 return 0; | 5397 return 0; |
5398 } | 5398 } |
5399 EOF | 5399 EOF |
5400 for I in "-lopenal" "-lopenal32" "-framework OpenAL" ; do | 5400 for I in "-lopenal" "-lopenal32" "-framework OpenAL" ; do |
5401 cc_check $I && _openal=yes && break | 5401 cc_check $I && _openal=yes && break |
5402 cc_check -DOPENAL_AL_H=1 $I && _def_openal_h='#define OPENAL_AL_H 1' && _openal=yes && break | 5402 cc_check -DOPENAL_AL_H=1 $I && def_openal_h='#define OPENAL_AL_H 1' && _openal=yes && break |
5403 done | 5403 done |
5404 test "$_openal" = yes && _libs_mplayer="$_libs_mplayer $I" | 5404 test "$_openal" = yes && _libs_mplayer="$_libs_mplayer $I" |
5405 fi | 5405 fi |
5406 if test "$_openal" = yes ; then | 5406 if test "$_openal" = yes ; then |
5407 _def_openal='#define CONFIG_OPENAL 1' | 5407 def_openal='#define CONFIG_OPENAL 1' |
5408 _aomodules="openal $_aomodules" | 5408 _aomodules="openal $_aomodules" |
5409 else | 5409 else |
5410 _noaomodules="openal $_noaomodules" | 5410 _noaomodules="openal $_noaomodules" |
5411 fi | 5411 fi |
5412 echores "$_openal" | 5412 echores "$_openal" |
5464 #endif | 5464 #endif |
5465 int main(void) { return 0; } | 5465 int main(void) { return 0; } |
5466 EOF | 5466 EOF |
5467 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-alsa' | 5467 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-alsa' |
5468 fi | 5468 fi |
5469 _def_alsa='#undef CONFIG_ALSA' | 5469 def_alsa='#undef CONFIG_ALSA' |
5470 _def_alsa5='#undef CONFIG_ALSA5' | 5470 def_alsa5='#undef CONFIG_ALSA5' |
5471 _def_alsa9='#undef CONFIG_ALSA9' | 5471 def_alsa9='#undef CONFIG_ALSA9' |
5472 _def_alsa1x='#undef CONFIG_ALSA1X' | 5472 def_alsa1x='#undef CONFIG_ALSA1X' |
5473 def_sys_asoundlib_h='#undef HAVE_SYS_ASOUNDLIB_H' | 5473 def_sys_asoundlib_h='#undef HAVE_SYS_ASOUNDLIB_H' |
5474 def_alsa_asoundlib_h='#undef HAVE_ALSA_ASOUNDLIB_H' | 5474 def_alsa_asoundlib_h='#undef HAVE_ALSA_ASOUNDLIB_H' |
5475 if test "$_alsaver" ; then | 5475 if test "$_alsaver" ; then |
5476 _alsa=yes | 5476 _alsa=yes |
5477 if test "$_alsaver" = '0.5.x' ; then | 5477 if test "$_alsaver" = '0.5.x' ; then |
5478 _alsa5=yes | 5478 _alsa5=yes |
5479 _aomodules="alsa5 $_aomodules" | 5479 _aomodules="alsa5 $_aomodules" |
5480 _def_alsa5='#define CONFIG_ALSA5 1' | 5480 def_alsa5='#define CONFIG_ALSA5 1' |
5481 def_sys_asoundlib_h='#define HAVE_SYS_ASOUNDLIB_H 1' | 5481 def_sys_asoundlib_h='#define HAVE_SYS_ASOUNDLIB_H 1' |
5482 _res_comment="using alsa 0.5.x and sys/asoundlib.h" | 5482 _res_comment="using alsa 0.5.x and sys/asoundlib.h" |
5483 elif test "$_alsaver" = '0.9.x-sys' ; then | 5483 elif test "$_alsaver" = '0.9.x-sys' ; then |
5484 _alsa9=yes | 5484 _alsa9=yes |
5485 _aomodules="alsa $_aomodules" | 5485 _aomodules="alsa $_aomodules" |
5486 _def_alsa='#define CONFIG_ALSA 1' | 5486 def_alsa='#define CONFIG_ALSA 1' |
5487 _def_alsa9='#define CONFIG_ALSA9 1' | 5487 def_alsa9='#define CONFIG_ALSA9 1' |
5488 def_sys_asoundlib_h='#define HAVE_SYS_ASOUNDLIB_H 1' | 5488 def_sys_asoundlib_h='#define HAVE_SYS_ASOUNDLIB_H 1' |
5489 _res_comment="using alsa 0.9.x and sys/asoundlib.h" | 5489 _res_comment="using alsa 0.9.x and sys/asoundlib.h" |
5490 elif test "$_alsaver" = '0.9.x-alsa' ; then | 5490 elif test "$_alsaver" = '0.9.x-alsa' ; then |
5491 _alsa9=yes | 5491 _alsa9=yes |
5492 _aomodules="alsa $_aomodules" | 5492 _aomodules="alsa $_aomodules" |
5493 _def_alsa='#define CONFIG_ALSA 1' | 5493 def_alsa='#define CONFIG_ALSA 1' |
5494 _def_alsa9='#define CONFIG_ALSA9 1' | 5494 def_alsa9='#define CONFIG_ALSA9 1' |
5495 def_alsa_asoundlib_h='#define HAVE_ALSA_ASOUNDLIB_H 1' | 5495 def_alsa_asoundlib_h='#define HAVE_ALSA_ASOUNDLIB_H 1' |
5496 _res_comment="using alsa 0.9.x and alsa/asoundlib.h" | 5496 _res_comment="using alsa 0.9.x and alsa/asoundlib.h" |
5497 elif test "$_alsaver" = '1.0.x-sys' ; then | 5497 elif test "$_alsaver" = '1.0.x-sys' ; then |
5498 _alsa1x=yes | 5498 _alsa1x=yes |
5499 _aomodules="alsa $_aomodules" | 5499 _aomodules="alsa $_aomodules" |
5500 _def_alsa='#define CONFIG_ALSA 1' | 5500 def_alsa='#define CONFIG_ALSA 1' |
5501 _def_alsa1x="#define CONFIG_ALSA1X 1" | 5501 def_alsa1x="#define CONFIG_ALSA1X 1" |
5502 def_alsa_asoundlib_h='#define HAVE_SYS_ASOUNDLIB_H 1' | 5502 def_alsa_asoundlib_h='#define HAVE_SYS_ASOUNDLIB_H 1' |
5503 _res_comment="using alsa 1.0.x and sys/asoundlib.h" | 5503 _res_comment="using alsa 1.0.x and sys/asoundlib.h" |
5504 elif test "$_alsaver" = '1.0.x-alsa' ; then | 5504 elif test "$_alsaver" = '1.0.x-alsa' ; then |
5505 _alsa1x=yes | 5505 _alsa1x=yes |
5506 _aomodules="alsa $_aomodules" | 5506 _aomodules="alsa $_aomodules" |
5507 _def_alsa='#define CONFIG_ALSA 1' | 5507 def_alsa='#define CONFIG_ALSA 1' |
5508 _def_alsa1x="#define CONFIG_ALSA1X 1" | 5508 def_alsa1x="#define CONFIG_ALSA1X 1" |
5509 def_alsa_asoundlib_h='#define HAVE_ALSA_ASOUNDLIB_H 1' | 5509 def_alsa_asoundlib_h='#define HAVE_ALSA_ASOUNDLIB_H 1' |
5510 _res_comment="using alsa 1.0.x and alsa/asoundlib.h" | 5510 _res_comment="using alsa 1.0.x and alsa/asoundlib.h" |
5511 else | 5511 else |
5512 _alsa=no | 5512 _alsa=no |
5513 _res_comment="unknown version" | 5513 _res_comment="unknown version" |
5528 EOF | 5528 EOF |
5529 _sunaudio=no | 5529 _sunaudio=no |
5530 cc_check && _sunaudio=yes | 5530 cc_check && _sunaudio=yes |
5531 fi | 5531 fi |
5532 if test "$_sunaudio" = yes ; then | 5532 if test "$_sunaudio" = yes ; then |
5533 _def_sunaudio='#define CONFIG_SUN_AUDIO 1' | 5533 def_sunaudio='#define CONFIG_SUN_AUDIO 1' |
5534 _aomodules="sun $_aomodules" | 5534 _aomodules="sun $_aomodules" |
5535 else | 5535 else |
5536 _def_sunaudio='#undef CONFIG_SUN_AUDIO' | 5536 def_sunaudio='#undef CONFIG_SUN_AUDIO' |
5537 _noaomodules="sun $_noaomodules" | 5537 _noaomodules="sun $_noaomodules" |
5538 fi | 5538 fi |
5539 echores "$_sunaudio" | 5539 echores "$_sunaudio" |
5540 | 5540 |
5541 | 5541 |
5564 EOF | 5564 EOF |
5565 _sgiaudio=no | 5565 _sgiaudio=no |
5566 cc_check && _sgiaudio=yes | 5566 cc_check && _sgiaudio=yes |
5567 fi | 5567 fi |
5568 if test "$_sgiaudio" = "yes" ; then | 5568 if test "$_sgiaudio" = "yes" ; then |
5569 _def_sgiaudio='#define CONFIG_SGI_AUDIO 1' | 5569 def_sgiaudio='#define CONFIG_SGI_AUDIO 1' |
5570 _libs_mplayer="$_libs_mplayer -laudio" | 5570 _libs_mplayer="$_libs_mplayer -laudio" |
5571 _aomodules="sgi $_aomodules" | 5571 _aomodules="sgi $_aomodules" |
5572 else | 5572 else |
5573 _def_sgiaudio='#undef CONFIG_SGI_AUDIO' | 5573 def_sgiaudio='#undef CONFIG_SGI_AUDIO' |
5574 _noaomodules="sgi $_noaomodules" | 5574 _noaomodules="sgi $_noaomodules" |
5575 fi | 5575 fi |
5576 echores "$_sgiaudio" | 5576 echores "$_sgiaudio" |
5577 fi #if irix | 5577 fi #if irix |
5578 | 5578 |
5606 | 5606 |
5607 | 5607 |
5608 echocheck "VCD support" | 5608 echocheck "VCD support" |
5609 if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos || mingw32; then | 5609 if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos || mingw32; then |
5610 _inputmodules="vcd $_inputmodules" | 5610 _inputmodules="vcd $_inputmodules" |
5611 _def_vcd='#define CONFIG_VCD 1' | 5611 def_vcd='#define CONFIG_VCD 1' |
5612 _vcd="yes" | 5612 _vcd="yes" |
5613 else | 5613 else |
5614 _def_vcd='#undef CONFIG_VCD' | 5614 def_vcd='#undef CONFIG_VCD' |
5615 _noinputmodules="vcd $_noinputmodules" | 5615 _noinputmodules="vcd $_noinputmodules" |
5616 _res_comment="not supported on this OS" | 5616 _res_comment="not supported on this OS" |
5617 _vcd="no" | 5617 _vcd="no" |
5618 fi | 5618 fi |
5619 echores "$_vcd" | 5619 echores "$_vcd" |
5654 _res_comment="external" | 5654 _res_comment="external" |
5655 fi | 5655 fi |
5656 fi | 5656 fi |
5657 | 5657 |
5658 if test "$_dvdread_internal" = yes; then | 5658 if test "$_dvdread_internal" = yes; then |
5659 _def_dvdread='#define CONFIG_DVDREAD 1' | 5659 def_dvdread='#define CONFIG_DVDREAD 1' |
5660 _inputmodules="dvdread(internal) $_inputmodules" | 5660 _inputmodules="dvdread(internal) $_inputmodules" |
5661 _largefiles=yes | 5661 _largefiles=yes |
5662 _res_comment="internal" | 5662 _res_comment="internal" |
5663 elif test "$_dvdread" = yes; then | 5663 elif test "$_dvdread" = yes; then |
5664 _def_dvdread='#define CONFIG_DVDREAD 1' | 5664 def_dvdread='#define CONFIG_DVDREAD 1' |
5665 _largefiles=yes | 5665 _largefiles=yes |
5666 _ld_extra="$_ld_extra -ldvdread" | 5666 _ld_extra="$_ld_extra -ldvdread" |
5667 _inputmodules="dvdread(external) $_inputmodules" | 5667 _inputmodules="dvdread(external) $_inputmodules" |
5668 _res_comment="external" | 5668 _res_comment="external" |
5669 else | 5669 else |
5670 _def_dvdread='#undef CONFIG_DVDREAD' | 5670 def_dvdread='#undef CONFIG_DVDREAD' |
5671 _noinputmodules="dvdread $_noinputmodules" | 5671 _noinputmodules="dvdread $_noinputmodules" |
5672 fi | 5672 fi |
5673 echores "$_dvdread" | 5673 echores "$_dvdread" |
5674 | 5674 |
5675 | 5675 |
5679 test "$_dvdread_internal" = yes && _libdvdcss_internal=yes | 5679 test "$_dvdread_internal" = yes && _libdvdcss_internal=yes |
5680 hpux && test "$_hpux_scsi_h" = no && _libdvdcss_internal=no | 5680 hpux && test "$_hpux_scsi_h" = no && _libdvdcss_internal=no |
5681 fi | 5681 fi |
5682 if test "$_libdvdcss_internal" = yes ; then | 5682 if test "$_libdvdcss_internal" = yes ; then |
5683 if linux || netbsd || openbsd || bsdos ; then | 5683 if linux || netbsd || openbsd || bsdos ; then |
5684 _def_dvd_linux='#define HAVE_LINUX_DVD_STRUCT 1' | 5684 def_dvd_linux='#define HAVE_LINUX_DVD_STRUCT 1' |
5685 openbsd && _def_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1' | 5685 openbsd && def_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1' |
5686 elif freebsd || dragonfly ; then | 5686 elif freebsd || dragonfly ; then |
5687 _def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' | 5687 def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' |
5688 elif darwin ; then | 5688 elif darwin ; then |
5689 _def_dvd_darwin='#define DARWIN_DVD_IOCTL' | 5689 def_dvd_darwin='#define DARWIN_DVD_IOCTL' |
5690 _ld_extra="$_ld_extra -framework IOKit" | 5690 _ld_extra="$_ld_extra -framework IOKit" |
5691 elif cygwin ; then | 5691 elif cygwin ; then |
5692 cflags_libdvdcss="-DSYS_CYGWIN -DWIN32" | 5692 cflags_libdvdcss="-DSYS_CYGWIN -DWIN32" |
5693 elif beos ; then | 5693 elif beos ; then |
5694 cflags_libdvdcss="-DSYS_BEOS" | 5694 cflags_libdvdcss="-DSYS_BEOS" |
5752 && _ld_extra="$_ld_extra $_ld_tmp" && _inc_extra="$_inc_extra $_inc_tmp" | 5752 && _ld_extra="$_ld_extra $_ld_tmp" && _inc_extra="$_inc_extra $_inc_tmp" |
5753 fi | 5753 fi |
5754 fi | 5754 fi |
5755 if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then | 5755 if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then |
5756 _cdda='yes' | 5756 _cdda='yes' |
5757 _def_libcdio='#define CONFIG_LIBCDIO' | 5757 def_libcdio='#define CONFIG_LIBCDIO' |
5758 _def_havelibcdio='yes' | 5758 def_havelibcdio='yes' |
5759 else | 5759 else |
5760 if test "$_cdparanoia" = yes ; then | 5760 if test "$_cdparanoia" = yes ; then |
5761 _res_comment="using cdparanoia" | 5761 _res_comment="using cdparanoia" |
5762 fi | 5762 fi |
5763 _def_libcdio='#undef CONFIG_LIBCDIO' | 5763 def_libcdio='#undef CONFIG_LIBCDIO' |
5764 _def_havelibcdio='no' | 5764 def_havelibcdio='no' |
5765 fi | 5765 fi |
5766 echores "$_libcdio" | 5766 echores "$_libcdio" |
5767 | 5767 |
5768 if test "$_cdda" = yes ; then | 5768 if test "$_cdda" = yes ; then |
5769 test $_cddb = auto && test $_network = yes && _cddb=yes | 5769 test $_cddb = auto && test $_network = yes && _cddb=yes |
5770 _def_cdparanoia='#define CONFIG_CDDA' | 5770 def_cdparanoia='#define CONFIG_CDDA' |
5771 _inputmodules="cdda $_inputmodules" | 5771 _inputmodules="cdda $_inputmodules" |
5772 else | 5772 else |
5773 _def_cdparanoia='#undef CONFIG_CDDA' | 5773 def_cdparanoia='#undef CONFIG_CDDA' |
5774 _noinputmodules="cdda $_noinputmodules" | 5774 _noinputmodules="cdda $_noinputmodules" |
5775 fi | 5775 fi |
5776 | 5776 |
5777 if test "$_cddb" = yes ; then | 5777 if test "$_cddb" = yes ; then |
5778 _def_cddb='#define CONFIG_CDDB' | 5778 def_cddb='#define CONFIG_CDDB' |
5779 _inputmodules="cddb $_inputmodules" | 5779 _inputmodules="cddb $_inputmodules" |
5780 else | 5780 else |
5781 _cddb=no | 5781 _cddb=no |
5782 _def_cddb='#undef CONFIG_CDDB' | 5782 def_cddb='#undef CONFIG_CDDB' |
5783 _noinputmodules="cddb $_noinputmodules" | 5783 _noinputmodules="cddb $_noinputmodules" |
5784 fi | 5784 fi |
5785 | 5785 |
5786 echocheck "bitmap font support" | 5786 echocheck "bitmap font support" |
5787 if test "$_bitmap_font" = yes ; then | 5787 if test "$_bitmap_font" = yes ; then |
5788 _def_bitmap_font="#define CONFIG_BITMAP_FONT 1" | 5788 def_bitmap_font="#define CONFIG_BITMAP_FONT 1" |
5789 else | 5789 else |
5790 _def_bitmap_font="#undef CONFIG_BITMAP_FONT" | 5790 def_bitmap_font="#undef CONFIG_BITMAP_FONT" |
5791 fi | 5791 fi |
5792 echores "$_bitmap_font" | 5792 echores "$_bitmap_font" |
5793 | 5793 |
5794 | 5794 |
5795 echocheck "freetype >= 2.0.9" | 5795 echocheck "freetype >= 2.0.9" |
5833 else | 5833 else |
5834 _freetype=no | 5834 _freetype=no |
5835 fi | 5835 fi |
5836 fi | 5836 fi |
5837 if test "$_freetype" = yes ; then | 5837 if test "$_freetype" = yes ; then |
5838 _def_freetype='#define CONFIG_FREETYPE' | 5838 def_freetype='#define CONFIG_FREETYPE' |
5839 _inc_extra="$_inc_extra `$_freetypeconfig --cflags`" | 5839 _inc_extra="$_inc_extra `$_freetypeconfig --cflags`" |
5840 _ld_extra="$_ld_extra `$_freetypeconfig --libs`" | 5840 _ld_extra="$_ld_extra `$_freetypeconfig --libs`" |
5841 else | 5841 else |
5842 _def_freetype='#undef CONFIG_FREETYPE' | 5842 def_freetype='#undef CONFIG_FREETYPE' |
5843 fi | 5843 fi |
5844 echores "$_freetype" | 5844 echores "$_freetype" |
5845 | 5845 |
5846 if test "$_freetype" = no ; then | 5846 if test "$_freetype" = no ; then |
5847 _fontconfig=no | 5847 _fontconfig=no |
5873 cc_check $_inc_tmp $_ld_tmp && _fontconfig=yes \ | 5873 cc_check $_inc_tmp $_ld_tmp && _fontconfig=yes \ |
5874 && _ld_extra="$_ld_extra $_ld_tmp" && _inc_extra="$_inc_extra $_inc_tmp" | 5874 && _ld_extra="$_ld_extra $_ld_tmp" && _inc_extra="$_inc_extra $_inc_tmp" |
5875 fi | 5875 fi |
5876 fi | 5876 fi |
5877 if test "$_fontconfig" = yes ; then | 5877 if test "$_fontconfig" = yes ; then |
5878 _def_fontconfig='#define CONFIG_FONTCONFIG' | 5878 def_fontconfig='#define CONFIG_FONTCONFIG' |
5879 else | 5879 else |
5880 _def_fontconfig='#undef CONFIG_FONTCONFIG' | 5880 def_fontconfig='#undef CONFIG_FONTCONFIG' |
5881 fi | 5881 fi |
5882 echores "$_fontconfig" | 5882 echores "$_fontconfig" |
5883 | 5883 |
5884 | 5884 |
5885 echocheck "SSA/ASS support" | 5885 echocheck "SSA/ASS support" |
5903 if test "$_ass" = no ; then | 5903 if test "$_ass" = no ; then |
5904 _res_comment="FreeType >= 2.1.8 needed" | 5904 _res_comment="FreeType >= 2.1.8 needed" |
5905 fi | 5905 fi |
5906 fi | 5906 fi |
5907 if test "$_ass" = yes ; then | 5907 if test "$_ass" = yes ; then |
5908 _def_ass='#define CONFIG_ASS' | 5908 def_ass='#define CONFIG_ASS' |
5909 else | 5909 else |
5910 _def_ass='#undef CONFIG_ASS' | 5910 def_ass='#undef CONFIG_ASS' |
5911 fi | 5911 fi |
5912 echores "$_ass" | 5912 echores "$_ass" |
5913 | 5913 |
5914 | 5914 |
5915 echocheck "fribidi with charsets" | 5915 echocheck "fribidi with charsets" |
5933 else | 5933 else |
5934 _fribidi=no | 5934 _fribidi=no |
5935 fi | 5935 fi |
5936 fi | 5936 fi |
5937 if test "$_fribidi" = yes ; then | 5937 if test "$_fribidi" = yes ; then |
5938 _def_fribidi='#define CONFIG_FRIBIDI' | 5938 def_fribidi='#define CONFIG_FRIBIDI' |
5939 _inc_extra="$_inc_extra `$_fribidiconfig --cflags`" | 5939 _inc_extra="$_inc_extra `$_fribidiconfig --cflags`" |
5940 _ld_extra="$_ld_extra `$_fribidiconfig --libs`" | 5940 _ld_extra="$_ld_extra `$_fribidiconfig --libs`" |
5941 else | 5941 else |
5942 _def_fribidi='#undef CONFIG_FRIBIDI' | 5942 def_fribidi='#undef CONFIG_FRIBIDI' |
5943 fi | 5943 fi |
5944 echores "$_fribidi" | 5944 echores "$_fribidi" |
5945 | 5945 |
5946 | 5946 |
5947 echocheck "ENCA" | 5947 echocheck "ENCA" |
5958 EOF | 5958 EOF |
5959 _enca=no | 5959 _enca=no |
5960 cc_check -lenca $_ld_lm && _enca=yes | 5960 cc_check -lenca $_ld_lm && _enca=yes |
5961 fi | 5961 fi |
5962 if test "$_enca" = yes ; then | 5962 if test "$_enca" = yes ; then |
5963 _def_enca='#define CONFIG_ENCA 1' | 5963 def_enca='#define CONFIG_ENCA 1' |
5964 _ld_extra="$_ld_extra -lenca" | 5964 _ld_extra="$_ld_extra -lenca" |
5965 else | 5965 else |
5966 _def_enca='#undef CONFIG_ENCA' | 5966 def_enca='#undef CONFIG_ENCA' |
5967 fi | 5967 fi |
5968 echores "$_enca" | 5968 echores "$_enca" |
5969 | 5969 |
5970 | 5970 |
5971 echocheck "zlib" | 5971 echocheck "zlib" |
5974 int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; } | 5974 int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; } |
5975 EOF | 5975 EOF |
5976 _zlib=no | 5976 _zlib=no |
5977 cc_check -lz && _zlib=yes | 5977 cc_check -lz && _zlib=yes |
5978 if test "$_zlib" = yes ; then | 5978 if test "$_zlib" = yes ; then |
5979 _def_zlib='#define CONFIG_ZLIB 1' | 5979 def_zlib='#define CONFIG_ZLIB 1' |
5980 _ld_extra="$_ld_extra -lz" | 5980 _ld_extra="$_ld_extra -lz" |
5981 else | 5981 else |
5982 _def_zlib='#define CONFIG_ZLIB 0' | 5982 def_zlib='#define CONFIG_ZLIB 0' |
5983 _libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// -e s/TSCC_DECODER// ` | 5983 _libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// -e s/TSCC_DECODER// ` |
5984 _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// ` | 5984 _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// ` |
5985 fi | 5985 fi |
5986 echores "$_zlib" | 5986 echores "$_zlib" |
5987 | 5987 |
6016 _rtc=no | 6016 _rtc=no |
6017 cc_check && _rtc=yes | 6017 cc_check && _rtc=yes |
6018 ppc && _rtc=no | 6018 ppc && _rtc=no |
6019 fi | 6019 fi |
6020 if test "$_rtc" = yes ; then | 6020 if test "$_rtc" = yes ; then |
6021 _def_rtc='#define HAVE_RTC 1' | 6021 def_rtc='#define HAVE_RTC 1' |
6022 else | 6022 else |
6023 _def_rtc='#undef HAVE_RTC' | 6023 def_rtc='#undef HAVE_RTC' |
6024 fi | 6024 fi |
6025 echores "$_rtc" | 6025 echores "$_rtc" |
6026 | 6026 |
6027 | 6027 |
6028 echocheck "liblzo2 support" | 6028 echocheck "liblzo2 support" |
6033 int main(void) { lzo_init();return 0; } | 6033 int main(void) { lzo_init();return 0; } |
6034 EOF | 6034 EOF |
6035 cc_check -llzo2 && _liblzo=yes | 6035 cc_check -llzo2 && _liblzo=yes |
6036 fi | 6036 fi |
6037 if test "$_liblzo" = yes ; then | 6037 if test "$_liblzo" = yes ; then |
6038 _def_liblzo='#define CONFIG_LIBLZO 1' | 6038 def_liblzo='#define CONFIG_LIBLZO 1' |
6039 _ld_extra="$_ld_extra -llzo2" | 6039 _ld_extra="$_ld_extra -llzo2" |
6040 _codecmodules="liblzo $_codecmodules" | 6040 _codecmodules="liblzo $_codecmodules" |
6041 else | 6041 else |
6042 _def_liblzo='#undef CONFIG_LIBLZO' | 6042 def_liblzo='#undef CONFIG_LIBLZO' |
6043 _nocodecmodules="liblzo $_nocodecmodules" | 6043 _nocodecmodules="liblzo $_nocodecmodules" |
6044 fi | 6044 fi |
6045 echores "$_liblzo" | 6045 echores "$_liblzo" |
6046 | 6046 |
6047 | 6047 |
6053 int main(void) { return 0; } | 6053 int main(void) { return 0; } |
6054 EOF | 6054 EOF |
6055 cc_check -lmad && _mad=yes | 6055 cc_check -lmad && _mad=yes |
6056 fi | 6056 fi |
6057 if test "$_mad" = yes ; then | 6057 if test "$_mad" = yes ; then |
6058 _def_mad='#define CONFIG_LIBMAD 1' | 6058 def_mad='#define CONFIG_LIBMAD 1' |
6059 _ld_extra="$_ld_extra -lmad" | 6059 _ld_extra="$_ld_extra -lmad" |
6060 _codecmodules="libmad $_codecmodules" | 6060 _codecmodules="libmad $_codecmodules" |
6061 else | 6061 else |
6062 _def_mad='#undef CONFIG_LIBMAD' | 6062 def_mad='#undef CONFIG_LIBMAD' |
6063 _nocodecmodules="libmad $_nocodecmodules" | 6063 _nocodecmodules="libmad $_nocodecmodules" |
6064 fi | 6064 fi |
6065 echores "$_mad" | 6065 echores "$_mad" |
6066 | 6066 |
6067 echocheck "Twolame" | 6067 echocheck "Twolame" |
6072 EOF | 6072 EOF |
6073 _twolame=no | 6073 _twolame=no |
6074 cc_check -ltwolame $_ld_lm && _twolame=yes | 6074 cc_check -ltwolame $_ld_lm && _twolame=yes |
6075 fi | 6075 fi |
6076 if test "$_twolame" = yes ; then | 6076 if test "$_twolame" = yes ; then |
6077 _def_twolame='#define CONFIG_TWOLAME 1' | 6077 def_twolame='#define CONFIG_TWOLAME 1' |
6078 _libs_mencoder="$_libs_mencoder -ltwolame" | 6078 _libs_mencoder="$_libs_mencoder -ltwolame" |
6079 _codecmodules="twolame $_codecmodules" | 6079 _codecmodules="twolame $_codecmodules" |
6080 else | 6080 else |
6081 _def_twolame='#undef CONFIG_TWOLAME' | 6081 def_twolame='#undef CONFIG_TWOLAME' |
6082 _nocodecmodules="twolame $_nocodecmodules" | 6082 _nocodecmodules="twolame $_nocodecmodules" |
6083 fi | 6083 fi |
6084 echores "$_twolame" | 6084 echores "$_twolame" |
6085 | 6085 |
6086 echocheck "Toolame" | 6086 echocheck "Toolame" |
6095 EOF | 6095 EOF |
6096 cc_check -ltoolame $_ld_lm && _toolame=yes | 6096 cc_check -ltoolame $_ld_lm && _toolame=yes |
6097 fi | 6097 fi |
6098 fi | 6098 fi |
6099 if test "$_toolame" = yes ; then | 6099 if test "$_toolame" = yes ; then |
6100 _def_toolame='#define CONFIG_TOOLAME 1' | 6100 def_toolame='#define CONFIG_TOOLAME 1' |
6101 _libs_mencoder="$_libs_mencoder -ltoolame" | 6101 _libs_mencoder="$_libs_mencoder -ltoolame" |
6102 _codecmodules="toolame $_codecmodules" | 6102 _codecmodules="toolame $_codecmodules" |
6103 else | 6103 else |
6104 _def_toolame='#undef CONFIG_TOOLAME' | 6104 def_toolame='#undef CONFIG_TOOLAME' |
6105 _nocodecmodules="toolame $_nocodecmodules" | 6105 _nocodecmodules="toolame $_nocodecmodules" |
6106 fi | 6106 fi |
6107 if test "$_toolamedir" ; then | 6107 if test "$_toolamedir" ; then |
6108 _res_comment="using $_toolamedir" | 6108 _res_comment="using $_toolamedir" |
6109 fi | 6109 fi |
6128 EOF | 6128 EOF |
6129 cc_check -lvorbis -logg $_ld_lm && _libvorbis=yes | 6129 cc_check -lvorbis -logg $_ld_lm && _libvorbis=yes |
6130 fi | 6130 fi |
6131 if test "$_tremor_internal" = yes ; then | 6131 if test "$_tremor_internal" = yes ; then |
6132 _vorbis=yes | 6132 _vorbis=yes |
6133 _def_vorbis='#define CONFIG_OGGVORBIS 1' | 6133 def_vorbis='#define CONFIG_OGGVORBIS 1' |
6134 _def_tremor='#define CONFIG_TREMOR 1' | 6134 def_tremor='#define CONFIG_TREMOR 1' |
6135 _codecmodules="tremor(internal) $_codecmodules" | 6135 _codecmodules="tremor(internal) $_codecmodules" |
6136 _res_comment="internal Tremor" | 6136 _res_comment="internal Tremor" |
6137 if test "$_tremor_low" = yes ; then | 6137 if test "$_tremor_low" = yes ; then |
6138 cflags_tremor_low="-D_LOW_ACCURACY_" | 6138 cflags_tremor_low="-D_LOW_ACCURACY_" |
6139 _res_comment="internal low accuracy Tremor" | 6139 _res_comment="internal low accuracy Tremor" |
6140 fi | 6140 fi |
6141 elif test "$_tremor" = yes ; then | 6141 elif test "$_tremor" = yes ; then |
6142 _vorbis=yes | 6142 _vorbis=yes |
6143 _def_vorbis='#define CONFIG_OGGVORBIS 1' | 6143 def_vorbis='#define CONFIG_OGGVORBIS 1' |
6144 _def_tremor='#define CONFIG_TREMOR 1' | 6144 def_tremor='#define CONFIG_TREMOR 1' |
6145 _codecmodules="tremor(external) $_codecmodules" | 6145 _codecmodules="tremor(external) $_codecmodules" |
6146 _res_comment="external Tremor" | 6146 _res_comment="external Tremor" |
6147 _ld_extra="$_ld_extra -logg -lvorbisidec" | 6147 _ld_extra="$_ld_extra -logg -lvorbisidec" |
6148 elif test "$_libvorbis" = yes ; then | 6148 elif test "$_libvorbis" = yes ; then |
6149 _vorbis=yes | 6149 _vorbis=yes |
6150 _def_vorbis='#define CONFIG_OGGVORBIS 1' | 6150 def_vorbis='#define CONFIG_OGGVORBIS 1' |
6151 _codecmodules="libvorbis $_codecmodules" | 6151 _codecmodules="libvorbis $_codecmodules" |
6152 _res_comment="libvorbis" | 6152 _res_comment="libvorbis" |
6153 _ld_extra="$_ld_extra -lvorbis -logg" | 6153 _ld_extra="$_ld_extra -lvorbis -logg" |
6154 else | 6154 else |
6155 _vorbis=no | 6155 _vorbis=no |
6165 int main(void) { SpeexBits bits; void *dec; speex_decode_int(dec, &bits, dec); return 0; } | 6165 int main(void) { SpeexBits bits; void *dec; speex_decode_int(dec, &bits, dec); return 0; } |
6166 EOF | 6166 EOF |
6167 cc_check -lspeex $_ld_lm && _speex=yes | 6167 cc_check -lspeex $_ld_lm && _speex=yes |
6168 fi | 6168 fi |
6169 if test "$_speex" = yes ; then | 6169 if test "$_speex" = yes ; then |
6170 _def_speex='#define CONFIG_SPEEX 1' | 6170 def_speex='#define CONFIG_SPEEX 1' |
6171 _ld_extra="$_ld_extra -lspeex" | 6171 _ld_extra="$_ld_extra -lspeex" |
6172 _codecmodules="speex $_codecmodules" | 6172 _codecmodules="speex $_codecmodules" |
6173 else | 6173 else |
6174 _def_speex='#undef CONFIG_SPEEX' | 6174 def_speex='#undef CONFIG_SPEEX' |
6175 _nocodecmodules="speex $_nocodecmodules" | 6175 _nocodecmodules="speex $_nocodecmodules" |
6176 fi | 6176 fi |
6177 echores "$_speex" | 6177 echores "$_speex" |
6178 | 6178 |
6179 echocheck "OggTheora support" | 6179 echocheck "OggTheora support" |
6231 _ld_extra="$_ld_extra $_ld_theora" && _theora=yes | 6231 _ld_extra="$_ld_extra $_ld_theora" && _theora=yes |
6232 fi | 6232 fi |
6233 fi | 6233 fi |
6234 fi | 6234 fi |
6235 if test "$_theora" = yes ; then | 6235 if test "$_theora" = yes ; then |
6236 _def_theora='#define CONFIG_OGGTHEORA 1' | 6236 def_theora='#define CONFIG_OGGTHEORA 1' |
6237 _codecmodules="libtheora $_codecmodules" | 6237 _codecmodules="libtheora $_codecmodules" |
6238 # when --enable-theora is forced, we'd better provide a probably sane | 6238 # when --enable-theora is forced, we'd better provide a probably sane |
6239 # $_ld_theora than nothing | 6239 # $_ld_theora than nothing |
6240 test -z "$_ld_theora" && _ld_extra="$_ld_extra -ltheora -logg" | 6240 test -z "$_ld_theora" && _ld_extra="$_ld_extra -ltheora -logg" |
6241 else | 6241 else |
6242 _def_theora='#undef CONFIG_OGGTHEORA' | 6242 def_theora='#undef CONFIG_OGGTHEORA' |
6243 _nocodecmodules="libtheora $_nocodecmodules" | 6243 _nocodecmodules="libtheora $_nocodecmodules" |
6244 fi | 6244 fi |
6245 echores "$_theora" | 6245 echores "$_theora" |
6246 | 6246 |
6247 echocheck "internal mp3lib support" | 6247 echocheck "internal mp3lib support" |
6248 if test "$_mp3lib" = auto ; then | 6248 if test "$_mp3lib" = auto ; then |
6249 test "$cc_vendor" = intel && _mp3lib=no || _mp3lib=yes | 6249 test "$cc_vendor" = intel && _mp3lib=no || _mp3lib=yes |
6250 fi | 6250 fi |
6251 if test "$_mp3lib" = yes ; then | 6251 if test "$_mp3lib" = yes ; then |
6252 _def_mp3lib='#define CONFIG_MP3LIB 1' | 6252 def_mp3lib='#define CONFIG_MP3LIB 1' |
6253 _codecmodules="mp3lib(internal) $_codecmodules" | 6253 _codecmodules="mp3lib(internal) $_codecmodules" |
6254 else | 6254 else |
6255 _def_mp3lib='#undef CONFIG_MP3LIB' | 6255 def_mp3lib='#undef CONFIG_MP3LIB' |
6256 _nocodecmodules="mp3lib(internal) $_nocodecmodules" | 6256 _nocodecmodules="mp3lib(internal) $_nocodecmodules" |
6257 fi | 6257 fi |
6258 echores "$_mp3lib" | 6258 echores "$_mp3lib" |
6259 | 6259 |
6260 echocheck "liba52 support" | 6260 echocheck "liba52 support" |
6261 if test "$_liba52_internal" = auto ; then | 6261 if test "$_liba52_internal" = auto ; then |
6262 test "$cc_vendor" = intel && _liba52_internal=no || _liba52_internal=yes | 6262 test "$cc_vendor" = intel && _liba52_internal=no || _liba52_internal=yes |
6263 fi | 6263 fi |
6264 _def_liba52='#undef CONFIG_LIBA52' | 6264 def_liba52='#undef CONFIG_LIBA52' |
6265 _def_liba52_internal="#undef CONFIG_LIBA52_INTERNAL" | 6265 def_liba52_internal="#undef CONFIG_LIBA52_INTERNAL" |
6266 if test "$_liba52_internal" = yes ; then | 6266 if test "$_liba52_internal" = yes ; then |
6267 _liba52=yes | 6267 _liba52=yes |
6268 _def_liba52_internal="#define CONFIG_LIBA52_INTERNAL 1" | 6268 def_liba52_internal="#define CONFIG_LIBA52_INTERNAL 1" |
6269 _res_comment="internal" | 6269 _res_comment="internal" |
6270 elif test "$_liba52_internal" = no && test "$_liba52" = auto ; then | 6270 elif test "$_liba52_internal" = no && test "$_liba52" = auto ; then |
6271 _liba52=no | 6271 _liba52=no |
6272 cat > $TMPC << EOF | 6272 cat > $TMPC << EOF |
6273 #include <inttypes.h> | 6273 #include <inttypes.h> |
6275 int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; } | 6275 int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; } |
6276 EOF | 6276 EOF |
6277 cc_check -la52 && _liba52=yes && _res_comment="external" && _ld_extra="$_ld_extra -la52" | 6277 cc_check -la52 && _liba52=yes && _res_comment="external" && _ld_extra="$_ld_extra -la52" |
6278 fi | 6278 fi |
6279 if test "$_liba52" = yes ; then | 6279 if test "$_liba52" = yes ; then |
6280 _def_liba52='#define CONFIG_LIBA52 1' | 6280 def_liba52='#define CONFIG_LIBA52 1' |
6281 _codecmodules="liba52($_res_comment) $_codecmodules" | 6281 _codecmodules="liba52($_res_comment) $_codecmodules" |
6282 else | 6282 else |
6283 _nocodecmodules="liba52 $_nocodecmodules" | 6283 _nocodecmodules="liba52 $_nocodecmodules" |
6284 fi | 6284 fi |
6285 echores "$_liba52" | 6285 echores "$_liba52" |
6295 ;; | 6295 ;; |
6296 esac | 6296 esac |
6297 fi | 6297 fi |
6298 fi | 6298 fi |
6299 if test "$_libmpeg2" = yes ; then | 6299 if test "$_libmpeg2" = yes ; then |
6300 _def_libmpeg2='#define CONFIG_LIBMPEG2 1' | 6300 def_libmpeg2='#define CONFIG_LIBMPEG2 1' |
6301 _codecmodules="libmpeg2(internal) $_codecmodules" | 6301 _codecmodules="libmpeg2(internal) $_codecmodules" |
6302 else | 6302 else |
6303 _def_libmpeg2='#undef CONFIG_LIBMPEG2' | 6303 def_libmpeg2='#undef CONFIG_LIBMPEG2' |
6304 _nocodecmodules="libmpeg2(internal) $_nocodecmodules" | 6304 _nocodecmodules="libmpeg2(internal) $_nocodecmodules" |
6305 fi | 6305 fi |
6306 echores "$_libmpeg2" | 6306 echores "$_libmpeg2" |
6307 | 6307 |
6308 echocheck "libdca support" | 6308 echocheck "libdca support" |
6317 cc_check $_ld_dca $_ld_lm && _ld_extra="$_ld_extra $_ld_dca" \ | 6317 cc_check $_ld_dca $_ld_lm && _ld_extra="$_ld_extra $_ld_dca" \ |
6318 && _libdca=yes && break | 6318 && _libdca=yes && break |
6319 done | 6319 done |
6320 fi | 6320 fi |
6321 if test "$_libdca" = yes ; then | 6321 if test "$_libdca" = yes ; then |
6322 _def_libdca='#define CONFIG_LIBDCA 1' | 6322 def_libdca='#define CONFIG_LIBDCA 1' |
6323 _codecmodules="libdca $_codecmodules" | 6323 _codecmodules="libdca $_codecmodules" |
6324 else | 6324 else |
6325 _def_libdca='#undef CONFIG_LIBDCA' | 6325 def_libdca='#undef CONFIG_LIBDCA' |
6326 _nocodecmodules="libdca $_nocodecmodules" | 6326 _nocodecmodules="libdca $_nocodecmodules" |
6327 fi | 6327 fi |
6328 echores "$_libdca" | 6328 echores "$_libdca" |
6329 | 6329 |
6330 echocheck "libmpcdec (musepack, version >= 1.2.1 required)" | 6330 echocheck "libmpcdec (musepack, version >= 1.2.1 required)" |
6342 } | 6342 } |
6343 EOF | 6343 EOF |
6344 cc_check -lmpcdec $_ld_lm && _musepack=yes | 6344 cc_check -lmpcdec $_ld_lm && _musepack=yes |
6345 fi | 6345 fi |
6346 if test "$_musepack" = yes ; then | 6346 if test "$_musepack" = yes ; then |
6347 _def_musepack='#define CONFIG_MUSEPACK 1' | 6347 def_musepack='#define CONFIG_MUSEPACK 1' |
6348 _ld_extra="$_ld_extra -lmpcdec" | 6348 _ld_extra="$_ld_extra -lmpcdec" |
6349 _codecmodules="musepack $_codecmodules" | 6349 _codecmodules="musepack $_codecmodules" |
6350 else | 6350 else |
6351 _def_musepack='#undef CONFIG_MUSEPACK' | 6351 def_musepack='#undef CONFIG_MUSEPACK' |
6352 _nocodecmodules="musepack $_nocodecmodules" | 6352 _nocodecmodules="musepack $_nocodecmodules" |
6353 fi | 6353 fi |
6354 echores "$_musepack" | 6354 echores "$_musepack" |
6355 | 6355 |
6356 | 6356 |
6365 for _ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do | 6365 for _ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do |
6366 cc_check -O4 $_ld_faac $_ld_lm && _libs_mencoder="$_libs_mencoder $_ld_faac" && _faac=yes && break | 6366 cc_check -O4 $_ld_faac $_ld_lm && _libs_mencoder="$_libs_mencoder $_ld_faac" && _faac=yes && break |
6367 done | 6367 done |
6368 fi | 6368 fi |
6369 if test "$_faac" = yes ; then | 6369 if test "$_faac" = yes ; then |
6370 _def_faac="#define CONFIG_FAAC 1" | 6370 def_faac="#define CONFIG_FAAC 1" |
6371 test "$_faac_lavc" = auto && _faac_lavc=yes | 6371 test "$_faac_lavc" = auto && _faac_lavc=yes |
6372 if test "$_faac_lavc" = yes ; then | 6372 if test "$_faac_lavc" = yes ; then |
6373 _def_faac_lavc="#define CONFIG_LIBFAAC 1" | 6373 def_faac_lavc="#define CONFIG_LIBFAAC 1" |
6374 _libs_mplayer="$_libs_mplayer $_ld_faac" | 6374 _libs_mplayer="$_libs_mplayer $_ld_faac" |
6375 _libavencoders="$_libavencoders LIBFAAC_ENCODER" | 6375 _libavencoders="$_libavencoders LIBFAAC_ENCODER" |
6376 fi | 6376 fi |
6377 _codecmodules="faac $_codecmodules" | 6377 _codecmodules="faac $_codecmodules" |
6378 else | 6378 else |
6379 _faac_lavc=no | 6379 _faac_lavc=no |
6380 _def_faac="#undef CONFIG_FAAC" | 6380 def_faac="#undef CONFIG_FAAC" |
6381 _def_faac_lavc="#define CONFIG_LIBFAAC 0" | 6381 def_faac_lavc="#define CONFIG_LIBFAAC 0" |
6382 _nocodecmodules="faac $_nocodecmodules" | 6382 _nocodecmodules="faac $_nocodecmodules" |
6383 fi | 6383 fi |
6384 _res_comment="in libavcodec: $_faac_lavc" | 6384 _res_comment="in libavcodec: $_faac_lavc" |
6385 echores "$_faac" | 6385 echores "$_faac" |
6386 | 6386 |
6413 testhand = faacDecOpen(); faacDecInit(0, 0, 0, 0, 0); return 0; } | 6413 testhand = faacDecOpen(); faacDecInit(0, 0, 0, 0, 0); return 0; } |
6414 EOF | 6414 EOF |
6415 cc_check -lfaad $_ld_lm && _faad=yes | 6415 cc_check -lfaad $_ld_lm && _faad=yes |
6416 fi | 6416 fi |
6417 | 6417 |
6418 _def_faad='#undef CONFIG_FAAD' | 6418 def_faad='#undef CONFIG_FAAD' |
6419 _def_faad_internal="#undef CONFIG_FAAD_INTERNAL" | 6419 def_faad_internal="#undef CONFIG_FAAD_INTERNAL" |
6420 if test "$_faad_internal" = yes ; then | 6420 if test "$_faad_internal" = yes ; then |
6421 _def_faad_internal="#define CONFIG_FAAD_INTERNAL 1" | 6421 def_faad_internal="#define CONFIG_FAAD_INTERNAL 1" |
6422 _res_comment="internal floating-point" | 6422 _res_comment="internal floating-point" |
6423 if test "$_faad_fixed" = yes ; then | 6423 if test "$_faad_fixed" = yes ; then |
6424 # The FIXED_POINT implementation of FAAD2 improves performance | 6424 # The FIXED_POINT implementation of FAAD2 improves performance |
6425 # on some platforms, especially for SBR files. | 6425 # on some platforms, especially for SBR files. |
6426 cflags_faad_fixed="-DFIXED_POINT" | 6426 cflags_faad_fixed="-DFIXED_POINT" |
6429 elif test "$_faad" = yes ; then | 6429 elif test "$_faad" = yes ; then |
6430 _ld_extra="$_ld_extra -lfaad" | 6430 _ld_extra="$_ld_extra -lfaad" |
6431 fi | 6431 fi |
6432 | 6432 |
6433 if test "$_faad" = yes ; then | 6433 if test "$_faad" = yes ; then |
6434 _def_faad='#define CONFIG_FAAD 1' | 6434 def_faad='#define CONFIG_FAAD 1' |
6435 if test "$_faad_internal" = yes ; then | 6435 if test "$_faad_internal" = yes ; then |
6436 _codecmodules="faad2(internal) $_codecmodules" | 6436 _codecmodules="faad2(internal) $_codecmodules" |
6437 else | 6437 else |
6438 _codecmodules="faad2 $_codecmodules" | 6438 _codecmodules="faad2 $_codecmodules" |
6439 fi | 6439 fi |
6456 EOF | 6456 EOF |
6457 _ladspa=no | 6457 _ladspa=no |
6458 cc_check && _ladspa=yes | 6458 cc_check && _ladspa=yes |
6459 fi | 6459 fi |
6460 if test "$_ladspa" = yes; then | 6460 if test "$_ladspa" = yes; then |
6461 _def_ladspa="#define CONFIG_LADSPA" | 6461 def_ladspa="#define CONFIG_LADSPA" |
6462 else | 6462 else |
6463 _def_ladspa="#undef CONFIG_LADSPA" | 6463 def_ladspa="#undef CONFIG_LADSPA" |
6464 fi | 6464 fi |
6465 echores "$_ladspa" | 6465 echores "$_ladspa" |
6466 | 6466 |
6467 | 6467 |
6468 if test -z "$_codecsdir" ; then | 6468 if test -z "$_codecsdir" ; then |
6488 if x86_32 && ! qnx; then | 6488 if x86_32 && ! qnx; then |
6489 _win32dll=yes | 6489 _win32dll=yes |
6490 fi | 6490 fi |
6491 fi | 6491 fi |
6492 if test "$_win32dll" = yes ; then | 6492 if test "$_win32dll" = yes ; then |
6493 _def_win32dll='#define CONFIG_WIN32DLL 1' | 6493 def_win32dll='#define CONFIG_WIN32DLL 1' |
6494 test -z "$_win32codecsdir" && _win32codecsdir=$_codecsdir | 6494 test -z "$_win32codecsdir" && _win32codecsdir=$_codecsdir |
6495 _res_comment="using $_win32codecsdir" | 6495 _res_comment="using $_win32codecsdir" |
6496 if ! win32 ; then | 6496 if ! win32 ; then |
6497 _def_win32_loader='#define WIN32_LOADER 1' | 6497 def_win32_loader='#define WIN32_LOADER 1' |
6498 _win32_emulation=yes | 6498 _win32_emulation=yes |
6499 else | 6499 else |
6500 _ld_extra="$_ld_extra -ladvapi32 -lole32" | 6500 _ld_extra="$_ld_extra -ladvapi32 -lole32" |
6501 _res_comment="using native windows" | 6501 _res_comment="using native windows" |
6502 fi | 6502 fi |
6503 _codecmodules="win32 $_codecmodules" | 6503 _codecmodules="win32 $_codecmodules" |
6504 else | 6504 else |
6505 _def_win32dll='#undef CONFIG_WIN32DLL' | 6505 def_win32dll='#undef CONFIG_WIN32DLL' |
6506 _def_win32_loader='#undef WIN32_LOADER' | 6506 def_win32_loader='#undef WIN32_LOADER' |
6507 _nocodecmodules="win32 $_nocodecmodules" | 6507 _nocodecmodules="win32 $_nocodecmodules" |
6508 fi | 6508 fi |
6509 echores "$_win32dll" | 6509 echores "$_win32dll" |
6510 | 6510 |
6511 | 6511 |
6517 _xanim=yes | 6517 _xanim=yes |
6518 fi | 6518 fi |
6519 fi | 6519 fi |
6520 if test "$_xanim" = yes ; then | 6520 if test "$_xanim" = yes ; then |
6521 test -z "$_xanimcodecsdir" && _xanimcodecsdir=$_codecsdir | 6521 test -z "$_xanimcodecsdir" && _xanimcodecsdir=$_codecsdir |
6522 _def_xanim='#define CONFIG_XANIM 1' | 6522 def_xanim='#define CONFIG_XANIM 1' |
6523 _def_xanim_path="#define XACODEC_PATH \"$_xanimcodecsdir\"" | 6523 def_xanim_path="#define XACODEC_PATH \"$_xanimcodecsdir\"" |
6524 _codecmodules="xanim $_codecmodules" | 6524 _codecmodules="xanim $_codecmodules" |
6525 _res_comment="using $_xanimcodecsdir" | 6525 _res_comment="using $_xanimcodecsdir" |
6526 else | 6526 else |
6527 _def_xanim='#undef CONFIG_XANIM' | 6527 def_xanim='#undef CONFIG_XANIM' |
6528 _def_xanim_path='#undef XACODEC_PATH' | 6528 def_xanim_path='#undef XACODEC_PATH' |
6529 _nocodecmodules="xanim $_nocodecmodules" | 6529 _nocodecmodules="xanim $_nocodecmodules" |
6530 fi | 6530 fi |
6531 echores "$_xanim" | 6531 echores "$_xanim" |
6532 | 6532 |
6533 | 6533 |
6540 _real=yes | 6540 _real=yes |
6541 fi | 6541 fi |
6542 fi | 6542 fi |
6543 if test "$_real" = yes ; then | 6543 if test "$_real" = yes ; then |
6544 test -z "$_realcodecsdir" && _realcodecsdir="$_codecsdir" | 6544 test -z "$_realcodecsdir" && _realcodecsdir="$_codecsdir" |
6545 _def_real='#define CONFIG_REALCODECS 1' | 6545 def_real='#define CONFIG_REALCODECS 1' |
6546 _def_real_path="#define REALCODEC_PATH \"$_realcodecsdir\"" | 6546 def_real_path="#define REALCODEC_PATH \"$_realcodecsdir\"" |
6547 _codecmodules="real $_codecmodules" | 6547 _codecmodules="real $_codecmodules" |
6548 _res_comment="using $_realcodecsdir" | 6548 _res_comment="using $_realcodecsdir" |
6549 else | 6549 else |
6550 _def_real='#undef CONFIG_REALCODECS' | 6550 def_real='#undef CONFIG_REALCODECS' |
6551 _def_real_path="#undef REALCODEC_PATH" | 6551 def_real_path="#undef REALCODEC_PATH" |
6552 _nocodecmodules="real $_nocodecmodules" | 6552 _nocodecmodules="real $_nocodecmodules" |
6553 fi | 6553 fi |
6554 echores "$_real" | 6554 echores "$_real" |
6555 | 6555 |
6556 | 6556 |
6557 echocheck "QuickTime codecs" | 6557 echocheck "QuickTime codecs" |
6558 _qtx_emulation=no | 6558 _qtx_emulation=no |
6559 _def_qtx_win32='#undef CONFIG_QTX_CODECS_WIN32' | 6559 def_qtx_win32='#undef CONFIG_QTX_CODECS_WIN32' |
6560 if test "$_qtx" = auto ; then | 6560 if test "$_qtx" = auto ; then |
6561 test "$_win32dll" = yes || darwin && _qtx=yes | 6561 test "$_win32dll" = yes || darwin && _qtx=yes |
6562 fi | 6562 fi |
6563 if test "$_qtx" = yes ; then | 6563 if test "$_qtx" = yes ; then |
6564 _def_qtx='#define CONFIG_QTX_CODECS 1' | 6564 def_qtx='#define CONFIG_QTX_CODECS 1' |
6565 win32 && _qtx_codecs_win32=yes && _def_qtx_win32='#define CONFIG_QTX_CODECS_WIN32 1' | 6565 win32 && _qtx_codecs_win32=yes && def_qtx_win32='#define CONFIG_QTX_CODECS_WIN32 1' |
6566 _codecmodules="qtx $_codecmodules" | 6566 _codecmodules="qtx $_codecmodules" |
6567 darwin || win32 || _qtx_emulation=yes | 6567 darwin || win32 || _qtx_emulation=yes |
6568 else | 6568 else |
6569 _def_qtx='#undef CONFIG_QTX_CODECS' | 6569 def_qtx='#undef CONFIG_QTX_CODECS' |
6570 _nocodecmodules="qtx $_nocodecmodules" | 6570 _nocodecmodules="qtx $_nocodecmodules" |
6571 fi | 6571 fi |
6572 echores "$_qtx" | 6572 echores "$_qtx" |
6573 | 6573 |
6574 echocheck "Nemesi Streaming Media libraries" | 6574 echocheck "Nemesi Streaming Media libraries" |
6580 _nemesi=yes | 6580 _nemesi=yes |
6581 fi | 6581 fi |
6582 fi | 6582 fi |
6583 if test "$_nemesi" = yes; then | 6583 if test "$_nemesi" = yes; then |
6584 _native_rtsp=no | 6584 _native_rtsp=no |
6585 _def_nemesi='#define CONFIG_LIBNEMESI 1' | 6585 def_nemesi='#define CONFIG_LIBNEMESI 1' |
6586 _inputmodules="nemesi $_inputmodules" | 6586 _inputmodules="nemesi $_inputmodules" |
6587 else | 6587 else |
6588 _native_rtsp="$_network" | 6588 _native_rtsp="$_network" |
6589 _nemesi=no | 6589 _nemesi=no |
6590 _def_nemesi='#undef CONFIG_LIBNEMESI' | 6590 def_nemesi='#undef CONFIG_LIBNEMESI' |
6591 _noinputmodules="nemesi $_noinputmodules" | 6591 _noinputmodules="nemesi $_noinputmodules" |
6592 fi | 6592 fi |
6593 echores "$_nemesi" | 6593 echores "$_nemesi" |
6594 | 6594 |
6595 echocheck "LIVE555 Streaming Media libraries" | 6595 echocheck "LIVE555 Streaming Media libraries" |
6623 fi | 6623 fi |
6624 fi | 6624 fi |
6625 fi | 6625 fi |
6626 if test "$_live" = yes && test "$_network" = yes; then | 6626 if test "$_live" = yes && test "$_network" = yes; then |
6627 test $_livelibdir && _res_comment="using $_livelibdir" | 6627 test $_livelibdir && _res_comment="using $_livelibdir" |
6628 _def_live='#define CONFIG_LIVE555 1' | 6628 def_live='#define CONFIG_LIVE555 1' |
6629 _inputmodules="live555 $_inputmodules" | 6629 _inputmodules="live555 $_inputmodules" |
6630 elif test "$_live_dist" = yes && test "$_network" = yes; then | 6630 elif test "$_live_dist" = yes && test "$_network" = yes; then |
6631 _res_comment="using distribution version" | 6631 _res_comment="using distribution version" |
6632 _live="yes" | 6632 _live="yes" |
6633 _def_live='#define CONFIG_LIVE555 1' | 6633 def_live='#define CONFIG_LIVE555 1' |
6634 _ld_extra="$_ld_extra -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++" | 6634 _ld_extra="$_ld_extra -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++" |
6635 _inc_extraxx="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \ | 6635 _inc_extraxx="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \ |
6636 -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock" | 6636 -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock" |
6637 _inputmodules="live555 $_inputmodules" | 6637 _inputmodules="live555 $_inputmodules" |
6638 else | 6638 else |
6639 _live=no | 6639 _live=no |
6640 _def_live='#undef CONFIG_LIVE555' | 6640 def_live='#undef CONFIG_LIVE555' |
6641 _noinputmodules="live555 $_noinputmodules" | 6641 _noinputmodules="live555 $_noinputmodules" |
6642 fi | 6642 fi |
6643 echores "$_live" | 6643 echores "$_live" |
6644 | 6644 |
6645 | 6645 |
6667 _libavutil_so=yes | 6667 _libavutil_so=yes |
6668 _res_comment="using libavutil.so, but static libavutil is recommended" | 6668 _res_comment="using libavutil.so, but static libavutil is recommended" |
6669 fi | 6669 fi |
6670 fi | 6670 fi |
6671 _libavutil=no | 6671 _libavutil=no |
6672 _def_libavutil='#undef CONFIG_LIBAVUTIL' | 6672 def_libavutil='#undef CONFIG_LIBAVUTIL' |
6673 _def_libavutil_a='#undef CONFIG_LIBAVUTIL_A' | 6673 def_libavutil_a='#undef CONFIG_LIBAVUTIL_A' |
6674 _def_libavutil_so='#undef CONFIG_LIBAVUTIL_SO' | 6674 def_libavutil_so='#undef CONFIG_LIBAVUTIL_SO' |
6675 test "$_libavutil_a" = yes || test "$_libavutil_so" = yes && _libavutil=yes | 6675 test "$_libavutil_a" = yes || test "$_libavutil_so" = yes && _libavutil=yes |
6676 test "$_libavutil" = yes && _def_libavutil='#define CONFIG_LIBAVUTIL 1' | 6676 test "$_libavutil" = yes && def_libavutil='#define CONFIG_LIBAVUTIL 1' |
6677 test "$_libavutil_a" = yes && _def_libavutil_a='#define CONFIG_LIBAVUTIL_A 1' | 6677 test "$_libavutil_a" = yes && def_libavutil_a='#define CONFIG_LIBAVUTIL_A 1' |
6678 test "$_libavutil_so" = yes && _def_libavutil_so='#define CONFIG_LIBAVUTIL_SO 1' | 6678 test "$_libavutil_so" = yes && def_libavutil_so='#define CONFIG_LIBAVUTIL_SO 1' |
6679 # neither static nor shared libavutil is available, but it is mandatory ... | 6679 # neither static nor shared libavutil is available, but it is mandatory ... |
6680 if test "$_libavutil" = no ; then | 6680 if test "$_libavutil" = no ; then |
6681 die "You need static or shared libavutil, MPlayer will not compile without!" | 6681 die "You need static or shared libavutil, MPlayer will not compile without!" |
6682 fi | 6682 fi |
6683 echores "$_libavutil" | 6683 echores "$_libavutil" |
6706 _libavcodec_so=yes | 6706 _libavcodec_so=yes |
6707 _res_comment="using libavcodec.so, but static libavcodec is recommended" | 6707 _res_comment="using libavcodec.so, but static libavcodec is recommended" |
6708 fi | 6708 fi |
6709 fi | 6709 fi |
6710 _libavcodec=no | 6710 _libavcodec=no |
6711 _def_libavcodec='#undef CONFIG_LIBAVCODEC' | 6711 def_libavcodec='#undef CONFIG_LIBAVCODEC' |
6712 _def_libavcodec_a='#undef CONFIG_LIBAVCODEC_A' | 6712 def_libavcodec_a='#undef CONFIG_LIBAVCODEC_A' |
6713 _def_libavcodec_so='#undef CONFIG_LIBAVCODEC_SO' | 6713 def_libavcodec_so='#undef CONFIG_LIBAVCODEC_SO' |
6714 test "$_libavcodec_a" = yes || test "$_libavcodec_so" = yes && _libavcodec=yes | 6714 test "$_libavcodec_a" = yes || test "$_libavcodec_so" = yes && _libavcodec=yes |
6715 test "$_libavcodec" = yes && _def_libavcodec='#define CONFIG_LIBAVCODEC 1' | 6715 test "$_libavcodec" = yes && def_libavcodec='#define CONFIG_LIBAVCODEC 1' |
6716 test "$_libavcodec_a" = yes && _def_libavcodec_a='#define CONFIG_LIBAVCODEC_A 1' | 6716 test "$_libavcodec_a" = yes && def_libavcodec_a='#define CONFIG_LIBAVCODEC_A 1' |
6717 test "$_libavcodec_so" = yes && _def_libavcodec_so='#define CONFIG_LIBAVCODEC_SO 1' | 6717 test "$_libavcodec_so" = yes && def_libavcodec_so='#define CONFIG_LIBAVCODEC_SO 1' |
6718 test "$_libavcodec_mpegaudio_hp" = yes \ | 6718 test "$_libavcodec_mpegaudio_hp" = yes \ |
6719 && _def_libavcodec_mpegaudio_hp='#define CONFIG_MPEGAUDIO_HP 1' | 6719 && def_libavcodec_mpegaudio_hp='#define CONFIG_MPEGAUDIO_HP 1' |
6720 if test "$_libavcodec_a" = yes ; then | 6720 if test "$_libavcodec_a" = yes ; then |
6721 _codecmodules="libavcodec(internal) $_codecmodules" | 6721 _codecmodules="libavcodec(internal) $_codecmodules" |
6722 elif test "$_libavcodec_so" = yes ; then | 6722 elif test "$_libavcodec_so" = yes ; then |
6723 _codecmodules="libavcodec.so $_codecmodules" | 6723 _codecmodules="libavcodec.so $_codecmodules" |
6724 else | 6724 else |
6750 _libavformat_so=yes | 6750 _libavformat_so=yes |
6751 _res_comment="using libavformat.so, but static libavformat is recommended" | 6751 _res_comment="using libavformat.so, but static libavformat is recommended" |
6752 fi | 6752 fi |
6753 fi | 6753 fi |
6754 _libavformat=no | 6754 _libavformat=no |
6755 _def_libavformat='#undef CONFIG_LIBAVFORMAT' | 6755 def_libavformat='#undef CONFIG_LIBAVFORMAT' |
6756 _def_libavformat_a='#undef CONFIG_LIBAVFORMAT_A' | 6756 def_libavformat_a='#undef CONFIG_LIBAVFORMAT_A' |
6757 _def_libavformat_so='#undef CONFIG_LIBAVFORMAT_SO' | 6757 def_libavformat_so='#undef CONFIG_LIBAVFORMAT_SO' |
6758 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes | 6758 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes |
6759 test "$_libavformat" = yes && _def_libavformat='#define CONFIG_LIBAVFORMAT 1' | 6759 test "$_libavformat" = yes && def_libavformat='#define CONFIG_LIBAVFORMAT 1' |
6760 test "$_libavformat_a" = yes && _def_libavformat_a='#define CONFIG_LIBAVFORMAT_A 1' | 6760 test "$_libavformat_a" = yes && def_libavformat_a='#define CONFIG_LIBAVFORMAT_A 1' |
6761 test "$_libavformat_so" = yes \ | 6761 test "$_libavformat_so" = yes \ |
6762 && _def_libavformat_so='#define CONFIG_LIBAVFORMAT_SO 1' | 6762 && def_libavformat_so='#define CONFIG_LIBAVFORMAT_SO 1' |
6763 echores "$_libavformat" | 6763 echores "$_libavformat" |
6764 | 6764 |
6765 echocheck "FFmpeg libpostproc" | 6765 echocheck "FFmpeg libpostproc" |
6766 if test "$_libpostproc_a" = auto ; then | 6766 if test "$_libpostproc_a" = auto ; then |
6767 _libpostproc_a=no | 6767 _libpostproc_a=no |
6781 _libpostproc_so=yes | 6781 _libpostproc_so=yes |
6782 _res_comment="using libpostproc.so, but static libpostproc is recommended" | 6782 _res_comment="using libpostproc.so, but static libpostproc is recommended" |
6783 fi | 6783 fi |
6784 fi | 6784 fi |
6785 _libpostproc=no | 6785 _libpostproc=no |
6786 _def_libpostproc='#undef CONFIG_LIBPOSTPROC' | 6786 def_libpostproc='#undef CONFIG_LIBPOSTPROC' |
6787 _def_libpostproc_a='#undef CONFIG_LIBPOSTPROC_A' | 6787 def_libpostproc_a='#undef CONFIG_LIBPOSTPROC_A' |
6788 _def_libpostproc_so='#undef CONFIG_LIBPOSTPROC_SO' | 6788 def_libpostproc_so='#undef CONFIG_LIBPOSTPROC_SO' |
6789 test "$_libpostproc_a" = yes || test "$_libpostproc_so" = yes && _libpostproc=yes | 6789 test "$_libpostproc_a" = yes || test "$_libpostproc_so" = yes && _libpostproc=yes |
6790 test "$_libpostproc" = yes && _def_libpostproc='#define CONFIG_LIBPOSTPROC 1' | 6790 test "$_libpostproc" = yes && def_libpostproc='#define CONFIG_LIBPOSTPROC 1' |
6791 test "$_libpostproc_a" = yes && _def_libpostproc_a='#define CONFIG_LIBPOSTPROC_A 1' | 6791 test "$_libpostproc_a" = yes && def_libpostproc_a='#define CONFIG_LIBPOSTPROC_A 1' |
6792 test "$_libpostproc_so" = yes \ | 6792 test "$_libpostproc_so" = yes \ |
6793 && _def_libpostproc_so='#define CONFIG_LIBPOSTPROC_SO 1' | 6793 && def_libpostproc_so='#define CONFIG_LIBPOSTPROC_SO 1' |
6794 echores "$_libpostproc" | 6794 echores "$_libpostproc" |
6795 | 6795 |
6796 echocheck "FFmpeg libswscale" | 6796 echocheck "FFmpeg libswscale" |
6797 if test "$_libswscale_a" = auto ; then | 6797 if test "$_libswscale_a" = auto ; then |
6798 _libswscale_a=no | 6798 _libswscale_a=no |
6816 _ld_extra="$_ld_extra -lswscale" | 6816 _ld_extra="$_ld_extra -lswscale" |
6817 _libswscale_so=yes | 6817 _libswscale_so=yes |
6818 fi | 6818 fi |
6819 fi | 6819 fi |
6820 _libswscale=no | 6820 _libswscale=no |
6821 _def_libswscale='#undef CONFIG_LIBSWSCALE' | 6821 def_libswscale='#undef CONFIG_LIBSWSCALE' |
6822 _def_libswscale_a='#undef CONFIG_LIBSWSCALE_A' | 6822 def_libswscale_a='#undef CONFIG_LIBSWSCALE_A' |
6823 _def_libswscale_so='#undef CONFIG_LIBSWSCALE_SO' | 6823 def_libswscale_so='#undef CONFIG_LIBSWSCALE_SO' |
6824 test "$_libswscale_a" = yes || test "$_libswscale_so" = yes && _libswscale=yes | 6824 test "$_libswscale_a" = yes || test "$_libswscale_so" = yes && _libswscale=yes |
6825 test "$_libswscale" = yes && _def_libswscale='#define CONFIG_LIBSWSCALE 1' | 6825 test "$_libswscale" = yes && def_libswscale='#define CONFIG_LIBSWSCALE 1' |
6826 test "$_libswscale_a" = yes && _def_libswscale_a='#define CONFIG_LIBSWSCALE_A 1' | 6826 test "$_libswscale_a" = yes && def_libswscale_a='#define CONFIG_LIBSWSCALE_A 1' |
6827 test "$_libswscale_so" = yes \ | 6827 test "$_libswscale_so" = yes \ |
6828 && _def_libswscale_so='#define CONFIG_LIBSWSCALE_SO 1' | 6828 && def_libswscale_so='#define CONFIG_LIBSWSCALE_SO 1' |
6829 echores "$_libswscale" | 6829 echores "$_libswscale" |
6830 | 6830 |
6831 echocheck "libamr narrowband" | 6831 echocheck "libamr narrowband" |
6832 if test "$_libamr_nb" = auto ; then | 6832 if test "$_libamr_nb" = auto ; then |
6833 _libamr_nb=no | 6833 _libamr_nb=no |
6842 fi | 6842 fi |
6843 fi | 6843 fi |
6844 if test "$_libamr_nb" = yes ; then | 6844 if test "$_libamr_nb" = yes ; then |
6845 _libamr=yes | 6845 _libamr=yes |
6846 _ld_extra="$_ld_extra -lamrnb" | 6846 _ld_extra="$_ld_extra -lamrnb" |
6847 _def_libamr='#define CONFIG_LIBAMR 1' | 6847 def_libamr='#define CONFIG_LIBAMR 1' |
6848 _def_libamr_nb='#define CONFIG_LIBAMR_NB 1' | 6848 def_libamr_nb='#define CONFIG_LIBAMR_NB 1' |
6849 _libavdecoders="$_libavdecoders LIBAMR_NB_DECODER" | 6849 _libavdecoders="$_libavdecoders LIBAMR_NB_DECODER" |
6850 _libavencoders="$_libavencoders LIBAMR_NB_ENCODER" | 6850 _libavencoders="$_libavencoders LIBAMR_NB_ENCODER" |
6851 _codecmodules="libamr_nb $_codecmodules" | 6851 _codecmodules="libamr_nb $_codecmodules" |
6852 else | 6852 else |
6853 _def_libamr_nb='#define CONFIG_LIBAMR_NB 0' | 6853 def_libamr_nb='#define CONFIG_LIBAMR_NB 0' |
6854 _nocodecmodules="libamr_nb $_nocodecmodules" | 6854 _nocodecmodules="libamr_nb $_nocodecmodules" |
6855 fi | 6855 fi |
6856 echores "$_libamr_nb" | 6856 echores "$_libamr_nb" |
6857 | 6857 |
6858 | 6858 |
6870 fi | 6870 fi |
6871 fi | 6871 fi |
6872 if test "$_libamr_wb" = yes ; then | 6872 if test "$_libamr_wb" = yes ; then |
6873 _libamr=yes | 6873 _libamr=yes |
6874 _ld_extra="$_ld_extra -lamrwb" | 6874 _ld_extra="$_ld_extra -lamrwb" |
6875 _def_libamr='#define CONFIG_LIBAMR 1' | 6875 def_libamr='#define CONFIG_LIBAMR 1' |
6876 _def_libamr_wb='#define CONFIG_LIBAMR_WB 1' | 6876 def_libamr_wb='#define CONFIG_LIBAMR_WB 1' |
6877 _libavdecoders="$_libavdecoders LIBAMR_WB_DECODER" | 6877 _libavdecoders="$_libavdecoders LIBAMR_WB_DECODER" |
6878 _libavencoders="$_libavencoders LIBAMR_WB_ENCODER" | 6878 _libavencoders="$_libavencoders LIBAMR_WB_ENCODER" |
6879 _codecmodules="libamr_wb $_codecmodules" | 6879 _codecmodules="libamr_wb $_codecmodules" |
6880 else | 6880 else |
6881 _def_libamr_wb='#define CONFIG_LIBAMR_WB 0' | 6881 def_libamr_wb='#define CONFIG_LIBAMR_WB 0' |
6882 _nocodecmodules="libamr_wb $_nocodecmodules" | 6882 _nocodecmodules="libamr_wb $_nocodecmodules" |
6883 fi | 6883 fi |
6884 echores "$_libamr_wb" | 6884 echores "$_libamr_wb" |
6885 | 6885 |
6886 echocheck "libdv-0.9.5+" | 6886 echocheck "libdv-0.9.5+" |
6891 int main(void) { dv_encoder_t* enc=dv_encoder_new(1,1,1); return 0; } | 6891 int main(void) { dv_encoder_t* enc=dv_encoder_new(1,1,1); return 0; } |
6892 EOF | 6892 EOF |
6893 cc_check -ldv $_ld_pthread $_ld_lm && _libdv=yes | 6893 cc_check -ldv $_ld_pthread $_ld_lm && _libdv=yes |
6894 fi | 6894 fi |
6895 if test "$_libdv" = yes ; then | 6895 if test "$_libdv" = yes ; then |
6896 _def_libdv='#define CONFIG_LIBDV095 1' | 6896 def_libdv='#define CONFIG_LIBDV095 1' |
6897 _ld_extra="$_ld_extra -ldv" | 6897 _ld_extra="$_ld_extra -ldv" |
6898 _codecmodules="libdv $_codecmodules" | 6898 _codecmodules="libdv $_codecmodules" |
6899 else | 6899 else |
6900 _def_libdv='#undef CONFIG_LIBDV095' | 6900 def_libdv='#undef CONFIG_LIBDV095' |
6901 _nocodecmodules="libdv $_nocodecmodules" | 6901 _nocodecmodules="libdv $_nocodecmodules" |
6902 fi | 6902 fi |
6903 echores "$_libdv" | 6903 echores "$_libdv" |
6904 | 6904 |
6905 | 6905 |
6914 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && _xvid=yes && break | 6914 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && _xvid=yes && break |
6915 done | 6915 done |
6916 fi | 6916 fi |
6917 | 6917 |
6918 if test "$_xvid" = yes ; then | 6918 if test "$_xvid" = yes ; then |
6919 _def_xvid='#define CONFIG_XVID4 1' | 6919 def_xvid='#define CONFIG_XVID4 1' |
6920 _codecmodules="xvid $_codecmodules" | 6920 _codecmodules="xvid $_codecmodules" |
6921 else | 6921 else |
6922 _def_xvid='#undef CONFIG_XVID4' | 6922 def_xvid='#undef CONFIG_XVID4' |
6923 _nocodecmodules="xvid $_nocodecmodules" | 6923 _nocodecmodules="xvid $_nocodecmodules" |
6924 fi | 6924 fi |
6925 echores "$_xvid" | 6925 echores "$_xvid" |
6926 | 6926 |
6927 echocheck "Xvid two pass plugin" | 6927 echocheck "Xvid two pass plugin" |
6931 int main(void) { xvid_plugin_2pass2_t s; s.vbv_size=0; return 0; } | 6931 int main(void) { xvid_plugin_2pass2_t s; s.vbv_size=0; return 0; } |
6932 EOF | 6932 EOF |
6933 cc_check && _xvid_lavc=yes | 6933 cc_check && _xvid_lavc=yes |
6934 fi | 6934 fi |
6935 if test "$_xvid_lavc" = yes ; then | 6935 if test "$_xvid_lavc" = yes ; then |
6936 _def_xvid_lavc='#define CONFIG_LIBXVID 1' | 6936 def_xvid_lavc='#define CONFIG_LIBXVID 1' |
6937 _libavencoders="$_libavencoders LIBXVID_ENCODER" | 6937 _libavencoders="$_libavencoders LIBXVID_ENCODER" |
6938 else | 6938 else |
6939 _xvid_lavc=no | 6939 _xvid_lavc=no |
6940 _def_xvid_lavc='#define CONFIG_LIBXVID 0' | 6940 def_xvid_lavc='#define CONFIG_LIBXVID 0' |
6941 fi | 6941 fi |
6942 echores "$_xvid_lavc" | 6942 echores "$_xvid_lavc" |
6943 | 6943 |
6944 | 6944 |
6945 echocheck "x264" | 6945 echocheck "x264" |
6957 cc_check $_ld_x264 && _libs_mencoder="$_libs_mencoder $_ld_x264" && _x264=yes && break | 6957 cc_check $_ld_x264 && _libs_mencoder="$_libs_mencoder $_ld_x264" && _x264=yes && break |
6958 done | 6958 done |
6959 fi | 6959 fi |
6960 | 6960 |
6961 if test "$_x264" = yes ; then | 6961 if test "$_x264" = yes ; then |
6962 _def_x264='#define CONFIG_X264 1' | 6962 def_x264='#define CONFIG_X264 1' |
6963 _codecmodules="x264 $_codecmodules" | 6963 _codecmodules="x264 $_codecmodules" |
6964 test "$_x264_lavc" = auto && _x264_lavc=yes | 6964 test "$_x264_lavc" = auto && _x264_lavc=yes |
6965 if test "$_x264_lavc" = yes ; then | 6965 if test "$_x264_lavc" = yes ; then |
6966 _def_x264_lavc='#define CONFIG_LIBX264 1' | 6966 def_x264_lavc='#define CONFIG_LIBX264 1' |
6967 _libs_mplayer="$_libs_mplayer $_ld_x264" | 6967 _libs_mplayer="$_libs_mplayer $_ld_x264" |
6968 _libavencoders="$_libavencoders LIBX264_ENCODER" | 6968 _libavencoders="$_libavencoders LIBX264_ENCODER" |
6969 fi | 6969 fi |
6970 else | 6970 else |
6971 _x264_lavc=no | 6971 _x264_lavc=no |
6972 _def_x264='#undef CONFIG_X264' | 6972 def_x264='#undef CONFIG_X264' |
6973 _def_x264_lavc='#define CONFIG_LIBX264 0' | 6973 def_x264_lavc='#define CONFIG_LIBX264 0' |
6974 _nocodecmodules="x264 $_nocodecmodules" | 6974 _nocodecmodules="x264 $_nocodecmodules" |
6975 fi | 6975 fi |
6976 _res_comment="in libavcodec: $_x264_lavc" | 6976 _res_comment="in libavcodec: $_x264_lavc" |
6977 echores "$_x264" | 6977 echores "$_x264" |
6978 | 6978 |
7006 _ld_extra="$_ld_extra $_ld_dirac" | 7006 _ld_extra="$_ld_extra $_ld_dirac" |
7007 fi | 7007 fi |
7008 fi | 7008 fi |
7009 fi | 7009 fi |
7010 if test "$_libdirac_lavc" = yes ; then | 7010 if test "$_libdirac_lavc" = yes ; then |
7011 _def_libdirac_lavc='#define CONFIG_LIBDIRAC 1' | 7011 def_libdirac_lavc='#define CONFIG_LIBDIRAC 1' |
7012 _libavencoders="$_libavencoders LIBDIRAC_ENCODER" | 7012 _libavencoders="$_libavencoders LIBDIRAC_ENCODER" |
7013 _libavdecoders="$_libavdecoders LIBDIRAC_DECODER" | 7013 _libavdecoders="$_libavdecoders LIBDIRAC_DECODER" |
7014 _codecmodules="libdirac $_codecmodules" | 7014 _codecmodules="libdirac $_codecmodules" |
7015 else | 7015 else |
7016 _def_libdirac_lavc='#define CONFIG_LIBDIRAC 0' | 7016 def_libdirac_lavc='#define CONFIG_LIBDIRAC 0' |
7017 _nocodecmodules="libdirac $_nocodecmodules" | 7017 _nocodecmodules="libdirac $_nocodecmodules" |
7018 fi | 7018 fi |
7019 echores "$_libdirac_lavc" | 7019 echores "$_libdirac_lavc" |
7020 | 7020 |
7021 | 7021 |
7038 _ld_extra="$_ld_extra $_ld_schroedinger" | 7038 _ld_extra="$_ld_extra $_ld_schroedinger" |
7039 fi | 7039 fi |
7040 fi | 7040 fi |
7041 fi | 7041 fi |
7042 if test "$_libschroedinger_lavc" = yes ; then | 7042 if test "$_libschroedinger_lavc" = yes ; then |
7043 _def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 1' | 7043 def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 1' |
7044 _libavencoders="$_libavencoders LIBSCHROEDINGER_ENCODER" | 7044 _libavencoders="$_libavencoders LIBSCHROEDINGER_ENCODER" |
7045 _libavdecoders="$_libavdecoders LIBSCHROEDINGER_DECODER" | 7045 _libavdecoders="$_libavdecoders LIBSCHROEDINGER_DECODER" |
7046 _codecmodules="libschroedinger $_codecmodules" | 7046 _codecmodules="libschroedinger $_codecmodules" |
7047 else | 7047 else |
7048 _def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 0' | 7048 def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 0' |
7049 _nocodecmodules="libschroedinger $_nocodecmodules" | 7049 _nocodecmodules="libschroedinger $_nocodecmodules" |
7050 fi | 7050 fi |
7051 echores "$_libschroedinger_lavc" | 7051 echores "$_libschroedinger_lavc" |
7052 | 7052 |
7053 echocheck "libnut" | 7053 echocheck "libnut" |
7062 _libnut=no | 7062 _libnut=no |
7063 cc_check -lnut && _libnut=yes | 7063 cc_check -lnut && _libnut=yes |
7064 fi | 7064 fi |
7065 | 7065 |
7066 if test "$_libnut" = yes ; then | 7066 if test "$_libnut" = yes ; then |
7067 _def_libnut='#define CONFIG_LIBNUT 1' | 7067 def_libnut='#define CONFIG_LIBNUT 1' |
7068 _ld_extra="$_ld_extra -lnut" | 7068 _ld_extra="$_ld_extra -lnut" |
7069 else | 7069 else |
7070 _def_libnut='#undef CONFIG_LIBNUT' | 7070 def_libnut='#undef CONFIG_LIBNUT' |
7071 fi | 7071 fi |
7072 echores "$_libnut" | 7072 echores "$_libnut" |
7073 | 7073 |
7074 #check must be done after libavcodec one | 7074 #check must be done after libavcodec one |
7075 echocheck "zr" | 7075 echocheck "zr" |
7082 _zr=no | 7082 _zr=no |
7083 fi | 7083 fi |
7084 fi | 7084 fi |
7085 if test "$_zr" = yes ; then | 7085 if test "$_zr" = yes ; then |
7086 if test "$_libavcodec_a" = yes ; then | 7086 if test "$_libavcodec_a" = yes ; then |
7087 _def_zr='#define CONFIG_ZR 1' | 7087 def_zr='#define CONFIG_ZR 1' |
7088 _vomodules="zr zr2 $_vomodules" | 7088 _vomodules="zr zr2 $_vomodules" |
7089 else | 7089 else |
7090 _res_comment="libavcodec (static) is required by zr, sorry" | 7090 _res_comment="libavcodec (static) is required by zr, sorry" |
7091 _novomodules="zr $_novomodules" | 7091 _novomodules="zr $_novomodules" |
7092 _def_zr='#undef CONFIG_ZR' | 7092 def_zr='#undef CONFIG_ZR' |
7093 fi | 7093 fi |
7094 else | 7094 else |
7095 _def_zr='#undef CONFIG_ZR' | 7095 def_zr='#undef CONFIG_ZR' |
7096 _novomodules="zr zr2 $_novomodules" | 7096 _novomodules="zr zr2 $_novomodules" |
7097 fi | 7097 fi |
7098 echores "$_zr" | 7098 echores "$_zr" |
7099 | 7099 |
7100 # mencoder requires (optional) those libs: libmp3lame | 7100 # mencoder requires (optional) those libs: libmp3lame |
7101 if test "$_mencoder" != no ; then | 7101 if test "$_mencoder" != no ; then |
7102 | 7102 |
7103 echocheck "libmp3lame" | 7103 echocheck "libmp3lame" |
7104 _def_mp3lame_preset='#undef CONFIG_MP3LAME_PRESET' | 7104 def_mp3lame_preset='#undef CONFIG_MP3LAME_PRESET' |
7105 _def_mp3lame_preset_medium='#undef CONFIG_MP3LAME_PRESET_MEDIUM' | 7105 def_mp3lame_preset_medium='#undef CONFIG_MP3LAME_PRESET_MEDIUM' |
7106 if test "$_mp3lame" = auto ; then | 7106 if test "$_mp3lame" = auto ; then |
7107 _mp3lame=no | 7107 _mp3lame=no |
7108 cat > $TMPC <<EOF | 7108 cat > $TMPC <<EOF |
7109 #include <lame/lame.h> | 7109 #include <lame/lame.h> |
7110 int main(void) { lame_version_t lv; (void) lame_init(); | 7110 int main(void) { lame_version_t lv; (void) lame_init(); |
7112 return 0; } | 7112 return 0; } |
7113 EOF | 7113 EOF |
7114 cc_check -lmp3lame $_ld_lm && tmp_run && _mp3lame=yes | 7114 cc_check -lmp3lame $_ld_lm && tmp_run && _mp3lame=yes |
7115 fi | 7115 fi |
7116 if test "$_mp3lame" = yes ; then | 7116 if test "$_mp3lame" = yes ; then |
7117 _def_mp3lame="#define CONFIG_MP3LAME" | 7117 def_mp3lame="#define CONFIG_MP3LAME" |
7118 _ld_mp3lame=-lmp3lame | 7118 _ld_mp3lame=-lmp3lame |
7119 _libs_mencoder="$_libs_mencoder $_ld_mp3lame" | 7119 _libs_mencoder="$_libs_mencoder $_ld_mp3lame" |
7120 cat > $TMPC << EOF | 7120 cat > $TMPC << EOF |
7121 #include <lame/lame.h> | 7121 #include <lame/lame.h> |
7122 int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; } | 7122 int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; } |
7123 EOF | 7123 EOF |
7124 cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset="#define CONFIG_MP3LAME_PRESET" | 7124 cc_check $_ld_mp3lame $_ld_lm && def_mp3lame_preset="#define CONFIG_MP3LAME_PRESET" |
7125 cat > $TMPC << EOF | 7125 cat > $TMPC << EOF |
7126 #include <lame/lame.h> | 7126 #include <lame/lame.h> |
7127 int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; } | 7127 int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; } |
7128 EOF | 7128 EOF |
7129 cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset_medium="#define CONFIG_MP3LAME_PRESET_MEDIUM" | 7129 cc_check $_ld_mp3lame $_ld_lm && def_mp3lame_preset_medium="#define CONFIG_MP3LAME_PRESET_MEDIUM" |
7130 test "$_mp3lame_lavc" = auto && _mp3lame_lavc=yes | 7130 test "$_mp3lame_lavc" = auto && _mp3lame_lavc=yes |
7131 if test "$_mp3lame_lavc" = yes ; then | 7131 if test "$_mp3lame_lavc" = yes ; then |
7132 _def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 1" | 7132 def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 1" |
7133 _libavencoders="$_libavencoders LIBMP3LAME_ENCODER" | 7133 _libavencoders="$_libavencoders LIBMP3LAME_ENCODER" |
7134 _libs_mplayer="$_libs_mplayer $_ld_mp3lame" | 7134 _libs_mplayer="$_libs_mplayer $_ld_mp3lame" |
7135 fi | 7135 fi |
7136 else | 7136 else |
7137 _mp3lame_lavc=no | 7137 _mp3lame_lavc=no |
7138 _def_mp3lame='#undef CONFIG_MP3LAME' | 7138 def_mp3lame='#undef CONFIG_MP3LAME' |
7139 _def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 0" | 7139 def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 0" |
7140 fi | 7140 fi |
7141 _res_comment="in libavcodec: $_mp3lame_lavc" | 7141 _res_comment="in libavcodec: $_mp3lame_lavc" |
7142 echores "$_mp3lame" | 7142 echores "$_mp3lame" |
7143 | 7143 |
7144 fi # test "$_mencoder" != no | 7144 fi # test "$_mencoder" != no |
7145 | 7145 |
7146 echocheck "mencoder" | 7146 echocheck "mencoder" |
7147 if test "$_mencoder" = yes ; then | 7147 if test "$_mencoder" = yes ; then |
7148 _def_muxers='#define CONFIG_MUXERS 1' | 7148 def_muxers='#define CONFIG_MUXERS 1' |
7149 else | 7149 else |
7150 # mpeg1video for vf_lavc, snow for vf_uspp and vf_mcdeint, png for vf_screenshot | 7150 # mpeg1video for vf_lavc, snow for vf_uspp and vf_mcdeint, png for vf_screenshot |
7151 _libavencoders="MPEG1VIDEO_ENCODER SNOW_ENCODER" | 7151 _libavencoders="MPEG1VIDEO_ENCODER SNOW_ENCODER" |
7152 test "$_zlib" = yes && _libavencoders="$_libavencoders PNG_ENCODER" | 7152 test "$_zlib" = yes && _libavencoders="$_libavencoders PNG_ENCODER" |
7153 _libavmuxers="" | 7153 _libavmuxers="" |
7159 if test "$_unrar_exec" = auto ; then | 7159 if test "$_unrar_exec" = auto ; then |
7160 _unrar_exec="yes" | 7160 _unrar_exec="yes" |
7161 mingw32 && _unrar_exec="no" | 7161 mingw32 && _unrar_exec="no" |
7162 fi | 7162 fi |
7163 if test "$_unrar_exec" = yes ; then | 7163 if test "$_unrar_exec" = yes ; then |
7164 _def_unrar_exec='#define CONFIG_UNRAR_EXEC 1' | 7164 def_unrar_exec='#define CONFIG_UNRAR_EXEC 1' |
7165 else | 7165 else |
7166 _def_unrar_exec='#undef CONFIG_UNRAR_EXEC' | 7166 def_unrar_exec='#undef CONFIG_UNRAR_EXEC' |
7167 fi | 7167 fi |
7168 echores "$_unrar_exec" | 7168 echores "$_unrar_exec" |
7169 | 7169 |
7170 echocheck "TV interface" | 7170 echocheck "TV interface" |
7171 if test "$_tv" = yes ; then | 7171 if test "$_tv" = yes ; then |
7172 _def_tv='#define CONFIG_TV 1' | 7172 def_tv='#define CONFIG_TV 1' |
7173 _inputmodules="tv $_inputmodules" | 7173 _inputmodules="tv $_inputmodules" |
7174 else | 7174 else |
7175 _noinputmodules="tv $_noinputmodules" | 7175 _noinputmodules="tv $_noinputmodules" |
7176 _def_tv='#undef CONFIG_TV' | 7176 def_tv='#undef CONFIG_TV' |
7177 fi | 7177 fi |
7178 echores "$_tv" | 7178 echores "$_tv" |
7179 | 7179 |
7180 | 7180 |
7181 if freebsd || netbsd || openbsd || dragonfly || bsdos ; then | 7181 if freebsd || netbsd || openbsd || dragonfly || bsdos ; then |
7196 _ioctl_bt848_h_name="$file" | 7196 _ioctl_bt848_h_name="$file" |
7197 break; | 7197 break; |
7198 fi | 7198 fi |
7199 done | 7199 done |
7200 if test "$_ioctl_bt848_h" = yes ; then | 7200 if test "$_ioctl_bt848_h" = yes ; then |
7201 _def_ioctl_bt848_h_name="#define IOCTL_BT848_H_NAME <$_ioctl_bt848_h_name>" | 7201 def_ioctl_bt848_h_name="#define IOCTL_BT848_H_NAME <$_ioctl_bt848_h_name>" |
7202 _res_comment="using $_ioctl_bt848_h_name" | 7202 _res_comment="using $_ioctl_bt848_h_name" |
7203 else | 7203 else |
7204 _def_ioctl_bt848_h_name="#undef IOCTL_BT848_H_NAME" | 7204 def_ioctl_bt848_h_name="#undef IOCTL_BT848_H_NAME" |
7205 fi | 7205 fi |
7206 echores "$_ioctl_bt848_h" | 7206 echores "$_ioctl_bt848_h" |
7207 | 7207 |
7208 echocheck "*BSD ioctl_meteor.h" | 7208 echocheck "*BSD ioctl_meteor.h" |
7209 _ioctl_meteor_h=no | 7209 _ioctl_meteor_h=no |
7220 _ioctl_meteor_h_name="$file" | 7220 _ioctl_meteor_h_name="$file" |
7221 break; | 7221 break; |
7222 fi | 7222 fi |
7223 done | 7223 done |
7224 if test "$_ioctl_meteor_h" = yes ; then | 7224 if test "$_ioctl_meteor_h" = yes ; then |
7225 _def_ioctl_meteor_h_name="#define IOCTL_METEOR_H_NAME <$_ioctl_meteor_h_name>" | 7225 def_ioctl_meteor_h_name="#define IOCTL_METEOR_H_NAME <$_ioctl_meteor_h_name>" |
7226 _res_comment="using $_ioctl_meteor_h_name" | 7226 _res_comment="using $_ioctl_meteor_h_name" |
7227 else | 7227 else |
7228 _def_ioctl_meteor_h_name="#undef IOCTL_METEOR_H_NAME" | 7228 def_ioctl_meteor_h_name="#undef IOCTL_METEOR_H_NAME" |
7229 fi | 7229 fi |
7230 echores "$_ioctl_meteor_h" | 7230 echores "$_ioctl_meteor_h" |
7231 | 7231 |
7232 echocheck "*BSD BrookTree 848 TV interface" | 7232 echocheck "*BSD BrookTree 848 TV interface" |
7233 if test "$_tv_bsdbt848" = auto ; then | 7233 if test "$_tv_bsdbt848" = auto ; then |
7234 _tv_bsdbt848=no | 7234 _tv_bsdbt848=no |
7235 if test "$_tv" = yes ; then | 7235 if test "$_tv" = yes ; then |
7236 cat > $TMPC <<EOF | 7236 cat > $TMPC <<EOF |
7237 #include <sys/types.h> | 7237 #include <sys/types.h> |
7238 $_def_ioctl_meteor_h_name | 7238 $def_ioctl_meteor_h_name |
7239 $_def_ioctl_bt848_h_name | 7239 $def_ioctl_bt848_h_name |
7240 #ifdef IOCTL_METEOR_H_NAME | 7240 #ifdef IOCTL_METEOR_H_NAME |
7241 #include IOCTL_METEOR_H_NAME | 7241 #include IOCTL_METEOR_H_NAME |
7242 #endif | 7242 #endif |
7243 #ifdef IOCTL_BT848_H_NAME | 7243 #ifdef IOCTL_BT848_H_NAME |
7244 #include IOCTL_BT848_H_NAME | 7244 #include IOCTL_BT848_H_NAME |
7251 EOF | 7251 EOF |
7252 cc_check && _tv_bsdbt848=yes | 7252 cc_check && _tv_bsdbt848=yes |
7253 fi | 7253 fi |
7254 fi | 7254 fi |
7255 if test "$_tv_bsdbt848" = yes ; then | 7255 if test "$_tv_bsdbt848" = yes ; then |
7256 _def_tv_bsdbt848='#define CONFIG_TV_BSDBT848 1' | 7256 def_tv_bsdbt848='#define CONFIG_TV_BSDBT848 1' |
7257 _inputmodules="tv-bsdbt848 $_inputmodules" | 7257 _inputmodules="tv-bsdbt848 $_inputmodules" |
7258 else | 7258 else |
7259 _def_tv_bsdbt848='#undef CONFIG_TV_BSDBT848' | 7259 def_tv_bsdbt848='#undef CONFIG_TV_BSDBT848' |
7260 _noinputmodules="tv-bsdbt848 $_noinputmodules" | 7260 _noinputmodules="tv-bsdbt848 $_noinputmodules" |
7261 fi | 7261 fi |
7262 echores "$_tv_bsdbt848" | 7262 echores "$_tv_bsdbt848" |
7263 fi #if freebsd || netbsd || openbsd || dragonfly || bsdos | 7263 fi #if freebsd || netbsd || openbsd || dragonfly || bsdos |
7264 | 7264 |
7278 cc_check -lole32 -luuid && _tv_dshow=yes | 7278 cc_check -lole32 -luuid && _tv_dshow=yes |
7279 fi | 7279 fi |
7280 fi | 7280 fi |
7281 if test "$_tv_dshow" = yes ; then | 7281 if test "$_tv_dshow" = yes ; then |
7282 _inputmodules="tv-dshow $_inputmodules" | 7282 _inputmodules="tv-dshow $_inputmodules" |
7283 _def_tv_dshow='#define CONFIG_TV_DSHOW 1' | 7283 def_tv_dshow='#define CONFIG_TV_DSHOW 1' |
7284 _ld_extra="$_ld_extra -lole32 -luuid" | 7284 _ld_extra="$_ld_extra -lole32 -luuid" |
7285 else | 7285 else |
7286 _noinputmodules="tv-dshow $_noinputmodules" | 7286 _noinputmodules="tv-dshow $_noinputmodules" |
7287 _def_tv_dshow='#undef CONFIG_TV_DSHOW' | 7287 def_tv_dshow='#undef CONFIG_TV_DSHOW' |
7288 fi | 7288 fi |
7289 echores "$_tv_dshow" | 7289 echores "$_tv_dshow" |
7290 | 7290 |
7291 | 7291 |
7292 echocheck "Video 4 Linux TV interface" | 7292 echocheck "Video 4 Linux TV interface" |
7302 fi | 7302 fi |
7303 fi | 7303 fi |
7304 if test "$_tv_v4l1" = yes ; then | 7304 if test "$_tv_v4l1" = yes ; then |
7305 _audio_input=yes | 7305 _audio_input=yes |
7306 _tv_v4l=yes | 7306 _tv_v4l=yes |
7307 _def_tv_v4l='#define CONFIG_TV_V4L 1' | 7307 def_tv_v4l='#define CONFIG_TV_V4L 1' |
7308 _def_tv_v4l1='#define CONFIG_TV_V4L1 1' | 7308 def_tv_v4l1='#define CONFIG_TV_V4L1 1' |
7309 _inputmodules="tv-v4l $_inputmodules" | 7309 _inputmodules="tv-v4l $_inputmodules" |
7310 else | 7310 else |
7311 _noinputmodules="tv-v4l1 $_noinputmodules" | 7311 _noinputmodules="tv-v4l1 $_noinputmodules" |
7312 _def_tv_v4l='#undef CONFIG_TV_V4L' | 7312 def_tv_v4l='#undef CONFIG_TV_V4L' |
7313 fi | 7313 fi |
7314 echores "$_tv_v4l1" | 7314 echores "$_tv_v4l1" |
7315 | 7315 |
7316 | 7316 |
7317 echocheck "Video 4 Linux 2 TV interface" | 7317 echocheck "Video 4 Linux 2 TV interface" |
7328 fi | 7328 fi |
7329 fi | 7329 fi |
7330 if test "$_tv_v4l2" = yes ; then | 7330 if test "$_tv_v4l2" = yes ; then |
7331 _audio_input=yes | 7331 _audio_input=yes |
7332 _tv_v4l=yes | 7332 _tv_v4l=yes |
7333 _def_tv_v4l='#define CONFIG_TV_V4L 1' | 7333 def_tv_v4l='#define CONFIG_TV_V4L 1' |
7334 _def_tv_v4l2='#define CONFIG_TV_V4L2 1' | 7334 def_tv_v4l2='#define CONFIG_TV_V4L2 1' |
7335 _inputmodules="tv-v4l2 $_inputmodules" | 7335 _inputmodules="tv-v4l2 $_inputmodules" |
7336 else | 7336 else |
7337 _noinputmodules="tv-v4l2 $_noinputmodules" | 7337 _noinputmodules="tv-v4l2 $_noinputmodules" |
7338 _def_tv_v4l2='#undef CONFIG_TV_V4L2' | 7338 def_tv_v4l2='#undef CONFIG_TV_V4L2' |
7339 fi | 7339 fi |
7340 echores "$_tv_v4l2" | 7340 echores "$_tv_v4l2" |
7341 | 7341 |
7342 | 7342 |
7343 echocheck "TV teletext interface" | 7343 echocheck "TV teletext interface" |
7348 _tv_teletext=yes | 7348 _tv_teletext=yes |
7349 fi | 7349 fi |
7350 fi | 7350 fi |
7351 fi | 7351 fi |
7352 if test "$_tv_teletext" = yes ; then | 7352 if test "$_tv_teletext" = yes ; then |
7353 _def_tv_teletext='#define CONFIG_TV_TELETEXT 1' | 7353 def_tv_teletext='#define CONFIG_TV_TELETEXT 1' |
7354 _inputmodules="tv-teletext $_inputmodules" | 7354 _inputmodules="tv-teletext $_inputmodules" |
7355 else | 7355 else |
7356 _noinputmodules="tv-teletext $_noinputmodules" | 7356 _noinputmodules="tv-teletext $_noinputmodules" |
7357 _def_tv_teletext='#undef CONFIG_TV_TELETEXT' | 7357 def_tv_teletext='#undef CONFIG_TV_TELETEXT' |
7358 fi | 7358 fi |
7359 echores "$_tv_teletext" | 7359 echores "$_tv_teletext" |
7360 | 7360 |
7361 | 7361 |
7362 echocheck "Radio interface" | 7362 echocheck "Radio interface" |
7363 if test "$_radio" = yes ; then | 7363 if test "$_radio" = yes ; then |
7364 _def_radio='#define CONFIG_RADIO 1' | 7364 def_radio='#define CONFIG_RADIO 1' |
7365 _inputmodules="radio $_inputmodules" | 7365 _inputmodules="radio $_inputmodules" |
7366 if test "$_alsa9" != yes -a "$_alsa1x" != yes -a "$_ossaudio" != yes ; then | 7366 if test "$_alsa9" != yes -a "$_alsa1x" != yes -a "$_ossaudio" != yes ; then |
7367 _radio_capture=no | 7367 _radio_capture=no |
7368 fi | 7368 fi |
7369 if test "$_radio_capture" = yes ; then | 7369 if test "$_radio_capture" = yes ; then |
7370 _audio_input=yes | 7370 _audio_input=yes |
7371 _def_radio_capture="#define CONFIG_RADIO_CAPTURE 1" | 7371 def_radio_capture="#define CONFIG_RADIO_CAPTURE 1" |
7372 else | 7372 else |
7373 _def_radio_capture="#undef CONFIG_RADIO_CAPTURE" | 7373 def_radio_capture="#undef CONFIG_RADIO_CAPTURE" |
7374 fi | 7374 fi |
7375 else | 7375 else |
7376 _noinputmodules="radio $_noinputmodules" | 7376 _noinputmodules="radio $_noinputmodules" |
7377 _def_radio='#undef CONFIG_RADIO' | 7377 def_radio='#undef CONFIG_RADIO' |
7378 _def_radio_capture="#undef CONFIG_RADIO_CAPTURE" | 7378 def_radio_capture="#undef CONFIG_RADIO_CAPTURE" |
7379 _radio_capture=no | 7379 _radio_capture=no |
7380 fi | 7380 fi |
7381 echores "$_radio" | 7381 echores "$_radio" |
7382 echocheck "Capture for Radio interface" | 7382 echocheck "Capture for Radio interface" |
7383 echores "$_radio_capture" | 7383 echores "$_radio_capture" |
7394 EOF | 7394 EOF |
7395 cc_check && _radio_v4l2=yes | 7395 cc_check && _radio_v4l2=yes |
7396 fi | 7396 fi |
7397 fi | 7397 fi |
7398 if test "$_radio_v4l2" = yes ; then | 7398 if test "$_radio_v4l2" = yes ; then |
7399 _def_radio_v4l2='#define CONFIG_RADIO_V4L2 1' | 7399 def_radio_v4l2='#define CONFIG_RADIO_V4L2 1' |
7400 else | 7400 else |
7401 _def_radio_v4l2='#undef CONFIG_RADIO_V4L2' | 7401 def_radio_v4l2='#undef CONFIG_RADIO_V4L2' |
7402 fi | 7402 fi |
7403 echores "$_radio_v4l2" | 7403 echores "$_radio_v4l2" |
7404 | 7404 |
7405 echocheck "Video 4 Linux Radio interface" | 7405 echocheck "Video 4 Linux Radio interface" |
7406 if test "$_radio_v4l" = auto ; then | 7406 if test "$_radio_v4l" = auto ; then |
7413 EOF | 7413 EOF |
7414 cc_check && _radio_v4l=yes | 7414 cc_check && _radio_v4l=yes |
7415 fi | 7415 fi |
7416 fi | 7416 fi |
7417 if test "$_radio_v4l" = yes ; then | 7417 if test "$_radio_v4l" = yes ; then |
7418 _def_radio_v4l='#define CONFIG_RADIO_V4L 1' | 7418 def_radio_v4l='#define CONFIG_RADIO_V4L 1' |
7419 else | 7419 else |
7420 _def_radio_v4l='#undef CONFIG_RADIO_V4L' | 7420 def_radio_v4l='#undef CONFIG_RADIO_V4L' |
7421 fi | 7421 fi |
7422 echores "$_radio_v4l" | 7422 echores "$_radio_v4l" |
7423 | 7423 |
7424 if freebsd || netbsd || openbsd || dragonfly || bsdos \ | 7424 if freebsd || netbsd || openbsd || dragonfly || bsdos \ |
7425 && test "$_radio" = yes && test "$_radio_bsdbt848" = auto ; then | 7425 && test "$_radio" = yes && test "$_radio_bsdbt848" = auto ; then |
7426 echocheck "*BSD BrookTree 848 Radio interface" | 7426 echocheck "*BSD BrookTree 848 Radio interface" |
7427 _radio_bsdbt848=no | 7427 _radio_bsdbt848=no |
7428 cat > $TMPC <<EOF | 7428 cat > $TMPC <<EOF |
7429 #include <sys/types.h> | 7429 #include <sys/types.h> |
7430 $_def_ioctl_bt848_h_name | 7430 $def_ioctl_bt848_h_name |
7431 #ifdef IOCTL_BT848_H_NAME | 7431 #ifdef IOCTL_BT848_H_NAME |
7432 #include IOCTL_BT848_H_NAME | 7432 #include IOCTL_BT848_H_NAME |
7433 #endif | 7433 #endif |
7434 int main(void) { ioctl(0, RADIO_GETFREQ, 0); return 0; } | 7434 int main(void) { ioctl(0, RADIO_GETFREQ, 0); return 0; } |
7435 EOF | 7435 EOF |
7436 cc_check && _radio_bsdbt848=yes | 7436 cc_check && _radio_bsdbt848=yes |
7437 echores "$_radio_bsdbt848" | 7437 echores "$_radio_bsdbt848" |
7438 fi #if freebsd || netbsd || openbsd || dragonfly || bsdos && _radio && _radio_bsdbt848 | 7438 fi #if freebsd || netbsd || openbsd || dragonfly || bsdos && _radio && _radio_bsdbt848 |
7439 | 7439 |
7440 if test "$_radio_bsdbt848" = yes ; then | 7440 if test "$_radio_bsdbt848" = yes ; then |
7441 _def_radio_bsdbt848='#define CONFIG_RADIO_BSDBT848 1' | 7441 def_radio_bsdbt848='#define CONFIG_RADIO_BSDBT848 1' |
7442 else | 7442 else |
7443 _def_radio_bsdbt848='#undef CONFIG_RADIO_BSDBT848' | 7443 def_radio_bsdbt848='#undef CONFIG_RADIO_BSDBT848' |
7444 fi | 7444 fi |
7445 | 7445 |
7446 if test "$_radio_v4l" = no && test "$_radio_v4l2" = no && \ | 7446 if test "$_radio_v4l" = no && test "$_radio_v4l2" = no && \ |
7447 test "$_radio_bsdbt848" = no && test "$_radio" = yes ; then | 7447 test "$_radio_bsdbt848" = no && test "$_radio" = yes ; then |
7448 die "Radio driver requires BSD BT848, V4L or V4L2!" | 7448 die "Radio driver requires BSD BT848, V4L or V4L2!" |
7461 EOF | 7461 EOF |
7462 cc_check && _pvr=yes | 7462 cc_check && _pvr=yes |
7463 fi | 7463 fi |
7464 fi | 7464 fi |
7465 if test "$_pvr" = yes ; then | 7465 if test "$_pvr" = yes ; then |
7466 _def_pvr='#define CONFIG_PVR 1' | 7466 def_pvr='#define CONFIG_PVR 1' |
7467 _inputmodules="pvr $_inputmodules" | 7467 _inputmodules="pvr $_inputmodules" |
7468 else | 7468 else |
7469 _noinputmodules="pvr $_noinputmodules" | 7469 _noinputmodules="pvr $_noinputmodules" |
7470 _def_pvr='#undef CONFIG_PVR' | 7470 def_pvr='#undef CONFIG_PVR' |
7471 fi | 7471 fi |
7472 echores "$_pvr" | 7472 echores "$_pvr" |
7473 | 7473 |
7474 | 7474 |
7475 echocheck "ftp" | 7475 echocheck "ftp" |
7476 if ! beos && test "$_ftp" = yes ; then | 7476 if ! beos && test "$_ftp" = yes ; then |
7477 _def_ftp='#define CONFIG_FTP 1' | 7477 def_ftp='#define CONFIG_FTP 1' |
7478 _inputmodules="ftp $_inputmodules" | 7478 _inputmodules="ftp $_inputmodules" |
7479 else | 7479 else |
7480 _noinputmodules="ftp $_noinputmodules" | 7480 _noinputmodules="ftp $_noinputmodules" |
7481 _def_ftp='#undef CONFIG_FTP' | 7481 def_ftp='#undef CONFIG_FTP' |
7482 fi | 7482 fi |
7483 echores "$_ftp" | 7483 echores "$_ftp" |
7484 | 7484 |
7485 echocheck "vstream client" | 7485 echocheck "vstream client" |
7486 if test "$_vstream" = auto ; then | 7486 if test "$_vstream" = auto ; then |
7491 int main(void) { vstream_start(); return 0; } | 7491 int main(void) { vstream_start(); return 0; } |
7492 EOF | 7492 EOF |
7493 cc_check -lvstream-client && _vstream=yes | 7493 cc_check -lvstream-client && _vstream=yes |
7494 fi | 7494 fi |
7495 if test "$_vstream" = yes ; then | 7495 if test "$_vstream" = yes ; then |
7496 _def_vstream='#define CONFIG_VSTREAM 1' | 7496 def_vstream='#define CONFIG_VSTREAM 1' |
7497 _inputmodules="vstream $_inputmodules" | 7497 _inputmodules="vstream $_inputmodules" |
7498 _ld_extra="$_ld_extra -lvstream-client" | 7498 _ld_extra="$_ld_extra -lvstream-client" |
7499 else | 7499 else |
7500 _noinputmodules="vstream $_noinputmodules" | 7500 _noinputmodules="vstream $_noinputmodules" |
7501 _def_vstream='#undef CONFIG_VSTREAM' | 7501 def_vstream='#undef CONFIG_VSTREAM' |
7502 fi | 7502 fi |
7503 echores "$_vstream" | 7503 echores "$_vstream" |
7504 | 7504 |
7505 | 7505 |
7506 echocheck "OSD menu" | 7506 echocheck "OSD menu" |
7507 if test "$_menu" = yes ; then | 7507 if test "$_menu" = yes ; then |
7508 _def_menu='#define CONFIG_MENU 1' | 7508 def_menu='#define CONFIG_MENU 1' |
7509 test $_dvbin = "yes" && _menu_dvbin=yes | 7509 test $_dvbin = "yes" && _menu_dvbin=yes |
7510 else | 7510 else |
7511 _def_menu='#undef CONFIG_MENU' | 7511 def_menu='#undef CONFIG_MENU' |
7512 _menu_dvbin=no | 7512 _menu_dvbin=no |
7513 fi | 7513 fi |
7514 echores "$_menu" | 7514 echores "$_menu" |
7515 | 7515 |
7516 | 7516 |
7517 echocheck "Subtitles sorting" | 7517 echocheck "Subtitles sorting" |
7518 if test "$_sortsub" = yes ; then | 7518 if test "$_sortsub" = yes ; then |
7519 _def_sortsub='#define CONFIG_SORTSUB 1' | 7519 def_sortsub='#define CONFIG_SORTSUB 1' |
7520 else | 7520 else |
7521 _def_sortsub='#undef CONFIG_SORTSUB' | 7521 def_sortsub='#undef CONFIG_SORTSUB' |
7522 fi | 7522 fi |
7523 echores "$_sortsub" | 7523 echores "$_sortsub" |
7524 | 7524 |
7525 | 7525 |
7526 echocheck "XMMS inputplugin support" | 7526 echocheck "XMMS inputplugin support" |
7531 else | 7531 else |
7532 _xmmsplugindir=/usr/lib/xmms/Input | 7532 _xmmsplugindir=/usr/lib/xmms/Input |
7533 _xmmslibdir=/usr/lib | 7533 _xmmslibdir=/usr/lib |
7534 fi | 7534 fi |
7535 | 7535 |
7536 _def_xmms='#define CONFIG_XMMS 1' | 7536 def_xmms='#define CONFIG_XMMS 1' |
7537 if darwin ; then | 7537 if darwin ; then |
7538 _ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.dylib" | 7538 _ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.dylib" |
7539 else | 7539 else |
7540 _ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.so.1 -export-dynamic" | 7540 _ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.so.1 -export-dynamic" |
7541 fi | 7541 fi |
7542 else | 7542 else |
7543 _def_xmms='#undef CONFIG_XMMS' | 7543 def_xmms='#undef CONFIG_XMMS' |
7544 fi | 7544 fi |
7545 echores "$_xmms" | 7545 echores "$_xmms" |
7546 | 7546 |
7547 | 7547 |
7548 # --------------- GUI specific tests begin ------------------- | 7548 # --------------- GUI specific tests begin ------------------- |
7585 } | 7585 } |
7586 EOF | 7586 EOF |
7587 cc_check -lXext && _xshape=yes | 7587 cc_check -lXext && _xshape=yes |
7588 fi | 7588 fi |
7589 if test "$_xshape" = yes ; then | 7589 if test "$_xshape" = yes ; then |
7590 _def_xshape='#define CONFIG_XSHAPE 1' | 7590 def_xshape='#define CONFIG_XSHAPE 1' |
7591 else | 7591 else |
7592 die "The GUI requires the X11 extension XShape (which was not found)." | 7592 die "The GUI requires the X11 extension XShape (which was not found)." |
7593 fi | 7593 fi |
7594 echores "$_xshape" | 7594 echores "$_xshape" |
7595 | 7595 |
7609 echocheck "glib version" | 7609 echocheck "glib version" |
7610 _glib=`$_pkg_config glib-2.0 --modversion 2>/dev/null` | 7610 _glib=`$_pkg_config glib-2.0 --modversion 2>/dev/null` |
7611 _libs_mplayer="$_libs_mplayer `$_pkg_config glib-2.0 --libs 2>/dev/null`" | 7611 _libs_mplayer="$_libs_mplayer `$_pkg_config glib-2.0 --libs 2>/dev/null`" |
7612 echores "$_glib" | 7612 echores "$_glib" |
7613 | 7613 |
7614 _def_gui='#define CONFIG_GUI 1' | 7614 def_gui='#define CONFIG_GUI 1' |
7615 _def_gtk2='#define CONFIG_GTK2 1' | 7615 def_gtk2='#define CONFIG_GTK2 1' |
7616 else | 7616 else |
7617 _gtk1=yes | 7617 _gtk1=yes |
7618 echo "GLIB-2 devel packages were not found, trying GTK 1.2" | 7618 echo "GLIB-2 devel packages were not found, trying GTK 1.2" |
7619 fi | 7619 fi |
7620 else | 7620 else |
7653 fi | 7653 fi |
7654 _glib=`$_glibconfig --version 2>&1` | 7654 _glib=`$_glibconfig --version 2>&1` |
7655 _libs_mplayer="$_libs_mplayer `$_glibconfig --libs 2>&1`" | 7655 _libs_mplayer="$_libs_mplayer `$_glibconfig --libs 2>&1`" |
7656 echores "$_glib (using $_glibconfig)" | 7656 echores "$_glib (using $_glibconfig)" |
7657 | 7657 |
7658 _def_gui='#define CONFIG_GUI 1' | 7658 def_gui='#define CONFIG_GUI 1' |
7659 _def_gtk2='#undef CONFIG_GTK2' | 7659 def_gtk2='#undef CONFIG_GTK2' |
7660 fi | 7660 fi |
7661 | 7661 |
7662 else #if ! win32 | 7662 else #if ! win32 |
7663 _gui_win32=yes | 7663 _gui_win32=yes |
7664 _libs_mplayer="$_libs_mplayer -lcomdlg32 -lcomctl32 -lshell32 -lkernel32" | 7664 _libs_mplayer="$_libs_mplayer -lcomdlg32 -lcomctl32 -lshell32 -lkernel32" |
7665 _def_gui='#define CONFIG_GUI 1' | 7665 def_gui='#define CONFIG_GUI 1' |
7666 _def_gtk2='#undef CONFIG_GTK2' | 7666 def_gtk2='#undef CONFIG_GTK2' |
7667 fi #if ! win32 | 7667 fi #if ! win32 |
7668 | 7668 |
7669 else #if test "$_gui" | 7669 else #if test "$_gui" |
7670 _def_gui='#undef CONFIG_GUI' | 7670 def_gui='#undef CONFIG_GUI' |
7671 _def_gtk2='#undef CONFIG_GTK2' | 7671 def_gtk2='#undef CONFIG_GTK2' |
7672 fi #if test "$_gui" | 7672 fi #if test "$_gui" |
7673 # --------------- GUI specific tests end ------------------- | 7673 # --------------- GUI specific tests end ------------------- |
7674 | 7674 |
7675 | 7675 |
7676 if test "$_charset" = "noconv" ; then | 7676 if test "$_charset" = "noconv" ; then |
7677 _charset="" | 7677 _charset="" |
7678 fi | 7678 fi |
7679 if test "$_charset" ; then | 7679 if test "$_charset" ; then |
7680 _def_charset="#define MSG_CHARSET \"$_charset\"" | 7680 def_charset="#define MSG_CHARSET \"$_charset\"" |
7681 else | 7681 else |
7682 _def_charset="#undef MSG_CHARSET" | 7682 def_charset="#undef MSG_CHARSET" |
7683 fi | 7683 fi |
7684 | 7684 |
7685 if test -n "$_charset" && test "$_charset" != "UTF-8" ; then | 7685 if test -n "$_charset" && test "$_charset" != "UTF-8" ; then |
7686 echocheck "iconv program" | 7686 echocheck "iconv program" |
7687 iconv -f UTF-8 -t $_charset ${_mp_help} > /dev/null 2>> "$TMPLOG" | 7687 iconv -f UTF-8 -t $_charset ${_mp_help} > /dev/null 2>> "$TMPLOG" |
7699 | 7699 |
7700 ############################################################################# | 7700 ############################################################################# |
7701 | 7701 |
7702 echocheck "automatic gdb attach" | 7702 echocheck "automatic gdb attach" |
7703 if test "$_crash_debug" = yes ; then | 7703 if test "$_crash_debug" = yes ; then |
7704 _def_crash_debug='#define CONFIG_CRASH_DEBUG 1' | 7704 def_crash_debug='#define CONFIG_CRASH_DEBUG 1' |
7705 else | 7705 else |
7706 _def_crash_debug='#undef CONFIG_CRASH_DEBUG' | 7706 def_crash_debug='#undef CONFIG_CRASH_DEBUG' |
7707 _crash_debug=no | 7707 _crash_debug=no |
7708 fi | 7708 fi |
7709 echores "$_crash_debug" | 7709 echores "$_crash_debug" |
7710 | 7710 |
7711 echocheck "compiler support for noexecstack" | 7711 echocheck "compiler support for noexecstack" |
7730 | 7730 |
7731 _ld_extra="$_ld_extra $_ld_pthread $_ld_dl $_ld_dl_dynamic" | 7731 _ld_extra="$_ld_extra $_ld_pthread $_ld_dl $_ld_dl_dynamic" |
7732 bsdos && _ld_extra="$_ld_extra -ldvd" | 7732 bsdos && _ld_extra="$_ld_extra -ldvd" |
7733 (netbsd || openbsd) && x86_32 && _ld_extra="$_ld_extra -li386" | 7733 (netbsd || openbsd) && x86_32 && _ld_extra="$_ld_extra -li386" |
7734 | 7734 |
7735 _def_debug='#undef MP_DEBUG' | 7735 def_debug='#undef MP_DEBUG' |
7736 test "$_debug" != "" && _def_debug='#define MP_DEBUG 1' | 7736 test "$_debug" != "" && def_debug='#define MP_DEBUG 1' |
7737 | 7737 |
7738 | 7738 |
7739 echocheck "joystick" | 7739 echocheck "joystick" |
7740 _def_joystick='#undef CONFIG_JOYSTICK' | 7740 def_joystick='#undef CONFIG_JOYSTICK' |
7741 if test "$_joystick" = yes ; then | 7741 if test "$_joystick" = yes ; then |
7742 if linux ; then | 7742 if linux ; then |
7743 # TODO add some check | 7743 # TODO add some check |
7744 _def_joystick='#define CONFIG_JOYSTICK 1' | 7744 def_joystick='#define CONFIG_JOYSTICK 1' |
7745 else | 7745 else |
7746 _joystick="no" | 7746 _joystick="no" |
7747 _res_comment="unsupported under $system_name" | 7747 _res_comment="unsupported under $system_name" |
7748 fi | 7748 fi |
7749 fi | 7749 fi |
7757 int main(void) { return 0; } | 7757 int main(void) { return 0; } |
7758 EOF | 7758 EOF |
7759 cc_check -llirc_client && _lirc=yes | 7759 cc_check -llirc_client && _lirc=yes |
7760 fi | 7760 fi |
7761 if test "$_lirc" = yes ; then | 7761 if test "$_lirc" = yes ; then |
7762 _def_lirc='#define CONFIG_LIRC 1' | 7762 def_lirc='#define CONFIG_LIRC 1' |
7763 _ld_extra="$_ld_extra -llirc_client" | 7763 _ld_extra="$_ld_extra -llirc_client" |
7764 else | 7764 else |
7765 _def_lirc='#undef CONFIG_LIRC' | 7765 def_lirc='#undef CONFIG_LIRC' |
7766 fi | 7766 fi |
7767 echores "$_lirc" | 7767 echores "$_lirc" |
7768 | 7768 |
7769 echocheck "lircc" | 7769 echocheck "lircc" |
7770 if test "$_lircc" = auto ; then | 7770 if test "$_lircc" = auto ; then |
7774 int main(void) { return 0; } | 7774 int main(void) { return 0; } |
7775 EOF | 7775 EOF |
7776 cc_check -llircc && _lircc=yes | 7776 cc_check -llircc && _lircc=yes |
7777 fi | 7777 fi |
7778 if test "$_lircc" = yes ; then | 7778 if test "$_lircc" = yes ; then |
7779 _def_lircc='#define CONFIG_LIRCC 1' | 7779 def_lircc='#define CONFIG_LIRCC 1' |
7780 _ld_extra="$_ld_extra -llircc" | 7780 _ld_extra="$_ld_extra -llircc" |
7781 else | 7781 else |
7782 _def_lircc='#undef CONFIG_LIRCC' | 7782 def_lircc='#undef CONFIG_LIRCC' |
7783 fi | 7783 fi |
7784 echores "$_lircc" | 7784 echores "$_lircc" |
7785 | 7785 |
7786 if arm; then | 7786 if arm; then |
7787 # Detect maemo development platform libraries availability (http://www.maemo.org), | 7787 # Detect maemo development platform libraries availability (http://www.maemo.org), |
7794 int main(void) { (void) osso_initialize("", "", 0, NULL); return 0; } | 7794 int main(void) { (void) osso_initialize("", "", 0, NULL); return 0; } |
7795 EOF | 7795 EOF |
7796 cc_check `$_pkg_config --cflags --libs libosso 2>/dev/null` && _maemo=yes | 7796 cc_check `$_pkg_config --cflags --libs libosso 2>/dev/null` && _maemo=yes |
7797 fi | 7797 fi |
7798 if test "$_maemo" = yes ; then | 7798 if test "$_maemo" = yes ; then |
7799 _def_maemo='#define CONFIG_MAEMO 1' | 7799 def_maemo='#define CONFIG_MAEMO 1' |
7800 _inc_extra="$_inc_extra `$_pkg_config --cflags libosso`" | 7800 _inc_extra="$_inc_extra `$_pkg_config --cflags libosso`" |
7801 _ld_extra="$_ld_extra `$_pkg_config --libs libosso` -lXsp" | 7801 _ld_extra="$_ld_extra `$_pkg_config --libs libosso` -lXsp" |
7802 else | 7802 else |
7803 _def_maemo='#undef CONFIG_MAEMO' | 7803 def_maemo='#undef CONFIG_MAEMO' |
7804 fi | 7804 fi |
7805 echores "$_maemo" | 7805 echores "$_maemo" |
7806 fi | 7806 fi |
7807 | 7807 |
7808 #this must be the last test to be performed or the ones following it will likely fail | 7808 #this must be the last test to be performed or the ones following it will likely fail |
7830 _dvdnavlibs=`$_dvdnavconfig --libs` | 7830 _dvdnavlibs=`$_dvdnavconfig --libs` |
7831 cc_check $_dvdnavdir $_dvdnavlibs $_ld_dl $_ld_pthread && _dvdnav=yes | 7831 cc_check $_dvdnavdir $_dvdnavlibs $_ld_dl $_ld_pthread && _dvdnav=yes |
7832 fi | 7832 fi |
7833 if test "$_dvdnav" = yes ; then | 7833 if test "$_dvdnav" = yes ; then |
7834 _largefiles=yes | 7834 _largefiles=yes |
7835 _def_dvdnav='#define CONFIG_DVDNAV 1' | 7835 def_dvdnav='#define CONFIG_DVDNAV 1' |
7836 if test "$dvdnav_internal" = yes ; then | 7836 if test "$dvdnav_internal" = yes ; then |
7837 _inc_extra="$_inc_extra -Ilibdvdnav" | 7837 _inc_extra="$_inc_extra -Ilibdvdnav" |
7838 _inputmodules="dvdnav(internal) $_inputmodules" | 7838 _inputmodules="dvdnav(internal) $_inputmodules" |
7839 else | 7839 else |
7840 _inc_extra="$_inc_extra `$_dvdnavconfig --cflags`" | 7840 _inc_extra="$_inc_extra `$_dvdnavconfig --cflags`" |
7841 _ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`" | 7841 _ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`" |
7842 _inputmodules="dvdnav $_inputmodules" | 7842 _inputmodules="dvdnav $_inputmodules" |
7843 fi | 7843 fi |
7844 else | 7844 else |
7845 _def_dvdnav='#undef CONFIG_DVDNAV' | 7845 def_dvdnav='#undef CONFIG_DVDNAV' |
7846 _noinputmodules="dvdnav $_noinputmodules" | 7846 _noinputmodules="dvdnav $_noinputmodules" |
7847 fi | 7847 fi |
7848 echores "$_dvdnav" | 7848 echores "$_dvdnav" |
7849 | 7849 |
7850 | 7850 |
8266 #define MPLAYER_LIBDIR "$_libdir" | 8266 #define MPLAYER_LIBDIR "$_libdir" |
8267 | 8267 |
8268 /* definitions needed by included libraries */ | 8268 /* definitions needed by included libraries */ |
8269 #define HAVE_INTTYPES_H 1 | 8269 #define HAVE_INTTYPES_H 1 |
8270 /* libmpeg2 + FFmpeg */ | 8270 /* libmpeg2 + FFmpeg */ |
8271 $_def_fast_inttypes | 8271 $def_fast_inttypes |
8272 /* libdvdcss */ | 8272 /* libdvdcss */ |
8273 #define HAVE_ERRNO_H 1 | 8273 #define HAVE_ERRNO_H 1 |
8274 /* libdvdcss + libdvdread */ | 8274 /* libdvdcss + libdvdread */ |
8275 #define HAVE_LIMITS_H 1 | 8275 #define HAVE_LIMITS_H 1 |
8276 /* libdvdcss + libfaad2 */ | 8276 /* libdvdcss + libfaad2 */ |
8293 $def_alloca_h | 8293 $def_alloca_h |
8294 $def_alsa_asoundlib_h | 8294 $def_alsa_asoundlib_h |
8295 $def_altivec_h | 8295 $def_altivec_h |
8296 $def_malloc_h | 8296 $def_malloc_h |
8297 $def_mman_h | 8297 $def_mman_h |
8298 $_def_mman_has_map_failed | 8298 $def_mman_has_map_failed |
8299 $def_soundcard_h | 8299 $def_soundcard_h |
8300 $def_sys_asoundlib_h | 8300 $def_sys_asoundlib_h |
8301 $def_sys_soundcard_h | 8301 $def_sys_soundcard_h |
8302 $def_sys_sysinfo_h | 8302 $def_sys_sysinfo_h |
8303 $def_termios_h | 8303 $def_termios_h |
8304 $def_termios_sys_h | 8304 $def_termios_sys_h |
8305 $def_winsock2_h | 8305 $def_winsock2_h |
8306 | 8306 |
8307 | 8307 |
8308 /* system functions */ | 8308 /* system functions */ |
8309 $_def_gethostbyname2 | 8309 $def_gethostbyname2 |
8310 $_def_gettimeofday | 8310 $def_gettimeofday |
8311 $_def_glob | 8311 $def_glob |
8312 $_def_langinfo | 8312 $def_langinfo |
8313 $_def_llrint | 8313 $def_llrint |
8314 $_def_lrint | 8314 $def_lrint |
8315 $_def_lrintf | 8315 $def_lrintf |
8316 $_def_map_memalign | 8316 $def_map_memalign |
8317 $_def_memalign | 8317 $def_memalign |
8318 $_def_nanosleep | 8318 $def_nanosleep |
8319 $_def_posix_select | 8319 $def_posix_select |
8320 $_def_round | 8320 $def_round |
8321 $_def_roundf | 8321 $def_roundf |
8322 $_def_select | 8322 $def_select |
8323 $_def_setenv | 8323 $def_setenv |
8324 $_def_shm | 8324 $def_shm |
8325 $_def_strsep | 8325 $def_strsep |
8326 $_def_swab | 8326 $def_swab |
8327 $_def_sysi86 | 8327 $def_sysi86 |
8328 $_def_sysi86_iv | 8328 $def_sysi86_iv |
8329 $_def_termcap | 8329 $def_termcap |
8330 $_def_termios | 8330 $def_termios |
8331 $_def_truncf | 8331 $def_truncf |
8332 $_def_vsscanf | 8332 $def_vsscanf |
8333 | 8333 |
8334 | 8334 |
8335 /* system-specific features */ | 8335 /* system-specific features */ |
8336 $_def_asmalign_pot | 8336 $def_asmalign_pot |
8337 $_def_builtin_expect | 8337 $def_builtin_expect |
8338 $_def_dl | 8338 $def_dl |
8339 $_def_extern_prefix | 8339 $def_extern_prefix |
8340 $_def_iconv | 8340 $def_iconv |
8341 $_def_kstat | 8341 $def_kstat |
8342 $_def_macosx_bundle | 8342 $def_macosx_bundle |
8343 $_def_macosx_finder | 8343 $def_macosx_finder |
8344 $_def_maemo | 8344 $def_maemo |
8345 $_def_named_asm_args | 8345 $def_named_asm_args |
8346 $_def_quicktime | 8346 $def_quicktime |
8347 $_def_restrict_keyword | 8347 $def_restrict_keyword |
8348 $_def_rtc | 8348 $def_rtc |
8349 $_def_unrar_exec | 8349 $def_unrar_exec |
8350 | 8350 |
8351 | 8351 |
8352 /* configurable options */ | 8352 /* configurable options */ |
8353 $_def_charset | 8353 $def_charset |
8354 $_def_crash_debug | 8354 $def_crash_debug |
8355 $_def_debug | 8355 $def_debug |
8356 $_def_dynamic_plugins | 8356 $def_dynamic_plugins |
8357 $_def_fastmemcpy | 8357 $def_fastmemcpy |
8358 $_def_menu | 8358 $def_menu |
8359 $_def_runtime_cpudetection | 8359 $def_runtime_cpudetection |
8360 $_def_sighandler | 8360 $def_sighandler |
8361 $_def_sortsub | 8361 $def_sortsub |
8362 $_def_stream_cache | 8362 $def_stream_cache |
8363 $_def_pthread_cache | 8363 $def_pthread_cache |
8364 | 8364 |
8365 | 8365 |
8366 /* CPU stuff */ | 8366 /* CPU stuff */ |
8367 #define __CPU__ $iproc | 8367 #define __CPU__ $iproc |
8368 $_def_words_endian | 8368 $def_words_endian |
8369 `ff_config_enable "$_arch_all" "$_arch" "ARCH"` | 8369 `ff_config_enable "$_arch_all" "$_arch" "ARCH"` |
8370 `ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE"` | 8370 `ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE"` |
8371 | 8371 |
8372 | 8372 |
8373 /* DVD/VCD/CD */ | 8373 /* DVD/VCD/CD */ |
8374 #define DEFAULT_CDROM_DEVICE "$default_cdrom_device" | 8374 #define DEFAULT_CDROM_DEVICE "$default_cdrom_device" |
8375 #define DEFAULT_DVD_DEVICE "$default_dvd_device" | 8375 #define DEFAULT_DVD_DEVICE "$default_dvd_device" |
8376 $_def_bsdi_dvd | 8376 $def_bsdi_dvd |
8377 $_def_cddb | 8377 $def_cddb |
8378 $_def_cdio | 8378 $def_cdio |
8379 $_def_cdparanoia | 8379 $def_cdparanoia |
8380 $_def_cdrom | 8380 $def_cdrom |
8381 $_def_dvd | 8381 $def_dvd |
8382 $_def_dvd_bsd | 8382 $def_dvd_bsd |
8383 $_def_dvd_darwin | 8383 $def_dvd_darwin |
8384 $_def_dvd_linux | 8384 $def_dvd_linux |
8385 $_def_dvd_openbsd | 8385 $def_dvd_openbsd |
8386 $_def_dvdio | 8386 $def_dvdio |
8387 $_def_dvdnav | 8387 $def_dvdnav |
8388 $_def_dvdread | 8388 $def_dvdread |
8389 $_def_hpux_scsi_h | 8389 $def_hpux_scsi_h |
8390 $_def_libcdio | 8390 $def_libcdio |
8391 $_def_sol_scsi_h | 8391 $def_sol_scsi_h |
8392 $_def_vcd | 8392 $def_vcd |
8393 | 8393 |
8394 | 8394 |
8395 /* codec libraries */ | 8395 /* codec libraries */ |
8396 $_def_faac | 8396 $def_faac |
8397 $_def_faad | 8397 $def_faad |
8398 $_def_faad_internal | 8398 $def_faad_internal |
8399 $_def_liba52 | 8399 $def_liba52 |
8400 $_def_liba52_internal | 8400 $def_liba52_internal |
8401 $_def_libdca | 8401 $def_libdca |
8402 $_def_libdv | 8402 $def_libdv |
8403 $_def_liblzo | 8403 $def_liblzo |
8404 $_def_libmpeg2 | 8404 $def_libmpeg2 |
8405 $_def_mad | 8405 $def_mad |
8406 $_def_mp3lame | 8406 $def_mp3lame |
8407 $_def_mp3lame_preset | 8407 $def_mp3lame_preset |
8408 $_def_mp3lame_preset_medium | 8408 $def_mp3lame_preset_medium |
8409 $_def_mp3lib | 8409 $def_mp3lib |
8410 $_def_musepack | 8410 $def_musepack |
8411 $_def_speex | 8411 $def_speex |
8412 $_def_theora | 8412 $def_theora |
8413 $_def_toolame | 8413 $def_toolame |
8414 $_def_tremor | 8414 $def_tremor |
8415 $_def_twolame | 8415 $def_twolame |
8416 $_def_vorbis | 8416 $def_vorbis |
8417 $_def_x264 | 8417 $def_x264 |
8418 $_def_xvid | 8418 $def_xvid |
8419 $_def_zlib | 8419 $def_zlib |
8420 | 8420 |
8421 $_def_libnut | 8421 $def_libnut |
8422 | 8422 |
8423 | 8423 |
8424 /* binary codecs */ | 8424 /* binary codecs */ |
8425 $_def_qtx | 8425 $def_qtx |
8426 $_def_qtx_win32 | 8426 $def_qtx_win32 |
8427 $_def_real | 8427 $def_real |
8428 $_def_real_path | 8428 $def_real_path |
8429 $_def_win32_loader | 8429 $def_win32_loader |
8430 $_def_win32dll | 8430 $def_win32dll |
8431 #define WIN32_PATH "$_win32codecsdir" | 8431 #define WIN32_PATH "$_win32codecsdir" |
8432 $_def_xanim | 8432 $def_xanim |
8433 $_def_xanim_path | 8433 $def_xanim_path |
8434 $_def_xmms | 8434 $def_xmms |
8435 #define XMMS_INPUT_PLUGIN_DIR "$_xmmsplugindir" | 8435 #define XMMS_INPUT_PLUGIN_DIR "$_xmmsplugindir" |
8436 | 8436 |
8437 | 8437 |
8438 /* GUI */ | 8438 /* GUI */ |
8439 $_def_gtk2 | 8439 $def_gtk2 |
8440 $_def_gui | 8440 $def_gui |
8441 $_def_xshape | 8441 $def_xshape |
8442 | 8442 |
8443 | 8443 |
8444 /* Audio output drivers */ | 8444 /* Audio output drivers */ |
8445 $_def_alsa | 8445 $def_alsa |
8446 $_def_alsa1x | 8446 $def_alsa1x |
8447 $_def_alsa5 | 8447 $def_alsa5 |
8448 $_def_alsa9 | 8448 $def_alsa9 |
8449 $_def_arts | 8449 $def_arts |
8450 $_def_coreaudio | 8450 $def_coreaudio |
8451 $_def_esd | 8451 $def_esd |
8452 $_def_esd_latency | 8452 $def_esd_latency |
8453 $_def_jack | 8453 $def_jack |
8454 $_def_nas | 8454 $def_nas |
8455 $_def_openal | 8455 $def_openal |
8456 $_def_openal_h | 8456 $def_openal_h |
8457 $_def_ossaudio | 8457 $def_ossaudio |
8458 $_def_ossaudio_devdsp | 8458 $def_ossaudio_devdsp |
8459 $_def_ossaudio_devmixer | 8459 $def_ossaudio_devmixer |
8460 $_def_pulse | 8460 $def_pulse |
8461 $_def_sgiaudio | 8461 $def_sgiaudio |
8462 $_def_sunaudio | 8462 $def_sunaudio |
8463 $_def_win32waveout | 8463 $def_win32waveout |
8464 | 8464 |
8465 $_def_ladspa | 8465 $def_ladspa |
8466 | 8466 |
8467 | 8467 |
8468 /* input */ | 8468 /* input */ |
8469 $_def_apple_ir | 8469 $def_apple_ir |
8470 $_def_apple_remote | 8470 $def_apple_remote |
8471 $_def_ioctl_bt848_h_name | 8471 $def_ioctl_bt848_h_name |
8472 $_def_ioctl_meteor_h_name | 8472 $def_ioctl_meteor_h_name |
8473 $_def_joystick | 8473 $def_joystick |
8474 $_def_lirc | 8474 $def_lirc |
8475 $_def_lircc | 8475 $def_lircc |
8476 $_def_pvr | 8476 $def_pvr |
8477 $_def_radio | 8477 $def_radio |
8478 $_def_radio_bsdbt848 | 8478 $def_radio_bsdbt848 |
8479 $_def_radio_capture | 8479 $def_radio_capture |
8480 $_def_radio_v4l | 8480 $def_radio_v4l |
8481 $_def_radio_v4l2 | 8481 $def_radio_v4l2 |
8482 $_def_tv | 8482 $def_tv |
8483 $_def_tv_bsdbt848 | 8483 $def_tv_bsdbt848 |
8484 $_def_tv_dshow | 8484 $def_tv_dshow |
8485 $_def_tv_teletext | 8485 $def_tv_teletext |
8486 $_def_tv_v4l | 8486 $def_tv_v4l |
8487 $_def_tv_v4l1 | 8487 $def_tv_v4l1 |
8488 $_def_tv_v4l2 | 8488 $def_tv_v4l2 |
8489 | 8489 |
8490 | 8490 |
8491 /* font stuff */ | 8491 /* font stuff */ |
8492 $_def_ass | 8492 $def_ass |
8493 $_def_bitmap_font | 8493 $def_bitmap_font |
8494 $_def_enca | 8494 $def_enca |
8495 $_def_fontconfig | 8495 $def_fontconfig |
8496 $_def_freetype | 8496 $def_freetype |
8497 $_def_fribidi | 8497 $def_fribidi |
8498 | 8498 |
8499 | 8499 |
8500 /* networking */ | 8500 /* networking */ |
8501 $_def_closesocket | 8501 $def_closesocket |
8502 $_def_ftp | 8502 $def_ftp |
8503 $_def_inet6 | 8503 $def_inet6 |
8504 $def_inet_aton | 8504 $def_inet_aton |
8505 $def_inet_pton | 8505 $def_inet_pton |
8506 $_def_live | 8506 $def_live |
8507 $_def_nemesi | 8507 $def_nemesi |
8508 $_def_network | 8508 $def_network |
8509 $_def_smb | 8509 $def_smb |
8510 $_def_socklen_t | 8510 $def_socklen_t |
8511 $_def_vstream | 8511 $def_vstream |
8512 | 8512 |
8513 | 8513 |
8514 /* libvo options */ | 8514 /* libvo options */ |
8515 $_def_3dfx | 8515 $def_3dfx |
8516 $_def_aa | 8516 $def_aa |
8517 $_def_bl | 8517 $def_bl |
8518 $_def_caca | 8518 $def_caca |
8519 $_def_corevideo | 8519 $def_corevideo |
8520 $_def_dfbmga | 8520 $def_dfbmga |
8521 $_def_dga | 8521 $def_dga |
8522 $_def_dga1 | 8522 $def_dga1 |
8523 $_def_dga2 | 8523 $def_dga2 |
8524 $_def_direct3d | 8524 $def_direct3d |
8525 $_def_directfb | 8525 $def_directfb |
8526 $_def_directfb_version | 8526 $def_directfb_version |
8527 $_def_directx | 8527 $def_directx |
8528 $_def_dvb | 8528 $def_dvb |
8529 $_def_dvb_head | 8529 $def_dvb_head |
8530 $_def_dvbin | 8530 $def_dvbin |
8531 $_def_dxr2 | 8531 $def_dxr2 |
8532 $_def_dxr3 | 8532 $def_dxr3 |
8533 $_def_fbdev | 8533 $def_fbdev |
8534 $_def_ggi | 8534 $def_ggi |
8535 $_def_ggiwmh | 8535 $def_ggiwmh |
8536 $_def_gif | 8536 $def_gif |
8537 $_def_gif_4 | 8537 $def_gif_4 |
8538 $_def_gif_tvt_hack | 8538 $def_gif_tvt_hack |
8539 $_def_gl | 8539 $def_gl |
8540 $_def_gl_win32 | 8540 $def_gl_win32 |
8541 $_def_ivtv | 8541 $def_ivtv |
8542 $_def_jpeg | 8542 $def_jpeg |
8543 $_def_md5sum | 8543 $def_md5sum |
8544 $_def_mga | 8544 $def_mga |
8545 $_def_mng | 8545 $def_mng |
8546 $_def_png | 8546 $def_png |
8547 $_def_pnm | 8547 $def_pnm |
8548 $_def_quartz | 8548 $def_quartz |
8549 $_def_s3fb | 8549 $def_s3fb |
8550 $_def_sdl | 8550 $def_sdl |
8551 $_def_sdlbuggy | 8551 $def_sdlbuggy |
8552 $_def_svga | 8552 $def_svga |
8553 $_def_tdfxfb | 8553 $def_tdfxfb |
8554 $_def_tdfxvid | 8554 $def_tdfxvid |
8555 $_def_tga | 8555 $def_tga |
8556 $_def_v4l2 | 8556 $def_v4l2 |
8557 $_def_vesa | 8557 $def_vesa |
8558 $_def_vidix | 8558 $def_vidix |
8559 $_def_vidix_drv_cyberblade | 8559 $def_vidix_drv_cyberblade |
8560 $_def_vidix_drv_ivtv | 8560 $def_vidix_drv_ivtv |
8561 $_def_vidix_drv_mach64 | 8561 $def_vidix_drv_mach64 |
8562 $_def_vidix_drv_mga | 8562 $def_vidix_drv_mga |
8563 $_def_vidix_drv_mga_crtc2 | 8563 $def_vidix_drv_mga_crtc2 |
8564 $_def_vidix_drv_nvidia | 8564 $def_vidix_drv_nvidia |
8565 $_def_vidix_drv_pm3 | 8565 $def_vidix_drv_pm3 |
8566 $_def_vidix_drv_radeon | 8566 $def_vidix_drv_radeon |
8567 $_def_vidix_drv_rage128 | 8567 $def_vidix_drv_rage128 |
8568 $_def_vidix_drv_s3 | 8568 $def_vidix_drv_s3 |
8569 $_def_vidix_drv_sh_veu | 8569 $def_vidix_drv_sh_veu |
8570 $_def_vidix_drv_sis | 8570 $def_vidix_drv_sis |
8571 $_def_vidix_drv_unichrome | 8571 $def_vidix_drv_unichrome |
8572 $_def_vidix_pfx | 8572 $def_vidix_pfx |
8573 $_def_vm | 8573 $def_vm |
8574 $_def_wii | 8574 $def_wii |
8575 $_def_x11 | 8575 $def_x11 |
8576 $_def_xdpms | 8576 $def_xdpms |
8577 $_def_xf86keysym | 8577 $def_xf86keysym |
8578 $_def_xinerama | 8578 $def_xinerama |
8579 $_def_xmga | 8579 $def_xmga |
8580 $_def_xss | 8580 $def_xss |
8581 $_def_xv | 8581 $def_xv |
8582 $_def_xvmc | 8582 $def_xvmc |
8583 $_def_xvr100 | 8583 $def_xvr100 |
8584 $_def_yuv4mpeg | 8584 $def_yuv4mpeg |
8585 $_def_zr | 8585 $def_zr |
8586 | 8586 |
8587 | 8587 |
8588 /* FFmpeg */ | 8588 /* FFmpeg */ |
8589 $_def_libavcodec | 8589 $def_libavcodec |
8590 $_def_libavcodec_a | 8590 $def_libavcodec_a |
8591 $_def_libavcodec_so | 8591 $def_libavcodec_so |
8592 $_def_libavformat | 8592 $def_libavformat |
8593 $_def_libavformat_a | 8593 $def_libavformat_a |
8594 $_def_libavformat_so | 8594 $def_libavformat_so |
8595 $_def_libavutil | 8595 $def_libavutil |
8596 $_def_libavutil_a | 8596 $def_libavutil_a |
8597 $_def_libavutil_so | 8597 $def_libavutil_so |
8598 $_def_libpostproc | 8598 $def_libpostproc |
8599 $_def_libpostproc_a | 8599 $def_libpostproc_a |
8600 $_def_libpostproc_so | 8600 $def_libpostproc_so |
8601 $_def_libswscale | 8601 $def_libswscale |
8602 $_def_libswscale_a | 8602 $def_libswscale_a |
8603 $_def_libswscale_so | 8603 $def_libswscale_so |
8604 | 8604 |
8605 #define CONFIG_DECODERS 1 | 8605 #define CONFIG_DECODERS 1 |
8606 #define CONFIG_ENCODERS 1 | 8606 #define CONFIG_ENCODERS 1 |
8607 #define CONFIG_DEMUXERS 1 | 8607 #define CONFIG_DEMUXERS 1 |
8608 $_def_muxers | 8608 $def_muxers |
8609 | 8609 |
8610 $def_arpa_inet_h | 8610 $def_arpa_inet_h |
8611 $def_bswap | 8611 $def_bswap |
8612 $def_bzlib | 8612 $def_bzlib |
8613 $_def_dcbzl | 8613 $def_dcbzl |
8614 $def_dos_paths | 8614 $def_dos_paths |
8615 $def_fast_64bit | 8615 $def_fast_64bit |
8616 $_def_fast_unaligned | 8616 $def_fast_unaligned |
8617 $_def_libavcodec_mpegaudio_hp | 8617 $def_libavcodec_mpegaudio_hp |
8618 $_def_memalign_hack | 8618 $def_memalign_hack |
8619 $def_mlib | 8619 $def_mlib |
8620 $_def_mkstemp | 8620 $def_mkstemp |
8621 $_def_pthreads | 8621 $def_pthreads |
8622 $_def_threads | 8622 $def_threads |
8623 $_def_yasm | 8623 $def_yasm |
8624 | 8624 |
8625 #define CONFIG_FASTDIV 0 | 8625 #define CONFIG_FASTDIV 0 |
8626 #define CONFIG_FFSERVER 0 | 8626 #define CONFIG_FFSERVER 0 |
8627 #define CONFIG_GPL 1 | 8627 #define CONFIG_GPL 1 |
8628 #define CONFIG_GRAY 0 | 8628 #define CONFIG_GRAY 0 |
8649 #ifndef MP_DEBUG | 8649 #ifndef MP_DEBUG |
8650 #define HAVE_EBP_AVAILABLE 1 | 8650 #define HAVE_EBP_AVAILABLE 1 |
8651 #endif | 8651 #endif |
8652 | 8652 |
8653 /* External libraries used through libavcodec. */ | 8653 /* External libraries used through libavcodec. */ |
8654 $_def_faac_lavc | 8654 $def_faac_lavc |
8655 $_def_libamr | 8655 $def_libamr |
8656 $_def_libamr_nb | 8656 $def_libamr_nb |
8657 $_def_libamr_wb | 8657 $def_libamr_wb |
8658 $_def_libdirac_lavc | 8658 $def_libdirac_lavc |
8659 $_def_libschroedinger_lavc | 8659 $def_libschroedinger_lavc |
8660 $_def_mp3lame_lavc | 8660 $def_mp3lame_lavc |
8661 $_def_x264_lavc | 8661 $def_x264_lavc |
8662 $_def_xvid_lavc | 8662 $def_xvid_lavc |
8663 | 8663 |
8664 `ff_config_enable "$_libavdecoders_all" "$_libavdecoders"` | 8664 `ff_config_enable "$_libavdecoders_all" "$_libavdecoders"` |
8665 `ff_config_enable "$_libavencoders_all" "$_libavencoders"` | 8665 `ff_config_enable "$_libavencoders_all" "$_libavencoders"` |
8666 `ff_config_enable "$_libavparsers_all" "$_libavparsers"` | 8666 `ff_config_enable "$_libavparsers_all" "$_libavparsers"` |
8667 `ff_config_enable "$_libavdemuxers_all" "$_libavdemuxers"` | 8667 `ff_config_enable "$_libavdemuxers_all" "$_libavdemuxers"` |