comparison configure @ 29010:48ec993fc291

Replace --with-extralibdir option by --extra-ldflags, which accepts arbitrary LDFLAGS. Also rename the corresponding variable for consistency.
author diego
date Tue, 24 Mar 2009 00:22:51 +0000
parents 4fffd4de5c4a
children d0329d65c7fd
comparison
equal deleted inserted replaced
29009:4fffd4de5c4a 29010:48ec993fc291
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 $_ld_extra $_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 $_ld_extra $_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 }
763 _xanimcodecsdir=`echo $ac_option | cut -d '=' -f 2` 763 _xanimcodecsdir=`echo $ac_option | cut -d '=' -f 2`
764 ;; 764 ;;
765 --realcodecsdir=*) 765 --realcodecsdir=*)
766 _realcodecsdir=`echo $ac_option | cut -d '=' -f 2` 766 _realcodecsdir=`echo $ac_option | cut -d '=' -f 2`
767 ;; 767 ;;
768 --with-extralibdir=*)
769 _ld_extra=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
770 ;;
771 768
772 --with-install=*) 769 --with-install=*)
773 _install=`echo $ac_option | cut -d '=' -f 2 ` 770 _install=`echo $ac_option | cut -d '=' -f 2 `
774 ;; 771 ;;
775 --with-xvmclib=*) 772 --with-xvmclib=*)
798 _dvdreadconfig=`echo $ac_option | cut -d '=' -f 2` 795 _dvdreadconfig=`echo $ac_option | cut -d '=' -f 2`
799 ;; 796 ;;
800 797
801 --extra-cflags=*) 798 --extra-cflags=*)
802 _extra_cflags=`echo $ac_option | cut -d '=' -f 2` 799 _extra_cflags=`echo $ac_option | cut -d '=' -f 2`
800 ;;
801 --extra-ldflags=*)
802 _extra_ldflags=`echo $ac_option | cut -d '=' -f 2`
803 ;; 803 ;;
804 --extra-libs=*) 804 --extra-libs=*)
805 _extra_libs=`echo $ac_option | cut -d '=' -f 2` 805 _extra_libs=`echo $ac_option | cut -d '=' -f 2`
806 ;; 806 ;;
807 --extra-libs-mplayer=*) 807 --extra-libs-mplayer=*)
1414 1414
1415 _extra_cflags="-I. $_extra_cflags" 1415 _extra_cflags="-I. $_extra_cflags"
1416 _timer=timer-linux.c 1416 _timer=timer-linux.c
1417 _getch=getch2.c 1417 _getch=getch2.c
1418 if freebsd ; then 1418 if freebsd ; then
1419 _ld_extra="$_ld_extra -L/usr/local/lib" 1419 _extra_ldflags="$_extra_ldflags -L/usr/local/lib"
1420 _extra_cflags="$_extra_cflags -I/usr/local/include" 1420 _extra_cflags="$_extra_cflags -I/usr/local/include"
1421 fi 1421 fi
1422 1422
1423 if netbsd || dragonfly ; then 1423 if netbsd || dragonfly ; then
1424 _ld_extra="$_ld_extra -L/usr/pkg/lib" 1424 _extra_ldflags="$_extra_ldflags -L/usr/pkg/lib"
1425 _extra_cflags="$_extra_cflags -I/usr/pkg/include" 1425 _extra_cflags="$_extra_cflags -I/usr/pkg/include"
1426 fi 1426 fi
1427 1427
1428 if darwin; then 1428 if darwin; then
1429 _ld_extra="$_ld_extra -L/usr/local/lib" 1429 _extra_ldflags="$_extra_ldflags -L/usr/local/lib"
1430 _extra_cflags="$_extra_cflags -I/usr/local/include" 1430 _extra_cflags="$_extra_cflags -I/usr/local/include"
1431 _timer=timer-darwin.c 1431 _timer=timer-darwin.c
1432 fi 1432 fi
1433 1433
1434 if aix ; then 1434 if aix ; then
1435 _ld_extra="$_ld_extra -lC" 1435 _extra_ldflags="$_extra_ldflags -lC"
1436 fi 1436 fi
1437 1437
1438 if irix ; then 1438 if irix ; then
1439 _ranlib='ar -r' 1439 _ranlib='ar -r'
1440 elif linux ; then 1440 elif linux ; then
1442 fi 1442 fi
1443 1443
1444 if win32 ; then 1444 if win32 ; then
1445 _exesuf=".exe" 1445 _exesuf=".exe"
1446 # -lwinmm is always needed for osdep/timer-win2.c 1446 # -lwinmm is always needed for osdep/timer-win2.c
1447 _ld_extra="$_ld_extra -lwinmm" 1447 _extra_ldflags="$_extra_ldflags -lwinmm"
1448 _pe_executable=yes 1448 _pe_executable=yes
1449 _timer=timer-win2.c 1449 _timer=timer-win2.c
1450 _priority=yes 1450 _priority=yes
1451 def_dos_paths="#define HAVE_DOS_PATHS 1" 1451 def_dos_paths="#define HAVE_DOS_PATHS 1"
1452 def_priority="#define CONFIG_PRIORITY 1" 1452 def_priority="#define CONFIG_PRIORITY 1"
1463 _stream_cache=no 1463 _stream_cache=no
1464 def_stream_cache="#undef CONFIG_STREAM_CACHE" 1464 def_stream_cache="#undef CONFIG_STREAM_CACHE"
1465 fi 1465 fi
1466 1466
1467 if qnx ; then 1467 if qnx ; then
1468 _ld_extra="$_ld_extra -lph" 1468 _extra_ldflags="$_extra_ldflags -lph"
1469 fi 1469 fi
1470 1470
1471 if os2 ; then 1471 if os2 ; then
1472 _exesuf=".exe" 1472 _exesuf=".exe"
1473 _getch=getch2-os2.c 1473 _getch=getch2-os2.c
2405 CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144" 2405 CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144"
2406 elif test "$cc_vendor" != "gnu" ; then 2406 elif test "$cc_vendor" != "gnu" ; then
2407 CFLAGS="-O2 $_march $_mcpu $_pipe" 2407 CFLAGS="-O2 $_march $_mcpu $_pipe"
2408 else 2408 else
2409 CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" 2409 CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
2410 _ld_extra="$_ld_extra -ffast-math" 2410 _extra_ldflags="$_extra_ldflags -ffast-math"
2411 fi 2411 fi
2412 else 2412 else
2413 _warn_CFLAGS=yes 2413 _warn_CFLAGS=yes
2414 fi 2414 fi
2415 if test -n "$LDFLAGS" ; then 2415 if test -n "$LDFLAGS" ; then
2416 _ld_extra="$_ld_extra $LDFLAGS" 2416 _extra_ldflags="$_extra_ldflags $LDFLAGS"
2417 _warn_CFLAGS=yes 2417 _warn_CFLAGS=yes
2418 elif test "$cc_vendor" = "intel" ; then 2418 elif test "$cc_vendor" = "intel" ; then
2419 _ld_extra="$_ld_extra -i-static" 2419 _extra_ldflags="$_extra_ldflags -i-static"
2420 fi 2420 fi
2421 if test -n "$CPPFLAGS" ; then 2421 if test -n "$CPPFLAGS" ; then
2422 _extra_cflags="$_extra_cflags $CPPFLAGS" 2422 _extra_cflags="$_extra_cflags $CPPFLAGS"
2423 _warn_CFLAGS=yes 2423 _warn_CFLAGS=yes
2424 fi 2424 fi
2718 echocheck "-lposix" 2718 echocheck "-lposix"
2719 cat > $TMPC <<EOF 2719 cat > $TMPC <<EOF
2720 int main(void) { return 0; } 2720 int main(void) { return 0; }
2721 EOF 2721 EOF
2722 if cc_check -lposix ; then 2722 if cc_check -lposix ; then
2723 _ld_extra="$_ld_extra -lposix" 2723 _extra_ldflags="$_extra_ldflags -lposix"
2724 echores "yes" 2724 echores "yes"
2725 else 2725 else
2726 echores "no" 2726 echores "no"
2727 fi 2727 fi
2728 2728
2858 EOF 2858 EOF
2859 _kstat=no 2859 _kstat=no
2860 cc_check -lkstat && _kstat=yes 2860 cc_check -lkstat && _kstat=yes
2861 if test "$_kstat" = yes ; then 2861 if test "$_kstat" = yes ; then
2862 def_kstat="#define HAVE_LIBKSTAT 1" 2862 def_kstat="#define HAVE_LIBKSTAT 1"
2863 _ld_extra="$_ld_extra -lkstat" 2863 _extra_ldflags="$_extra_ldflags -lkstat"
2864 else 2864 else
2865 def_kstat="#undef HAVE_LIBKSTAT" 2865 def_kstat="#undef HAVE_LIBKSTAT"
2866 fi 2866 fi
2867 echores "$_kstat" 2867 echores "$_kstat"
2868 2868
2874 int main(void) { (void) nanosleep(0, 0); return 0; } 2874 int main(void) { (void) nanosleep(0, 0); return 0; }
2875 EOF 2875 EOF
2876 _posix4=no 2876 _posix4=no
2877 cc_check -lposix4 && _posix4=yes 2877 cc_check -lposix4 && _posix4=yes
2878 if test "$_posix4" = yes ; then 2878 if test "$_posix4" = yes ; then
2879 _ld_extra="$_ld_extra -lposix4" 2879 _extra_ldflags="$_extra_ldflags -lposix4"
2880 fi 2880 fi
2881 echores "$_posix4" 2881 echores "$_posix4"
2882 2882
2883 for func in llrint lrint lrintf round roundf truncf; do 2883 for func in llrint lrint lrintf round roundf truncf; do
2884 echocheck $func 2884 echocheck $func
3045 echocheck "network" 3045 echocheck "network"
3046 test $_winsock2_h = no && test $inet_pton = no && 3046 test $_winsock2_h = no && test $inet_pton = no &&
3047 test $inet_aton = no && _network=no 3047 test $inet_aton = no && _network=no
3048 if test "$_network" = yes ; then 3048 if test "$_network" = yes ; then
3049 def_network='#define CONFIG_NETWORK 1' 3049 def_network='#define CONFIG_NETWORK 1'
3050 _ld_extra="$_ld_extra $_ld_sock" 3050 _extra_ldflags="$_extra_ldflags $_ld_sock"
3051 _inputmodules="network $_inputmodules" 3051 _inputmodules="network $_inputmodules"
3052 else 3052 else
3053 _noinputmodules="network $_noinputmodules" 3053 _noinputmodules="network $_noinputmodules"
3054 def_network='#undef CONFIG_NETWORK' 3054 def_network='#undef CONFIG_NETWORK'
3055 _ftp=no 3055 _ftp=no
3332 echores "$_w32threads" 3332 echores "$_w32threads"
3333 3333
3334 echocheck "rpath" 3334 echocheck "rpath"
3335 netbsd &&_rpath=yes 3335 netbsd &&_rpath=yes
3336 if test "$_rpath" = yes ; then 3336 if test "$_rpath" = yes ; then
3337 for I in `echo $_ld_extra | sed 's/-L//g'` ; do 3337 for I in `echo $_extra_ldflags | sed 's/-L//g'` ; do
3338 tmp="$tmp ` echo $I | sed 's/.*/ -L& -Wl,-R&/'`" 3338 tmp="$tmp ` echo $I | sed 's/.*/ -L& -Wl,-R&/'`"
3339 done 3339 done
3340 _ld_extra=$tmp 3340 _extra_ldflags=$tmp
3341 fi 3341 fi
3342 echores "$_rpath" 3342 echores "$_rpath"
3343 3343
3344 echocheck "iconv" 3344 echocheck "iconv"
3345 if test "$_iconv" = auto ; then 3345 if test "$_iconv" = auto ; then
3375 return 0; 3375 return 0;
3376 } 3376 }
3377 EOF 3377 EOF
3378 _iconv=no 3378 _iconv=no
3379 for _ld_tmp in "" "-liconv" "-liconv $_ld_dl" ; do 3379 for _ld_tmp in "" "-liconv" "-liconv $_ld_dl" ; do
3380 cc_check $_ld_lm $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && \ 3380 cc_check $_ld_lm $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" && \
3381 _iconv=yes && break 3381 _iconv=yes && break
3382 done 3382 done
3383 fi 3383 fi
3384 if test "$_iconv" = yes ; then 3384 if test "$_iconv" = yes ; then
3385 def_iconv='#define CONFIG_ICONV 1' 3385 def_iconv='#define CONFIG_ICONV 1'
3536 #include <term.h> 3536 #include <term.h>
3537 int main(void) { tgetent(NULL, NULL); return 0; } 3537 int main(void) { tgetent(NULL, NULL); return 0; }
3538 EOF 3538 EOF
3539 _termcap=no 3539 _termcap=no
3540 for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do 3540 for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
3541 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ 3541 cc_check $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \
3542 && _termcap=yes && break 3542 && _termcap=yes && break
3543 done 3543 done
3544 fi 3544 fi
3545 if test "$_termcap" = yes ; then 3545 if test "$_termcap" = yes ; then
3546 def_termcap='#define HAVE_TERMCAP 1' 3546 def_termcap='#define HAVE_TERMCAP 1'
3787 cat > $TMPC <<EOF 3787 cat > $TMPC <<EOF
3788 #include <CoreAudio/CoreAudio.h> 3788 #include <CoreAudio/CoreAudio.h>
3789 int main(void) { return 0; } 3789 int main(void) { return 0; }
3790 EOF 3790 EOF
3791 if cc_check -framework CoreAudio; then 3791 if cc_check -framework CoreAudio; then
3792 _ld_extra="$_ld_extra -framework CoreAudio -framework AudioUnit -framework AudioToolbox" 3792 _extra_ldflags="$_extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
3793 _coreaudio=yes 3793 _coreaudio=yes
3794 def_coreaudio='#define CONFIG_COREAUDIO 1' 3794 def_coreaudio='#define CONFIG_COREAUDIO 1'
3795 _aomodules="macosx $_aomodules" 3795 _aomodules="macosx $_aomodules"
3796 else 3796 else
3797 _coreaudio=no 3797 _coreaudio=no
3807 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false); 3807 CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);
3808 return 0; 3808 return 0;
3809 } 3809 }
3810 EOF 3810 EOF
3811 if cc_check -framework Carbon -framework QuickTime; then 3811 if cc_check -framework Carbon -framework QuickTime; then
3812 _ld_extra="$_ld_extra -framework Carbon -framework QuickTime" 3812 _extra_ldflags="$_extra_ldflags -framework Carbon -framework QuickTime"
3813 _quartz=yes 3813 _quartz=yes
3814 def_quartz='#define CONFIG_QUARTZ 1' 3814 def_quartz='#define CONFIG_QUARTZ 1'
3815 _vomodules="quartz $_vomodules" 3815 _vomodules="quartz $_vomodules"
3816 def_quicktime='#define CONFIG_QUICKTIME 1' 3816 def_quicktime='#define CONFIG_QUICKTIME 1'
3817 else 3817 else
3825 #include <QuartzCore/CoreVideo.h> 3825 #include <QuartzCore/CoreVideo.h>
3826 int main(void) { return 0; } 3826 int main(void) { return 0; }
3827 EOF 3827 EOF
3828 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then 3828 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then
3829 _vomodules="macosx $_vomodules" 3829 _vomodules="macosx $_vomodules"
3830 _ld_extra="$_ld_extra -framework Cocoa -framework QuartzCore -framework OpenGL" 3830 _extra_ldflags="$_extra_ldflags -framework Cocoa -framework QuartzCore -framework OpenGL"
3831 def_corevideo='#define CONFIG_COREVIDEO 1' 3831 def_corevideo='#define CONFIG_COREVIDEO 1'
3832 _corevideo=yes 3832 _corevideo=yes
3833 else 3833 else
3834 _novomodules="macosx $_novomodules" 3834 _novomodules="macosx $_novomodules"
3835 def_corevideo='#undef CONFIG_COREVIDEO' 3835 def_corevideo='#undef CONFIG_COREVIDEO'
3892 EOF 3892 EOF
3893 cc_check -framework IOKit && tmp_run && _apple_remote=yes 3893 cc_check -framework IOKit && tmp_run && _apple_remote=yes
3894 fi 3894 fi
3895 if test "$_apple_remote" = yes ; then 3895 if test "$_apple_remote" = yes ; then
3896 def_apple_remote='#define CONFIG_APPLE_REMOTE 1' 3896 def_apple_remote='#define CONFIG_APPLE_REMOTE 1'
3897 _ld_extra="$_ld_extra -framework IOKit" 3897 _extra_ldflags="$_extra_ldflags -framework IOKit"
3898 else 3898 else
3899 def_apple_remote='#undef CONFIG_APPLE_REMOTE' 3899 def_apple_remote='#undef CONFIG_APPLE_REMOTE'
3900 fi 3900 fi
3901 echores "$_apple_remote" 3901 echores "$_apple_remote"
3902 3902
3939 fi 3939 fi
3940 3940
3941 3941
3942 echocheck "Samba support (libsmbclient)" 3942 echocheck "Samba support (libsmbclient)"
3943 if test "$_smb" = yes; then 3943 if test "$_smb" = yes; then
3944 _ld_extra="$_ld_extra -lsmbclient" 3944 _extra_ldflags="$_extra_ldflags -lsmbclient"
3945 fi 3945 fi
3946 if test "$_smb" = auto; then 3946 if test "$_smb" = auto; then
3947 _smb=no 3947 _smb=no
3948 cat > $TMPC << EOF 3948 cat > $TMPC << EOF
3949 #include <libsmbclient.h> 3949 #include <libsmbclient.h>
3950 int main(void) { smbc_opendir("smb://"); return 0; } 3950 int main(void) { smbc_opendir("smb://"); return 0; }
3951 EOF 3951 EOF
3952 for _ld_tmp in "-lsmbclient" "-lsmbclient $_ld_dl" "-lsmbclient $_ld_dl -lnsl" "-lsmbclient $_ld_dl -lssl -lnsl" ; do 3952 for _ld_tmp in "-lsmbclient" "-lsmbclient $_ld_dl" "-lsmbclient $_ld_dl -lnsl" "-lsmbclient $_ld_dl -lssl -lnsl" ; do
3953 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && \ 3953 cc_check $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" && \
3954 _smb=yes && break 3954 _smb=yes && break
3955 done 3955 done
3956 fi 3956 fi
3957 3957
3958 if test "$_smb" = yes; then 3958 if test "$_smb" = yes; then
4861 fi 4861 fi
4862 fi 4862 fi
4863 echores "$_png" 4863 echores "$_png"
4864 if test "$_png" = yes ; then 4864 if test "$_png" = yes ; then
4865 def_png='#define CONFIG_PNG 1' 4865 def_png='#define CONFIG_PNG 1'
4866 _ld_extra="$_ld_extra -lpng -lz" 4866 _extra_ldflags="$_extra_ldflags -lpng -lz"
4867 _vomodules="png $_vomodules" 4867 _vomodules="png $_vomodules"
4868 else 4868 else
4869 def_png='#undef CONFIG_PNG' 4869 def_png='#undef CONFIG_PNG'
4870 _novomodules="png $_novomodules" 4870 _novomodules="png $_novomodules"
4871 fi 4871 fi
4885 fi 4885 fi
4886 fi 4886 fi
4887 echores "$_mng" 4887 echores "$_mng"
4888 if test "$_mng" = yes ; then 4888 if test "$_mng" = yes ; then
4889 def_mng='#define CONFIG_MNG 1' 4889 def_mng='#define CONFIG_MNG 1'
4890 _ld_extra="$_ld_extra -lmng -lz" 4890 _extra_ldflags="$_extra_ldflags -lmng -lz"
4891 else 4891 else
4892 def_mng='#undef CONFIG_MNG' 4892 def_mng='#undef CONFIG_MNG'
4893 fi 4893 fi
4894 4894
4895 echocheck "JPEG support" 4895 echocheck "JPEG support"
4912 echores "$_jpeg" 4912 echores "$_jpeg"
4913 4913
4914 if test "$_jpeg" = yes ; then 4914 if test "$_jpeg" = yes ; then
4915 def_jpeg='#define CONFIG_JPEG 1' 4915 def_jpeg='#define CONFIG_JPEG 1'
4916 _vomodules="jpeg $_vomodules" 4916 _vomodules="jpeg $_vomodules"
4917 _ld_extra="$_ld_extra -ljpeg" 4917 _extra_ldflags="$_extra_ldflags -ljpeg"
4918 else 4918 else
4919 def_jpeg='#undef CONFIG_JPEG' 4919 def_jpeg='#undef CONFIG_JPEG'
4920 _novomodules="jpeg $_novomodules" 4920 _novomodules="jpeg $_novomodules"
4921 fi 4921 fi
4922 4922
4972 def_gif='#define CONFIG_GIF 1' 4972 def_gif='#define CONFIG_GIF 1'
4973 _codecmodules="gif $_codecmodules" 4973 _codecmodules="gif $_codecmodules"
4974 _vomodules="gif89a $_vomodules" 4974 _vomodules="gif89a $_vomodules"
4975 _res_comment="old version, some encoding functions disabled" 4975 _res_comment="old version, some encoding functions disabled"
4976 def_gif_4='#undef CONFIG_GIF_4' 4976 def_gif_4='#undef CONFIG_GIF_4'
4977 _ld_extra="$_ld_extra $_ld_gif" 4977 _extra_ldflags="$_extra_ldflags $_ld_gif"
4978 4978
4979 cat > $TMPC << EOF 4979 cat > $TMPC << EOF
4980 #include <signal.h> 4980 #include <signal.h>
4981 #include <gif_lib.h> 4981 #include <gif_lib.h>
4982 void catch() { exit(1); } 4982 void catch() { exit(1); }
5335 cc_check && _real_ossaudio=yes 5335 cc_check && _real_ossaudio=yes
5336 if test "$_real_ossaudio" = yes; then 5336 if test "$_real_ossaudio" = yes; then
5337 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' 5337 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
5338 elif netbsd || openbsd ; then 5338 elif netbsd || openbsd ; then
5339 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"' 5339 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"'
5340 _ld_extra="$_ld_extra -lossaudio" 5340 _extra_ldflags="$_extra_ldflags -lossaudio"
5341 else 5341 else
5342 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' 5342 def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
5343 fi 5343 fi
5344 def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' 5344 def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"'
5345 fi 5345 fi
5612 _res_comment="using alsa 1.0.x and alsa/asoundlib.h" 5612 _res_comment="using alsa 1.0.x and alsa/asoundlib.h"
5613 else 5613 else
5614 _alsa=no 5614 _alsa=no
5615 _res_comment="unknown version" 5615 _res_comment="unknown version"
5616 fi 5616 fi
5617 _ld_extra="$_ld_extra -lasound $_ld_dl $_ld_pthread" 5617 _extra_ldflags="$_extra_ldflags -lasound $_ld_dl $_ld_pthread"
5618 else 5618 else
5619 _noaomodules="alsa $_noaomodules" 5619 _noaomodules="alsa $_noaomodules"
5620 fi 5620 fi
5621 echores "$_alsa" 5621 echores "$_alsa"
5622 5622
5773 _dvdreadlibs=`$_dvdreadconfig --libs` 5773 _dvdreadlibs=`$_dvdreadconfig --libs`
5774 if cc_check -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \ 5774 if cc_check -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE \
5775 $_dvdreadcflags $_dvdreadlibs $_ld_dl ; then 5775 $_dvdreadcflags $_dvdreadlibs $_ld_dl ; then
5776 _dvdread=yes 5776 _dvdread=yes
5777 _extra_cflags="$_extra_cflags $_dvdreadcflags" 5777 _extra_cflags="$_extra_cflags $_dvdreadcflags"
5778 _ld_extra="$_ld_extra $_dvdreadlibs" 5778 _extra_ldflags="$_extra_ldflags $_dvdreadlibs"
5779 _res_comment="external" 5779 _res_comment="external"
5780 fi 5780 fi
5781 fi 5781 fi
5782 5782
5783 if test "$_dvdread_internal" = yes; then 5783 if test "$_dvdread_internal" = yes; then
5786 _largefiles=yes 5786 _largefiles=yes
5787 _res_comment="internal" 5787 _res_comment="internal"
5788 elif test "$_dvdread" = yes; then 5788 elif test "$_dvdread" = yes; then
5789 def_dvdread='#define CONFIG_DVDREAD 1' 5789 def_dvdread='#define CONFIG_DVDREAD 1'
5790 _largefiles=yes 5790 _largefiles=yes
5791 _ld_extra="$_ld_extra -ldvdread" 5791 _extra_ldflags="$_extra_ldflags -ldvdread"
5792 _inputmodules="dvdread(external) $_inputmodules" 5792 _inputmodules="dvdread(external) $_inputmodules"
5793 _res_comment="external" 5793 _res_comment="external"
5794 else 5794 else
5795 def_dvdread='#undef CONFIG_DVDREAD' 5795 def_dvdread='#undef CONFIG_DVDREAD'
5796 _noinputmodules="dvdread $_noinputmodules" 5796 _noinputmodules="dvdread $_noinputmodules"
5810 openbsd && def_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1' 5810 openbsd && def_dvd_openbsd='#define HAVE_OPENBSD_DVD_STRUCT 1'
5811 elif freebsd || dragonfly ; then 5811 elif freebsd || dragonfly ; then
5812 def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' 5812 def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1'
5813 elif darwin ; then 5813 elif darwin ; then
5814 def_dvd_darwin='#define DARWIN_DVD_IOCTL' 5814 def_dvd_darwin='#define DARWIN_DVD_IOCTL'
5815 _ld_extra="$_ld_extra -framework IOKit" 5815 _extra_ldflags="$_extra_ldflags -framework IOKit"
5816 elif cygwin ; then 5816 elif cygwin ; then
5817 cflags_libdvdcss="-DSYS_CYGWIN -DWIN32" 5817 cflags_libdvdcss="-DSYS_CYGWIN -DWIN32"
5818 elif beos ; then 5818 elif beos ; then
5819 cflags_libdvdcss="-DSYS_BEOS" 5819 cflags_libdvdcss="-DSYS_BEOS"
5820 elif os2 ; then 5820 elif os2 ; then
5843 _cdparanoia=yes && _extra_cflags="$_extra_cflags $_inc_tmp" && break 5843 _cdparanoia=yes && _extra_cflags="$_extra_cflags $_inc_tmp" && break
5844 done 5844 done
5845 fi 5845 fi
5846 if test "$_cdparanoia" = yes ; then 5846 if test "$_cdparanoia" = yes ; then
5847 _cdda='yes' 5847 _cdda='yes'
5848 _ld_extra="$_ld_extra -lcdda_interface -lcdda_paranoia" 5848 _extra_ldflags="$_extra_ldflags -lcdda_interface -lcdda_paranoia"
5849 openbsd && _ld_extra="$_ld_extra -lutil" 5849 openbsd && _extra_ldflags="$_extra_ldflags -lutil"
5850 fi 5850 fi
5851 echores "$_cdparanoia" 5851 echores "$_cdparanoia"
5852 5852
5853 5853
5854 echocheck "libcdio" 5854 echocheck "libcdio"
5866 EOF 5866 EOF
5867 _libcdio=no 5867 _libcdio=no
5868 for _ld_tmp in "" "-lwinmm" ; do 5868 for _ld_tmp in "" "-lwinmm" ; do
5869 _ld_tmp="-lcdio_cdda -lcdio -lcdio_paranoia $_ld_tmp" 5869 _ld_tmp="-lcdio_cdda -lcdio -lcdio_paranoia $_ld_tmp"
5870 cc_check $_ld_tmp $_ld_lm \ 5870 cc_check $_ld_tmp $_ld_lm \
5871 && _libcdio=yes && _ld_extra="$_ld_extra $_ld_tmp" && break 5871 && _libcdio=yes && _extra_ldflags="$_extra_ldflags $_ld_tmp" && break
5872 done 5872 done
5873 if test "$_libcdio" = no && $_pkg_config --exists libcdio_paranoia ; then 5873 if test "$_libcdio" = no && $_pkg_config --exists libcdio_paranoia ; then
5874 _inc_tmp=`$_pkg_config --cflags libcdio_paranoia` 5874 _inc_tmp=`$_pkg_config --cflags libcdio_paranoia`
5875 _ld_tmp=`$_pkg_config --libs libcdio_paranoia` 5875 _ld_tmp=`$_pkg_config --libs libcdio_paranoia`
5876 cc_check $_inc_tmp $_ld_tmp $_ld_lm && _libcdio=yes \ 5876 cc_check $_inc_tmp $_ld_tmp $_ld_lm && _libcdio=yes \
5877 && _ld_extra="$_ld_extra $_ld_tmp" && _extra_cflags="$_extra_cflags $_inc_tmp" 5877 && _extra_ldflags="$_extra_ldflags $_ld_tmp" && _extra_cflags="$_extra_cflags $_inc_tmp"
5878 fi 5878 fi
5879 fi 5879 fi
5880 if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then 5880 if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then
5881 _cdda='yes' 5881 _cdda='yes'
5882 def_libcdio='#define CONFIG_LIBCDIO' 5882 def_libcdio='#define CONFIG_LIBCDIO'
5960 fi 5960 fi
5961 fi 5961 fi
5962 if test "$_freetype" = yes ; then 5962 if test "$_freetype" = yes ; then
5963 def_freetype='#define CONFIG_FREETYPE' 5963 def_freetype='#define CONFIG_FREETYPE'
5964 _extra_cflags="$_extra_cflags `$_freetypeconfig --cflags`" 5964 _extra_cflags="$_extra_cflags `$_freetypeconfig --cflags`"
5965 _ld_extra="$_ld_extra `$_freetypeconfig --libs`" 5965 _extra_ldflags="$_extra_ldflags `$_freetypeconfig --libs`"
5966 else 5966 else
5967 def_freetype='#undef CONFIG_FREETYPE' 5967 def_freetype='#undef CONFIG_FREETYPE'
5968 fi 5968 fi
5969 echores "$_freetype" 5969 echores "$_freetype"
5970 5970
5988 } 5988 }
5989 EOF 5989 EOF
5990 _fontconfig=no 5990 _fontconfig=no
5991 for _ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" ; do 5991 for _ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" ; do
5992 _ld_tmp="-lfontconfig $_ld_tmp" 5992 _ld_tmp="-lfontconfig $_ld_tmp"
5993 cc_check $_ld_tmp && _fontconfig=yes && _ld_extra="$_ld_extra $_ld_tmp" && break 5993 cc_check $_ld_tmp && _fontconfig=yes && _extra_ldflags="$_extra_ldflags $_ld_tmp" && break
5994 done 5994 done
5995 if test "$_fontconfig" = no && $_pkg_config --exists fontconfig ; then 5995 if test "$_fontconfig" = no && $_pkg_config --exists fontconfig ; then
5996 _inc_tmp=`$_pkg_config --cflags fontconfig` 5996 _inc_tmp=`$_pkg_config --cflags fontconfig`
5997 _ld_tmp=`$_pkg_config --libs fontconfig` 5997 _ld_tmp=`$_pkg_config --libs fontconfig`
5998 cc_check $_inc_tmp $_ld_tmp && _fontconfig=yes \ 5998 cc_check $_inc_tmp $_ld_tmp && _fontconfig=yes \
5999 && _ld_extra="$_ld_extra $_ld_tmp" && _extra_cflags="$_extra_cflags $_inc_tmp" 5999 && _extra_ldflags="$_extra_ldflags $_ld_tmp" && _extra_cflags="$_extra_cflags $_inc_tmp"
6000 fi 6000 fi
6001 fi 6001 fi
6002 if test "$_fontconfig" = yes ; then 6002 if test "$_fontconfig" = yes ; then
6003 def_fontconfig='#define CONFIG_FONTCONFIG' 6003 def_fontconfig='#define CONFIG_FONTCONFIG'
6004 else 6004 else
6060 fi 6060 fi
6061 fi 6061 fi
6062 if test "$_fribidi" = yes ; then 6062 if test "$_fribidi" = yes ; then
6063 def_fribidi='#define CONFIG_FRIBIDI' 6063 def_fribidi='#define CONFIG_FRIBIDI'
6064 _extra_cflags="$_extra_cflags `$_fribidiconfig --cflags`" 6064 _extra_cflags="$_extra_cflags `$_fribidiconfig --cflags`"
6065 _ld_extra="$_ld_extra `$_fribidiconfig --libs`" 6065 _extra_ldflags="$_extra_ldflags `$_fribidiconfig --libs`"
6066 else 6066 else
6067 def_fribidi='#undef CONFIG_FRIBIDI' 6067 def_fribidi='#undef CONFIG_FRIBIDI'
6068 fi 6068 fi
6069 echores "$_fribidi" 6069 echores "$_fribidi"
6070 6070
6084 _enca=no 6084 _enca=no
6085 cc_check -lenca $_ld_lm && _enca=yes 6085 cc_check -lenca $_ld_lm && _enca=yes
6086 fi 6086 fi
6087 if test "$_enca" = yes ; then 6087 if test "$_enca" = yes ; then
6088 def_enca='#define CONFIG_ENCA 1' 6088 def_enca='#define CONFIG_ENCA 1'
6089 _ld_extra="$_ld_extra -lenca" 6089 _extra_ldflags="$_extra_ldflags -lenca"
6090 else 6090 else
6091 def_enca='#undef CONFIG_ENCA' 6091 def_enca='#undef CONFIG_ENCA'
6092 fi 6092 fi
6093 echores "$_enca" 6093 echores "$_enca"
6094 6094
6100 EOF 6100 EOF
6101 _zlib=no 6101 _zlib=no
6102 cc_check -lz && _zlib=yes 6102 cc_check -lz && _zlib=yes
6103 if test "$_zlib" = yes ; then 6103 if test "$_zlib" = yes ; then
6104 def_zlib='#define CONFIG_ZLIB 1' 6104 def_zlib='#define CONFIG_ZLIB 1'
6105 _ld_extra="$_ld_extra -lz" 6105 _extra_ldflags="$_extra_ldflags -lz"
6106 else 6106 else
6107 def_zlib='#define CONFIG_ZLIB 0' 6107 def_zlib='#define CONFIG_ZLIB 0'
6108 _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 _libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// -e s/TSCC_DECODER// `
6109 _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// ` 6109 _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// `
6110 fi 6110 fi
6119 int main(void) { BZ2_bzlibVersion(); return 0; } 6119 int main(void) { BZ2_bzlibVersion(); return 0; }
6120 EOF 6120 EOF
6121 cc_check -lbz2 && bzlib=yes 6121 cc_check -lbz2 && bzlib=yes
6122 if test "$bzlib" = yes ; then 6122 if test "$bzlib" = yes ; then
6123 def_bzlib='#define CONFIG_BZLIB 1' 6123 def_bzlib='#define CONFIG_BZLIB 1'
6124 _ld_extra="$_ld_extra -lbz2" 6124 _extra_ldflags="$_extra_ldflags -lbz2"
6125 fi 6125 fi
6126 echores "$bzlib" 6126 echores "$bzlib"
6127 6127
6128 6128
6129 echocheck "RTC" 6129 echocheck "RTC"
6159 EOF 6159 EOF
6160 cc_check -llzo2 && _liblzo=yes 6160 cc_check -llzo2 && _liblzo=yes
6161 fi 6161 fi
6162 if test "$_liblzo" = yes ; then 6162 if test "$_liblzo" = yes ; then
6163 def_liblzo='#define CONFIG_LIBLZO 1' 6163 def_liblzo='#define CONFIG_LIBLZO 1'
6164 _ld_extra="$_ld_extra -llzo2" 6164 _extra_ldflags="$_extra_ldflags -llzo2"
6165 _codecmodules="liblzo $_codecmodules" 6165 _codecmodules="liblzo $_codecmodules"
6166 else 6166 else
6167 def_liblzo='#undef CONFIG_LIBLZO' 6167 def_liblzo='#undef CONFIG_LIBLZO'
6168 _nocodecmodules="liblzo $_nocodecmodules" 6168 _nocodecmodules="liblzo $_nocodecmodules"
6169 fi 6169 fi
6179 EOF 6179 EOF
6180 cc_check -lmad && _mad=yes 6180 cc_check -lmad && _mad=yes
6181 fi 6181 fi
6182 if test "$_mad" = yes ; then 6182 if test "$_mad" = yes ; then
6183 def_mad='#define CONFIG_LIBMAD 1' 6183 def_mad='#define CONFIG_LIBMAD 1'
6184 _ld_extra="$_ld_extra -lmad" 6184 _extra_ldflags="$_extra_ldflags -lmad"
6185 _codecmodules="libmad $_codecmodules" 6185 _codecmodules="libmad $_codecmodules"
6186 else 6186 else
6187 def_mad='#undef CONFIG_LIBMAD' 6187 def_mad='#undef CONFIG_LIBMAD'
6188 _nocodecmodules="libmad $_nocodecmodules" 6188 _nocodecmodules="libmad $_nocodecmodules"
6189 fi 6189 fi
6267 _vorbis=yes 6267 _vorbis=yes
6268 def_vorbis='#define CONFIG_OGGVORBIS 1' 6268 def_vorbis='#define CONFIG_OGGVORBIS 1'
6269 def_tremor='#define CONFIG_TREMOR 1' 6269 def_tremor='#define CONFIG_TREMOR 1'
6270 _codecmodules="tremor(external) $_codecmodules" 6270 _codecmodules="tremor(external) $_codecmodules"
6271 _res_comment="external Tremor" 6271 _res_comment="external Tremor"
6272 _ld_extra="$_ld_extra -logg -lvorbisidec" 6272 _extra_ldflags="$_extra_ldflags -logg -lvorbisidec"
6273 elif test "$_libvorbis" = yes ; then 6273 elif test "$_libvorbis" = yes ; then
6274 _vorbis=yes 6274 _vorbis=yes
6275 def_vorbis='#define CONFIG_OGGVORBIS 1' 6275 def_vorbis='#define CONFIG_OGGVORBIS 1'
6276 _codecmodules="libvorbis $_codecmodules" 6276 _codecmodules="libvorbis $_codecmodules"
6277 _res_comment="libvorbis" 6277 _res_comment="libvorbis"
6278 _ld_extra="$_ld_extra -lvorbis -logg" 6278 _extra_ldflags="$_extra_ldflags -lvorbis -logg"
6279 else 6279 else
6280 _vorbis=no 6280 _vorbis=no
6281 _nocodecmodules="libvorbis $_nocodecmodules" 6281 _nocodecmodules="libvorbis $_nocodecmodules"
6282 fi 6282 fi
6283 echores "$_vorbis" 6283 echores "$_vorbis"
6291 EOF 6291 EOF
6292 cc_check -lspeex $_ld_lm && _speex=yes 6292 cc_check -lspeex $_ld_lm && _speex=yes
6293 fi 6293 fi
6294 if test "$_speex" = yes ; then 6294 if test "$_speex" = yes ; then
6295 def_speex='#define CONFIG_SPEEX 1' 6295 def_speex='#define CONFIG_SPEEX 1'
6296 _ld_extra="$_ld_extra -lspeex" 6296 _extra_ldflags="$_extra_ldflags -lspeex"
6297 _codecmodules="speex $_codecmodules" 6297 _codecmodules="speex $_codecmodules"
6298 else 6298 else
6299 def_speex='#undef CONFIG_SPEEX' 6299 def_speex='#undef CONFIG_SPEEX'
6300 _nocodecmodules="speex $_nocodecmodules" 6300 _nocodecmodules="speex $_nocodecmodules"
6301 fi 6301 fi
6336 return 0; 6336 return 0;
6337 } 6337 }
6338 EOF 6338 EOF
6339 _ld_theora=$($_pkg_config --silence-errors --libs theora) 6339 _ld_theora=$($_pkg_config --silence-errors --libs theora)
6340 _inc_theora=$($_pkg_config --silence-errors --cflags theora) 6340 _inc_theora=$($_pkg_config --silence-errors --cflags theora)
6341 cc_check $_inc_theora $_ld_theora && _ld_extra="$_ld_extra $_ld_theora" && 6341 cc_check $_inc_theora $_ld_theora && _extra_ldflags="$_extra_ldflags $_ld_theora" &&
6342 _extra_cflags="$_extra_cflags $_inc_theora" && _theora=yes 6342 _extra_cflags="$_extra_cflags $_inc_theora" && _theora=yes
6343 if test _theora = no; then 6343 if test _theora = no; then
6344 _ld_theora="-ltheora -logg" 6344 _ld_theora="-ltheora -logg"
6345 cc_check $_ld_theora && _ld_extra="$_ld_extra $_ld_theora" && _theora=yes 6345 cc_check $_ld_theora && _extra_ldflags="$_extra_ldflags $_ld_theora" && _theora=yes
6346 fi 6346 fi
6347 if test "$_theora" = no && test "$_tremor_internal" = yes; then 6347 if test "$_theora" = no && test "$_tremor_internal" = yes; then
6348 _ld_theora=$($_pkg_config --silence-errors --libs theora) 6348 _ld_theora=$($_pkg_config --silence-errors --libs theora)
6349 _inc_theora=$($_pkg_config --silence-errors --cflags theora) 6349 _inc_theora=$($_pkg_config --silence-errors --cflags theora)
6350 cc_check tremor/bitwise.c $_inc_theora $_ld_theora && 6350 cc_check tremor/bitwise.c $_inc_theora $_ld_theora &&
6351 _ld_extra="$_ld_extra $_ld_theora" && 6351 _extra_ldflags="$_extra_ldflags $_ld_theora" &&
6352 _extra_cflags="$_extra_cflags $_inc_theora" && _theora=yes 6352 _extra_cflags="$_extra_cflags $_inc_theora" && _theora=yes
6353 if test _theora = no; then 6353 if test _theora = no; then
6354 _ld_theora="-ltheora -logg" 6354 _ld_theora="-ltheora -logg"
6355 cc_check tremor/bitwise.c $_ld_theora && 6355 cc_check tremor/bitwise.c $_ld_theora &&
6356 _ld_extra="$_ld_extra $_ld_theora" && _theora=yes 6356 _extra_ldflags="$_extra_ldflags $_ld_theora" && _theora=yes
6357 fi 6357 fi
6358 fi 6358 fi
6359 fi 6359 fi
6360 if test "$_theora" = yes ; then 6360 if test "$_theora" = yes ; then
6361 def_theora='#define CONFIG_OGGTHEORA 1' 6361 def_theora='#define CONFIG_OGGTHEORA 1'
6362 _codecmodules="libtheora $_codecmodules" 6362 _codecmodules="libtheora $_codecmodules"
6363 # when --enable-theora is forced, we'd better provide a probably sane 6363 # when --enable-theora is forced, we'd better provide a probably sane
6364 # $_ld_theora than nothing 6364 # $_ld_theora than nothing
6365 test -z "$_ld_theora" && _ld_extra="$_ld_extra -ltheora -logg" 6365 test -z "$_ld_theora" && _extra_ldflags="$_extra_ldflags -ltheora -logg"
6366 else 6366 else
6367 def_theora='#undef CONFIG_OGGTHEORA' 6367 def_theora='#undef CONFIG_OGGTHEORA'
6368 _nocodecmodules="libtheora $_nocodecmodules" 6368 _nocodecmodules="libtheora $_nocodecmodules"
6369 fi 6369 fi
6370 echores "$_theora" 6370 echores "$_theora"
6397 cat > $TMPC << EOF 6397 cat > $TMPC << EOF
6398 #include <inttypes.h> 6398 #include <inttypes.h>
6399 #include <a52dec/a52.h> 6399 #include <a52dec/a52.h>
6400 int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; } 6400 int main(void) { a52_state_t *testHand; testHand=a52_init(0); return 0; }
6401 EOF 6401 EOF
6402 cc_check -la52 && _liba52=yes && _res_comment="external" && _ld_extra="$_ld_extra -la52" 6402 cc_check -la52 && _liba52=yes && _res_comment="external" && _extra_ldflags="$_extra_ldflags -la52"
6403 fi 6403 fi
6404 if test "$_liba52" = yes ; then 6404 if test "$_liba52" = yes ; then
6405 def_liba52='#define CONFIG_LIBA52 1' 6405 def_liba52='#define CONFIG_LIBA52 1'
6406 _codecmodules="liba52($_res_comment) $_codecmodules" 6406 _codecmodules="liba52($_res_comment) $_codecmodules"
6407 else 6407 else
6437 #include <inttypes.h> 6437 #include <inttypes.h>
6438 #include <dts.h> 6438 #include <dts.h>
6439 int main(void) { dts_init(0); return 0; } 6439 int main(void) { dts_init(0); return 0; }
6440 EOF 6440 EOF
6441 for _ld_dca in -ldts -ldca ; do 6441 for _ld_dca in -ldts -ldca ; do
6442 cc_check $_ld_dca $_ld_lm && _ld_extra="$_ld_extra $_ld_dca" \ 6442 cc_check $_ld_dca $_ld_lm && _extra_ldflags="$_extra_ldflags $_ld_dca" \
6443 && _libdca=yes && break 6443 && _libdca=yes && break
6444 done 6444 done
6445 fi 6445 fi
6446 if test "$_libdca" = yes ; then 6446 if test "$_libdca" = yes ; then
6447 def_libdca='#define CONFIG_LIBDCA 1' 6447 def_libdca='#define CONFIG_LIBDCA 1'
6468 EOF 6468 EOF
6469 cc_check -lmpcdec $_ld_lm && _musepack=yes 6469 cc_check -lmpcdec $_ld_lm && _musepack=yes
6470 fi 6470 fi
6471 if test "$_musepack" = yes ; then 6471 if test "$_musepack" = yes ; then
6472 def_musepack='#define CONFIG_MUSEPACK 1' 6472 def_musepack='#define CONFIG_MUSEPACK 1'
6473 _ld_extra="$_ld_extra -lmpcdec" 6473 _extra_ldflags="$_extra_ldflags -lmpcdec"
6474 _codecmodules="musepack $_codecmodules" 6474 _codecmodules="musepack $_codecmodules"
6475 else 6475 else
6476 def_musepack='#undef CONFIG_MUSEPACK' 6476 def_musepack='#undef CONFIG_MUSEPACK'
6477 _nocodecmodules="musepack $_nocodecmodules" 6477 _nocodecmodules="musepack $_nocodecmodules"
6478 fi 6478 fi
6550 # on some platforms, especially for SBR files. 6550 # on some platforms, especially for SBR files.
6551 cflags_faad_fixed="-DFIXED_POINT" 6551 cflags_faad_fixed="-DFIXED_POINT"
6552 _res_comment="internal fixed-point" 6552 _res_comment="internal fixed-point"
6553 fi 6553 fi
6554 elif test "$_faad" = yes ; then 6554 elif test "$_faad" = yes ; then
6555 _ld_extra="$_ld_extra -lfaad" 6555 _extra_ldflags="$_extra_ldflags -lfaad"
6556 fi 6556 fi
6557 6557
6558 if test "$_faad" = yes ; then 6558 if test "$_faad" = yes ; then
6559 def_faad='#define CONFIG_FAAD 1' 6559 def_faad='#define CONFIG_FAAD 1'
6560 if test "$_faad_internal" = yes ; then 6560 if test "$_faad_internal" = yes ; then
6620 _res_comment="using $_win32codecsdir" 6620 _res_comment="using $_win32codecsdir"
6621 if ! win32 ; then 6621 if ! win32 ; then
6622 def_win32_loader='#define WIN32_LOADER 1' 6622 def_win32_loader='#define WIN32_LOADER 1'
6623 _win32_emulation=yes 6623 _win32_emulation=yes
6624 else 6624 else
6625 _ld_extra="$_ld_extra -ladvapi32 -lole32" 6625 _extra_ldflags="$_extra_ldflags -ladvapi32 -lole32"
6626 _res_comment="using native windows" 6626 _res_comment="using native windows"
6627 fi 6627 fi
6628 _codecmodules="win32 $_codecmodules" 6628 _codecmodules="win32 $_codecmodules"
6629 else 6629 else
6630 def_win32dll='#undef CONFIG_WIN32DLL' 6630 def_win32dll='#undef CONFIG_WIN32DLL'
6699 echocheck "Nemesi Streaming Media libraries" 6699 echocheck "Nemesi Streaming Media libraries"
6700 if test "$_nemesi" = auto && test "$_network" = yes ; then 6700 if test "$_nemesi" = auto && test "$_network" = yes ; then
6701 _nemesi=no 6701 _nemesi=no
6702 if $_pkg_config libnemesi --atleast-version=0.6.3 ; then 6702 if $_pkg_config libnemesi --atleast-version=0.6.3 ; then
6703 _extra_cflags="$_extra_cflags `$_pkg_config --cflags libnemesi`" 6703 _extra_cflags="$_extra_cflags `$_pkg_config --cflags libnemesi`"
6704 _ld_extra="$_ld_extra `$_pkg_config --libs libnemesi`" 6704 _extra_ldflags="$_extra_ldflags `$_pkg_config --libs libnemesi`"
6705 _nemesi=yes 6705 _nemesi=yes
6706 fi 6706 fi
6707 fi 6707 fi
6708 if test "$_nemesi" = yes; then 6708 if test "$_nemesi" = yes; then
6709 _native_rtsp=no 6709 _native_rtsp=no
6729 6729
6730 _live=no 6730 _live=no
6731 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 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
6732 cxx_check $I/liveMedia/include $I/UsageEnvironment/include \ 6732 cxx_check $I/liveMedia/include $I/UsageEnvironment/include \
6733 $I/groupsock/include && _livelibdir=`echo $I| sed s/-I//` && \ 6733 $I/groupsock/include && _livelibdir=`echo $I| sed s/-I//` && \
6734 _ld_extra="$_livelibdir/liveMedia/libliveMedia.a \ 6734 _extra_ldflags="$_livelibdir/liveMedia/libliveMedia.a \
6735 $_livelibdir/groupsock/libgroupsock.a \ 6735 $_livelibdir/groupsock/libgroupsock.a \
6736 $_livelibdir/UsageEnvironment/libUsageEnvironment.a \ 6736 $_livelibdir/UsageEnvironment/libUsageEnvironment.a \
6737 $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a \ 6737 $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a \
6738 $_ld_extra -lstdc++" \ 6738 $_extra_ldflags -lstdc++" \
6739 _extra_cxxflags="-I$_livelibdir/liveMedia/include \ 6739 _extra_cxxflags="-I$_livelibdir/liveMedia/include \
6740 -I$_livelibdir/UsageEnvironment/include \ 6740 -I$_livelibdir/UsageEnvironment/include \
6741 -I$_livelibdir/BasicUsageEnvironment/include \ 6741 -I$_livelibdir/BasicUsageEnvironment/include \
6742 -I$_livelibdir/groupsock/include" && \ 6742 -I$_livelibdir/groupsock/include" && \
6743 _live=yes && break 6743 _live=yes && break
6754 _inputmodules="live555 $_inputmodules" 6754 _inputmodules="live555 $_inputmodules"
6755 elif test "$_live_dist" = yes && test "$_network" = yes; then 6755 elif test "$_live_dist" = yes && test "$_network" = yes; then
6756 _res_comment="using distribution version" 6756 _res_comment="using distribution version"
6757 _live="yes" 6757 _live="yes"
6758 def_live='#define CONFIG_LIVE555 1' 6758 def_live='#define CONFIG_LIVE555 1'
6759 _ld_extra="$_ld_extra -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++" 6759 _extra_ldflags="$_extra_ldflags -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++"
6760 _extra_cxxflags="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \ 6760 _extra_cxxflags="-I/usr/include/liveMedia -I/usr/include/UsageEnvironment \
6761 -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock" 6761 -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock"
6762 _inputmodules="live555 $_inputmodules" 6762 _inputmodules="live555 $_inputmodules"
6763 else 6763 else
6764 _live=no 6764 _live=no
6783 int main(void) { av_gcd(1,1); return 0; } 6783 int main(void) { av_gcd(1,1); return 0; }
6784 EOF 6784 EOF
6785 if $_pkg_config --exists libavutil ; then 6785 if $_pkg_config --exists libavutil ; then
6786 _inc_libavutil=`$_pkg_config --cflags libavutil` 6786 _inc_libavutil=`$_pkg_config --cflags libavutil`
6787 _ld_tmp=`$_pkg_config --libs libavutil` 6787 _ld_tmp=`$_pkg_config --libs libavutil`
6788 cc_check $_inc_libavutil $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ 6788 cc_check $_inc_libavutil $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \
6789 && _libavutil_so=yes 6789 && _libavutil_so=yes
6790 elif cc_check -lavutil $_ld_lm ; then 6790 elif cc_check -lavutil $_ld_lm ; then
6791 _ld_extra="$_ld_extra -lavutil" 6791 _extra_ldflags="$_extra_ldflags -lavutil"
6792 _libavutil_so=yes 6792 _libavutil_so=yes
6793 _res_comment="using libavutil.so, but static libavutil is recommended" 6793 _res_comment="using libavutil.so, but static libavutil is recommended"
6794 fi 6794 fi
6795 fi 6795 fi
6796 _libavutil=no 6796 _libavutil=no
6822 int main(void) { avcodec_find_encoder_by_name(""); return 0; } 6822 int main(void) { avcodec_find_encoder_by_name(""); return 0; }
6823 EOF 6823 EOF
6824 if $_pkg_config --exists libavcodec ; then 6824 if $_pkg_config --exists libavcodec ; then
6825 _inc_libavcodec=`$_pkg_config --cflags libavcodec` 6825 _inc_libavcodec=`$_pkg_config --cflags libavcodec`
6826 _ld_tmp=`$_pkg_config --libs libavcodec` 6826 _ld_tmp=`$_pkg_config --libs libavcodec`
6827 cc_check $_inc_libavcodec $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ 6827 cc_check $_inc_libavcodec $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \
6828 && _libavcodec_so=yes 6828 && _libavcodec_so=yes
6829 elif cc_check -lavcodec $_ld_lm ; then 6829 elif cc_check -lavcodec $_ld_lm ; then
6830 _ld_extra="$_ld_extra -lavcodec" 6830 _extra_ldflags="$_extra_ldflags -lavcodec"
6831 _libavcodec_so=yes 6831 _libavcodec_so=yes
6832 _res_comment="using libavcodec.so, but static libavcodec is recommended" 6832 _res_comment="using libavcodec.so, but static libavcodec is recommended"
6833 fi 6833 fi
6834 fi 6834 fi
6835 _libavcodec=no 6835 _libavcodec=no
6866 int main(void) { av_alloc_format_context(); return 0; } 6866 int main(void) { av_alloc_format_context(); return 0; }
6867 EOF 6867 EOF
6868 if $_pkg_config --exists libavformat ; then 6868 if $_pkg_config --exists libavformat ; then
6869 _inc_libavformat=`$_pkg_config --cflags libavformat` 6869 _inc_libavformat=`$_pkg_config --cflags libavformat`
6870 _ld_tmp=`$_pkg_config --libs libavformat` 6870 _ld_tmp=`$_pkg_config --libs libavformat`
6871 cc_check $_inc_libavformat $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ 6871 cc_check $_inc_libavformat $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \
6872 && _libavformat_so=yes 6872 && _libavformat_so=yes
6873 elif cc_check $_ld_lm -lavformat ; then 6873 elif cc_check $_ld_lm -lavformat ; then
6874 _ld_extra="$_ld_extra -lavformat" 6874 _extra_ldflags="$_extra_ldflags -lavformat"
6875 _libavformat_so=yes 6875 _libavformat_so=yes
6876 _res_comment="using libavformat.so, but static libavformat is recommended" 6876 _res_comment="using libavformat.so, but static libavformat is recommended"
6877 fi 6877 fi
6878 fi 6878 fi
6879 _libavformat=no 6879 _libavformat=no
6900 #include <inttypes.h> 6900 #include <inttypes.h>
6901 #include <libpostproc/postprocess.h> 6901 #include <libpostproc/postprocess.h>
6902 int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; } 6902 int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; }
6903 EOF 6903 EOF
6904 if cc_check -lpostproc $_ld_lm ; then 6904 if cc_check -lpostproc $_ld_lm ; then
6905 _ld_extra="$_ld_extra -lpostproc" 6905 _extra_ldflags="$_extra_ldflags -lpostproc"
6906 _libpostproc_so=yes 6906 _libpostproc_so=yes
6907 _res_comment="using libpostproc.so, but static libpostproc is recommended" 6907 _res_comment="using libpostproc.so, but static libpostproc is recommended"
6908 fi 6908 fi
6909 fi 6909 fi
6910 _libpostproc=no 6910 _libpostproc=no
6933 int main(void) { sws_scale(0, 0, 0, 0, 0, 0, 0); return 0; } 6933 int main(void) { sws_scale(0, 0, 0, 0, 0, 0, 0); return 0; }
6934 EOF 6934 EOF
6935 if $_pkg_config --exists libswscale ; then 6935 if $_pkg_config --exists libswscale ; then
6936 _inc_libswscale=`$_pkg_config --cflags libswscale` 6936 _inc_libswscale=`$_pkg_config --cflags libswscale`
6937 _ld_tmp=`$_pkg_config --libs libswscale` 6937 _ld_tmp=`$_pkg_config --libs libswscale`
6938 cc_check $_inc_libswscale $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ 6938 cc_check $_inc_libswscale $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" \
6939 && _libswscale_so=yes 6939 && _libswscale_so=yes
6940 elif cc_check -lswscale ; then 6940 elif cc_check -lswscale ; then
6941 _ld_extra="$_ld_extra -lswscale" 6941 _extra_ldflags="$_extra_ldflags -lswscale"
6942 _libswscale_so=yes 6942 _libswscale_so=yes
6943 fi 6943 fi
6944 fi 6944 fi
6945 _libswscale=no 6945 _libswscale=no
6946 def_libswscale='#undef CONFIG_LIBSWSCALE' 6946 def_libswscale='#undef CONFIG_LIBSWSCALE'
6966 _res_comment="libavcodec (static) is required by libamr_nb, sorry" 6966 _res_comment="libavcodec (static) is required by libamr_nb, sorry"
6967 fi 6967 fi
6968 fi 6968 fi
6969 if test "$_libamr_nb" = yes ; then 6969 if test "$_libamr_nb" = yes ; then
6970 _libamr=yes 6970 _libamr=yes
6971 _ld_extra="$_ld_extra -lamrnb" 6971 _extra_ldflags="$_extra_ldflags -lamrnb"
6972 def_libamr='#define CONFIG_LIBAMR 1' 6972 def_libamr='#define CONFIG_LIBAMR 1'
6973 def_libamr_nb='#define CONFIG_LIBAMR_NB 1' 6973 def_libamr_nb='#define CONFIG_LIBAMR_NB 1'
6974 _libavdecoders="$_libavdecoders LIBAMR_NB_DECODER" 6974 _libavdecoders="$_libavdecoders LIBAMR_NB_DECODER"
6975 _libavencoders="$_libavencoders LIBAMR_NB_ENCODER" 6975 _libavencoders="$_libavencoders LIBAMR_NB_ENCODER"
6976 _codecmodules="libamr_nb $_codecmodules" 6976 _codecmodules="libamr_nb $_codecmodules"
6994 _res_comment="libavcodec (static) is required by libamr_wb, sorry" 6994 _res_comment="libavcodec (static) is required by libamr_wb, sorry"
6995 fi 6995 fi
6996 fi 6996 fi
6997 if test "$_libamr_wb" = yes ; then 6997 if test "$_libamr_wb" = yes ; then
6998 _libamr=yes 6998 _libamr=yes
6999 _ld_extra="$_ld_extra -lamrwb" 6999 _extra_ldflags="$_extra_ldflags -lamrwb"
7000 def_libamr='#define CONFIG_LIBAMR 1' 7000 def_libamr='#define CONFIG_LIBAMR 1'
7001 def_libamr_wb='#define CONFIG_LIBAMR_WB 1' 7001 def_libamr_wb='#define CONFIG_LIBAMR_WB 1'
7002 _libavdecoders="$_libavdecoders LIBAMR_WB_DECODER" 7002 _libavdecoders="$_libavdecoders LIBAMR_WB_DECODER"
7003 _libavencoders="$_libavencoders LIBAMR_WB_ENCODER" 7003 _libavencoders="$_libavencoders LIBAMR_WB_ENCODER"
7004 _codecmodules="libamr_wb $_codecmodules" 7004 _codecmodules="libamr_wb $_codecmodules"
7017 EOF 7017 EOF
7018 cc_check -ldv $_ld_pthread $_ld_lm && _libdv=yes 7018 cc_check -ldv $_ld_pthread $_ld_lm && _libdv=yes
7019 fi 7019 fi
7020 if test "$_libdv" = yes ; then 7020 if test "$_libdv" = yes ; then
7021 def_libdv='#define CONFIG_LIBDV095 1' 7021 def_libdv='#define CONFIG_LIBDV095 1'
7022 _ld_extra="$_ld_extra -ldv" 7022 _extra_ldflags="$_extra_ldflags -ldv"
7023 _codecmodules="libdv $_codecmodules" 7023 _codecmodules="libdv $_codecmodules"
7024 else 7024 else
7025 def_libdv='#undef CONFIG_LIBDV095' 7025 def_libdv='#undef CONFIG_LIBDV095'
7026 _nocodecmodules="libdv $_nocodecmodules" 7026 _nocodecmodules="libdv $_nocodecmodules"
7027 fi 7027 fi
7034 cat > $TMPC << EOF 7034 cat > $TMPC << EOF
7035 #include <xvid.h> 7035 #include <xvid.h>
7036 int main(void) { xvid_global(0, 0, 0, 0); return 0; } 7036 int main(void) { xvid_global(0, 0, 0, 0); return 0; }
7037 EOF 7037 EOF
7038 for _ld_tmp in "-lxvidcore $_ld_lm" "-lxvidcore $_ld_lm $_ld_pthread" ; do 7038 for _ld_tmp in "-lxvidcore $_ld_lm" "-lxvidcore $_ld_lm $_ld_pthread" ; do
7039 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && _xvid=yes && break 7039 cc_check $_ld_tmp && _extra_ldflags="$_extra_ldflags $_ld_tmp" && _xvid=yes && break
7040 done 7040 done
7041 fi 7041 fi
7042 7042
7043 if test "$_xvid" = yes ; then 7043 if test "$_xvid" = yes ; then
7044 def_xvid='#define CONFIG_XVID4 1' 7044 def_xvid='#define CONFIG_XVID4 1'
7126 _inc_dirac=`$_pkg_config --silence-errors --cflags dirac` 7126 _inc_dirac=`$_pkg_config --silence-errors --cflags dirac`
7127 _ld_dirac=`$_pkg_config --silence-errors --libs dirac` 7127 _ld_dirac=`$_pkg_config --silence-errors --libs dirac`
7128 cc_check $_inc_dirac $_ld_dirac && 7128 cc_check $_inc_dirac $_ld_dirac &&
7129 _libdirac_lavc=yes && 7129 _libdirac_lavc=yes &&
7130 _extra_cflags="$_extra_cflags $_inc_dirac" && 7130 _extra_cflags="$_extra_cflags $_inc_dirac" &&
7131 _ld_extra="$_ld_extra $_ld_dirac" 7131 _extra_ldflags="$_extra_ldflags $_ld_dirac"
7132 fi 7132 fi
7133 fi 7133 fi
7134 fi 7134 fi
7135 if test "$_libdirac_lavc" = yes ; then 7135 if test "$_libdirac_lavc" = yes ; then
7136 def_libdirac_lavc='#define CONFIG_LIBDIRAC 1' 7136 def_libdirac_lavc='#define CONFIG_LIBDIRAC 1'
7158 _inc_schroedinger=`$_pkg_config --silence-errors --cflags schroedinger-1.0` 7158 _inc_schroedinger=`$_pkg_config --silence-errors --cflags schroedinger-1.0`
7159 _ld_schroedinger=`$_pkg_config --silence-errors --libs schroedinger-1.0` 7159 _ld_schroedinger=`$_pkg_config --silence-errors --libs schroedinger-1.0`
7160 cc_check $_inc_schroedinger $_ld_schroedinger && 7160 cc_check $_inc_schroedinger $_ld_schroedinger &&
7161 _libschroedinger_lavc=yes && 7161 _libschroedinger_lavc=yes &&
7162 _extra_cflags="$_extra_cflags $_inc_schroedinger" && 7162 _extra_cflags="$_extra_cflags $_inc_schroedinger" &&
7163 _ld_extra="$_ld_extra $_ld_schroedinger" 7163 _extra_ldflags="$_extra_ldflags $_ld_schroedinger"
7164 fi 7164 fi
7165 fi 7165 fi
7166 fi 7166 fi
7167 if test "$_libschroedinger_lavc" = yes ; then 7167 if test "$_libschroedinger_lavc" = yes ; then
7168 def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 1' 7168 def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 1'
7188 cc_check -lnut && _libnut=yes 7188 cc_check -lnut && _libnut=yes
7189 fi 7189 fi
7190 7190
7191 if test "$_libnut" = yes ; then 7191 if test "$_libnut" = yes ; then
7192 def_libnut='#define CONFIG_LIBNUT 1' 7192 def_libnut='#define CONFIG_LIBNUT 1'
7193 _ld_extra="$_ld_extra -lnut" 7193 _extra_ldflags="$_extra_ldflags -lnut"
7194 else 7194 else
7195 def_libnut='#undef CONFIG_LIBNUT' 7195 def_libnut='#undef CONFIG_LIBNUT'
7196 fi 7196 fi
7197 echores "$_libnut" 7197 echores "$_libnut"
7198 7198
7404 fi 7404 fi
7405 fi 7405 fi
7406 if test "$_tv_dshow" = yes ; then 7406 if test "$_tv_dshow" = yes ; then
7407 _inputmodules="tv-dshow $_inputmodules" 7407 _inputmodules="tv-dshow $_inputmodules"
7408 def_tv_dshow='#define CONFIG_TV_DSHOW 1' 7408 def_tv_dshow='#define CONFIG_TV_DSHOW 1'
7409 _ld_extra="$_ld_extra -lole32 -luuid" 7409 _extra_ldflags="$_extra_ldflags -lole32 -luuid"
7410 else 7410 else
7411 _noinputmodules="tv-dshow $_noinputmodules" 7411 _noinputmodules="tv-dshow $_noinputmodules"
7412 def_tv_dshow='#undef CONFIG_TV_DSHOW' 7412 def_tv_dshow='#undef CONFIG_TV_DSHOW'
7413 fi 7413 fi
7414 echores "$_tv_dshow" 7414 echores "$_tv_dshow"
7618 cc_check -lvstream-client && _vstream=yes 7618 cc_check -lvstream-client && _vstream=yes
7619 fi 7619 fi
7620 if test "$_vstream" = yes ; then 7620 if test "$_vstream" = yes ; then
7621 def_vstream='#define CONFIG_VSTREAM 1' 7621 def_vstream='#define CONFIG_VSTREAM 1'
7622 _inputmodules="vstream $_inputmodules" 7622 _inputmodules="vstream $_inputmodules"
7623 _ld_extra="$_ld_extra -lvstream-client" 7623 _extra_ldflags="$_extra_ldflags -lvstream-client"
7624 else 7624 else
7625 _noinputmodules="vstream $_noinputmodules" 7625 _noinputmodules="vstream $_noinputmodules"
7626 def_vstream='#undef CONFIG_VSTREAM' 7626 def_vstream='#undef CONFIG_VSTREAM'
7627 fi 7627 fi
7628 echores "$_vstream" 7628 echores "$_vstream"
7658 _xmmslibdir=/usr/lib 7658 _xmmslibdir=/usr/lib
7659 fi 7659 fi
7660 7660
7661 def_xmms='#define CONFIG_XMMS 1' 7661 def_xmms='#define CONFIG_XMMS 1'
7662 if darwin ; then 7662 if darwin ; then
7663 _ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.dylib" 7663 _extra_ldflags="$_extra_ldflags ${_xmmslibdir}/libxmms.dylib"
7664 else 7664 else
7665 _ld_extra="$_ld_extra ${_xmmslibdir}/libxmms.so.1 -export-dynamic" 7665 _extra_ldflags="$_extra_ldflags ${_xmmslibdir}/libxmms.so.1 -export-dynamic"
7666 fi 7666 fi
7667 else 7667 else
7668 def_xmms='#undef CONFIG_XMMS' 7668 def_xmms='#undef CONFIG_XMMS'
7669 fi 7669 fi
7670 echores "$_xmms" 7670 echores "$_xmms"
7834 echocheck "compiler support for noexecstack" 7834 echocheck "compiler support for noexecstack"
7835 cat > $TMPC <<EOF 7835 cat > $TMPC <<EOF
7836 int main(void) { return 0; } 7836 int main(void) { return 0; }
7837 EOF 7837 EOF
7838 if cc_check -Wl,-z,noexecstack ; then 7838 if cc_check -Wl,-z,noexecstack ; then
7839 _ld_extra="-Wl,-z,noexecstack $_ld_extra" 7839 _extra_ldflags="-Wl,-z,noexecstack $_extra_ldflags"
7840 echores "yes" 7840 echores "yes"
7841 else 7841 else
7842 echores "no" 7842 echores "no"
7843 fi 7843 fi
7844 7844
7849 freebsd || netbsd || openbsd || dragonfly || bsdos && _ld_dl_dynamic='-rdynamic' 7849 freebsd || netbsd || openbsd || dragonfly || bsdos && _ld_dl_dynamic='-rdynamic'
7850 if test "$_real" = yes || test "$_xanim" = yes && ! win32 && ! qnx && ! darwin && ! os2 ; then 7850 if test "$_real" = yes || test "$_xanim" = yes && ! win32 && ! qnx && ! darwin && ! os2 ; then
7851 _ld_dl_dynamic='-rdynamic' 7851 _ld_dl_dynamic='-rdynamic'
7852 fi 7852 fi
7853 7853
7854 _ld_extra="$_ld_extra $_ld_pthread $_ld_dl $_ld_dl_dynamic" 7854 _extra_ldflags="$_extra_ldflags $_ld_pthread $_ld_dl $_ld_dl_dynamic"
7855 bsdos && _ld_extra="$_ld_extra -ldvd" 7855 bsdos && _extra_ldflags="$_extra_ldflags -ldvd"
7856 (netbsd || openbsd) && x86_32 && _ld_extra="$_ld_extra -li386" 7856 (netbsd || openbsd) && x86_32 && _extra_ldflags="$_extra_ldflags -li386"
7857 7857
7858 def_debug='#undef MP_DEBUG' 7858 def_debug='#undef MP_DEBUG'
7859 test "$_debug" != "" && def_debug='#define MP_DEBUG 1' 7859 test "$_debug" != "" && def_debug='#define MP_DEBUG 1'
7860 7860
7861 7861
7881 EOF 7881 EOF
7882 cc_check -llirc_client && _lirc=yes 7882 cc_check -llirc_client && _lirc=yes
7883 fi 7883 fi
7884 if test "$_lirc" = yes ; then 7884 if test "$_lirc" = yes ; then
7885 def_lirc='#define CONFIG_LIRC 1' 7885 def_lirc='#define CONFIG_LIRC 1'
7886 _ld_extra="$_ld_extra -llirc_client" 7886 _extra_ldflags="$_extra_ldflags -llirc_client"
7887 else 7887 else
7888 def_lirc='#undef CONFIG_LIRC' 7888 def_lirc='#undef CONFIG_LIRC'
7889 fi 7889 fi
7890 echores "$_lirc" 7890 echores "$_lirc"
7891 7891
7898 EOF 7898 EOF
7899 cc_check -llircc && _lircc=yes 7899 cc_check -llircc && _lircc=yes
7900 fi 7900 fi
7901 if test "$_lircc" = yes ; then 7901 if test "$_lircc" = yes ; then
7902 def_lircc='#define CONFIG_LIRCC 1' 7902 def_lircc='#define CONFIG_LIRCC 1'
7903 _ld_extra="$_ld_extra -llircc" 7903 _extra_ldflags="$_extra_ldflags -llircc"
7904 else 7904 else
7905 def_lircc='#undef CONFIG_LIRCC' 7905 def_lircc='#undef CONFIG_LIRCC'
7906 fi 7906 fi
7907 echores "$_lircc" 7907 echores "$_lircc"
7908 7908
7919 cc_check `$_pkg_config --cflags --libs libosso 2>/dev/null` && _maemo=yes 7919 cc_check `$_pkg_config --cflags --libs libosso 2>/dev/null` && _maemo=yes
7920 fi 7920 fi
7921 if test "$_maemo" = yes ; then 7921 if test "$_maemo" = yes ; then
7922 def_maemo='#define CONFIG_MAEMO 1' 7922 def_maemo='#define CONFIG_MAEMO 1'
7923 _extra_cflags="$_extra_cflags `$_pkg_config --cflags libosso`" 7923 _extra_cflags="$_extra_cflags `$_pkg_config --cflags libosso`"
7924 _ld_extra="$_ld_extra `$_pkg_config --libs libosso` -lXsp" 7924 _extra_ldflags="$_extra_ldflags `$_pkg_config --libs libosso` -lXsp"
7925 else 7925 else
7926 def_maemo='#undef CONFIG_MAEMO' 7926 def_maemo='#undef CONFIG_MAEMO'
7927 fi 7927 fi
7928 echores "$_maemo" 7928 echores "$_maemo"
7929 fi 7929 fi
7932 7932
7933 # On OS/2 nm supports only a.out. So the -Zomf compiler option to generate 7933 # On OS/2 nm supports only a.out. So the -Zomf compiler option to generate
7934 # the OMF format needs to come after the 'extern symbol prefix' check, which 7934 # the OMF format needs to come after the 'extern symbol prefix' check, which
7935 # uses nm. 7935 # uses nm.
7936 if os2 ; then 7936 if os2 ; then
7937 _ld_extra="$_ld_extra -Zomf -Zstack 16384 -Zbin-files -Zargs-wild" 7937 _extra_ldflags="$_extra_ldflags -Zomf -Zstack 16384 -Zbin-files -Zargs-wild"
7938 fi 7938 fi
7939 7939
7940 # linker paths should be the same for mencoder and mplayer 7940 # linker paths should be the same for mencoder and mplayer
7941 _ld_tmp="" 7941 _ld_tmp=""
7942 for I in $_libs_mplayer ; do 7942 for I in $_libs_mplayer ; do
7943 _tmp=`echo $I | sed -e 's/^-L.*$//'` 7943 _tmp=`echo $I | sed -e 's/^-L.*$//'`
7944 if test -z "$_tmp" ; then 7944 if test -z "$_tmp" ; then
7945 _ld_extra="$_ld_extra $I" 7945 _extra_ldflags="$_extra_ldflags $I"
7946 else 7946 else
7947 _ld_tmp="$_ld_tmp $I" 7947 _ld_tmp="$_ld_tmp $I"
7948 fi 7948 fi
7949 done 7949 done
7950 _libs_mplayer=$_ld_tmp 7950 _libs_mplayer=$_ld_tmp
8026 if test "$dvdnav_internal" = yes ; then 8026 if test "$dvdnav_internal" = yes ; then
8027 cflags_libdvdnav="-Ilibdvdnav" 8027 cflags_libdvdnav="-Ilibdvdnav"
8028 _inputmodules="dvdnav(internal) $_inputmodules" 8028 _inputmodules="dvdnav(internal) $_inputmodules"
8029 else 8029 else
8030 _extra_cflags="$_extra_cflags `$_dvdnavconfig --cflags`" 8030 _extra_cflags="$_extra_cflags `$_dvdnavconfig --cflags`"
8031 _ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`" 8031 _extra_ldflags="$_extra_ldflags `$_dvdnavconfig --minilibs`"
8032 _inputmodules="dvdnav $_inputmodules" 8032 _inputmodules="dvdnav $_inputmodules"
8033 fi 8033 fi
8034 else 8034 else
8035 def_dvdnav='#undef CONFIG_DVDNAV' 8035 def_dvdnav='#undef CONFIG_DVDNAV'
8036 _noinputmodules="dvdnav $_noinputmodules" 8036 _noinputmodules="dvdnav $_noinputmodules"
8086 CFLAGS_SVGALIB_HELPER = $cflags_svgalib_helper 8086 CFLAGS_SVGALIB_HELPER = $cflags_svgalib_helper
8087 CFLAGS_TREMOR_LOW = $cflags_tremor_low 8087 CFLAGS_TREMOR_LOW = $cflags_tremor_low
8088 YASMFLAGS = $YASMFLAGS 8088 YASMFLAGS = $YASMFLAGS
8089 8089
8090 EXTRALIBS = $_extra_libs 8090 EXTRALIBS = $_extra_libs
8091 EXTRA_LIB = $_ld_extra $_ld_static $_ld_lm 8091 EXTRA_LIB = $_extra_ldflags $_ld_static $_ld_lm
8092 EXTRALIBS_MPLAYER = $_libs_mplayer 8092 EXTRALIBS_MPLAYER = $_libs_mplayer
8093 EXTRALIBS_MENCODER = $_libs_mencoder 8093 EXTRALIBS_MENCODER = $_libs_mencoder
8094 8094
8095 DEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,\$^) | sed "s,[0-9a-z._-]*: \(\$(SRC_DIR)/\)*\([a-z0-9]*/\)[^/]* ,\\2&," 8095 DEPEND_CMD = \$(CC) -MM \$(CFLAGS) \$(filter-out %.h,\$^) | sed "s,[0-9a-z._-]*: \(\$(SRC_DIR)/\)*\([a-z0-9]*/\)[^/]* ,\\2&,"
8096 8096