comparison configure @ 29022:9e1d1197c567

cosmetics: Drop leading underscore from extra_ variables.
author diego
date Wed, 25 Mar 2009 19:48:05 +0000
parents d0329d65c7fd
children 8b797cf46bb8
comparison
equal deleted inserted replaced
29021:500adeff7ff4 29022:9e1d1197c567
59 # These macros only return an error code - NO display is done 59 # These macros only return an error code - NO display is done
60 compile_check() { 60 compile_check() {
61 echo >> "$TMPLOG" 61 echo >> "$TMPLOG"
62 cat "$1" >> "$TMPLOG" 62 cat "$1" >> "$TMPLOG"
63 echo >> "$TMPLOG" 63 echo >> "$TMPLOG"
64 echo "$_cc $CFLAGS $_extra_cflags $_ld_static $_extra_ldflags $_libs_mplayer $_libs_mencoder -o $TMPEXE $@" >> "$TMPLOG" 64 echo "$_cc $CFLAGS $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o $TMPEXE $@" >> "$TMPLOG"
65 rm -f "$TMPEXE" 65 rm -f "$TMPEXE"
66 $_cc $CFLAGS $_extra_cflags $_ld_static $_extra_ldflags $_libs_mplayer $_libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1 66 $_cc $CFLAGS $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1
67 TMP="$?" 67 TMP="$?"
68 echo >> "$TMPLOG" 68 echo >> "$TMPLOG"
69 echo >> "$TMPLOG" 69 echo >> "$TMPLOG"
70 return "$TMP" 70 return "$TMP"
71 } 71 }
793 --with-dvdread-config=*) 793 --with-dvdread-config=*)
794 _dvdreadconfig=`echo $ac_option | cut -d '=' -f 2` 794 _dvdreadconfig=`echo $ac_option | cut -d '=' -f 2`
795 ;; 795 ;;
796 796
797 --extra-cflags=*) 797 --extra-cflags=*)
798 _extra_cflags=`echo $ac_option | cut -d '=' -f 2` 798 extra_cflags=`echo $ac_option | cut -d '=' -f 2`
799 ;; 799 ;;
800 --extra-ldflags=*) 800 --extra-ldflags=*)
801 _extra_ldflags=`echo $ac_option | cut -d '=' -f 2` 801 extra_ldflags=`echo $ac_option | cut -d '=' -f 2`
802 ;; 802 ;;
803 --extra-libs=*) 803 --extra-libs=*)
804 _extra_libs=`echo $ac_option | cut -d '=' -f 2` 804 extra_libs=`echo $ac_option | cut -d '=' -f 2`
805 ;; 805 ;;
806 --extra-libs-mplayer=*) 806 --extra-libs-mplayer=*)
807 _libs_mplayer=`echo $ac_option | cut -d '=' -f 2` 807 libs_mplayer=`echo $ac_option | cut -d '=' -f 2`
808 ;; 808 ;;
809 --extra-libs-mencoder=*) 809 --extra-libs-mencoder=*)
810 _libs_mencoder=`echo $ac_option | cut -d '=' -f 2` 810 libs_mencoder=`echo $ac_option | cut -d '=' -f 2`
811 ;; 811 ;;
812 812
813 --target=*) 813 --target=*)
814 _target=`echo $ac_option | cut -d '=' -f 2` 814 _target=`echo $ac_option | cut -d '=' -f 2`
815 ;; 815 ;;
1409 if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then 1409 if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then
1410 die "Runtime CPU detection only works for x86, x86-64 and PPC!" 1410 die "Runtime CPU detection only works for x86, x86-64 and PPC!"
1411 fi 1411 fi
1412 1412
1413 1413
1414 _extra_cflags="-I. $_extra_cflags" 1414 extra_cflags="-I. $extra_cflags"
1415 _timer=timer-linux.c 1415 _timer=timer-linux.c
1416 _getch=getch2.c 1416 _getch=getch2.c
1417 if freebsd ; then 1417 if freebsd ; then
1418 _extra_ldflags="$_extra_ldflags -L/usr/local/lib" 1418 extra_ldflags="$extra_ldflags -L/usr/local/lib"
1419 _extra_cflags="$_extra_cflags -I/usr/local/include" 1419 extra_cflags="$extra_cflags -I/usr/local/include"
1420 fi 1420 fi
1421 1421
1422 if netbsd || dragonfly ; then 1422 if netbsd || dragonfly ; then
1423 _extra_ldflags="$_extra_ldflags -L/usr/pkg/lib" 1423 extra_ldflags="$extra_ldflags -L/usr/pkg/lib"
1424 _extra_cflags="$_extra_cflags -I/usr/pkg/include" 1424 extra_cflags="$extra_cflags -I/usr/pkg/include"
1425 fi 1425 fi
1426 1426
1427 if darwin; then 1427 if darwin; then
1428 _extra_ldflags="$_extra_ldflags -L/usr/local/lib" 1428 extra_ldflags="$extra_ldflags -L/usr/local/lib"
1429 _extra_cflags="$_extra_cflags -I/usr/local/include" 1429 extra_cflags="$extra_cflags -I/usr/local/include"
1430 _timer=timer-darwin.c 1430 _timer=timer-darwin.c
1431 fi 1431 fi
1432 1432
1433 if aix ; then 1433 if aix ; then
1434 _extra_ldflags="$_extra_ldflags -lC" 1434 extra_ldflags="$extra_ldflags -lC"
1435 fi 1435 fi
1436 1436
1437 if irix ; then 1437 if irix ; then
1438 _ranlib='ar -r' 1438 _ranlib='ar -r'
1439 elif linux ; then 1439 elif linux ; then
1441 fi 1441 fi
1442 1442
1443 if win32 ; then 1443 if win32 ; then
1444 _exesuf=".exe" 1444 _exesuf=".exe"
1445 # -lwinmm is always needed for osdep/timer-win2.c 1445 # -lwinmm is always needed for osdep/timer-win2.c
1446 _extra_ldflags="$_extra_ldflags -lwinmm" 1446 extra_ldflags="$extra_ldflags -lwinmm"
1447 _pe_executable=yes 1447 _pe_executable=yes
1448 _timer=timer-win2.c 1448 _timer=timer-win2.c
1449 _priority=yes 1449 _priority=yes
1450 def_dos_paths="#define HAVE_DOS_PATHS 1" 1450 def_dos_paths="#define HAVE_DOS_PATHS 1"
1451 def_priority="#define CONFIG_PRIORITY 1" 1451 def_priority="#define CONFIG_PRIORITY 1"
1462 _stream_cache=no 1462 _stream_cache=no
1463 def_stream_cache="#undef CONFIG_STREAM_CACHE" 1463 def_stream_cache="#undef CONFIG_STREAM_CACHE"
1464 fi 1464 fi
1465 1465
1466 if qnx ; then 1466 if qnx ; then
1467 _extra_ldflags="$_extra_ldflags -lph" 1467 extra_ldflags="$extra_ldflags -lph"
1468 fi 1468 fi
1469 1469
1470 if os2 ; then 1470 if os2 ; then
1471 _exesuf=".exe" 1471 _exesuf=".exe"
1472 _getch=getch2-os2.c 1472 _getch=getch2-os2.c
2404 CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144" 2404 CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144"
2405 elif test "$cc_vendor" != "gnu" ; then 2405 elif test "$cc_vendor" != "gnu" ; then
2406 CFLAGS="-O2 $_march $_mcpu $_pipe" 2406 CFLAGS="-O2 $_march $_mcpu $_pipe"
2407 else 2407 else
2408 CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" 2408 CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
2409 _extra_ldflags="$_extra_ldflags -ffast-math" 2409 extra_ldflags="$extra_ldflags -ffast-math"
2410 fi 2410 fi
2411 else 2411 else
2412 _warn_CFLAGS=yes 2412 _warn_CFLAGS=yes
2413 fi 2413 fi
2414 if test -n "$LDFLAGS" ; then 2414 if test -n "$LDFLAGS" ; then
2415 _extra_ldflags="$_extra_ldflags $LDFLAGS" 2415 extra_ldflags="$extra_ldflags $LDFLAGS"
2416 _warn_CFLAGS=yes 2416 _warn_CFLAGS=yes
2417 elif test "$cc_vendor" = "intel" ; then 2417 elif test "$cc_vendor" = "intel" ; then
2418 _extra_ldflags="$_extra_ldflags -i-static" 2418 extra_ldflags="$extra_ldflags -i-static"
2419 fi 2419 fi
2420 if test -n "$CPPFLAGS" ; then 2420 if test -n "$CPPFLAGS" ; then
2421 _extra_cflags="$_extra_cflags $CPPFLAGS" 2421 extra_cflags="$extra_cflags $CPPFLAGS"
2422 _warn_CFLAGS=yes 2422 _warn_CFLAGS=yes
2423 fi 2423 fi
2424 2424
2425 2425
2426 2426
2717 echocheck "-lposix" 2717 echocheck "-lposix"
2718 cat > $TMPC <<EOF 2718 cat > $TMPC <<EOF
2719 int main(void) { return 0; } 2719 int main(void) { return 0; }
2720 EOF 2720 EOF
2721 if cc_check -lposix ; then 2721 if cc_check -lposix ; then
2722 _extra_ldflags="$_extra_ldflags -lposix" 2722 extra_ldflags="$extra_ldflags -lposix"
2723 echores "yes" 2723 echores "yes"
2724 else 2724 else
2725 echores "no" 2725 echores "no"
2726 fi 2726 fi
2727 2727
2857 EOF 2857 EOF
2858 _kstat=no 2858 _kstat=no
2859 cc_check -lkstat && _kstat=yes 2859 cc_check -lkstat && _kstat=yes
2860 if test "$_kstat" = yes ; then 2860 if test "$_kstat" = yes ; then
2861 def_kstat="#define HAVE_LIBKSTAT 1" 2861 def_kstat="#define HAVE_LIBKSTAT 1"
2862 _extra_ldflags="$_extra_ldflags -lkstat" 2862 extra_ldflags="$extra_ldflags -lkstat"
2863 else 2863 else
2864 def_kstat="#undef HAVE_LIBKSTAT" 2864 def_kstat="#undef HAVE_LIBKSTAT"
2865 fi 2865 fi
2866 echores "$_kstat" 2866 echores "$_kstat"
2867 2867
2873 int main(void) { (void) nanosleep(0, 0); return 0; } 2873 int main(void) { (void) nanosleep(0, 0); return 0; }
2874 EOF 2874 EOF
2875 _posix4=no 2875 _posix4=no
2876 cc_check -lposix4 && _posix4=yes 2876 cc_check -lposix4 && _posix4=yes
2877 if test "$_posix4" = yes ; then 2877 if test "$_posix4" = yes ; then
2878 _extra_ldflags="$_extra_ldflags -lposix4" 2878 extra_ldflags="$extra_ldflags -lposix4"
2879 fi 2879 fi
2880 echores "$_posix4" 2880 echores "$_posix4"
2881 2881
2882 for func in llrint lrint lrintf round roundf truncf; do 2882 for func in llrint lrint lrintf round roundf truncf; do
2883 echocheck $func 2883 echocheck $func
3044 echocheck "network" 3044 echocheck "network"
3045 test $_winsock2_h = no && test $inet_pton = no && 3045 test $_winsock2_h = no && test $inet_pton = no &&
3046 test $inet_aton = no && _network=no 3046 test $inet_aton = no && _network=no
3047 if test "$_network" = yes ; then 3047 if test "$_network" = yes ; then
3048 def_network='#define CONFIG_NETWORK 1' 3048 def_network='#define CONFIG_NETWORK 1'
3049 _extra_ldflags="$_extra_ldflags $_ld_sock" 3049 extra_ldflags="$extra_ldflags $_ld_sock"
3050 _inputmodules="network $_inputmodules" 3050 _inputmodules="network $_inputmodules"
3051 else 3051 else
3052 _noinputmodules="network $_noinputmodules" 3052 _noinputmodules="network $_noinputmodules"
3053 def_network='#undef CONFIG_NETWORK' 3053 def_network='#undef CONFIG_NETWORK'
3054 _ftp=no 3054 _ftp=no
3331 echores "$_w32threads" 3331 echores "$_w32threads"
3332 3332
3333 echocheck "rpath" 3333 echocheck "rpath"
3334 netbsd &&_rpath=yes 3334 netbsd &&_rpath=yes
3335 if test "$_rpath" = yes ; then 3335 if test "$_rpath" = yes ; then
3336 for I in `echo $_extra_ldflags | sed 's/-L//g'` ; do 3336 for I in `echo $extra_ldflags | sed 's/-L//g'` ; do
3337 tmp="$tmp ` echo $I | sed 's/.*/ -L& -Wl,-R&/'`" 3337 tmp="$tmp ` echo $I | sed 's/.*/ -L& -Wl,-R&/'`"
3338 done 3338 done
3339 _extra_ldflags=$tmp 3339 extra_ldflags=$tmp
3340 fi 3340 fi
3341 echores "$_rpath" 3341 echores "$_rpath"
3342 3342
3343 echocheck "iconv" 3343 echocheck "iconv"
3344 if test "$_iconv" = auto ; then 3344 if test "$_iconv" = auto ; then
3374 return 0; 3374 return 0;
3375 } 3375 }
3376 EOF 3376 EOF
3377 _iconv=no 3377 _iconv=no
3378 for _ld_tmp in "" "-liconv" "-liconv $_ld_dl" ; do 3378 for _ld_tmp in "" "-liconv" "-liconv $_ld_dl" ; do
3379 cc_check $_ld_lm $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" && \ 3379 cc_check $_ld_lm $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" && \
3380 _iconv=yes && break 3380 _iconv=yes && break
3381 done 3381 done
3382 fi 3382 fi
3383 if test "$_iconv" = yes ; then 3383 if test "$_iconv" = yes ; then
3384 def_iconv='#define CONFIG_ICONV 1' 3384 def_iconv='#define CONFIG_ICONV 1'
3535 #include <term.h> 3535 #include <term.h>
3536 int main(void) { tgetent(NULL, NULL); return 0; } 3536 int main(void) { tgetent(NULL, NULL); return 0; }
3537 EOF 3537 EOF
3538 _termcap=no 3538 _termcap=no
3539 for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do 3539 for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
3540 cc_check $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \ 3540 cc_check $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \
3541 && _termcap=yes && break 3541 && _termcap=yes && break
3542 done 3542 done
3543 fi 3543 fi
3544 if test "$_termcap" = yes ; then 3544 if test "$_termcap" = yes ; then
3545 def_termcap='#define HAVE_TERMCAP 1' 3545 def_termcap='#define HAVE_TERMCAP 1'
3786 cat > $TMPC <<EOF 3786 cat > $TMPC <<EOF
3787 #include <CoreAudio/CoreAudio.h> 3787 #include <CoreAudio/CoreAudio.h>
3788 int main(void) { return 0; } 3788 int main(void) { return 0; }
3789 EOF 3789 EOF
3790 if cc_check -framework CoreAudio; then 3790 if cc_check -framework CoreAudio; then
3791 _extra_ldflags="$_extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox" 3791 extra_ldflags="$extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
3792 _coreaudio=yes 3792 _coreaudio=yes
3793 def_coreaudio='#define CONFIG_COREAUDIO 1' 3793 def_coreaudio='#define CONFIG_COREAUDIO 1'
3794 _aomodules="macosx $_aomodules" 3794 _aomodules="macosx $_aomodules"
3795 else 3795 else
3796 _coreaudio=no 3796 _coreaudio=no
3806 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); 3806 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);
3807 return 0; 3807 return 0;
3808 } 3808 }
3809 EOF 3809 EOF
3810 if cc_check -framework Carbon -framework QuickTime; then 3810 if cc_check -framework Carbon -framework QuickTime; then
3811 _extra_ldflags="$_extra_ldflags -framework Carbon -framework QuickTime" 3811 extra_ldflags="$extra_ldflags -framework Carbon -framework QuickTime"
3812 _quartz=yes 3812 _quartz=yes
3813 def_quartz='#define CONFIG_QUARTZ 1' 3813 def_quartz='#define CONFIG_QUARTZ 1'
3814 _vomodules="quartz $_vomodules" 3814 _vomodules="quartz $_vomodules"
3815 def_quicktime='#define CONFIG_QUICKTIME 1' 3815 def_quicktime='#define CONFIG_QUICKTIME 1'
3816 else 3816 else
3824 #include <QuartzCore/CoreVideo.h> 3824 #include <QuartzCore/CoreVideo.h>
3825 int main(void) { return 0; } 3825 int main(void) { return 0; }
3826 EOF 3826 EOF
3827 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then 3827 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then
3828 _vomodules="macosx $_vomodules" 3828 _vomodules="macosx $_vomodules"
3829 _extra_ldflags="$_extra_ldflags -framework Cocoa -framework QuartzCore -framework OpenGL" 3829 extra_ldflags="$extra_ldflags -framework Cocoa -framework QuartzCore -framework OpenGL"
3830 def_corevideo='#define CONFIG_COREVIDEO 1' 3830 def_corevideo='#define CONFIG_COREVIDEO 1'
3831 _corevideo=yes 3831 _corevideo=yes
3832 else 3832 else
3833 _novomodules="macosx $_novomodules" 3833 _novomodules="macosx $_novomodules"
3834 def_corevideo='#undef CONFIG_COREVIDEO' 3834 def_corevideo='#undef CONFIG_COREVIDEO'
3891 EOF 3891 EOF
3892 cc_check -framework IOKit && tmp_run && _apple_remote=yes 3892 cc_check -framework IOKit && tmp_run && _apple_remote=yes
3893 fi 3893 fi
3894 if test "$_apple_remote" = yes ; then 3894 if test "$_apple_remote" = yes ; then
3895 def_apple_remote='#define CONFIG_APPLE_REMOTE 1' 3895 def_apple_remote='#define CONFIG_APPLE_REMOTE 1'
3896 _extra_ldflags="$_extra_ldflags -framework IOKit" 3896 extra_ldflags="$extra_ldflags -framework IOKit"
3897 else 3897 else
3898 def_apple_remote='#undef CONFIG_APPLE_REMOTE' 3898 def_apple_remote='#undef CONFIG_APPLE_REMOTE'
3899 fi 3899 fi
3900 echores "$_apple_remote" 3900 echores "$_apple_remote"
3901 3901
3938 fi 3938 fi
3939 3939
3940 3940
3941 echocheck "Samba support (libsmbclient)" 3941 echocheck "Samba support (libsmbclient)"
3942 if test "$_smb" = yes; then 3942 if test "$_smb" = yes; then
3943 _extra_ldflags="$_extra_ldflags -lsmbclient" 3943 extra_ldflags="$extra_ldflags -lsmbclient"
3944 fi 3944 fi
3945 if test "$_smb" = auto; then 3945 if test "$_smb" = auto; then
3946 _smb=no 3946 _smb=no
3947 cat > $TMPC << EOF 3947 cat > $TMPC << EOF
3948 #include <libsmbclient.h> 3948 #include <libsmbclient.h>
3949 int main(void) { smbc_opendir("smb://"); return 0; } 3949 int main(void) { smbc_opendir("smb://"); return 0; }
3950 EOF 3950 EOF
3951 for _ld_tmp in "-lsmbclient" "-lsmbclient $_ld_dl" "-lsmbclient $_ld_dl -lnsl" "-lsmbclient $_ld_dl -lssl -lnsl" ; do 3951 for _ld_tmp in "-lsmbclient" "-lsmbclient $_ld_dl" "-lsmbclient $_ld_dl -lnsl" "-lsmbclient $_ld_dl -lssl -lnsl" ; do
3952 cc_check $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" && \ 3952 cc_check $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" && \
3953 _smb=yes && break 3953 _smb=yes && break
3954 done 3954 done
3955 fi 3955 fi
3956 3956
3957 if test "$_smb" = yes; then 3957 if test "$_smb" = yes; then
4087 int main(void) { IDirectFB *foo; DirectFBInit(0,0); return 0; } 4087 int main(void) { IDirectFB *foo; DirectFBInit(0,0); return 0; }
4088 EOF 4088 EOF
4089 for _inc_tmp in "" -I/usr/local/include/directfb \ 4089 for _inc_tmp in "" -I/usr/local/include/directfb \
4090 -I/usr/include/directfb -I/usr/local/include; do 4090 -I/usr/include/directfb -I/usr/local/include; do
4091 cc_check $_inc_tmp -ldirectfb && _directfb=yes && \ 4091 cc_check $_inc_tmp -ldirectfb && _directfb=yes && \
4092 _extra_cflags="$_extra_cflags $_inc_tmp" && break 4092 extra_cflags="$extra_cflags $_inc_tmp" && break
4093 done 4093 done
4094 fi 4094 fi
4095 4095
4096 dfb_version() { 4096 dfb_version() {
4097 expr $1 \* 65536 + $2 \* 256 + $3 4097 expr $1 \* 65536 + $2 \* 256 + $3
4102 #include <directfb_version.h> 4102 #include <directfb_version.h>
4103 int 4103 int
4104 dfb_ver = DIRECTFB_MAJOR_VERSION.DIRECTFB_MINOR_VERSION.DIRECTFB_MICRO_VERSION 4104 dfb_ver = DIRECTFB_MAJOR_VERSION.DIRECTFB_MINOR_VERSION.DIRECTFB_MICRO_VERSION
4105 ; 4105 ;
4106 EOF 4106 EOF
4107 if $_cc -E $TMPC $_extra_cflags > "$TMPEXE"; then 4107 if $_cc -E $TMPC $extra_cflags > "$TMPEXE"; then
4108 _directfb_version=`sed -n 's/^dfb_ver[^0-9]*\(.*\)/\1/p' "$TMPEXE" | tr -d '()'` 4108 _directfb_version=`sed -n 's/^dfb_ver[^0-9]*\(.*\)/\1/p' "$TMPEXE" | tr -d '()'`
4109 _dfb_major=`echo $_directfb_version | cut -d . -f 1` 4109 _dfb_major=`echo $_directfb_version | cut -d . -f 1`
4110 _dfb_minor=`echo $_directfb_version | cut -d . -f 2` 4110 _dfb_minor=`echo $_directfb_version | cut -d . -f 2`
4111 _dfb_micro=`echo $_directfb_version | cut -d . -f 3` 4111 _dfb_micro=`echo $_directfb_version | cut -d . -f 3`
4112 _dfb_version=`dfb_version $_dfb_major $_dfb_minor $_dfb_micro` 4112 _dfb_version=`dfb_version $_dfb_major $_dfb_minor $_dfb_micro`
4127 echores "$_directfb" 4127 echores "$_directfb"
4128 4128
4129 if test "$_directfb" = yes ; then 4129 if test "$_directfb" = yes ; then
4130 def_directfb='#define CONFIG_DIRECTFB 1' 4130 def_directfb='#define CONFIG_DIRECTFB 1'
4131 _vomodules="directfb $_vomodules" 4131 _vomodules="directfb $_vomodules"
4132 _libs_mplayer="$_libs_mplayer -ldirectfb" 4132 libs_mplayer="$libs_mplayer -ldirectfb"
4133 else 4133 else
4134 def_directfb='#undef CONFIG_DIRECTFB' 4134 def_directfb='#undef CONFIG_DIRECTFB'
4135 _novomodules="directfb $_novomodules" 4135 _novomodules="directfb $_novomodules"
4136 fi 4136 fi
4137 if test "$_dfbmga" = yes; then 4137 if test "$_dfbmga" = yes; then
4144 4144
4145 4145
4146 echocheck "X11 headers presence" 4146 echocheck "X11 headers presence"
4147 _x11_headers="no" 4147 _x11_headers="no"
4148 _res_comment="check if the dev(el) packages are installed" 4148 _res_comment="check if the dev(el) packages are installed"
4149 for I in `echo $_extra_cflags | sed s/-I//g` /usr/include ; do 4149 for I in `echo $extra_cflags | sed s/-I//g` /usr/include ; do
4150 if test -f "$I/X11/Xlib.h" ; then 4150 if test -f "$I/X11/Xlib.h" ; then
4151 _x11_headers="yes" 4151 _x11_headers="yes"
4152 _res_comment="" 4152 _res_comment=""
4153 break 4153 break
4154 fi 4154 fi
4155 done 4155 done
4156 if test $_cross_compile = no; then 4156 if test $_cross_compile = no; then
4157 for I in /usr/X11/include /usr/X11R7/include /usr/X11R6/include \ 4157 for I in /usr/X11/include /usr/X11R7/include /usr/X11R6/include \
4158 /usr/include/X11R6 /usr/openwin/include ; do 4158 /usr/include/X11R6 /usr/openwin/include ; do
4159 if test -f "$I/X11/Xlib.h" ; then 4159 if test -f "$I/X11/Xlib.h" ; then
4160 _extra_cflags="$_extra_cflags -I$I" 4160 extra_cflags="$extra_cflags -I$I"
4161 _x11_headers="yes" 4161 _x11_headers="yes"
4162 _res_comment="using $I" 4162 _res_comment="using $I"
4163 break 4163 break
4164 fi 4164 fi
4165 done 4165 done
4180 if netbsd; then 4180 if netbsd; then
4181 _ld_tmp="$I -lXext -lX11 $_ld_pthread -Wl,-R`echo $I | sed s/^-L//`" 4181 _ld_tmp="$I -lXext -lX11 $_ld_pthread -Wl,-R`echo $I | sed s/^-L//`"
4182 else 4182 else
4183 _ld_tmp="$I -lXext -lX11 $_ld_pthread" 4183 _ld_tmp="$I -lXext -lX11 $_ld_pthread"
4184 fi 4184 fi
4185 cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" \ 4185 cc_check $_ld_tmp && libs_mplayer="$libs_mplayer $_ld_tmp" \
4186 && _x11=yes && break 4186 && _x11=yes && break
4187 done 4187 done
4188 fi 4188 fi
4189 if test "$_x11" = yes ; then 4189 if test "$_x11" = yes ; then
4190 def_x11='#define CONFIG_X11 1' 4190 def_x11='#define CONFIG_X11 1'
4209 _xss=no 4209 _xss=no
4210 cc_check -lXss && _xss=yes 4210 cc_check -lXss && _xss=yes
4211 fi 4211 fi
4212 if test "$_xss" = yes ; then 4212 if test "$_xss" = yes ; then
4213 def_xss='#define CONFIG_XSS 1' 4213 def_xss='#define CONFIG_XSS 1'
4214 _libs_mplayer="$_libs_mplayer -lXss" 4214 libs_mplayer="$libs_mplayer -lXss"
4215 else 4215 else
4216 def_xss='#undef CONFIG_XSS' 4216 def_xss='#undef CONFIG_XSS'
4217 fi 4217 fi
4218 echores "$_xss" 4218 echores "$_xss"
4219 4219
4241 def_xdpms='#define CONFIG_XDPMS 1' 4241 def_xdpms='#define CONFIG_XDPMS 1'
4242 _res_comment="using Xdpms 4" 4242 _res_comment="using Xdpms 4"
4243 echores "yes" 4243 echores "yes"
4244 elif test "$_xdpms3" = yes ; then 4244 elif test "$_xdpms3" = yes ; then
4245 def_xdpms='#define CONFIG_XDPMS 1' 4245 def_xdpms='#define CONFIG_XDPMS 1'
4246 _libs_mplayer="$_libs_mplayer -lXdpms" 4246 libs_mplayer="$libs_mplayer -lXdpms"
4247 _res_comment="using Xdpms 3" 4247 _res_comment="using Xdpms 3"
4248 echores "yes" 4248 echores "yes"
4249 else 4249 else
4250 def_xdpms='#undef CONFIG_XDPMS' 4250 def_xdpms='#undef CONFIG_XDPMS'
4251 echores "no" 4251 echores "no"
4266 cc_check -lXv && _xv=yes 4266 cc_check -lXv && _xv=yes
4267 fi 4267 fi
4268 4268
4269 if test "$_xv" = yes ; then 4269 if test "$_xv" = yes ; then
4270 def_xv='#define CONFIG_XV 1' 4270 def_xv='#define CONFIG_XV 1'
4271 _libs_mplayer="$_libs_mplayer -lXv" 4271 libs_mplayer="$libs_mplayer -lXv"
4272 _vomodules="xv $_vomodules" 4272 _vomodules="xv $_vomodules"
4273 else 4273 else
4274 def_xv='#undef CONFIG_XV' 4274 def_xv='#undef CONFIG_XV'
4275 _novomodules="xv $_novomodules" 4275 _novomodules="xv $_novomodules"
4276 fi 4276 fi
4293 cc_check -lXvMC -l$_ld_tmp && _xvmc=yes && _xvmclib="$_ld_tmp" && break 4293 cc_check -lXvMC -l$_ld_tmp && _xvmc=yes && _xvmclib="$_ld_tmp" && break
4294 done 4294 done
4295 fi 4295 fi
4296 if test "$_xvmc" = yes ; then 4296 if test "$_xvmc" = yes ; then
4297 def_xvmc='#define CONFIG_XVMC 1' 4297 def_xvmc='#define CONFIG_XVMC 1'
4298 _libs_mplayer="$_libs_mplayer -lXvMC -l$_xvmclib" 4298 libs_mplayer="$libs_mplayer -lXvMC -l$_xvmclib"
4299 _vomodules="xvmc $_vomodules" 4299 _vomodules="xvmc $_vomodules"
4300 _res_comment="using $_xvmclib" 4300 _res_comment="using $_xvmclib"
4301 else 4301 else
4302 def_xvmc='#define CONFIG_XVMC 0' 4302 def_xvmc='#define CONFIG_XVMC 0'
4303 _novomodules="xvmc $_novomodules" 4303 _novomodules="xvmc $_novomodules"
4339 cc_check -lXinerama && _xinerama=yes 4339 cc_check -lXinerama && _xinerama=yes
4340 fi 4340 fi
4341 4341
4342 if test "$_xinerama" = yes ; then 4342 if test "$_xinerama" = yes ; then
4343 def_xinerama='#define CONFIG_XINERAMA 1' 4343 def_xinerama='#define CONFIG_XINERAMA 1'
4344 _libs_mplayer="$_libs_mplayer -lXinerama" 4344 libs_mplayer="$libs_mplayer -lXinerama"
4345 else 4345 else
4346 def_xinerama='#undef CONFIG_XINERAMA' 4346 def_xinerama='#undef CONFIG_XINERAMA'
4347 fi 4347 fi
4348 echores "$_xinerama" 4348 echores "$_xinerama"
4349 4349
4363 _vm=no 4363 _vm=no
4364 cc_check -lXxf86vm && _vm=yes 4364 cc_check -lXxf86vm && _vm=yes
4365 fi 4365 fi
4366 if test "$_vm" = yes ; then 4366 if test "$_vm" = yes ; then
4367 def_vm='#define CONFIG_XF86VM 1' 4367 def_vm='#define CONFIG_XF86VM 1'
4368 _libs_mplayer="$_libs_mplayer -lXxf86vm" 4368 libs_mplayer="$libs_mplayer -lXxf86vm"
4369 else 4369 else
4370 def_vm='#undef CONFIG_XF86VM' 4370 def_vm='#undef CONFIG_XF86VM'
4371 fi 4371 fi
4372 echores "$_vm" 4372 echores "$_vm"
4373 4373
4425 def_dga2='#define CONFIG_DGA2 1' 4425 def_dga2='#define CONFIG_DGA2 1'
4426 _res_comment="using DGA 2.0" 4426 _res_comment="using DGA 2.0"
4427 fi 4427 fi
4428 if test "$_dga" = yes ; then 4428 if test "$_dga" = yes ; then
4429 def_dga='#define CONFIG_DGA 1' 4429 def_dga='#define CONFIG_DGA 1'
4430 _libs_mplayer="$_libs_mplayer -lXxf86dga" 4430 libs_mplayer="$libs_mplayer -lXxf86dga"
4431 _vomodules="dga $_vomodules" 4431 _vomodules="dga $_vomodules"
4432 else 4432 else
4433 _novomodules="dga $_novomodules" 4433 _novomodules="dga $_novomodules"
4434 fi 4434 fi
4435 echores "$_dga" 4435 echores "$_dga"
4470 } 4470 }
4471 EOF 4471 EOF
4472 _gl=no 4472 _gl=no
4473 if cc_check -lGL $_ld_lm ; then 4473 if cc_check -lGL $_ld_lm ; then
4474 _gl=yes 4474 _gl=yes
4475 _libs_mplayer="$_libs_mplayer -lGL $_ld_dl" 4475 libs_mplayer="$libs_mplayer -lGL $_ld_dl"
4476 elif cc_check -lGL $_ld_lm $_ld_pthread ; then 4476 elif cc_check -lGL $_ld_lm $_ld_pthread ; then
4477 _gl=yes 4477 _gl=yes
4478 _libs_mplayer="$_libs_mplayer -lGL $_ld_pthread $_ld_dl" 4478 libs_mplayer="$libs_mplayer -lGL $_ld_pthread $_ld_dl"
4479 elif cc_check -DGL_WIN32 -lopengl32 ; then 4479 elif cc_check -DGL_WIN32 -lopengl32 ; then
4480 _gl=yes 4480 _gl=yes
4481 _gl_win32=yes 4481 _gl_win32=yes
4482 _libs_mplayer="$_libs_mplayer -lopengl32 -lgdi32" 4482 libs_mplayer="$libs_mplayer -lopengl32 -lgdi32"
4483 fi 4483 fi
4484 else 4484 else
4485 _gl=no 4485 _gl=no
4486 fi 4486 fi
4487 if test "$_gl" = yes ; then 4487 if test "$_gl" = yes ; then
4576 fi 4576 fi
4577 4577
4578 if test "$_vidix" = yes && win32; then 4578 if test "$_vidix" = yes && win32; then
4579 winvidix=yes 4579 winvidix=yes
4580 _vomodules="winvidix $_vomodules" 4580 _vomodules="winvidix $_vomodules"
4581 _libs_mplayer="$_libs_mplayer -lgdi32" 4581 libs_mplayer="$libs_mplayer -lgdi32"
4582 else 4582 else
4583 _novomodules="winvidix $_novomodules" 4583 _novomodules="winvidix $_novomodules"
4584 fi 4584 fi
4585 if test "$_vidix" = yes && test "$_x11" = yes; then 4585 if test "$_vidix" = yes && test "$_x11" = yes; then
4586 xvidix=yes 4586 xvidix=yes
4628 _ggi=no 4628 _ggi=no
4629 cc_check -lggi && _ggi=yes 4629 cc_check -lggi && _ggi=yes
4630 fi 4630 fi
4631 if test "$_ggi" = yes ; then 4631 if test "$_ggi" = yes ; then
4632 def_ggi='#define CONFIG_GGI 1' 4632 def_ggi='#define CONFIG_GGI 1'
4633 _libs_mplayer="$_libs_mplayer -lggi" 4633 libs_mplayer="$libs_mplayer -lggi"
4634 _vomodules="ggi $_vomodules" 4634 _vomodules="ggi $_vomodules"
4635 else 4635 else
4636 def_ggi='#undef CONFIG_GGI' 4636 def_ggi='#undef CONFIG_GGI'
4637 _novomodules="ggi $_novomodules" 4637 _novomodules="ggi $_novomodules"
4638 fi 4638 fi
4650 fi 4650 fi
4651 # needed to get right output on obscure combination 4651 # needed to get right output on obscure combination
4652 # like --disable-ggi --enable-ggiwmh 4652 # like --disable-ggi --enable-ggiwmh
4653 if test "$_ggi" = yes && test "$_ggiwmh" = yes ; then 4653 if test "$_ggi" = yes && test "$_ggiwmh" = yes ; then
4654 def_ggiwmh='#define CONFIG_GGIWMH 1' 4654 def_ggiwmh='#define CONFIG_GGIWMH 1'
4655 _libs_mplayer="$_libs_mplayer -lggiwmh" 4655 libs_mplayer="$libs_mplayer -lggiwmh"
4656 else 4656 else
4657 _ggiwmh=no 4657 _ggiwmh=no
4658 def_ggiwmh='#undef CONFIG_GGIWMH' 4658 def_ggiwmh='#undef CONFIG_GGIWMH'
4659 fi 4659 fi
4660 echores "$_ggiwmh" 4660 echores "$_ggiwmh"
4675 aa_autoinitkbd(c,0); 4675 aa_autoinitkbd(c,0);
4676 return 0; } 4676 return 0; }
4677 EOF 4677 EOF
4678 _aa=no 4678 _aa=no
4679 for _ld_tmp in "-laa" ; do 4679 for _ld_tmp in "-laa" ; do
4680 cc_check $_ld_tmp && _libs_mplayer="$_libs_mplayer $_ld_tmp" && _aa=yes && break 4680 cc_check $_ld_tmp && libs_mplayer="$libs_mplayer $_ld_tmp" && _aa=yes && break
4681 done 4681 done
4682 fi 4682 fi
4683 if test "$_aa" = yes ; then 4683 if test "$_aa" = yes ; then
4684 def_aa='#define CONFIG_AA 1' 4684 def_aa='#define CONFIG_AA 1'
4685 if cygwin ; then 4685 if cygwin ; then
4686 _libs_mplayer="$_libs_mplayer `aalib-config --libs | cut -d " " -f 2,5,6`" 4686 libs_mplayer="$libs_mplayer `aalib-config --libs | cut -d " " -f 2,5,6`"
4687 fi 4687 fi
4688 _vomodules="aa $_vomodules" 4688 _vomodules="aa $_vomodules"
4689 else 4689 else
4690 def_aa='#undef CONFIG_AA' 4690 def_aa='#undef CONFIG_AA'
4691 _novomodules="aa $_novomodules" 4691 _novomodules="aa $_novomodules"
4707 cc_check `caca-config --libs` && _caca=yes 4707 cc_check `caca-config --libs` && _caca=yes
4708 fi 4708 fi
4709 fi 4709 fi
4710 if test "$_caca" = yes ; then 4710 if test "$_caca" = yes ; then
4711 def_caca='#define CONFIG_CACA 1' 4711 def_caca='#define CONFIG_CACA 1'
4712 _extra_cflags="$_extra_cflags `caca-config --cflags`" 4712 extra_cflags="$extra_cflags `caca-config --cflags`"
4713 _libs_mplayer="$_libs_mplayer `caca-config --libs`" 4713 libs_mplayer="$libs_mplayer `caca-config --libs`"
4714 _vomodules="caca $_vomodules" 4714 _vomodules="caca $_vomodules"
4715 else 4715 else
4716 def_caca='#undef CONFIG_CACA' 4716 def_caca='#undef CONFIG_CACA'
4717 _novomodules="caca $_novomodules" 4717 _novomodules="caca $_novomodules"
4718 fi 4718 fi
4728 _svga=no 4728 _svga=no
4729 cc_check -lvga $_ld_lm && _svga=yes 4729 cc_check -lvga $_ld_lm && _svga=yes
4730 fi 4730 fi
4731 if test "$_svga" = yes ; then 4731 if test "$_svga" = yes ; then
4732 def_svga='#define CONFIG_SVGALIB 1' 4732 def_svga='#define CONFIG_SVGALIB 1'
4733 _libs_mplayer="$_libs_mplayer -lvga" 4733 libs_mplayer="$libs_mplayer -lvga"
4734 _vomodules="svga $_vomodules" 4734 _vomodules="svga $_vomodules"
4735 else 4735 else
4736 def_svga='#undef CONFIG_SVGALIB' 4736 def_svga='#undef CONFIG_SVGALIB'
4737 _novomodules="svga $_novomodules" 4737 _novomodules="svga $_novomodules"
4738 fi 4738 fi
4771 #include <ost/audio.h> 4771 #include <ost/audio.h>
4772 int main(void) {return 0;} 4772 int main(void) {return 0;}
4773 EOF 4773 EOF
4774 for _inc_tmp in "" "-I/usr/src/DVB/ost/include" ; do 4774 for _inc_tmp in "" "-I/usr/src/DVB/ost/include" ; do
4775 cc_check $_inc_tmp && _dvb=yes && \ 4775 cc_check $_inc_tmp && _dvb=yes && \
4776 _extra_cflags="$_extra_cflags $_inc_tmp" && break 4776 extra_cflags="$extra_cflags $_inc_tmp" && break
4777 done 4777 done
4778 fi 4778 fi
4779 echores "$_dvb" 4779 echores "$_dvb"
4780 if test "$_dvb" = yes ; then 4780 if test "$_dvb" = yes ; then
4781 def_dvb='#define CONFIG_DVB 1' 4781 def_dvb='#define CONFIG_DVB 1'
4800 #include <linux/dvb/audio.h> 4800 #include <linux/dvb/audio.h>
4801 int main(void) {return 0;} 4801 int main(void) {return 0;}
4802 EOF 4802 EOF
4803 for _inc_tmp in "" "-I/usr/src/DVB/include" ; do 4803 for _inc_tmp in "" "-I/usr/src/DVB/include" ; do
4804 cc_check $_inc_tmp && _dvbhead=yes && \ 4804 cc_check $_inc_tmp && _dvbhead=yes && \
4805 _extra_cflags="$_extra_cflags $_inc_tmp" && break 4805 extra_cflags="$extra_cflags $_inc_tmp" && break
4806 done 4806 done
4807 fi 4807 fi
4808 echores "$_dvbhead" 4808 echores "$_dvbhead"
4809 if test "$_dvbhead" = yes ; then 4809 if test "$_dvbhead" = yes ; then
4810 def_dvb='#define CONFIG_DVB 1' 4810 def_dvb='#define CONFIG_DVB 1'
4860 fi 4860 fi
4861 fi 4861 fi
4862 echores "$_png" 4862 echores "$_png"
4863 if test "$_png" = yes ; then 4863 if test "$_png" = yes ; then
4864 def_png='#define CONFIG_PNG 1' 4864 def_png='#define CONFIG_PNG 1'
4865 _extra_ldflags="$_extra_ldflags -lpng -lz" 4865 extra_ldflags="$extra_ldflags -lpng -lz"
4866 _vomodules="png $_vomodules" 4866 _vomodules="png $_vomodules"
4867 else 4867 else
4868 def_png='#undef CONFIG_PNG' 4868 def_png='#undef CONFIG_PNG'
4869 _novomodules="png $_novomodules" 4869 _novomodules="png $_novomodules"
4870 fi 4870 fi
4884 fi 4884 fi
4885 fi 4885 fi
4886 echores "$_mng" 4886 echores "$_mng"
4887 if test "$_mng" = yes ; then 4887 if test "$_mng" = yes ; then
4888 def_mng='#define CONFIG_MNG 1' 4888 def_mng='#define CONFIG_MNG 1'
4889 _extra_ldflags="$_extra_ldflags -lmng -lz" 4889 extra_ldflags="$extra_ldflags -lmng -lz"
4890 else 4890 else
4891 def_mng='#undef CONFIG_MNG' 4891 def_mng='#undef CONFIG_MNG'
4892 fi 4892 fi
4893 4893
4894 echocheck "JPEG support" 4894 echocheck "JPEG support"
4911 echores "$_jpeg" 4911 echores "$_jpeg"
4912 4912
4913 if test "$_jpeg" = yes ; then 4913 if test "$_jpeg" = yes ; then
4914 def_jpeg='#define CONFIG_JPEG 1' 4914 def_jpeg='#define CONFIG_JPEG 1'
4915 _vomodules="jpeg $_vomodules" 4915 _vomodules="jpeg $_vomodules"
4916 _extra_ldflags="$_extra_ldflags -ljpeg" 4916 extra_ldflags="$extra_ldflags -ljpeg"
4917 else 4917 else
4918 def_jpeg='#undef CONFIG_JPEG' 4918 def_jpeg='#undef CONFIG_JPEG'
4919 _novomodules="jpeg $_novomodules" 4919 _novomodules="jpeg $_novomodules"
4920 fi 4920 fi
4921 4921
4971 def_gif='#define CONFIG_GIF 1' 4971 def_gif='#define CONFIG_GIF 1'
4972 _codecmodules="gif $_codecmodules" 4972 _codecmodules="gif $_codecmodules"
4973 _vomodules="gif89a $_vomodules" 4973 _vomodules="gif89a $_vomodules"
4974 _res_comment="old version, some encoding functions disabled" 4974 _res_comment="old version, some encoding functions disabled"
4975 def_gif_4='#undef CONFIG_GIF_4' 4975 def_gif_4='#undef CONFIG_GIF_4'
4976 _extra_ldflags="$_extra_ldflags $_ld_gif" 4976 extra_ldflags="$extra_ldflags $_ld_gif"
4977 4977
4978 cat > $TMPC << EOF 4978 cat > $TMPC << EOF
4979 #include <signal.h> 4979 #include <signal.h>
4980 #include <gif_lib.h> 4980 #include <gif_lib.h>
4981 void catch() { exit(1); } 4981 void catch() { exit(1); }
5030 _vesa=no 5030 _vesa=no
5031 cc_check -lvbe -llrmi && _vesa=yes 5031 cc_check -lvbe -llrmi && _vesa=yes
5032 fi 5032 fi
5033 if test "$_vesa" = yes ; then 5033 if test "$_vesa" = yes ; then
5034 def_vesa='#define CONFIG_VESA 1' 5034 def_vesa='#define CONFIG_VESA 1'
5035 _libs_mplayer="$_libs_mplayer -lvbe -llrmi" 5035 libs_mplayer="$libs_mplayer -lvbe -llrmi"
5036 _vomodules="vesa $_vomodules" 5036 _vomodules="vesa $_vomodules"
5037 else 5037 else
5038 def_vesa='#undef CONFIG_VESA' 5038 def_vesa='#undef CONFIG_VESA'
5039 _novomodules="vesa $_novomodules" 5039 _novomodules="vesa $_novomodules"
5040 fi 5040 fi
5079 fi 5079 fi
5080 fi 5080 fi
5081 if test "$_sdl" = yes ; then 5081 if test "$_sdl" = yes ; then
5082 def_sdl='#define CONFIG_SDL 1' 5082 def_sdl='#define CONFIG_SDL 1'
5083 if cygwin ; then 5083 if cygwin ; then
5084 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/`" 5084 libs_mplayer="$libs_mplayer `$_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/`"
5085 _extra_cflags="$_extra_cflags `$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/`" 5085 extra_cflags="$extra_cflags `$_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/`"
5086 elif mingw32 ; then 5086 elif mingw32 ; then
5087 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//`" 5087 libs_mplayer="$libs_mplayer `$_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//`"
5088 _extra_cflags="$_extra_cflags `$_sdlconfig --cflags | sed s/-Dmain=SDL_main//`" 5088 extra_cflags="$extra_cflags `$_sdlconfig --cflags | sed s/-Dmain=SDL_main//`"
5089 else 5089 else
5090 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs`" 5090 libs_mplayer="$libs_mplayer `$_sdlconfig --libs`"
5091 _extra_cflags="$_extra_cflags `$_sdlconfig --cflags | sed s/-D_GNU_SOURCE=1//`" 5091 extra_cflags="$extra_cflags `$_sdlconfig --cflags | sed s/-D_GNU_SOURCE=1//`"
5092 fi 5092 fi
5093 _vomodules="sdl $_vomodules" 5093 _vomodules="sdl $_vomodules"
5094 _aomodules="sdl $_aomodules" 5094 _aomodules="sdl $_aomodules"
5095 _res_comment="using $_sdlconfig" 5095 _res_comment="using $_sdlconfig"
5096 else 5096 else
5112 _kva=no; 5112 _kva=no;
5113 cc_check -lkva && _kva=yes 5113 cc_check -lkva && _kva=yes
5114 fi 5114 fi
5115 if test "$_kva" = yes ; then 5115 if test "$_kva" = yes ; then
5116 def_kva='#define CONFIG_KVA 1' 5116 def_kva='#define CONFIG_KVA 1'
5117 _libs_mplayer="$_libs_mplayer -lkva" 5117 libs_mplayer="$libs_mplayer -lkva"
5118 _vomodules="kva $_vomodules" 5118 _vomodules="kva $_vomodules"
5119 else 5119 else
5120 def_kva='#undef CONFIG_KVA' 5120 def_kva='#undef CONFIG_KVA'
5121 _novomodules="kva $_novomodules" 5121 _novomodules="kva $_novomodules"
5122 fi 5122 fi
5136 _win32waveout=no 5136 _win32waveout=no
5137 cc_check -lwinmm && _win32waveout=yes 5137 cc_check -lwinmm && _win32waveout=yes
5138 fi 5138 fi
5139 if test "$_win32waveout" = yes ; then 5139 if test "$_win32waveout" = yes ; then
5140 def_win32waveout='#define CONFIG_WIN32WAVEOUT 1' 5140 def_win32waveout='#define CONFIG_WIN32WAVEOUT 1'
5141 _libs_mplayer="$_libs_mplayer -lwinmm" 5141 libs_mplayer="$libs_mplayer -lwinmm"
5142 _aomodules="win32 $_aomodules" 5142 _aomodules="win32 $_aomodules"
5143 else 5143 else
5144 def_win32waveout='#undef CONFIG_WIN32WAVEOUT' 5144 def_win32waveout='#undef CONFIG_WIN32WAVEOUT'
5145 _noaomodules="win32 $_noaomodules" 5145 _noaomodules="win32 $_noaomodules"
5146 fi 5146 fi
5156 _direct3d=no 5156 _direct3d=no
5157 cc_check -ld3d9 && _direct3d=yes 5157 cc_check -ld3d9 && _direct3d=yes
5158 fi 5158 fi
5159 if test "$_direct3d" = yes ; then 5159 if test "$_direct3d" = yes ; then
5160 def_direct3d='#define CONFIG_DIRECT3D 1' 5160 def_direct3d='#define CONFIG_DIRECT3D 1'
5161 _libs_mplayer="$_libs_mplayer -ld3d9" 5161 libs_mplayer="$libs_mplayer -ld3d9"
5162 _vomodules="direct3d $_vomodules" 5162 _vomodules="direct3d $_vomodules"
5163 else 5163 else
5164 def_direct3d='#undef CONFIG_DIRECT3D' 5164 def_direct3d='#undef CONFIG_DIRECT3D'
5165 _novomodules="direct3d $_novomodules" 5165 _novomodules="direct3d $_novomodules"
5166 fi 5166 fi
5177 _directx=no 5177 _directx=no
5178 cc_check -lgdi32 && _directx=yes 5178 cc_check -lgdi32 && _directx=yes
5179 fi 5179 fi
5180 if test "$_directx" = yes ; then 5180 if test "$_directx" = yes ; then
5181 def_directx='#define CONFIG_DIRECTX 1' 5181 def_directx='#define CONFIG_DIRECTX 1'
5182 _libs_mplayer="$_libs_mplayer -lgdi32" 5182 libs_mplayer="$libs_mplayer -lgdi32"
5183 _vomodules="directx $_vomodules" 5183 _vomodules="directx $_vomodules"
5184 _aomodules="dsound $_aomodules" 5184 _aomodules="dsound $_aomodules"
5185 else 5185 else
5186 def_directx='#undef CONFIG_DIRECTX' 5186 def_directx='#undef CONFIG_DIRECTX'
5187 _novomodules="directx $_novomodules" 5187 _novomodules="directx $_novomodules"
5199 #include <dxr2ioctl.h> 5199 #include <dxr2ioctl.h>
5200 int main(void) { return 0; } 5200 int main(void) { return 0; }
5201 EOF 5201 EOF
5202 for _inc_tmp in "" -I/usr/local/include/dxr2 -I/usr/include/dxr2; do 5202 for _inc_tmp in "" -I/usr/local/include/dxr2 -I/usr/include/dxr2; do
5203 cc_check $_inc_tmp && _dxr2=yes && \ 5203 cc_check $_inc_tmp && _dxr2=yes && \
5204 _extra_cflags="$_extra_cflags $_inc_tmp" && break 5204 extra_cflags="$extra_cflags $_inc_tmp" && break
5205 done 5205 done
5206 fi 5206 fi
5207 if test "$_dxr2" = yes; then 5207 if test "$_dxr2" = yes; then
5208 def_dxr2='#define CONFIG_DXR2 1' 5208 def_dxr2='#define CONFIG_DXR2 1'
5209 _aomodules="dxr2 $_aomodules" 5209 _aomodules="dxr2 $_aomodules"
5334 cc_check && _real_ossaudio=yes 5334 cc_check && _real_ossaudio=yes
5335 if test "$_real_ossaudio" = yes; then 5335 if test "$_real_ossaudio" = yes; then
5336 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' 5336 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
5337 elif netbsd || openbsd ; then 5337 elif netbsd || openbsd ; then
5338 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"' 5338 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"'
5339 _extra_ldflags="$_extra_ldflags -lossaudio" 5339 extra_ldflags="$extra_ldflags -lossaudio"
5340 else 5340 else
5341 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' 5341 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
5342 fi 5342 fi
5343 def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' 5343 def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"'
5344 fi 5344 fi
5366 fi 5366 fi
5367 5367
5368 if test "$_arts" = yes ; then 5368 if test "$_arts" = yes ; then
5369 def_arts='#define CONFIG_ARTS 1' 5369 def_arts='#define CONFIG_ARTS 1'
5370 _aomodules="arts $_aomodules" 5370 _aomodules="arts $_aomodules"
5371 _libs_mplayer="$_libs_mplayer `artsc-config --libs`" 5371 libs_mplayer="$libs_mplayer `artsc-config --libs`"
5372 _extra_cflags="$_extra_cflags `artsc-config --cflags`" 5372 extra_cflags="$extra_cflags `artsc-config --cflags`"
5373 else 5373 else
5374 _noaomodules="arts $_noaomodules" 5374 _noaomodules="arts $_noaomodules"
5375 fi 5375 fi
5376 echores "$_arts" 5376 echores "$_arts"
5377 5377
5392 echores "$_esd" 5392 echores "$_esd"
5393 5393
5394 if test "$_esd" = yes ; then 5394 if test "$_esd" = yes ; then
5395 def_esd='#define CONFIG_ESD 1' 5395 def_esd='#define CONFIG_ESD 1'
5396 _aomodules="esd $_aomodules" 5396 _aomodules="esd $_aomodules"
5397 _libs_mplayer="$_libs_mplayer `esd-config --libs`" 5397 libs_mplayer="$libs_mplayer `esd-config --libs`"
5398 _extra_cflags="$_extra_cflags `esd-config --cflags`" 5398 extra_cflags="$extra_cflags `esd-config --cflags`"
5399 5399
5400 echocheck "esd_get_latency()" 5400 echocheck "esd_get_latency()"
5401 cat > $TMPC << EOF 5401 cat > $TMPC << EOF
5402 #include <esd.h> 5402 #include <esd.h>
5403 int main(void) { return esd_get_latency(0); } 5403 int main(void) { return esd_get_latency(0); }
5420 _nas=no 5420 _nas=no
5421 cc_check $_ld_lm -laudio -lXt && _nas=yes 5421 cc_check $_ld_lm -laudio -lXt && _nas=yes
5422 fi 5422 fi
5423 if test "$_nas" = yes ; then 5423 if test "$_nas" = yes ; then
5424 def_nas='#define CONFIG_NAS 1' 5424 def_nas='#define CONFIG_NAS 1'
5425 _libs_mplayer="$_libs_mplayer -laudio -lXt" 5425 libs_mplayer="$libs_mplayer -laudio -lXt"
5426 _aomodules="nas $_aomodules" 5426 _aomodules="nas $_aomodules"
5427 else 5427 else
5428 _noaomodules="nas $_noaomodules" 5428 _noaomodules="nas $_noaomodules"
5429 def_nas='#undef CONFIG_NAS' 5429 def_nas='#undef CONFIG_NAS'
5430 fi 5430 fi
5447 echores "$_pulse" 5447 echores "$_pulse"
5448 5448
5449 if test "$_pulse" = yes ; then 5449 if test "$_pulse" = yes ; then
5450 def_pulse='#define CONFIG_PULSE 1' 5450 def_pulse='#define CONFIG_PULSE 1'
5451 _aomodules="pulse $_aomodules" 5451 _aomodules="pulse $_aomodules"
5452 _libs_mplayer="$_libs_mplayer `$_pkg_config --libs libpulse`" 5452 libs_mplayer="$libs_mplayer `$_pkg_config --libs libpulse`"
5453 _extra_cflags="$_extra_cflags `$_pkg_config --cflags libpulse`" 5453 extra_cflags="$extra_cflags `$_pkg_config --cflags libpulse`"
5454 else 5454 else
5455 def_pulse='#undef CONFIG_PULSE' 5455 def_pulse='#undef CONFIG_PULSE'
5456 _noaomodules="pulse $_noaomodules" 5456 _noaomodules="pulse $_noaomodules"
5457 fi 5457 fi
5458 5458
5464 cat > $TMPC << EOF 5464 cat > $TMPC << EOF
5465 #include <jack/jack.h> 5465 #include <jack/jack.h>
5466 int main(void) { jack_client_open("test", JackUseExactName, NULL); return 0; } 5466 int main(void) { jack_client_open("test", JackUseExactName, NULL); return 0; }
5467 EOF 5467 EOF
5468 if cc_check -ljack ; then 5468 if cc_check -ljack ; then
5469 _libs_mplayer="$_libs_mplayer -ljack" 5469 libs_mplayer="$libs_mplayer -ljack"
5470 elif cc_check `$_pkg_config --libs --cflags --silence-errors jack` ; then 5470 elif cc_check `$_pkg_config --libs --cflags --silence-errors jack` ; then
5471 _libs_mplayer="$_libs_mplayer `$_pkg_config --libs jack`" 5471 libs_mplayer="$libs_mplayer `$_pkg_config --libs jack`"
5472 _extra_cflags="$_extra_cflags "`$_pkg_config --cflags jack`"" 5472 extra_cflags="$extra_cflags "`$_pkg_config --cflags jack`""
5473 else 5473 else
5474 _jack=no 5474 _jack=no
5475 fi 5475 fi
5476 fi 5476 fi
5477 5477
5500 EOF 5500 EOF
5501 for I in "-lopenal" "-lopenal32" "-framework OpenAL" ; do 5501 for I in "-lopenal" "-lopenal32" "-framework OpenAL" ; do
5502 cc_check $I && _openal=yes && break 5502 cc_check $I && _openal=yes && break
5503 cc_check -DOPENAL_AL_H=1 $I && def_openal_h='#define OPENAL_AL_H 1' && _openal=yes && break 5503 cc_check -DOPENAL_AL_H=1 $I && def_openal_h='#define OPENAL_AL_H 1' && _openal=yes && break
5504 done 5504 done
5505 test "$_openal" = yes && _libs_mplayer="$_libs_mplayer $I" 5505 test "$_openal" = yes && libs_mplayer="$libs_mplayer $I"
5506 fi 5506 fi
5507 if test "$_openal" = yes ; then 5507 if test "$_openal" = yes ; then
5508 def_openal='#define CONFIG_OPENAL 1' 5508 def_openal='#define CONFIG_OPENAL 1'
5509 _aomodules="openal $_aomodules" 5509 _aomodules="openal $_aomodules"
5510 else 5510 else
5611 _res_comment="using alsa 1.0.x and alsa/asoundlib.h" 5611 _res_comment="using alsa 1.0.x and alsa/asoundlib.h"
5612 else 5612 else
5613 _alsa=no 5613 _alsa=no
5614 _res_comment="unknown version" 5614 _res_comment="unknown version"
5615 fi 5615 fi
5616 _extra_ldflags="$_extra_ldflags -lasound $_ld_dl $_ld_pthread" 5616 extra_ldflags="$extra_ldflags -lasound $_ld_dl $_ld_pthread"
5617 else 5617 else
5618 _noaomodules="alsa $_noaomodules" 5618 _noaomodules="alsa $_noaomodules"
5619 fi 5619 fi
5620 echores "$_alsa" 5620 echores "$_alsa"
5621 5621
5666 _sgiaudio=no 5666 _sgiaudio=no
5667 cc_check && _sgiaudio=yes 5667 cc_check && _sgiaudio=yes
5668 fi 5668 fi
5669 if test "$_sgiaudio" = "yes" ; then 5669 if test "$_sgiaudio" = "yes" ; then
5670 def_sgiaudio='#define CONFIG_SGI_AUDIO 1' 5670 def_sgiaudio='#define CONFIG_SGI_AUDIO 1'
5671 _libs_mplayer="$_libs_mplayer -laudio" 5671 libs_mplayer="$libs_mplayer -laudio"
5672 _aomodules="sgi $_aomodules" 5672 _aomodules="sgi $_aomodules"
5673 else 5673 else
5674 def_sgiaudio='#undef CONFIG_SGI_AUDIO' 5674 def_sgiaudio='#undef CONFIG_SGI_AUDIO'
5675 _noaomodules="sgi $_noaomodules" 5675 _noaomodules="sgi $_noaomodules"
5676 fi 5676 fi
5689 _dart=no; 5689 _dart=no;
5690 cc_check -ldart && _dart=yes 5690 cc_check -ldart && _dart=yes
5691 fi 5691 fi
5692 if test "$_dart" = yes ; then 5692 if test "$_dart" = yes ; then
5693 def_dart='#define CONFIG_DART 1' 5693 def_dart='#define CONFIG_DART 1'
5694 _libs_mplayer="$_libs_mplayer -ldart" 5694 libs_mplayer="$libs_mplayer -ldart"
5695 _aomodules="dart $_aomodules" 5695 _aomodules="dart $_aomodules"
5696 else 5696 else
5697 def_dart='#undef CONFIG_DART' 5697 def_dart='#undef CONFIG_DART'
5698 _noaomodules="dart $_noaomodules" 5698 _noaomodules="dart $_noaomodules"
5699 fi 5699 fi
5752 && (test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || \ 5752 && (test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || \
5753 test "$_dvdio" = yes || test "$_bsdi_dvd" = yes) \ 5753 test "$_dvdio" = yes || test "$_bsdi_dvd" = yes) \
5754 || darwin || win32 || os2; then 5754 || darwin || win32 || os2; then
5755 _dvdread_internal=yes 5755 _dvdread_internal=yes
5756 _dvdread=yes 5756 _dvdread=yes
5757 _extra_cflags="$_extra_cflags -Ilibdvdread4" 5757 extra_cflags="$extra_cflags -Ilibdvdread4"
5758 fi 5758 fi
5759 elif test "$_dvdread" = auto ; then 5759 elif test "$_dvdread" = auto ; then
5760 _dvdread=no 5760 _dvdread=no
5761 if test "$_dl" = yes; then 5761 if test "$_dl" = yes; then
5762 cat > $TMPC << EOF 5762 cat > $TMPC << EOF
5771 _dvdreadcflags=`$_dvdreadconfig --cflags` 5771 _dvdreadcflags=`$_dvdreadconfig --cflags`
5772 _dvdreadlibs=`$_dvdreadconfig --libs` 5772 _dvdreadlibs=`$_dvdreadconfig --libs`
5773 if cc_check -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \ 5773 if cc_check -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \
5774 $_dvdreadcflags $_dvdreadlibs $_ld_dl ; then 5774 $_dvdreadcflags $_dvdreadlibs $_ld_dl ; then
5775 _dvdread=yes 5775 _dvdread=yes
5776 _extra_cflags="$_extra_cflags $_dvdreadcflags" 5776 extra_cflags="$extra_cflags $_dvdreadcflags"
5777 _extra_ldflags="$_extra_ldflags $_dvdreadlibs" 5777 extra_ldflags="$extra_ldflags $_dvdreadlibs"
5778 _res_comment="external" 5778 _res_comment="external"
5779 fi 5779 fi
5780 fi 5780 fi
5781 5781
5782 if test "$_dvdread_internal" = yes; then 5782 if test "$_dvdread_internal" = yes; then
5785 _largefiles=yes 5785 _largefiles=yes
5786 _res_comment="internal" 5786 _res_comment="internal"
5787 elif test "$_dvdread" = yes; then 5787 elif test "$_dvdread" = yes; then
5788 def_dvdread='#define CONFIG_DVDREAD 1' 5788 def_dvdread='#define CONFIG_DVDREAD 1'
5789 _largefiles=yes 5789 _largefiles=yes
5790 _extra_ldflags="$_extra_ldflags -ldvdread" 5790 extra_ldflags="$extra_ldflags -ldvdread"
5791 _inputmodules="dvdread(external) $_inputmodules" 5791 _inputmodules="dvdread(external) $_inputmodules"
5792 _res_comment="external" 5792 _res_comment="external"
5793 else 5793 else
5794 def_dvdread='#undef CONFIG_DVDREAD' 5794 def_dvdread='#undef CONFIG_DVDREAD'
5795 _noinputmodules="dvdread $_noinputmodules" 5795 _noinputmodules="dvdread $_noinputmodules"
5809 openbsd && def_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1' 5809 openbsd && def_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1'
5810 elif freebsd || dragonfly ; then 5810 elif freebsd || dragonfly ; then
5811 def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' 5811 def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1'
5812 elif darwin ; then 5812 elif darwin ; then
5813 def_dvd_darwin='#define DARWIN_DVD_IOCTL' 5813 def_dvd_darwin='#define DARWIN_DVD_IOCTL'
5814 _extra_ldflags="$_extra_ldflags -framework IOKit" 5814 extra_ldflags="$extra_ldflags -framework IOKit"
5815 elif cygwin ; then 5815 elif cygwin ; then
5816 cflags_libdvdcss="-DSYS_CYGWIN -DWIN32" 5816 cflags_libdvdcss="-DSYS_CYGWIN -DWIN32"
5817 elif beos ; then 5817 elif beos ; then
5818 cflags_libdvdcss="-DSYS_BEOS" 5818 cflags_libdvdcss="-DSYS_BEOS"
5819 elif os2 ; then 5819 elif os2 ; then
5837 int main(void) { void *test = cdda_verbose_set; return test == (void *)1; } 5837 int main(void) { void *test = cdda_verbose_set; return test == (void *)1; }
5838 EOF 5838 EOF
5839 _cdparanoia=no 5839 _cdparanoia=no
5840 for _inc_tmp in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do 5840 for _inc_tmp in "" "-I/usr/include/cdda" "-I/usr/local/include/cdda" ; do
5841 cc_check $_inc_tmp -lcdda_interface -lcdda_paranoia $_ld_lm && \ 5841 cc_check $_inc_tmp -lcdda_interface -lcdda_paranoia $_ld_lm && \
5842 _cdparanoia=yes && _extra_cflags="$_extra_cflags $_inc_tmp" && break 5842 _cdparanoia=yes && extra_cflags="$extra_cflags $_inc_tmp" && break
5843 done 5843 done
5844 fi 5844 fi
5845 if test "$_cdparanoia" = yes ; then 5845 if test "$_cdparanoia" = yes ; then
5846 _cdda='yes' 5846 _cdda='yes'
5847 _extra_ldflags="$_extra_ldflags -lcdda_interface -lcdda_paranoia" 5847 extra_ldflags="$extra_ldflags -lcdda_interface -lcdda_paranoia"
5848 openbsd && _extra_ldflags="$_extra_ldflags -lutil" 5848 openbsd && extra_ldflags="$extra_ldflags -lutil"
5849 fi 5849 fi
5850 echores "$_cdparanoia" 5850 echores "$_cdparanoia"
5851 5851
5852 5852
5853 echocheck "libcdio" 5853 echocheck "libcdio"
5865 EOF 5865 EOF
5866 _libcdio=no 5866 _libcdio=no
5867 for _ld_tmp in "" "-lwinmm" ; do 5867 for _ld_tmp in "" "-lwinmm" ; do
5868 _ld_tmp="-lcdio_cdda -lcdio -lcdio_paranoia $_ld_tmp" 5868 _ld_tmp="-lcdio_cdda -lcdio -lcdio_paranoia $_ld_tmp"
5869 cc_check $_ld_tmp $_ld_lm \ 5869 cc_check $_ld_tmp $_ld_lm \
5870 && _libcdio=yes && _extra_ldflags="$_extra_ldflags $_ld_tmp" && break 5870 && _libcdio=yes && extra_ldflags="$extra_ldflags $_ld_tmp" && break
5871 done 5871 done
5872 if test "$_libcdio" = no && $_pkg_config --exists libcdio_paranoia ; then 5872 if test "$_libcdio" = no && $_pkg_config --exists libcdio_paranoia ; then
5873 _inc_tmp=`$_pkg_config --cflags libcdio_paranoia` 5873 _inc_tmp=`$_pkg_config --cflags libcdio_paranoia`
5874 _ld_tmp=`$_pkg_config --libs libcdio_paranoia` 5874 _ld_tmp=`$_pkg_config --libs libcdio_paranoia`
5875 cc_check $_inc_tmp $_ld_tmp $_ld_lm && _libcdio=yes \ 5875 cc_check $_inc_tmp $_ld_tmp $_ld_lm && _libcdio=yes \
5876 && _extra_ldflags="$_extra_ldflags $_ld_tmp" && _extra_cflags="$_extra_cflags $_inc_tmp" 5876 && extra_ldflags="$extra_ldflags $_ld_tmp" && extra_cflags="$extra_cflags $_inc_tmp"
5877 fi 5877 fi
5878 fi 5878 fi
5879 if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then 5879 if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then
5880 _cdda='yes' 5880 _cdda='yes'
5881 def_libcdio='#define CONFIG_LIBCDIO' 5881 def_libcdio='#define CONFIG_LIBCDIO'
5958 _freetype=no 5958 _freetype=no
5959 fi 5959 fi
5960 fi 5960 fi
5961 if test "$_freetype" = yes ; then 5961 if test "$_freetype" = yes ; then
5962 def_freetype='#define CONFIG_FREETYPE' 5962 def_freetype='#define CONFIG_FREETYPE'
5963 _extra_cflags="$_extra_cflags `$_freetypeconfig --cflags`" 5963 extra_cflags="$extra_cflags `$_freetypeconfig --cflags`"
5964 _extra_ldflags="$_extra_ldflags `$_freetypeconfig --libs`" 5964 extra_ldflags="$extra_ldflags `$_freetypeconfig --libs`"
5965 else 5965 else
5966 def_freetype='#undef CONFIG_FREETYPE' 5966 def_freetype='#undef CONFIG_FREETYPE'
5967 fi 5967 fi
5968 echores "$_freetype" 5968 echores "$_freetype"
5969 5969
5987 } 5987 }
5988 EOF 5988 EOF
5989 _fontconfig=no 5989 _fontconfig=no
5990 for _ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" ; do 5990 for _ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" ; do
5991 _ld_tmp="-lfontconfig $_ld_tmp" 5991 _ld_tmp="-lfontconfig $_ld_tmp"
5992 cc_check $_ld_tmp && _fontconfig=yes && _extra_ldflags="$_extra_ldflags $_ld_tmp" && break 5992 cc_check $_ld_tmp && _fontconfig=yes && extra_ldflags="$extra_ldflags $_ld_tmp" && break
5993 done 5993 done
5994 if test "$_fontconfig" = no && $_pkg_config --exists fontconfig ; then 5994 if test "$_fontconfig" = no && $_pkg_config --exists fontconfig ; then
5995 _inc_tmp=`$_pkg_config --cflags fontconfig` 5995 _inc_tmp=`$_pkg_config --cflags fontconfig`
5996 _ld_tmp=`$_pkg_config --libs fontconfig` 5996 _ld_tmp=`$_pkg_config --libs fontconfig`
5997 cc_check $_inc_tmp $_ld_tmp && _fontconfig=yes \ 5997 cc_check $_inc_tmp $_ld_tmp && _fontconfig=yes \
5998 && _extra_ldflags="$_extra_ldflags $_ld_tmp" && _extra_cflags="$_extra_cflags $_inc_tmp" 5998 && extra_ldflags="$extra_ldflags $_ld_tmp" && extra_cflags="$extra_cflags $_inc_tmp"
5999 fi 5999 fi
6000 fi 6000 fi
6001 if test "$_fontconfig" = yes ; then 6001 if test "$_fontconfig" = yes ; then
6002 def_fontconfig='#define CONFIG_FONTCONFIG' 6002 def_fontconfig='#define CONFIG_FONTCONFIG'
6003 else 6003 else
6058 _fribidi=no 6058 _fribidi=no
6059 fi 6059 fi
6060 fi 6060 fi
6061 if test "$_fribidi" = yes ; then 6061 if test "$_fribidi" = yes ; then
6062 def_fribidi='#define CONFIG_FRIBIDI' 6062 def_fribidi='#define CONFIG_FRIBIDI'
6063 _extra_cflags="$_extra_cflags `$_fribidiconfig --cflags`" 6063 extra_cflags="$extra_cflags `$_fribidiconfig --cflags`"
6064 _extra_ldflags="$_extra_ldflags `$_fribidiconfig --libs`" 6064 extra_ldflags="$extra_ldflags `$_fribidiconfig --libs`"
6065 else 6065 else
6066 def_fribidi='#undef CONFIG_FRIBIDI' 6066 def_fribidi='#undef CONFIG_FRIBIDI'
6067 fi 6067 fi
6068 echores "$_fribidi" 6068 echores "$_fribidi"
6069 6069
6083 _enca=no 6083 _enca=no
6084 cc_check -lenca $_ld_lm && _enca=yes 6084 cc_check -lenca $_ld_lm && _enca=yes
6085 fi 6085 fi
6086 if test "$_enca" = yes ; then 6086 if test "$_enca" = yes ; then
6087 def_enca='#define CONFIG_ENCA 1' 6087 def_enca='#define CONFIG_ENCA 1'
6088 _extra_ldflags="$_extra_ldflags -lenca" 6088 extra_ldflags="$extra_ldflags -lenca"
6089 else 6089 else
6090 def_enca='#undef CONFIG_ENCA' 6090 def_enca='#undef CONFIG_ENCA'
6091 fi 6091 fi
6092 echores "$_enca" 6092 echores "$_enca"
6093 6093
6099 EOF 6099 EOF
6100 _zlib=no 6100 _zlib=no
6101 cc_check -lz && _zlib=yes 6101 cc_check -lz && _zlib=yes
6102 if test "$_zlib" = yes ; then 6102 if test "$_zlib" = yes ; then
6103 def_zlib='#define CONFIG_ZLIB 1' 6103 def_zlib='#define CONFIG_ZLIB 1'
6104 _extra_ldflags="$_extra_ldflags -lz" 6104 extra_ldflags="$extra_ldflags -lz"
6105 else 6105 else
6106 def_zlib='#define CONFIG_ZLIB 0' 6106 def_zlib='#define CONFIG_ZLIB 0'
6107 _libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// -e s/TSCC_DECODER// ` 6107 _libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// -e s/TSCC_DECODER// `
6108 _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// ` 6108 _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// `
6109 fi 6109 fi
6118 int main(void) { BZ2_bzlibVersion(); return 0; } 6118 int main(void) { BZ2_bzlibVersion(); return 0; }
6119 EOF 6119 EOF
6120 cc_check -lbz2 && bzlib=yes 6120 cc_check -lbz2 && bzlib=yes
6121 if test "$bzlib" = yes ; then 6121 if test "$bzlib" = yes ; then
6122 def_bzlib='#define CONFIG_BZLIB 1' 6122 def_bzlib='#define CONFIG_BZLIB 1'
6123 _extra_ldflags="$_extra_ldflags -lbz2" 6123 extra_ldflags="$extra_ldflags -lbz2"
6124 fi 6124 fi
6125 echores "$bzlib" 6125 echores "$bzlib"
6126 6126
6127 6127
6128 echocheck "RTC" 6128 echocheck "RTC"
6158 EOF 6158 EOF
6159 cc_check -llzo2 && _liblzo=yes 6159 cc_check -llzo2 && _liblzo=yes
6160 fi 6160 fi
6161 if test "$_liblzo" = yes ; then 6161 if test "$_liblzo" = yes ; then
6162 def_liblzo='#define CONFIG_LIBLZO 1' 6162 def_liblzo='#define CONFIG_LIBLZO 1'
6163 _extra_ldflags="$_extra_ldflags -llzo2" 6163 extra_ldflags="$extra_ldflags -llzo2"
6164 _codecmodules="liblzo $_codecmodules" 6164 _codecmodules="liblzo $_codecmodules"
6165 else 6165 else
6166 def_liblzo='#undef CONFIG_LIBLZO' 6166 def_liblzo='#undef CONFIG_LIBLZO'
6167 _nocodecmodules="liblzo $_nocodecmodules" 6167 _nocodecmodules="liblzo $_nocodecmodules"
6168 fi 6168 fi
6178 EOF 6178 EOF
6179 cc_check -lmad && _mad=yes 6179 cc_check -lmad && _mad=yes
6180 fi 6180 fi
6181 if test "$_mad" = yes ; then 6181 if test "$_mad" = yes ; then
6182 def_mad='#define CONFIG_LIBMAD 1' 6182 def_mad='#define CONFIG_LIBMAD 1'
6183 _extra_ldflags="$_extra_ldflags -lmad" 6183 extra_ldflags="$extra_ldflags -lmad"
6184 _codecmodules="libmad $_codecmodules" 6184 _codecmodules="libmad $_codecmodules"
6185 else 6185 else
6186 def_mad='#undef CONFIG_LIBMAD' 6186 def_mad='#undef CONFIG_LIBMAD'
6187 _nocodecmodules="libmad $_nocodecmodules" 6187 _nocodecmodules="libmad $_nocodecmodules"
6188 fi 6188 fi
6197 _twolame=no 6197 _twolame=no
6198 cc_check -ltwolame $_ld_lm && _twolame=yes 6198 cc_check -ltwolame $_ld_lm && _twolame=yes
6199 fi 6199 fi
6200 if test "$_twolame" = yes ; then 6200 if test "$_twolame" = yes ; then
6201 def_twolame='#define CONFIG_TWOLAME 1' 6201 def_twolame='#define CONFIG_TWOLAME 1'
6202 _libs_mencoder="$_libs_mencoder -ltwolame" 6202 libs_mencoder="$libs_mencoder -ltwolame"
6203 _codecmodules="twolame $_codecmodules" 6203 _codecmodules="twolame $_codecmodules"
6204 else 6204 else
6205 def_twolame='#undef CONFIG_TWOLAME' 6205 def_twolame='#undef CONFIG_TWOLAME'
6206 _nocodecmodules="twolame $_nocodecmodules" 6206 _nocodecmodules="twolame $_nocodecmodules"
6207 fi 6207 fi
6220 cc_check -ltoolame $_ld_lm && _toolame=yes 6220 cc_check -ltoolame $_ld_lm && _toolame=yes
6221 fi 6221 fi
6222 fi 6222 fi
6223 if test "$_toolame" = yes ; then 6223 if test "$_toolame" = yes ; then
6224 def_toolame='#define CONFIG_TOOLAME 1' 6224 def_toolame='#define CONFIG_TOOLAME 1'
6225 _libs_mencoder="$_libs_mencoder -ltoolame" 6225 libs_mencoder="$libs_mencoder -ltoolame"
6226 _codecmodules="toolame $_codecmodules" 6226 _codecmodules="toolame $_codecmodules"
6227 else 6227 else
6228 def_toolame='#undef CONFIG_TOOLAME' 6228 def_toolame='#undef CONFIG_TOOLAME'
6229 _nocodecmodules="toolame $_nocodecmodules" 6229 _nocodecmodules="toolame $_nocodecmodules"
6230 fi 6230 fi
6266 _vorbis=yes 6266 _vorbis=yes
6267 def_vorbis='#define CONFIG_OGGVORBIS 1' 6267 def_vorbis='#define CONFIG_OGGVORBIS 1'
6268 def_tremor='#define CONFIG_TREMOR 1' 6268 def_tremor='#define CONFIG_TREMOR 1'
6269 _codecmodules="tremor(external) $_codecmodules" 6269 _codecmodules="tremor(external) $_codecmodules"
6270 _res_comment="external Tremor" 6270 _res_comment="external Tremor"
6271 _extra_ldflags="$_extra_ldflags -logg -lvorbisidec" 6271 extra_ldflags="$extra_ldflags -logg -lvorbisidec"
6272 elif test "$_libvorbis" = yes ; then 6272 elif test "$_libvorbis" = yes ; then
6273 _vorbis=yes 6273 _vorbis=yes
6274 def_vorbis='#define CONFIG_OGGVORBIS 1' 6274 def_vorbis='#define CONFIG_OGGVORBIS 1'
6275 _codecmodules="libvorbis $_codecmodules" 6275 _codecmodules="libvorbis $_codecmodules"
6276 _res_comment="libvorbis" 6276 _res_comment="libvorbis"
6277 _extra_ldflags="$_extra_ldflags -lvorbis -logg" 6277 extra_ldflags="$extra_ldflags -lvorbis -logg"
6278 else 6278 else
6279 _vorbis=no 6279 _vorbis=no
6280 _nocodecmodules="libvorbis $_nocodecmodules" 6280 _nocodecmodules="libvorbis $_nocodecmodules"
6281 fi 6281 fi
6282 echores "$_vorbis" 6282 echores "$_vorbis"
6290 EOF 6290 EOF
6291 cc_check -lspeex $_ld_lm && _speex=yes 6291 cc_check -lspeex $_ld_lm && _speex=yes
6292 fi 6292 fi
6293 if test "$_speex" = yes ; then 6293 if test "$_speex" = yes ; then
6294 def_speex='#define CONFIG_SPEEX 1' 6294 def_speex='#define CONFIG_SPEEX 1'
6295 _extra_ldflags="$_extra_ldflags -lspeex" 6295 extra_ldflags="$extra_ldflags -lspeex"
6296 _codecmodules="speex $_codecmodules" 6296 _codecmodules="speex $_codecmodules"
6297 else 6297 else
6298 def_speex='#undef CONFIG_SPEEX' 6298 def_speex='#undef CONFIG_SPEEX'
6299 _nocodecmodules="speex $_nocodecmodules" 6299 _nocodecmodules="speex $_nocodecmodules"
6300 fi 6300 fi
6335 return 0; 6335 return 0;
6336 } 6336 }
6337 EOF 6337 EOF
6338 _ld_theora=$($_pkg_config --silence-errors --libs theora) 6338 _ld_theora=$($_pkg_config --silence-errors --libs theora)
6339 _inc_theora=$($_pkg_config --silence-errors --cflags theora) 6339 _inc_theora=$($_pkg_config --silence-errors --cflags theora)
6340 cc_check $_inc_theora $_ld_theora && _extra_ldflags="$_extra_ldflags $_ld_theora" && 6340 cc_check $_inc_theora $_ld_theora && extra_ldflags="$extra_ldflags $_ld_theora" &&
6341 _extra_cflags="$_extra_cflags $_inc_theora" && _theora=yes 6341 extra_cflags="$extra_cflags $_inc_theora" && _theora=yes
6342 if test _theora = no; then 6342 if test _theora = no; then
6343 _ld_theora="-ltheora -logg" 6343 _ld_theora="-ltheora -logg"
6344 cc_check $_ld_theora && _extra_ldflags="$_extra_ldflags $_ld_theora" && _theora=yes 6344 cc_check $_ld_theora && extra_ldflags="$extra_ldflags $_ld_theora" && _theora=yes
6345 fi 6345 fi
6346 if test "$_theora" = no && test "$_tremor_internal" = yes; then 6346 if test "$_theora" = no && test "$_tremor_internal" = yes; then
6347 _ld_theora=$($_pkg_config --silence-errors --libs theora) 6347 _ld_theora=$($_pkg_config --silence-errors --libs theora)
6348 _inc_theora=$($_pkg_config --silence-errors --cflags theora) 6348 _inc_theora=$($_pkg_config --silence-errors --cflags theora)
6349 cc_check tremor/bitwise.c $_inc_theora $_ld_theora && 6349 cc_check tremor/bitwise.c $_inc_theora $_ld_theora &&
6350 _extra_ldflags="$_extra_ldflags $_ld_theora" && 6350 extra_ldflags="$extra_ldflags $_ld_theora" &&
6351 _extra_cflags="$_extra_cflags $_inc_theora" && _theora=yes 6351 extra_cflags="$extra_cflags $_inc_theora" && _theora=yes
6352 if test _theora = no; then 6352 if test _theora = no; then
6353 _ld_theora="-ltheora -logg" 6353 _ld_theora="-ltheora -logg"
6354 cc_check tremor/bitwise.c $_ld_theora && 6354 cc_check tremor/bitwise.c $_ld_theora &&
6355 _extra_ldflags="$_extra_ldflags $_ld_theora" && _theora=yes 6355 extra_ldflags="$extra_ldflags $_ld_theora" && _theora=yes
6356 fi 6356 fi
6357 fi 6357 fi
6358 fi 6358 fi
6359 if test "$_theora" = yes ; then 6359 if test "$_theora" = yes ; then
6360 def_theora='#define CONFIG_OGGTHEORA 1' 6360 def_theora='#define CONFIG_OGGTHEORA 1'
6361 _codecmodules="libtheora $_codecmodules" 6361 _codecmodules="libtheora $_codecmodules"
6362 # when --enable-theora is forced, we'd better provide a probably sane 6362 # when --enable-theora is forced, we'd better provide a probably sane
6363 # $_ld_theora than nothing 6363 # $_ld_theora than nothing
6364 test -z "$_ld_theora" && _extra_ldflags="$_extra_ldflags -ltheora -logg" 6364 test -z "$_ld_theora" && extra_ldflags="$extra_ldflags -ltheora -logg"
6365 else 6365 else
6366 def_theora='#undef CONFIG_OGGTHEORA' 6366 def_theora='#undef CONFIG_OGGTHEORA'
6367 _nocodecmodules="libtheora $_nocodecmodules" 6367 _nocodecmodules="libtheora $_nocodecmodules"
6368 fi 6368 fi
6369 echores "$_theora" 6369 echores "$_theora"
6396 cat > $TMPC << EOF 6396 cat > $TMPC << EOF
6397 #include <inttypes.h> 6397 #include <inttypes.h>
6398 #include <a52dec/a52.h> 6398 #include <a52dec/a52.h>
6399 int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; } 6399 int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; }
6400 EOF 6400 EOF
6401 cc_check -la52 && _liba52=yes && _res_comment="external" && _extra_ldflags="$_extra_ldflags -la52" 6401 cc_check -la52 && _liba52=yes && _res_comment="external" && extra_ldflags="$extra_ldflags -la52"
6402 fi 6402 fi
6403 if test "$_liba52" = yes ; then 6403 if test "$_liba52" = yes ; then
6404 def_liba52='#define CONFIG_LIBA52 1' 6404 def_liba52='#define CONFIG_LIBA52 1'
6405 _codecmodules="liba52($_res_comment) $_codecmodules" 6405 _codecmodules="liba52($_res_comment) $_codecmodules"
6406 else 6406 else
6436 #include <inttypes.h> 6436 #include <inttypes.h>
6437 #include <dts.h> 6437 #include <dts.h>
6438 int main(void) { dts_init(0); return 0; } 6438 int main(void) { dts_init(0); return 0; }
6439 EOF 6439 EOF
6440 for _ld_dca in -ldts -ldca ; do 6440 for _ld_dca in -ldts -ldca ; do
6441 cc_check $_ld_dca $_ld_lm && _extra_ldflags="$_extra_ldflags $_ld_dca" \ 6441 cc_check $_ld_dca $_ld_lm && extra_ldflags="$extra_ldflags $_ld_dca" \
6442 && _libdca=yes && break 6442 && _libdca=yes && break
6443 done 6443 done
6444 fi 6444 fi
6445 if test "$_libdca" = yes ; then 6445 if test "$_libdca" = yes ; then
6446 def_libdca='#define CONFIG_LIBDCA 1' 6446 def_libdca='#define CONFIG_LIBDCA 1'
6467 EOF 6467 EOF
6468 cc_check -lmpcdec $_ld_lm && _musepack=yes 6468 cc_check -lmpcdec $_ld_lm && _musepack=yes
6469 fi 6469 fi
6470 if test "$_musepack" = yes ; then 6470 if test "$_musepack" = yes ; then
6471 def_musepack='#define CONFIG_MUSEPACK 1' 6471 def_musepack='#define CONFIG_MUSEPACK 1'
6472 _extra_ldflags="$_extra_ldflags -lmpcdec" 6472 extra_ldflags="$extra_ldflags -lmpcdec"
6473 _codecmodules="musepack $_codecmodules" 6473 _codecmodules="musepack $_codecmodules"
6474 else 6474 else
6475 def_musepack='#undef CONFIG_MUSEPACK' 6475 def_musepack='#undef CONFIG_MUSEPACK'
6476 _nocodecmodules="musepack $_nocodecmodules" 6476 _nocodecmodules="musepack $_nocodecmodules"
6477 fi 6477 fi
6485 #include <faac.h> 6485 #include <faac.h>
6486 int main(void) { unsigned long x, y; faacEncOpen(48000, 2, &x, &y); return 0; } 6486 int main(void) { unsigned long x, y; faacEncOpen(48000, 2, &x, &y); return 0; }
6487 EOF 6487 EOF
6488 _faac=no 6488 _faac=no
6489 for _ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do 6489 for _ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do
6490 cc_check -O4 $_ld_faac $_ld_lm && _libs_mencoder="$_libs_mencoder $_ld_faac" && _faac=yes && break 6490 cc_check -O4 $_ld_faac $_ld_lm && libs_mencoder="$libs_mencoder $_ld_faac" && _faac=yes && break
6491 done 6491 done
6492 fi 6492 fi
6493 if test "$_faac" = yes ; then 6493 if test "$_faac" = yes ; then
6494 def_faac="#define CONFIG_FAAC 1" 6494 def_faac="#define CONFIG_FAAC 1"
6495 test "$_faac_lavc" = auto && _faac_lavc=yes 6495 test "$_faac_lavc" = auto && _faac_lavc=yes
6496 if test "$_faac_lavc" = yes ; then 6496 if test "$_faac_lavc" = yes ; then
6497 def_faac_lavc="#define CONFIG_LIBFAAC 1" 6497 def_faac_lavc="#define CONFIG_LIBFAAC 1"
6498 _libs_mplayer="$_libs_mplayer $_ld_faac" 6498 libs_mplayer="$libs_mplayer $_ld_faac"
6499 _libavencoders="$_libavencoders LIBFAAC_ENCODER" 6499 _libavencoders="$_libavencoders LIBFAAC_ENCODER"
6500 fi 6500 fi
6501 _codecmodules="faac $_codecmodules" 6501 _codecmodules="faac $_codecmodules"
6502 else 6502 else
6503 _faac_lavc=no 6503 _faac_lavc=no
6549 # on some platforms, especially for SBR files. 6549 # on some platforms, especially for SBR files.
6550 cflags_faad_fixed="-DFIXED_POINT" 6550 cflags_faad_fixed="-DFIXED_POINT"
6551 _res_comment="internal fixed-point" 6551 _res_comment="internal fixed-point"
6552 fi 6552 fi
6553 elif test "$_faad" = yes ; then 6553 elif test "$_faad" = yes ; then
6554 _extra_ldflags="$_extra_ldflags -lfaad" 6554 extra_ldflags="$extra_ldflags -lfaad"
6555 fi 6555 fi
6556 6556
6557 if test "$_faad" = yes ; then 6557 if test "$_faad" = yes ; then
6558 def_faad='#define CONFIG_FAAD 1' 6558 def_faad='#define CONFIG_FAAD 1'
6559 if test "$_faad_internal" = yes ; then 6559 if test "$_faad_internal" = yes ; then
6619 _res_comment="using $_win32codecsdir" 6619 _res_comment="using $_win32codecsdir"
6620 if ! win32 ; then 6620 if ! win32 ; then
6621 def_win32_loader='#define WIN32_LOADER 1' 6621 def_win32_loader='#define WIN32_LOADER 1'
6622 _win32_emulation=yes 6622 _win32_emulation=yes
6623 else 6623 else
6624 _extra_ldflags="$_extra_ldflags -ladvapi32 -lole32" 6624 extra_ldflags="$extra_ldflags -ladvapi32 -lole32"
6625 _res_comment="using native windows" 6625 _res_comment="using native windows"
6626 fi 6626 fi
6627 _codecmodules="win32 $_codecmodules" 6627 _codecmodules="win32 $_codecmodules"
6628 else 6628 else
6629 def_win32dll='#undef CONFIG_WIN32DLL' 6629 def_win32dll='#undef CONFIG_WIN32DLL'
6697 6697
6698 echocheck "Nemesi Streaming Media libraries" 6698 echocheck "Nemesi Streaming Media libraries"
6699 if test "$_nemesi" = auto && test "$_network" = yes ; then 6699 if test "$_nemesi" = auto && test "$_network" = yes ; then
6700 _nemesi=no 6700 _nemesi=no
6701 if $_pkg_config libnemesi --atleast-version=0.6.3 ; then 6701 if $_pkg_config libnemesi --atleast-version=0.6.3 ; then
6702 _extra_cflags="$_extra_cflags `$_pkg_config --cflags libnemesi`" 6702 extra_cflags="$extra_cflags `$_pkg_config --cflags libnemesi`"
6703 _extra_ldflags="$_extra_ldflags `$_pkg_config --libs libnemesi`" 6703 extra_ldflags="$extra_ldflags `$_pkg_config --libs libnemesi`"
6704 _nemesi=yes 6704 _nemesi=yes
6705 fi 6705 fi
6706 fi 6706 fi
6707 if test "$_nemesi" = yes; then 6707 if test "$_nemesi" = yes; then
6708 _native_rtsp=no 6708 _native_rtsp=no
6725 #endif 6725 #endif
6726 int main(void) { return 0; } 6726 int main(void) { return 0; }
6727 EOF 6727 EOF
6728 6728
6729 _live=no 6729 _live=no
6730 for I in $_extra_cflags "-I$_libdir/live" "-I/usr/lib/live" "-I/usr/lib64/live" "-I/usr/local/live" "-I/usr/local/lib/live" ; do 6730 for I in $extra_cflags "-I$_libdir/live" "-I/usr/lib/live" "-I/usr/lib64/live" "-I/usr/local/live" "-I/usr/local/lib/live" ; do
6731 cxx_check $I/liveMedia/include $I/UsageEnvironment/include \ 6731 cxx_check $I/liveMedia/include $I/UsageEnvironment/include \
6732 $I/groupsock/include && _livelibdir=`echo $I| sed s/-I//` && \ 6732 $I/groupsock/include && _livelibdir=`echo $I| sed s/-I//` && \
6733 _extra_ldflags="$_livelibdir/liveMedia/libliveMedia.a \ 6733 extra_ldflags="$_livelibdir/liveMedia/libliveMedia.a \
6734 $_livelibdir/groupsock/libgroupsock.a \ 6734 $_livelibdir/groupsock/libgroupsock.a \
6735 $_livelibdir/UsageEnvironment/libUsageEnvironment.a \ 6735 $_livelibdir/UsageEnvironment/libUsageEnvironment.a \
6736 $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a \ 6736 $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a \
6737 $_extra_ldflags -lstdc++" \ 6737 $extra_ldflags -lstdc++" \
6738 _extra_cxxflags="-I$_livelibdir/liveMedia/include \ 6738 extra_cxxflags="-I$_livelibdir/liveMedia/include \
6739 -I$_livelibdir/UsageEnvironment/include \ 6739 -I$_livelibdir/UsageEnvironment/include \
6740 -I$_livelibdir/BasicUsageEnvironment/include \ 6740 -I$_livelibdir/BasicUsageEnvironment/include \
6741 -I$_livelibdir/groupsock/include" && \ 6741 -I$_livelibdir/groupsock/include" && \
6742 _live=yes && break 6742 _live=yes && break
6743 done 6743 done
6753 _inputmodules="live555 $_inputmodules" 6753 _inputmodules="live555 $_inputmodules"
6754 elif test "$_live_dist" = yes && test "$_network" = yes; then 6754 elif test "$_live_dist" = yes && test "$_network" = yes; then
6755 _res_comment="using distribution version" 6755 _res_comment="using distribution version"
6756 _live="yes" 6756 _live="yes"
6757 def_live='#define CONFIG_LIVE555 1' 6757 def_live='#define CONFIG_LIVE555 1'
6758 _extra_ldflags="$_extra_ldflags -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++" 6758 extra_ldflags="$extra_ldflags -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++"
6759 _extra_cxxflags="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \ 6759 extra_cxxflags="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \
6760 -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock" 6760 -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock"
6761 _inputmodules="live555 $_inputmodules" 6761 _inputmodules="live555 $_inputmodules"
6762 else 6762 else
6763 _live=no 6763 _live=no
6764 def_live='#undef CONFIG_LIVE555' 6764 def_live='#undef CONFIG_LIVE555'
6782 int main(void) { av_gcd(1,1); return 0; } 6782 int main(void) { av_gcd(1,1); return 0; }
6783 EOF 6783 EOF
6784 if $_pkg_config --exists libavutil ; then 6784 if $_pkg_config --exists libavutil ; then
6785 _inc_libavutil=`$_pkg_config --cflags libavutil` 6785 _inc_libavutil=`$_pkg_config --cflags libavutil`
6786 _ld_tmp=`$_pkg_config --libs libavutil` 6786 _ld_tmp=`$_pkg_config --libs libavutil`
6787 cc_check $_inc_libavutil $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \ 6787 cc_check $_inc_libavutil $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \
6788 && _libavutil_so=yes 6788 && _libavutil_so=yes
6789 elif cc_check -lavutil $_ld_lm ; then 6789 elif cc_check -lavutil $_ld_lm ; then
6790 _extra_ldflags="$_extra_ldflags -lavutil" 6790 extra_ldflags="$extra_ldflags -lavutil"
6791 _libavutil_so=yes 6791 _libavutil_so=yes
6792 _res_comment="using libavutil.so, but static libavutil is recommended" 6792 _res_comment="using libavutil.so, but static libavutil is recommended"
6793 fi 6793 fi
6794 fi 6794 fi
6795 _libavutil=no 6795 _libavutil=no
6821 int main(void) { avcodec_find_encoder_by_name(""); return 0; } 6821 int main(void) { avcodec_find_encoder_by_name(""); return 0; }
6822 EOF 6822 EOF
6823 if $_pkg_config --exists libavcodec ; then 6823 if $_pkg_config --exists libavcodec ; then
6824 _inc_libavcodec=`$_pkg_config --cflags libavcodec` 6824 _inc_libavcodec=`$_pkg_config --cflags libavcodec`
6825 _ld_tmp=`$_pkg_config --libs libavcodec` 6825 _ld_tmp=`$_pkg_config --libs libavcodec`
6826 cc_check $_inc_libavcodec $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \ 6826 cc_check $_inc_libavcodec $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \
6827 && _libavcodec_so=yes 6827 && _libavcodec_so=yes
6828 elif cc_check -lavcodec $_ld_lm ; then 6828 elif cc_check -lavcodec $_ld_lm ; then
6829 _extra_ldflags="$_extra_ldflags -lavcodec" 6829 extra_ldflags="$extra_ldflags -lavcodec"
6830 _libavcodec_so=yes 6830 _libavcodec_so=yes
6831 _res_comment="using libavcodec.so, but static libavcodec is recommended" 6831 _res_comment="using libavcodec.so, but static libavcodec is recommended"
6832 fi 6832 fi
6833 fi 6833 fi
6834 _libavcodec=no 6834 _libavcodec=no
6865 int main(void) { av_alloc_format_context(); return 0; } 6865 int main(void) { av_alloc_format_context(); return 0; }
6866 EOF 6866 EOF
6867 if $_pkg_config --exists libavformat ; then 6867 if $_pkg_config --exists libavformat ; then
6868 _inc_libavformat=`$_pkg_config --cflags libavformat` 6868 _inc_libavformat=`$_pkg_config --cflags libavformat`
6869 _ld_tmp=`$_pkg_config --libs libavformat` 6869 _ld_tmp=`$_pkg_config --libs libavformat`
6870 cc_check $_inc_libavformat $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \ 6870 cc_check $_inc_libavformat $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \
6871 && _libavformat_so=yes 6871 && _libavformat_so=yes
6872 elif cc_check $_ld_lm -lavformat ; then 6872 elif cc_check $_ld_lm -lavformat ; then
6873 _extra_ldflags="$_extra_ldflags -lavformat" 6873 extra_ldflags="$extra_ldflags -lavformat"
6874 _libavformat_so=yes 6874 _libavformat_so=yes
6875 _res_comment="using libavformat.so, but static libavformat is recommended" 6875 _res_comment="using libavformat.so, but static libavformat is recommended"
6876 fi 6876 fi
6877 fi 6877 fi
6878 _libavformat=no 6878 _libavformat=no
6899 #include <inttypes.h> 6899 #include <inttypes.h>
6900 #include <libpostproc/postprocess.h> 6900 #include <libpostproc/postprocess.h>
6901 int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; } 6901 int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; }
6902 EOF 6902 EOF
6903 if cc_check -lpostproc $_ld_lm ; then 6903 if cc_check -lpostproc $_ld_lm ; then
6904 _extra_ldflags="$_extra_ldflags -lpostproc" 6904 extra_ldflags="$extra_ldflags -lpostproc"
6905 _libpostproc_so=yes 6905 _libpostproc_so=yes
6906 _res_comment="using libpostproc.so, but static libpostproc is recommended" 6906 _res_comment="using libpostproc.so, but static libpostproc is recommended"
6907 fi 6907 fi
6908 fi 6908 fi
6909 _libpostproc=no 6909 _libpostproc=no
6932 int main(void) { sws_scale(0, 0, 0, 0, 0, 0, 0); return 0; } 6932 int main(void) { sws_scale(0, 0, 0, 0, 0, 0, 0); return 0; }
6933 EOF 6933 EOF
6934 if $_pkg_config --exists libswscale ; then 6934 if $_pkg_config --exists libswscale ; then
6935 _inc_libswscale=`$_pkg_config --cflags libswscale` 6935 _inc_libswscale=`$_pkg_config --cflags libswscale`
6936 _ld_tmp=`$_pkg_config --libs libswscale` 6936 _ld_tmp=`$_pkg_config --libs libswscale`
6937 cc_check $_inc_libswscale $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \ 6937 cc_check $_inc_libswscale $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" \
6938 && _libswscale_so=yes 6938 && _libswscale_so=yes
6939 elif cc_check -lswscale ; then 6939 elif cc_check -lswscale ; then
6940 _extra_ldflags="$_extra_ldflags -lswscale" 6940 extra_ldflags="$extra_ldflags -lswscale"
6941 _libswscale_so=yes 6941 _libswscale_so=yes
6942 fi 6942 fi
6943 fi 6943 fi
6944 _libswscale=no 6944 _libswscale=no
6945 def_libswscale='#undef CONFIG_LIBSWSCALE' 6945 def_libswscale='#undef CONFIG_LIBSWSCALE'
6965 _res_comment="libavcodec (static) is required by libamr_nb, sorry" 6965 _res_comment="libavcodec (static) is required by libamr_nb, sorry"
6966 fi 6966 fi
6967 fi 6967 fi
6968 if test "$_libamr_nb" = yes ; then 6968 if test "$_libamr_nb" = yes ; then
6969 _libamr=yes 6969 _libamr=yes
6970 _extra_ldflags="$_extra_ldflags -lamrnb" 6970 extra_ldflags="$extra_ldflags -lamrnb"
6971 def_libamr='#define CONFIG_LIBAMR 1' 6971 def_libamr='#define CONFIG_LIBAMR 1'
6972 def_libamr_nb='#define CONFIG_LIBAMR_NB 1' 6972 def_libamr_nb='#define CONFIG_LIBAMR_NB 1'
6973 _libavdecoders="$_libavdecoders LIBAMR_NB_DECODER" 6973 _libavdecoders="$_libavdecoders LIBAMR_NB_DECODER"
6974 _libavencoders="$_libavencoders LIBAMR_NB_ENCODER" 6974 _libavencoders="$_libavencoders LIBAMR_NB_ENCODER"
6975 _codecmodules="libamr_nb $_codecmodules" 6975 _codecmodules="libamr_nb $_codecmodules"
6993 _res_comment="libavcodec (static) is required by libamr_wb, sorry" 6993 _res_comment="libavcodec (static) is required by libamr_wb, sorry"
6994 fi 6994 fi
6995 fi 6995 fi
6996 if test "$_libamr_wb" = yes ; then 6996 if test "$_libamr_wb" = yes ; then
6997 _libamr=yes 6997 _libamr=yes
6998 _extra_ldflags="$_extra_ldflags -lamrwb" 6998 extra_ldflags="$extra_ldflags -lamrwb"
6999 def_libamr='#define CONFIG_LIBAMR 1' 6999 def_libamr='#define CONFIG_LIBAMR 1'
7000 def_libamr_wb='#define CONFIG_LIBAMR_WB 1' 7000 def_libamr_wb='#define CONFIG_LIBAMR_WB 1'
7001 _libavdecoders="$_libavdecoders LIBAMR_WB_DECODER" 7001 _libavdecoders="$_libavdecoders LIBAMR_WB_DECODER"
7002 _libavencoders="$_libavencoders LIBAMR_WB_ENCODER" 7002 _libavencoders="$_libavencoders LIBAMR_WB_ENCODER"
7003 _codecmodules="libamr_wb $_codecmodules" 7003 _codecmodules="libamr_wb $_codecmodules"
7016 EOF 7016 EOF
7017 cc_check -ldv $_ld_pthread $_ld_lm && _libdv=yes 7017 cc_check -ldv $_ld_pthread $_ld_lm && _libdv=yes
7018 fi 7018 fi
7019 if test "$_libdv" = yes ; then 7019 if test "$_libdv" = yes ; then
7020 def_libdv='#define CONFIG_LIBDV095 1' 7020 def_libdv='#define CONFIG_LIBDV095 1'
7021 _extra_ldflags="$_extra_ldflags -ldv" 7021 extra_ldflags="$extra_ldflags -ldv"
7022 _codecmodules="libdv $_codecmodules" 7022 _codecmodules="libdv $_codecmodules"
7023 else 7023 else
7024 def_libdv='#undef CONFIG_LIBDV095' 7024 def_libdv='#undef CONFIG_LIBDV095'
7025 _nocodecmodules="libdv $_nocodecmodules" 7025 _nocodecmodules="libdv $_nocodecmodules"
7026 fi 7026 fi
7033 cat > $TMPC << EOF 7033 cat > $TMPC << EOF
7034 #include <xvid.h> 7034 #include <xvid.h>
7035 int main(void) { xvid_global(0, 0, 0, 0); return 0; } 7035 int main(void) { xvid_global(0, 0, 0, 0); return 0; }
7036 EOF 7036 EOF
7037 for _ld_tmp in "-lxvidcore $_ld_lm" "-lxvidcore $_ld_lm $_ld_pthread" ; do 7037 for _ld_tmp in "-lxvidcore $_ld_lm" "-lxvidcore $_ld_lm $_ld_pthread" ; do
7038 cc_check $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" && _xvid=yes && break 7038 cc_check $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" && _xvid=yes && break
7039 done 7039 done
7040 fi 7040 fi
7041 7041
7042 if test "$_xvid" = yes ; then 7042 if test "$_xvid" = yes ; then
7043 def_xvid='#define CONFIG_XVID4 1' 7043 def_xvid='#define CONFIG_XVID4 1'
7076 #endif 7076 #endif
7077 int main(void) { x264_encoder_open((void*)0); return 0; } 7077 int main(void) { x264_encoder_open((void*)0); return 0; }
7078 EOF 7078 EOF
7079 _x264=no 7079 _x264=no
7080 for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_lm" ; do 7080 for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_lm" ; do
7081 cc_check $_ld_x264 && _libs_mencoder="$_libs_mencoder $_ld_x264" && _x264=yes && break 7081 cc_check $_ld_x264 && libs_mencoder="$libs_mencoder $_ld_x264" && _x264=yes && break
7082 done 7082 done
7083 fi 7083 fi
7084 7084
7085 if test "$_x264" = yes ; then 7085 if test "$_x264" = yes ; then
7086 def_x264='#define CONFIG_X264 1' 7086 def_x264='#define CONFIG_X264 1'
7087 _codecmodules="x264 $_codecmodules" 7087 _codecmodules="x264 $_codecmodules"
7088 test "$_x264_lavc" = auto && _x264_lavc=yes 7088 test "$_x264_lavc" = auto && _x264_lavc=yes
7089 if test "$_x264_lavc" = yes ; then 7089 if test "$_x264_lavc" = yes ; then
7090 def_x264_lavc='#define CONFIG_LIBX264 1' 7090 def_x264_lavc='#define CONFIG_LIBX264 1'
7091 _libs_mplayer="$_libs_mplayer $_ld_x264" 7091 libs_mplayer="$libs_mplayer $_ld_x264"
7092 _libavencoders="$_libavencoders LIBX264_ENCODER" 7092 _libavencoders="$_libavencoders LIBX264_ENCODER"
7093 fi 7093 fi
7094 else 7094 else
7095 _x264_lavc=no 7095 _x264_lavc=no
7096 def_x264='#undef CONFIG_X264' 7096 def_x264='#undef CONFIG_X264'
7124 if $_pkg_config --exists dirac ; then 7124 if $_pkg_config --exists dirac ; then
7125 _inc_dirac=`$_pkg_config --silence-errors --cflags dirac` 7125 _inc_dirac=`$_pkg_config --silence-errors --cflags dirac`
7126 _ld_dirac=`$_pkg_config --silence-errors --libs dirac` 7126 _ld_dirac=`$_pkg_config --silence-errors --libs dirac`
7127 cc_check $_inc_dirac $_ld_dirac && 7127 cc_check $_inc_dirac $_ld_dirac &&
7128 _libdirac_lavc=yes && 7128 _libdirac_lavc=yes &&
7129 _extra_cflags="$_extra_cflags $_inc_dirac" && 7129 extra_cflags="$extra_cflags $_inc_dirac" &&
7130 _extra_ldflags="$_extra_ldflags $_ld_dirac" 7130 extra_ldflags="$extra_ldflags $_ld_dirac"
7131 fi 7131 fi
7132 fi 7132 fi
7133 fi 7133 fi
7134 if test "$_libdirac_lavc" = yes ; then 7134 if test "$_libdirac_lavc" = yes ; then
7135 def_libdirac_lavc='#define CONFIG_LIBDIRAC 1' 7135 def_libdirac_lavc='#define CONFIG_LIBDIRAC 1'
7156 if $_pkg_config --exists schroedinger-1.0 ; then 7156 if $_pkg_config --exists schroedinger-1.0 ; then
7157 _inc_schroedinger=`$_pkg_config --silence-errors --cflags schroedinger-1.0` 7157 _inc_schroedinger=`$_pkg_config --silence-errors --cflags schroedinger-1.0`
7158 _ld_schroedinger=`$_pkg_config --silence-errors --libs schroedinger-1.0` 7158 _ld_schroedinger=`$_pkg_config --silence-errors --libs schroedinger-1.0`
7159 cc_check $_inc_schroedinger $_ld_schroedinger && 7159 cc_check $_inc_schroedinger $_ld_schroedinger &&
7160 _libschroedinger_lavc=yes && 7160 _libschroedinger_lavc=yes &&
7161 _extra_cflags="$_extra_cflags $_inc_schroedinger" && 7161 extra_cflags="$extra_cflags $_inc_schroedinger" &&
7162 _extra_ldflags="$_extra_ldflags $_ld_schroedinger" 7162 extra_ldflags="$extra_ldflags $_ld_schroedinger"
7163 fi 7163 fi
7164 fi 7164 fi
7165 fi 7165 fi
7166 if test "$_libschroedinger_lavc" = yes ; then 7166 if test "$_libschroedinger_lavc" = yes ; then
7167 def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 1' 7167 def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 1'
7187 cc_check -lnut && _libnut=yes 7187 cc_check -lnut && _libnut=yes
7188 fi 7188 fi
7189 7189
7190 if test "$_libnut" = yes ; then 7190 if test "$_libnut" = yes ; then
7191 def_libnut='#define CONFIG_LIBNUT 1' 7191 def_libnut='#define CONFIG_LIBNUT 1'
7192 _extra_ldflags="$_extra_ldflags -lnut" 7192 extra_ldflags="$extra_ldflags -lnut"
7193 else 7193 else
7194 def_libnut='#undef CONFIG_LIBNUT' 7194 def_libnut='#undef CONFIG_LIBNUT'
7195 fi 7195 fi
7196 echores "$_libnut" 7196 echores "$_libnut"
7197 7197
7238 cc_check -lmp3lame $_ld_lm && tmp_run && _mp3lame=yes 7238 cc_check -lmp3lame $_ld_lm && tmp_run && _mp3lame=yes
7239 fi 7239 fi
7240 if test "$_mp3lame" = yes ; then 7240 if test "$_mp3lame" = yes ; then
7241 def_mp3lame="#define CONFIG_MP3LAME" 7241 def_mp3lame="#define CONFIG_MP3LAME"
7242 _ld_mp3lame=-lmp3lame 7242 _ld_mp3lame=-lmp3lame
7243 _libs_mencoder="$_libs_mencoder $_ld_mp3lame" 7243 libs_mencoder="$libs_mencoder $_ld_mp3lame"
7244 cat > $TMPC << EOF 7244 cat > $TMPC << EOF
7245 #include <lame/lame.h> 7245 #include <lame/lame.h>
7246 int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; } 7246 int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; }
7247 EOF 7247 EOF
7248 cc_check $_ld_mp3lame $_ld_lm && def_mp3lame_preset="#define CONFIG_MP3LAME_PRESET" 7248 cc_check $_ld_mp3lame $_ld_lm && def_mp3lame_preset="#define CONFIG_MP3LAME_PRESET"
7253 cc_check $_ld_mp3lame $_ld_lm && def_mp3lame_preset_medium="#define CONFIG_MP3LAME_PRESET_MEDIUM" 7253 cc_check $_ld_mp3lame $_ld_lm && def_mp3lame_preset_medium="#define CONFIG_MP3LAME_PRESET_MEDIUM"
7254 test "$_mp3lame_lavc" = auto && _mp3lame_lavc=yes 7254 test "$_mp3lame_lavc" = auto && _mp3lame_lavc=yes
7255 if test "$_mp3lame_lavc" = yes ; then 7255 if test "$_mp3lame_lavc" = yes ; then
7256 def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 1" 7256 def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 1"
7257 _libavencoders="$_libavencoders LIBMP3LAME_ENCODER" 7257 _libavencoders="$_libavencoders LIBMP3LAME_ENCODER"
7258 _libs_mplayer="$_libs_mplayer $_ld_mp3lame" 7258 libs_mplayer="$libs_mplayer $_ld_mp3lame"
7259 fi 7259 fi
7260 else 7260 else
7261 _mp3lame_lavc=no 7261 _mp3lame_lavc=no
7262 def_mp3lame='#undef CONFIG_MP3LAME' 7262 def_mp3lame='#undef CONFIG_MP3LAME'
7263 def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 0" 7263 def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 0"
7403 fi 7403 fi
7404 fi 7404 fi
7405 if test "$_tv_dshow" = yes ; then 7405 if test "$_tv_dshow" = yes ; then
7406 _inputmodules="tv-dshow $_inputmodules" 7406 _inputmodules="tv-dshow $_inputmodules"
7407 def_tv_dshow='#define CONFIG_TV_DSHOW 1' 7407 def_tv_dshow='#define CONFIG_TV_DSHOW 1'
7408 _extra_ldflags="$_extra_ldflags -lole32 -luuid" 7408 extra_ldflags="$extra_ldflags -lole32 -luuid"
7409 else 7409 else
7410 _noinputmodules="tv-dshow $_noinputmodules" 7410 _noinputmodules="tv-dshow $_noinputmodules"
7411 def_tv_dshow='#undef CONFIG_TV_DSHOW' 7411 def_tv_dshow='#undef CONFIG_TV_DSHOW'
7412 fi 7412 fi
7413 echores "$_tv_dshow" 7413 echores "$_tv_dshow"
7617 cc_check -lvstream-client && _vstream=yes 7617 cc_check -lvstream-client && _vstream=yes
7618 fi 7618 fi
7619 if test "$_vstream" = yes ; then 7619 if test "$_vstream" = yes ; then
7620 def_vstream='#define CONFIG_VSTREAM 1' 7620 def_vstream='#define CONFIG_VSTREAM 1'
7621 _inputmodules="vstream $_inputmodules" 7621 _inputmodules="vstream $_inputmodules"
7622 _extra_ldflags="$_extra_ldflags -lvstream-client" 7622 extra_ldflags="$extra_ldflags -lvstream-client"
7623 else 7623 else
7624 _noinputmodules="vstream $_noinputmodules" 7624 _noinputmodules="vstream $_noinputmodules"
7625 def_vstream='#undef CONFIG_VSTREAM' 7625 def_vstream='#undef CONFIG_VSTREAM'
7626 fi 7626 fi
7627 echores "$_vstream" 7627 echores "$_vstream"
7657 _xmmslibdir=/usr/lib 7657 _xmmslibdir=/usr/lib
7658 fi 7658 fi
7659 7659
7660 def_xmms='#define CONFIG_XMMS 1' 7660 def_xmms='#define CONFIG_XMMS 1'
7661 if darwin ; then 7661 if darwin ; then
7662 _extra_ldflags="$_extra_ldflags ${_xmmslibdir}/libxmms.dylib" 7662 extra_ldflags="$extra_ldflags ${_xmmslibdir}/libxmms.dylib"
7663 else 7663 else
7664 _extra_ldflags="$_extra_ldflags ${_xmmslibdir}/libxmms.so.1 -export-dynamic" 7664 extra_ldflags="$extra_ldflags ${_xmmslibdir}/libxmms.so.1 -export-dynamic"
7665 fi 7665 fi
7666 else 7666 else
7667 def_xmms='#undef CONFIG_XMMS' 7667 def_xmms='#undef CONFIG_XMMS'
7668 fi 7668 fi
7669 echores "$_xmms" 7669 echores "$_xmms"
7722 #Check for GTK2 : 7722 #Check for GTK2 :
7723 echocheck "GTK+ version" 7723 echocheck "GTK+ version"
7724 7724
7725 if $_pkg_config gtk+-2.0 --exists ; then 7725 if $_pkg_config gtk+-2.0 --exists ; then
7726 _gtk=`$_pkg_config gtk+-2.0 --modversion 2>/dev/null` 7726 _gtk=`$_pkg_config gtk+-2.0 --modversion 2>/dev/null`
7727 _extra_cflags="$_extra_cflags `$_pkg_config gtk+-2.0 --cflags 2>/dev/null`" 7727 extra_cflags="$extra_cflags `$_pkg_config gtk+-2.0 --cflags 2>/dev/null`"
7728 _libs_mplayer="$_libs_mplayer `$_pkg_config gtk+-2.0 --libs 2>/dev/null`" 7728 libs_mplayer="$libs_mplayer `$_pkg_config gtk+-2.0 --libs 2>/dev/null`"
7729 echores "$_gtk" 7729 echores "$_gtk"
7730 7730
7731 # Check for GLIB2 7731 # Check for GLIB2
7732 if $_pkg_config glib-2.0 --exists ; then 7732 if $_pkg_config glib-2.0 --exists ; then
7733 echocheck "glib version" 7733 echocheck "glib version"
7734 _glib=`$_pkg_config glib-2.0 --modversion 2>/dev/null` 7734 _glib=`$_pkg_config glib-2.0 --modversion 2>/dev/null`
7735 _libs_mplayer="$_libs_mplayer `$_pkg_config glib-2.0 --libs 2>/dev/null`" 7735 libs_mplayer="$libs_mplayer `$_pkg_config glib-2.0 --libs 2>/dev/null`"
7736 echores "$_glib" 7736 echores "$_glib"
7737 7737
7738 def_gui='#define CONFIG_GUI 1' 7738 def_gui='#define CONFIG_GUI 1'
7739 def_gtk2='#define CONFIG_GTK2 1' 7739 def_gtk2='#define CONFIG_GTK2 1'
7740 else 7740 else
7758 else 7758 else
7759 die "The GUI requires GTK devel packages (which were not found)." 7759 die "The GUI requires GTK devel packages (which were not found)."
7760 fi 7760 fi
7761 fi 7761 fi
7762 _gtk=`$_gtkconfig --version 2>&1` 7762 _gtk=`$_gtkconfig --version 2>&1`
7763 _extra_cflags="$_extra_cflags `$_gtkconfig --cflags 2>&1`" 7763 extra_cflags="$extra_cflags `$_gtkconfig --cflags 2>&1`"
7764 _libs_mplayer="$_libs_mplayer `$_gtkconfig --libs 2>&1`" 7764 libs_mplayer="$libs_mplayer `$_gtkconfig --libs 2>&1`"
7765 echores "$_gtk (using $_gtkconfig)" 7765 echores "$_gtk (using $_gtkconfig)"
7766 7766
7767 # Check for GLIB 7767 # Check for GLIB
7768 echocheck "glib version" 7768 echocheck "glib version"
7769 if test -z "$_glibconfig" ; then 7769 if test -z "$_glibconfig" ; then
7774 else 7774 else
7775 die "The GUI requires GLIB devel packages (which were not found)" 7775 die "The GUI requires GLIB devel packages (which were not found)"
7776 fi 7776 fi
7777 fi 7777 fi
7778 _glib=`$_glibconfig --version 2>&1` 7778 _glib=`$_glibconfig --version 2>&1`
7779 _libs_mplayer="$_libs_mplayer `$_glibconfig --libs 2>&1`" 7779 libs_mplayer="$libs_mplayer `$_glibconfig --libs 2>&1`"
7780 echores "$_glib (using $_glibconfig)" 7780 echores "$_glib (using $_glibconfig)"
7781 7781
7782 def_gui='#define CONFIG_GUI 1' 7782 def_gui='#define CONFIG_GUI 1'
7783 def_gtk2='#undef CONFIG_GTK2' 7783 def_gtk2='#undef CONFIG_GTK2'
7784 fi 7784 fi
7785 7785
7786 else #if ! win32 7786 else #if ! win32
7787 _gui_win32=yes 7787 _gui_win32=yes
7788 _libs_mplayer="$_libs_mplayer -lcomdlg32 -lcomctl32 -lshell32 -lkernel32" 7788 libs_mplayer="$libs_mplayer -lcomdlg32 -lcomctl32 -lshell32 -lkernel32"
7789 def_gui='#define CONFIG_GUI 1' 7789 def_gui='#define CONFIG_GUI 1'
7790 def_gtk2='#undef CONFIG_GTK2' 7790 def_gtk2='#undef CONFIG_GTK2'
7791 fi #if ! win32 7791 fi #if ! win32
7792 7792
7793 else #if test "$_gui" 7793 else #if test "$_gui"
7833 echocheck "compiler support for noexecstack" 7833 echocheck "compiler support for noexecstack"
7834 cat > $TMPC <<EOF 7834 cat > $TMPC <<EOF
7835 int main(void) { return 0; } 7835 int main(void) { return 0; }
7836 EOF 7836 EOF
7837 if cc_check -Wl,-z,noexecstack ; then 7837 if cc_check -Wl,-z,noexecstack ; then
7838 _extra_ldflags="-Wl,-z,noexecstack $_extra_ldflags" 7838 extra_ldflags="-Wl,-z,noexecstack $extra_ldflags"
7839 echores "yes" 7839 echores "yes"
7840 else 7840 else
7841 echores "no" 7841 echores "no"
7842 fi 7842 fi
7843 7843
7848 freebsd || netbsd || openbsd || dragonfly || bsdos && _ld_dl_dynamic='-rdynamic' 7848 freebsd || netbsd || openbsd || dragonfly || bsdos && _ld_dl_dynamic='-rdynamic'
7849 if test "$_real" = yes || test "$_xanim" = yes && ! win32 && ! qnx && ! darwin && ! os2 ; then 7849 if test "$_real" = yes || test "$_xanim" = yes && ! win32 && ! qnx && ! darwin && ! os2 ; then
7850 _ld_dl_dynamic='-rdynamic' 7850 _ld_dl_dynamic='-rdynamic'
7851 fi 7851 fi
7852 7852
7853 _extra_ldflags="$_extra_ldflags $_ld_pthread $_ld_dl $_ld_dl_dynamic" 7853 extra_ldflags="$extra_ldflags $_ld_pthread $_ld_dl $_ld_dl_dynamic"
7854 bsdos && _extra_ldflags="$_extra_ldflags -ldvd" 7854 bsdos && extra_ldflags="$extra_ldflags -ldvd"
7855 (netbsd || openbsd) && x86_32 && _extra_ldflags="$_extra_ldflags -li386" 7855 (netbsd || openbsd) && x86_32 && extra_ldflags="$extra_ldflags -li386"
7856 7856
7857 def_debug='#undef MP_DEBUG' 7857 def_debug='#undef MP_DEBUG'
7858 test "$_debug" != "" && def_debug='#define MP_DEBUG 1' 7858 test "$_debug" != "" && def_debug='#define MP_DEBUG 1'
7859 7859
7860 7860
7880 EOF 7880 EOF
7881 cc_check -llirc_client && _lirc=yes 7881 cc_check -llirc_client && _lirc=yes
7882 fi 7882 fi
7883 if test "$_lirc" = yes ; then 7883 if test "$_lirc" = yes ; then
7884 def_lirc='#define CONFIG_LIRC 1' 7884 def_lirc='#define CONFIG_LIRC 1'
7885 _extra_ldflags="$_extra_ldflags -llirc_client" 7885 extra_ldflags="$extra_ldflags -llirc_client"
7886 else 7886 else
7887 def_lirc='#undef CONFIG_LIRC' 7887 def_lirc='#undef CONFIG_LIRC'
7888 fi 7888 fi
7889 echores "$_lirc" 7889 echores "$_lirc"
7890 7890
7897 EOF 7897 EOF
7898 cc_check -llircc && _lircc=yes 7898 cc_check -llircc && _lircc=yes
7899 fi 7899 fi
7900 if test "$_lircc" = yes ; then 7900 if test "$_lircc" = yes ; then
7901 def_lircc='#define CONFIG_LIRCC 1' 7901 def_lircc='#define CONFIG_LIRCC 1'
7902 _extra_ldflags="$_extra_ldflags -llircc" 7902 extra_ldflags="$extra_ldflags -llircc"
7903 else 7903 else
7904 def_lircc='#undef CONFIG_LIRCC' 7904 def_lircc='#undef CONFIG_LIRCC'
7905 fi 7905 fi
7906 echores "$_lircc" 7906 echores "$_lircc"
7907 7907
7917 EOF 7917 EOF
7918 cc_check `$_pkg_config --cflags --libs libosso 2>/dev/null` && _maemo=yes 7918 cc_check `$_pkg_config --cflags --libs libosso 2>/dev/null` && _maemo=yes
7919 fi 7919 fi
7920 if test "$_maemo" = yes ; then 7920 if test "$_maemo" = yes ; then
7921 def_maemo='#define CONFIG_MAEMO 1' 7921 def_maemo='#define CONFIG_MAEMO 1'
7922 _extra_cflags="$_extra_cflags `$_pkg_config --cflags libosso`" 7922 extra_cflags="$extra_cflags `$_pkg_config --cflags libosso`"
7923 _extra_ldflags="$_extra_ldflags `$_pkg_config --libs libosso` -lXsp" 7923 extra_ldflags="$extra_ldflags `$_pkg_config --libs libosso` -lXsp"
7924 else 7924 else
7925 def_maemo='#undef CONFIG_MAEMO' 7925 def_maemo='#undef CONFIG_MAEMO'
7926 fi 7926 fi
7927 echores "$_maemo" 7927 echores "$_maemo"
7928 fi 7928 fi
7931 7931
7932 # On OS/2 nm supports only a.out. So the -Zomf compiler option to generate 7932 # On OS/2 nm supports only a.out. So the -Zomf compiler option to generate
7933 # the OMF format needs to come after the 'extern symbol prefix' check, which 7933 # the OMF format needs to come after the 'extern symbol prefix' check, which
7934 # uses nm. 7934 # uses nm.
7935 if os2 ; then 7935 if os2 ; then
7936 _extra_ldflags="$_extra_ldflags -Zomf -Zstack 16384 -Zbin-files -Zargs-wild" 7936 extra_ldflags="$extra_ldflags -Zomf -Zstack 16384 -Zbin-files -Zargs-wild"
7937 fi 7937 fi
7938 7938
7939 # linker paths should be the same for mencoder and mplayer 7939 # linker paths should be the same for mencoder and mplayer
7940 _ld_tmp="" 7940 _ld_tmp=""
7941 for I in $_libs_mplayer ; do 7941 for I in $libs_mplayer ; do
7942 _tmp=`echo $I | sed -e 's/^-L.*$//'` 7942 _tmp=`echo $I | sed -e 's/^-L.*$//'`
7943 if test -z "$_tmp" ; then 7943 if test -z "$_tmp" ; then
7944 _extra_ldflags="$_extra_ldflags $I" 7944 extra_ldflags="$extra_ldflags $I"
7945 else 7945 else
7946 _ld_tmp="$_ld_tmp $I" 7946 _ld_tmp="$_ld_tmp $I"
7947 fi 7947 fi
7948 done 7948 done
7949 _libs_mplayer=$_ld_tmp 7949 libs_mplayer=$_ld_tmp
7950 7950
7951 7951
7952 ############################################################################# 7952 #############################################################################
7953 if darwin ; then 7953 if darwin ; then
7954 CFLAGS="$CFLAGS -mdynamic-no-pic -falign-loops=16 -shared-libgcc" 7954 CFLAGS="$CFLAGS -mdynamic-no-pic -falign-loops=16 -shared-libgcc"
8024 def_dvdnav='#define CONFIG_DVDNAV 1' 8024 def_dvdnav='#define CONFIG_DVDNAV 1'
8025 if test "$dvdnav_internal" = yes ; then 8025 if test "$dvdnav_internal" = yes ; then
8026 cflags_libdvdnav="-Ilibdvdnav" 8026 cflags_libdvdnav="-Ilibdvdnav"
8027 _inputmodules="dvdnav(internal) $_inputmodules" 8027 _inputmodules="dvdnav(internal) $_inputmodules"
8028 else 8028 else
8029 _extra_cflags="$_extra_cflags `$_dvdnavconfig --cflags`" 8029 extra_cflags="$extra_cflags `$_dvdnavconfig --cflags`"
8030 _extra_ldflags="$_extra_ldflags `$_dvdnavconfig --minilibs`" 8030 extra_ldflags="$extra_ldflags `$_dvdnavconfig --minilibs`"
8031 _inputmodules="dvdnav $_inputmodules" 8031 _inputmodules="dvdnav $_inputmodules"
8032 fi 8032 fi
8033 else 8033 else
8034 def_dvdnav='#undef CONFIG_DVDNAV' 8034 def_dvdnav='#undef CONFIG_DVDNAV'
8035 _noinputmodules="dvdnav $_noinputmodules" 8035 _noinputmodules="dvdnav $_noinputmodules"
8070 INSTALL = $_install 8070 INSTALL = $_install
8071 INSTALLSTRIP = $_install_strip 8071 INSTALLSTRIP = $_install_strip
8072 RANLIB = $_ranlib 8072 RANLIB = $_ranlib
8073 WINDRES = $_windres 8073 WINDRES = $_windres
8074 8074
8075 CFLAGS = $CFLAGS $_extra_cflags 8075 CFLAGS = $CFLAGS $extra_cflags
8076 OPTFLAGS = $CFLAGS $_extra_cflags 8076 OPTFLAGS = $CFLAGS $extra_cflags
8077 CXXFLAGS = $CXXFLAGS $_extra_cflags $_extra_cxxflags 8077 CXXFLAGS = $CXXFLAGS $extra_cflags $extra_cxxflags
8078 CFLAGS_DHAHELPER = $cflags_dhahelper 8078 CFLAGS_DHAHELPER = $cflags_dhahelper
8079 CFLAGS_FAAD_FIXED = $cflags_faad_fixed 8079 CFLAGS_FAAD_FIXED = $cflags_faad_fixed
8080 CFLAGS_LIBDVDCSS = $cflags_libdvdcss 8080 CFLAGS_LIBDVDCSS = $cflags_libdvdcss
8081 CFLAGS_LIBDVDCSS_DVDREAD = $cflags_libdvdcss_dvdread 8081 CFLAGS_LIBDVDCSS_DVDREAD = $cflags_libdvdcss_dvdread
8082 CFLAGS_LIBDVDNAV = $cflags_libdvdnav 8082 CFLAGS_LIBDVDNAV = $cflags_libdvdnav
8084 CFLAGS_STACKREALIGN = $cflags_stackrealign 8084 CFLAGS_STACKREALIGN = $cflags_stackrealign
8085 CFLAGS_SVGALIB_HELPER = $cflags_svgalib_helper 8085 CFLAGS_SVGALIB_HELPER = $cflags_svgalib_helper
8086 CFLAGS_TREMOR_LOW = $cflags_tremor_low 8086 CFLAGS_TREMOR_LOW = $cflags_tremor_low
8087 YASMFLAGS = $YASMFLAGS 8087 YASMFLAGS = $YASMFLAGS
8088 8088
8089 EXTRALIBS = $_extra_libs 8089 EXTRALIBS = $extra_libs
8090 EXTRA_LIB = $_extra_ldflags $_ld_static $_ld_lm 8090 EXTRA_LIB = $extra_ldflags $_ld_static $_ld_lm
8091 EXTRALIBS_MPLAYER = $_libs_mplayer 8091 EXTRALIBS_MPLAYER = $libs_mplayer
8092 EXTRALIBS_MENCODER = $_libs_mencoder 8092 EXTRALIBS_MENCODER = $libs_mencoder
8093 8093
8094 DEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,\$^) | sed "s,[0-9a-z._-]*: \(\$(SRC_DIR)/\)*\([a-z0-9]*/\)[^/]* ,\\2&," 8094 DEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,\$^) | sed "s,[0-9a-z._-]*: \(\$(SRC_DIR)/\)*\([a-z0-9]*/\)[^/]* ,\\2&,"
8095 8095
8096 MPDEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.xpm,\$(filter-out %.h,$^)) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e "s,\(.*\)\.o: ,\1.d &," 8096 MPDEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.xpm,\$(filter-out %.h,$^)) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e "s,\(.*\)\.o: ,\1.d &,"
8097 MPDEPEND_CMD_CXX = \$(CC) -MM \$(CXXFLAGS) \$(filter-out %.hh,\$(filter-out %.h,$^)) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e "s,\(.*\)\.o: ,\1.d &," 8097 MPDEPEND_CMD_CXX = \$(CC) -MM \$(CXXFLAGS) \$(filter-out %.hh,\$(filter-out %.h,$^)) | sed -e "s,[0-9a-z._-]*: \([a-z0-9/]*/\)[^/]* ,\1&," -e "s,\(.*\)\.o: ,\1.d &,"