Mercurial > mplayer.hg
comparison configure @ 33879:d5398f99b0bc
configure: drop leading underscore from _ld_* variables
author | diego |
---|---|
date | Thu, 11 Aug 2011 17:45:30 +0000 |
parents | 1395723bf048 |
children | c53f19b076b8 |
comparison
equal
deleted
inserted
replaced
33878:1395723bf048 | 33879:d5398f99b0bc |
---|---|
29 # at the end of this script. The variable names used for this should be | 29 # at the end of this script. The variable names used for this should be |
30 # uniform, i.e. if the option is named 'feature': | 30 # uniform, i.e. if the option is named 'feature': |
31 # | 31 # |
32 # _feature : should have a value of yes/no/auto | 32 # _feature : should have a value of yes/no/auto |
33 # def_feature : '#define ... 1' or '#undef ...' for conditional compilation | 33 # def_feature : '#define ... 1' or '#undef ...' for conditional compilation |
34 # _ld_feature : '-L/path/dir -lfeature' GCC options | 34 # ld_feature : '-L/path/dir -lfeature' GCC options |
35 # | 35 # |
36 ############################################################################# | 36 ############################################################################# |
37 | 37 |
38 if test -e ffmpeg/.svn ; then | 38 if test -e ffmpeg/.svn ; then |
39 echo "You have an outdated FFmpeg SVN checkout in ffmpeg/, please (re)move or replace it" | 39 echo "You have an outdated FFmpeg SVN checkout in ffmpeg/, please (re)move or replace it" |
70 source="$1" | 70 source="$1" |
71 shift | 71 shift |
72 echo >> "$TMPLOG" | 72 echo >> "$TMPLOG" |
73 cat "$source" >> "$TMPLOG" | 73 cat "$source" >> "$TMPLOG" |
74 echo >> "$TMPLOG" | 74 echo >> "$TMPLOG" |
75 echo "$_cc $WARNFLAGS $WARN_CFLAGS $CFLAGS $source $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o $TMPEXE $@" >> "$TMPLOG" | 75 echo "$_cc $WARNFLAGS $WARN_CFLAGS $CFLAGS $source $extra_cflags $ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o $TMPEXE $@" >> "$TMPLOG" |
76 rm -f "$TMPEXE" | 76 rm -f "$TMPEXE" |
77 $_cc $WARNFLAGS $WARN_CFLAGS $CFLAGS "$source" $extra_cflags $_ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1 | 77 $_cc $WARNFLAGS $WARN_CFLAGS $CFLAGS "$source" $extra_cflags $ld_static $extra_ldflags $libs_mplayer $libs_mencoder -o "$TMPEXE" "$@" >> "$TMPLOG" 2>&1 |
78 TMPRES="$?" | 78 TMPRES="$?" |
79 echo >> "$TMPLOG" | 79 echo >> "$TMPLOG" |
80 echo >> "$TMPLOG" | 80 echo >> "$TMPLOG" |
81 return "$TMPRES" | 81 return "$TMPRES" |
82 } | 82 } |
957 --language=*) | 957 --language=*) |
958 language=$(echo $ac_option | cut -d '=' -f 2) | 958 language=$(echo $ac_option | cut -d '=' -f 2) |
959 ;; | 959 ;; |
960 | 960 |
961 --enable-static) | 961 --enable-static) |
962 _ld_static='-static' | 962 ld_static='-static' |
963 ;; | 963 ;; |
964 --disable-static) | 964 --disable-static) |
965 _ld_static='' | 965 ld_static='' |
966 ;; | 966 ;; |
967 --enable-profile) | 967 --enable-profile) |
968 _profile='-p' | 968 _profile='-p' |
969 ;; | 969 ;; |
970 --disable-profile) | 970 --disable-profile) |
3122 #include <netdb.h> | 3122 #include <netdb.h> |
3123 #include <sys/socket.h> | 3123 #include <sys/socket.h> |
3124 int main(void) { gethostbyname(0); socket(AF_INET, SOCK_STREAM, 0); return 0; } | 3124 int main(void) { gethostbyname(0); socket(AF_INET, SOCK_STREAM, 0); return 0; } |
3125 EOF | 3125 EOF |
3126 _socklib=no | 3126 _socklib=no |
3127 for _ld_tmp in "" "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do | 3127 for ld_tmp in "" "-lsocket -lbind" "-lsocket -ldnet" "-lsocket -lnsl" "-lnsl" "-lsocket" ; do |
3128 cc_check $_ld_tmp && _ld_sock="$_ld_tmp" && _socklib=yes && break | 3128 cc_check $ld_tmp && ld_sock="$ld_tmp" && _socklib=yes && break |
3129 done | 3129 done |
3130 test $_socklib = yes && test $_winsock2_h = auto && _winsock2_h=no | 3130 test $_socklib = yes && test $_winsock2_h = auto && _winsock2_h=no |
3131 if test $_winsock2_h = auto ; then | 3131 if test $_winsock2_h = auto ; then |
3132 _winsock2_h=no | 3132 _winsock2_h=no |
3133 statement_check winsock2.h 'gethostbyname(0)' -lws2_32 && _ld_sock="-lws2_32" && _winsock2_h=yes | 3133 statement_check winsock2.h 'gethostbyname(0)' -lws2_32 && ld_sock="-lws2_32" && _winsock2_h=yes |
3134 fi | 3134 fi |
3135 test "$_ld_sock" && res_comment="using $_ld_sock" | 3135 test "$ld_sock" && res_comment="using $ld_sock" |
3136 echores "$_socklib" | 3136 echores "$_socklib" |
3137 | 3137 |
3138 | 3138 |
3139 if test $_winsock2_h = yes ; then | 3139 if test $_winsock2_h = yes ; then |
3140 _ld_sock="-lws2_32" | 3140 ld_sock="-lws2_32" |
3141 def_winsock2_h='#define HAVE_WINSOCK2_H 1' | 3141 def_winsock2_h='#define HAVE_WINSOCK2_H 1' |
3142 cc_check_winsock2_h='-DHAVE_WINSOCK2_H=1' | 3142 cc_check_winsock2_h='-DHAVE_WINSOCK2_H=1' |
3143 else | 3143 else |
3144 def_winsock2_h='#define HAVE_WINSOCK2_H 0' | 3144 def_winsock2_h='#define HAVE_WINSOCK2_H 0' |
3145 cc_check_winsock2_h='-DHAVE_WINSOCK2_H=0' | 3145 cc_check_winsock2_h='-DHAVE_WINSOCK2_H=0' |
3264 | 3264 |
3265 | 3265 |
3266 echocheck "inet_pton()" | 3266 echocheck "inet_pton()" |
3267 def_inet_pton='#define HAVE_INET_PTON 0' | 3267 def_inet_pton='#define HAVE_INET_PTON 0' |
3268 inet_pton=no | 3268 inet_pton=no |
3269 for _ld_tmp in "$_ld_sock" "$_ld_sock -lresolv" ; do | 3269 for ld_tmp in "$ld_sock" "$ld_sock -lresolv" ; do |
3270 statement_check arpa/inet.h 'inet_pton(0, 0, 0)' $_ld_tmp && inet_pton=yes && break | 3270 statement_check arpa/inet.h 'inet_pton(0, 0, 0)' $ld_tmp && inet_pton=yes && break |
3271 done | 3271 done |
3272 if test $inet_pton = yes ; then | 3272 if test $inet_pton = yes ; then |
3273 test "$_ld_tmp" && res_comment="using $_ld_tmp" | 3273 test "$ld_tmp" && res_comment="using $ld_tmp" |
3274 def_inet_pton='#define HAVE_INET_PTON 1' | 3274 def_inet_pton='#define HAVE_INET_PTON 1' |
3275 fi | 3275 fi |
3276 echores "$inet_pton" | 3276 echores "$inet_pton" |
3277 | 3277 |
3278 | 3278 |
3279 echocheck "inet_aton()" | 3279 echocheck "inet_aton()" |
3280 def_inet_aton='#define HAVE_INET_ATON 0' | 3280 def_inet_aton='#define HAVE_INET_ATON 0' |
3281 inet_aton=no | 3281 inet_aton=no |
3282 for _ld_tmp in "$_ld_sock" "$_ld_sock -lresolv" ; do | 3282 for ld_tmp in "$ld_sock" "$ld_sock -lresolv" ; do |
3283 statement_check arpa/inet.h 'inet_aton(0, 0)' $_ld_tmp && inet_aton=yes && break | 3283 statement_check arpa/inet.h 'inet_aton(0, 0)' $ld_tmp && inet_aton=yes && break |
3284 done | 3284 done |
3285 if test $inet_aton = yes ; then | 3285 if test $inet_aton = yes ; then |
3286 test "$_ld_tmp" && res_comment="using $_ld_tmp" | 3286 test "$ld_tmp" && res_comment="using $ld_tmp" |
3287 def_inet_aton='#define HAVE_INET_ATON 1' | 3287 def_inet_aton='#define HAVE_INET_ATON 1' |
3288 fi | 3288 fi |
3289 echores "$inet_aton" | 3289 echores "$inet_aton" |
3290 | 3290 |
3291 | 3291 |
3302 echores "$_socklen_t" | 3302 echores "$_socklen_t" |
3303 | 3303 |
3304 | 3304 |
3305 echocheck "closesocket()" | 3305 echocheck "closesocket()" |
3306 _closesocket=no | 3306 _closesocket=no |
3307 statement_check winsock2.h 'closesocket(~0)' $_ld_sock && _closesocket=yes | 3307 statement_check winsock2.h 'closesocket(~0)' $ld_sock && _closesocket=yes |
3308 if test "$_closesocket" = yes ; then | 3308 if test "$_closesocket" = yes ; then |
3309 def_closesocket='#define HAVE_CLOSESOCKET 1' | 3309 def_closesocket='#define HAVE_CLOSESOCKET 1' |
3310 else | 3310 else |
3311 def_closesocket='#define HAVE_CLOSESOCKET 0' | 3311 def_closesocket='#define HAVE_CLOSESOCKET 0' |
3312 fi | 3312 fi |
3318 test $inet_aton = no && networking=no | 3318 test $inet_aton = no && networking=no |
3319 if test "$networking" = yes ; then | 3319 if test "$networking" = yes ; then |
3320 def_network='#define CONFIG_NETWORK 1' | 3320 def_network='#define CONFIG_NETWORK 1' |
3321 def_networking='#define CONFIG_NETWORKING 1' | 3321 def_networking='#define CONFIG_NETWORKING 1' |
3322 def_rtpdec='#define CONFIG_RTPDEC 1' | 3322 def_rtpdec='#define CONFIG_RTPDEC 1' |
3323 extra_ldflags="$extra_ldflags $_ld_sock" | 3323 extra_ldflags="$extra_ldflags $ld_sock" |
3324 inputmodules="networking $inputmodules" | 3324 inputmodules="networking $inputmodules" |
3325 else | 3325 else |
3326 noinputmodules="networking $noinputmodules" | 3326 noinputmodules="networking $noinputmodules" |
3327 def_network='#define CONFIG_NETWORK 0' | 3327 def_network='#define CONFIG_NETWORK 0' |
3328 def_networking='#undef CONFIG_NETWORKING' | 3328 def_networking='#undef CONFIG_NETWORKING' |
3344 #include <ws2tcpip.h> | 3344 #include <ws2tcpip.h> |
3345 #endif | 3345 #endif |
3346 int main(void) { struct sockaddr_in6 six; socket(AF_INET6, SOCK_STREAM, AF_INET6); return 0; } | 3346 int main(void) { struct sockaddr_in6 six; socket(AF_INET6, SOCK_STREAM, AF_INET6); return 0; } |
3347 EOF | 3347 EOF |
3348 _inet6=no | 3348 _inet6=no |
3349 if cc_check $_ld_sock ; then | 3349 if cc_check $ld_sock ; then |
3350 _inet6=yes | 3350 _inet6=yes |
3351 fi | 3351 fi |
3352 fi | 3352 fi |
3353 if test "$_inet6" = yes ; then | 3353 if test "$_inet6" = yes ; then |
3354 def_inet6='#define HAVE_AF_INET6 1' | 3354 def_inet6='#define HAVE_AF_INET6 1' |
3505 def_mman_has_map_failed='#define MAP_FAILED ((void *) -1)' | 3505 def_mman_has_map_failed='#define MAP_FAILED ((void *) -1)' |
3506 fi | 3506 fi |
3507 | 3507 |
3508 echocheck "dynamic loader" | 3508 echocheck "dynamic loader" |
3509 _dl=no | 3509 _dl=no |
3510 for _ld_tmp in "" -ldl; do | 3510 for ld_tmp in "" -ldl; do |
3511 statement_check dlfcn.h 'dlopen("", 0)' $_ld_tmp && _ld_dl="$_ld_tmp" && _dl=yes && break | 3511 statement_check dlfcn.h 'dlopen("", 0)' $ld_tmp && ld_dl="$ld_tmp" && _dl=yes && break |
3512 done | 3512 done |
3513 if test "$_dl" = yes ; then | 3513 if test "$_dl" = yes ; then |
3514 def_dl='#define HAVE_LIBDL 1' | 3514 def_dl='#define HAVE_LIBDL 1' |
3515 else | 3515 else |
3516 def_dl='#undef HAVE_LIBDL' | 3516 def_dl='#undef HAVE_LIBDL' |
3544 static void *func(void *arg) { return arg; } | 3544 static void *func(void *arg) { return arg; } |
3545 int main(void) { pthread_t tid; return pthread_create(&tid, 0, func, 0) == 0 ? 0 : 1; } | 3545 int main(void) { pthread_t tid; return pthread_create(&tid, 0, func, 0) == 0 ? 0 : 1; } |
3546 EOF | 3546 EOF |
3547 _pthreads=no | 3547 _pthreads=no |
3548 if ! hpux ; then | 3548 if ! hpux ; then |
3549 for _ld_tmp in "-lpthreadGC2" "" "-lpthread" "-pthread" ; do | 3549 for ld_tmp in "-lpthreadGC2" "" "-lpthread" "-pthread" ; do |
3550 # for crosscompilation, we cannot execute the program, be happy if we can link statically | 3550 # for crosscompilation, we cannot execute the program, be happy if we can link statically |
3551 cc_check $THREAD_CFLAGS $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break | 3551 cc_check $THREAD_CFLAGS $ld_tmp && (tmp_run || test "$ld_static") && ld_pthread="$ld_tmp" && _pthreads=yes && break |
3552 done | 3552 done |
3553 fi | 3553 fi |
3554 fi | 3554 fi |
3555 if test "$_pthreads" = yes ; then | 3555 if test "$_pthreads" = yes ; then |
3556 test $_ld_pthread && res_comment="using $_ld_pthread" | 3556 test $ld_pthread && res_comment="using $ld_pthread" |
3557 def_pthreads='#define HAVE_PTHREADS 1' | 3557 def_pthreads='#define HAVE_PTHREADS 1' |
3558 def_threads='#define HAVE_THREADS 1' | 3558 def_threads='#define HAVE_THREADS 1' |
3559 extra_cflags="$extra_cflags $THREAD_CFLAGS" | 3559 extra_cflags="$extra_cflags $THREAD_CFLAGS" |
3560 else | 3560 else |
3561 res_comment="v4l, v4l2, ao_nas, win32 loader disabled" | 3561 res_comment="v4l, v4l2, ao_nas, win32 loader disabled" |
3628 } | 3628 } |
3629 return 0; | 3629 return 0; |
3630 } | 3630 } |
3631 EOF | 3631 EOF |
3632 _iconv=no | 3632 _iconv=no |
3633 for _ld_tmp in "" "-liconv" "-liconv $_ld_dl" ; do | 3633 for ld_tmp in "" "-liconv" "-liconv $ld_dl" ; do |
3634 cc_check $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" && | 3634 cc_check $ld_tmp && extra_ldflags="$extra_ldflags $ld_tmp" && |
3635 _iconv=yes && break | 3635 _iconv=yes && break |
3636 done | 3636 done |
3637 fi | 3637 fi |
3638 if test "$_iconv" = yes ; then | 3638 if test "$_iconv" = yes ; then |
3639 def_iconv='#define CONFIG_ICONV 1' | 3639 def_iconv='#define CONFIG_ICONV 1' |
3751 | 3751 |
3752 | 3752 |
3753 echocheck "termcap" | 3753 echocheck "termcap" |
3754 if test "$_termcap" = auto ; then | 3754 if test "$_termcap" = auto ; then |
3755 _termcap=no | 3755 _termcap=no |
3756 for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do | 3756 for ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do |
3757 statement_check term.h 'tgetent(0, 0)' $_ld_tmp && | 3757 statement_check term.h 'tgetent(0, 0)' $ld_tmp && |
3758 extra_ldflags="$extra_ldflags $_ld_tmp" && _termcap=yes && break | 3758 extra_ldflags="$extra_ldflags $ld_tmp" && _termcap=yes && break |
3759 done | 3759 done |
3760 fi | 3760 fi |
3761 if test "$_termcap" = yes ; then | 3761 if test "$_termcap" = yes ; then |
3762 def_termcap='#define HAVE_TERMCAP 1' | 3762 def_termcap='#define HAVE_TERMCAP 1' |
3763 test $_ld_tmp && res_comment="using $_ld_tmp" | 3763 test $ld_tmp && res_comment="using $ld_tmp" |
3764 else | 3764 else |
3765 def_termcap='#undef HAVE_TERMCAP' | 3765 def_termcap='#undef HAVE_TERMCAP' |
3766 fi | 3766 fi |
3767 echores "$_termcap" | 3767 echores "$_termcap" |
3768 | 3768 |
4023 fi #if linux | 4023 fi #if linux |
4024 | 4024 |
4025 echocheck "pkg-config" | 4025 echocheck "pkg-config" |
4026 _pkg_config=pkg-config | 4026 _pkg_config=pkg-config |
4027 if $($_pkg_config --version > /dev/null 2>&1); then | 4027 if $($_pkg_config --version > /dev/null 2>&1); then |
4028 if test "$_ld_static"; then | 4028 if test "$ld_static"; then |
4029 _pkg_config="$_pkg_config --static" | 4029 _pkg_config="$_pkg_config --static" |
4030 fi | 4030 fi |
4031 echores "yes" | 4031 echores "yes" |
4032 else | 4032 else |
4033 _pkg_config=false | 4033 _pkg_config=false |
4039 if test "$_smb" = yes; then | 4039 if test "$_smb" = yes; then |
4040 extra_ldflags="$extra_ldflags -lsmbclient" | 4040 extra_ldflags="$extra_ldflags -lsmbclient" |
4041 fi | 4041 fi |
4042 if test "$_smb" = auto; then | 4042 if test "$_smb" = auto; then |
4043 _smb=no | 4043 _smb=no |
4044 for _ld_tmp in "-lsmbclient" "-lsmbclient $_ld_dl" "-lsmbclient $_ld_dl -lnsl" "-lsmbclient $_ld_dl -lssl -lnsl" ; do | 4044 for ld_tmp in "-lsmbclient" "-lsmbclient $ld_dl" "-lsmbclient $ld_dl -lnsl" "-lsmbclient $ld_dl -lssl -lnsl" ; do |
4045 statement_check libsmbclient.h 'smbc_opendir("smb://")' $_ld_tmp && | 4045 statement_check libsmbclient.h 'smbc_opendir("smb://")' $ld_tmp && |
4046 extra_ldflags="$extra_ldflags $_ld_tmp" && _smb=yes && break | 4046 extra_ldflags="$extra_ldflags $ld_tmp" && _smb=yes && break |
4047 done | 4047 done |
4048 fi | 4048 fi |
4049 | 4049 |
4050 if test "$_smb" = yes; then | 4050 if test "$_smb" = yes; then |
4051 def_smb="#define CONFIG_LIBSMBCLIENT 1" | 4051 def_smb="#define CONFIG_LIBSMBCLIENT 1" |
4242 if test "$_x11" = auto && test "$_x11_headers" = yes ; then | 4242 if test "$_x11" = auto && test "$_x11_headers" = yes ; then |
4243 for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \ | 4243 for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \ |
4244 -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \ | 4244 -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \ |
4245 -L/usr/lib ; do | 4245 -L/usr/lib ; do |
4246 if netbsd; then | 4246 if netbsd; then |
4247 _ld_tmp="$I -lXext -lX11 $_ld_pthread -Wl,-R$(echo $I | sed s/^-L//)" | 4247 ld_tmp="$I -lXext -lX11 $ld_pthread -Wl,-R$(echo $I | sed s/^-L//)" |
4248 else | 4248 else |
4249 _ld_tmp="$I -lXext -lX11 $_ld_pthread" | 4249 ld_tmp="$I -lXext -lX11 $ld_pthread" |
4250 fi | 4250 fi |
4251 statement_check X11/Xutil.h 'XCreateWindow(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)' $_ld_tmp && | 4251 statement_check X11/Xutil.h 'XCreateWindow(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)' $ld_tmp && |
4252 libs_mplayer="$libs_mplayer $_ld_tmp" && _x11=yes && break | 4252 libs_mplayer="$libs_mplayer $ld_tmp" && _x11=yes && break |
4253 done | 4253 done |
4254 fi | 4254 fi |
4255 if test "$_x11" = yes ; then | 4255 if test "$_x11" = yes ; then |
4256 def_x11='#define CONFIG_X11 1' | 4256 def_x11='#define CONFIG_X11 1' |
4257 vomodules="x11 xover $vomodules" | 4257 vomodules="x11 xover $vomodules" |
4333 int main(void) { | 4333 int main(void) { |
4334 XvMCQueryExtension(0, 0, 0); | 4334 XvMCQueryExtension(0, 0, 0); |
4335 XvMCCreateContext(0, 0, 0, 0, 0, 0, 0); | 4335 XvMCCreateContext(0, 0, 0, 0, 0, 0, 0); |
4336 return 0; } | 4336 return 0; } |
4337 EOF | 4337 EOF |
4338 for _ld_tmp in $_xvmclib XvMCNVIDIA XvMCW I810XvMC ; do | 4338 for ld_tmp in $_xvmclib XvMCNVIDIA XvMCW I810XvMC ; do |
4339 cc_check -lXvMC -l$_ld_tmp && _xvmc=yes && _xvmclib="$_ld_tmp" && break | 4339 cc_check -lXvMC -l$ld_tmp && _xvmc=yes && _xvmclib="$ld_tmp" && break |
4340 done | 4340 done |
4341 fi | 4341 fi |
4342 if test "$_xvmc" = yes ; then | 4342 if test "$_xvmc" = yes ; then |
4343 def_xvmc='#define CONFIG_XVMC 1' | 4343 def_xvmc='#define CONFIG_XVMC 1' |
4344 libs_mplayer="$libs_mplayer -lXvMC -l$_xvmclib" | 4344 libs_mplayer="$libs_mplayer -lXvMC -l$_xvmclib" |
4615 p = aa_getrenderparams(); | 4615 p = aa_getrenderparams(); |
4616 aa_autoinitkbd(c, 0); | 4616 aa_autoinitkbd(c, 0); |
4617 return 0; } | 4617 return 0; } |
4618 EOF | 4618 EOF |
4619 _aa=no | 4619 _aa=no |
4620 for _ld_tmp in "-laa" ; do | 4620 for ld_tmp in "-laa" ; do |
4621 cc_check $_ld_tmp && libs_mplayer="$libs_mplayer $_ld_tmp" && _aa=yes && break | 4621 cc_check $ld_tmp && libs_mplayer="$libs_mplayer $ld_tmp" && _aa=yes && break |
4622 done | 4622 done |
4623 fi | 4623 fi |
4624 if test "$_aa" = yes ; then | 4624 if test "$_aa" = yes ; then |
4625 def_aa='#define CONFIG_AA 1' | 4625 def_aa='#define CONFIG_AA 1' |
4626 if cygwin ; then | 4626 if cygwin ; then |
4886 _gif=auto | 4886 _gif=auto |
4887 fi | 4887 fi |
4888 | 4888 |
4889 if test "$_gif" = auto ; then | 4889 if test "$_gif" = auto ; then |
4890 _gif=no | 4890 _gif=no |
4891 for _ld_gif in "-lungif" "-lgif" ; do | 4891 for ld_gif in "-lungif" "-lgif" ; do |
4892 statement_check gif_lib.h 'QuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $_ld_gif && _gif=yes && break | 4892 statement_check gif_lib.h 'QuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $ld_gif && _gif=yes && break |
4893 done | 4893 done |
4894 fi | 4894 fi |
4895 | 4895 |
4896 # If no library was found, and the user wants support forced, | 4896 # If no library was found, and the user wants support forced, |
4897 # then we force it on with libgif, as this is the safest | 4897 # then we force it on with libgif, as this is the safest |
4902 # have compiled x11 deps into libungif in the first place. ] ) | 4902 # have compiled x11 deps into libungif in the first place. ] ) |
4903 # </rant> | 4903 # </rant> |
4904 # --Joey | 4904 # --Joey |
4905 if test "$_force_gif" = yes && test "$_gif" = no ; then | 4905 if test "$_force_gif" = yes && test "$_gif" = no ; then |
4906 _gif=yes | 4906 _gif=yes |
4907 _ld_gif="-lgif" | 4907 ld_gif="-lgif" |
4908 fi | 4908 fi |
4909 | 4909 |
4910 if test "$_gif" = yes ; then | 4910 if test "$_gif" = yes ; then |
4911 def_gif='#define CONFIG_GIF 1' | 4911 def_gif='#define CONFIG_GIF 1' |
4912 codecmodules="gif $codecmodules" | 4912 codecmodules="gif $codecmodules" |
4913 vomodules="gif89a $vomodules" | 4913 vomodules="gif89a $vomodules" |
4914 res_comment="old version, some encoding functions disabled" | 4914 res_comment="old version, some encoding functions disabled" |
4915 def_gif_4='#undef CONFIG_GIF_4' | 4915 def_gif_4='#undef CONFIG_GIF_4' |
4916 extra_ldflags="$extra_ldflags $_ld_gif" | 4916 extra_ldflags="$extra_ldflags $ld_gif" |
4917 | 4917 |
4918 cat > $TMPC << EOF | 4918 cat > $TMPC << EOF |
4919 #include <signal.h> | 4919 #include <signal.h> |
4920 #include <stdio.h> | 4920 #include <stdio.h> |
4921 #include <stdlib.h> | 4921 #include <stdlib.h> |
4926 printf("EGifPutExtensionFirst is at address %p\n", EGifPutExtensionFirst); | 4926 printf("EGifPutExtensionFirst is at address %p\n", EGifPutExtensionFirst); |
4927 EGifSetGifVersion("89a"); // this will segfault a buggy gif lib. | 4927 EGifSetGifVersion("89a"); // this will segfault a buggy gif lib. |
4928 return 0; | 4928 return 0; |
4929 } | 4929 } |
4930 EOF | 4930 EOF |
4931 if cc_check "$_ld_gif" ; then | 4931 if cc_check "$ld_gif" ; then |
4932 def_gif_4='#define CONFIG_GIF_4 1' | 4932 def_gif_4='#define CONFIG_GIF_4 1' |
4933 res_comment="" | 4933 res_comment="" |
4934 fi | 4934 fi |
4935 else | 4935 else |
4936 def_gif='#undef CONFIG_GIF' | 4936 def_gif='#undef CONFIG_GIF' |
4952 GifFileType gif = {.UserData = NULL}; | 4952 GifFileType gif = {.UserData = NULL}; |
4953 printf("UserData is at address %p\n", gif.UserData); | 4953 printf("UserData is at address %p\n", gif.UserData); |
4954 return 0; | 4954 return 0; |
4955 } | 4955 } |
4956 EOF | 4956 EOF |
4957 if cc_check "$_ld_gif" ; then | 4957 if cc_check "$ld_gif" ; then |
4958 def_gif_tvt_hack='#undef CONFIG_GIF_TVT_HACK' | 4958 def_gif_tvt_hack='#undef CONFIG_GIF_TVT_HACK' |
4959 echores "disabled" | 4959 echores "disabled" |
4960 else | 4960 else |
4961 echores "enabled" | 4961 echores "enabled" |
4962 fi | 4962 fi |
4984 ################# | 4984 ################# |
4985 | 4985 |
4986 | 4986 |
4987 echocheck "SDL" | 4987 echocheck "SDL" |
4988 _inc_tmp="" | 4988 _inc_tmp="" |
4989 _ld_tmp="" | 4989 ld_tmp="" |
4990 def_sdl_sdl_h="#undef CONFIG_SDL_SDL_H" | 4990 def_sdl_sdl_h="#undef CONFIG_SDL_SDL_H" |
4991 if test -z "$_sdlconfig" ; then | 4991 if test -z "$_sdlconfig" ; then |
4992 if ( sdl-config --version ) >>"$TMPLOG" 2>&1 ; then | 4992 if ( sdl-config --version ) >>"$TMPLOG" 2>&1 ; then |
4993 _sdlconfig="sdl-config" | 4993 _sdlconfig="sdl-config" |
4994 elif ( sdl11-config --version ) >>"$TMPLOG" 2>&1 ; then | 4994 elif ( sdl11-config --version ) >>"$TMPLOG" 2>&1 ; then |
5012 SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE); | 5012 SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE); |
5013 return 0; | 5013 return 0; |
5014 } | 5014 } |
5015 EOF | 5015 EOF |
5016 _sdl=no | 5016 _sdl=no |
5017 for _ld_tmp in "-lSDL" "-lSDL -lpthread" "-lSDL -lwinmm -lgdi32" "-lSDL -lwinmm -lgdi32 -ldxguid" ; do | 5017 for ld_tmp in "-lSDL" "-lSDL -lpthread" "-lSDL -lwinmm -lgdi32" "-lSDL -lwinmm -lgdi32 -ldxguid" ; do |
5018 if cc_check -DCONFIG_SDL_SDL_H $_inc_tmp $_ld_tmp ; then | 5018 if cc_check -DCONFIG_SDL_SDL_H $_inc_tmp $ld_tmp ; then |
5019 _sdl=yes | 5019 _sdl=yes |
5020 def_sdl_sdl_h="#define CONFIG_SDL_SDL_H 1" | 5020 def_sdl_sdl_h="#define CONFIG_SDL_SDL_H 1" |
5021 break | 5021 break |
5022 fi | 5022 fi |
5023 done | 5023 done |
5024 if test "$_sdl" = no && "$_sdlconfig" --version >>"$TMPLOG" 2>&1 ; then | 5024 if test "$_sdl" = no && "$_sdlconfig" --version >>"$TMPLOG" 2>&1 ; then |
5025 res_comment="using $_sdlconfig" | 5025 res_comment="using $_sdlconfig" |
5026 if cygwin ; then | 5026 if cygwin ; then |
5027 _inc_tmp="$($_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/)" | 5027 _inc_tmp="$($_sdlconfig --cflags | cut -d " " -f 1,5,6 | sed s/no-cygwin/cygwin/)" |
5028 _ld_tmp="$($_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/)" | 5028 ld_tmp="$($_sdlconfig --libs | cut -d " " -f 1,4,6 | sed s/no-cygwin/cygwin/)" |
5029 elif mingw32 ; then | 5029 elif mingw32 ; then |
5030 _inc_tmp=$($_sdlconfig --cflags | sed s/-Dmain=SDL_main//) | 5030 _inc_tmp=$($_sdlconfig --cflags | sed s/-Dmain=SDL_main//) |
5031 _ld_tmp=$($_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//) | 5031 ld_tmp=$($_sdlconfig --libs | sed -e s/-mwindows// -e s/-lmingw32//) |
5032 else | 5032 else |
5033 _inc_tmp="$($_sdlconfig --cflags)" | 5033 _inc_tmp="$($_sdlconfig --cflags)" |
5034 _ld_tmp="$($_sdlconfig --libs)" | 5034 ld_tmp="$($_sdlconfig --libs)" |
5035 fi | 5035 fi |
5036 if cc_check $_inc_tmp $_ld_tmp >>"$TMPLOG" 2>&1 ; then | 5036 if cc_check $_inc_tmp $ld_tmp >>"$TMPLOG" 2>&1 ; then |
5037 _sdl=yes | 5037 _sdl=yes |
5038 elif cc_check $_inc_tmp $_ld_tmp -lstdc++ >>"$TMPLOG" 2>&1 ; then | 5038 elif cc_check $_inc_tmp $ld_tmp -lstdc++ >>"$TMPLOG" 2>&1 ; then |
5039 # HACK for BeOS/Haiku SDL | 5039 # HACK for BeOS/Haiku SDL |
5040 _ld_tmp="$_ld_tmp -lstdc++" | 5040 ld_tmp="$ld_tmp -lstdc++" |
5041 elif cc_check $_inc_tmp $ld_tmp -lstdc++ >>"$TMPLOG" 2>&1 ; then | |
5042 # HACK for BeOS/Haiku SDL | |
5043 ld_tmp="$ld_tmp -lstdc++" | |
5041 _sdl=yes | 5044 _sdl=yes |
5042 fi | 5045 fi |
5043 fi | 5046 fi |
5044 fi | 5047 fi |
5045 if test "$_sdl" = yes ; then | 5048 if test "$_sdl" = yes ; then |
5046 def_sdl='#define CONFIG_SDL 1' | 5049 def_sdl='#define CONFIG_SDL 1' |
5047 extra_cflags="$extra_cflags $_inc_tmp" | 5050 extra_cflags="$extra_cflags $_inc_tmp" |
5048 libs_mplayer="$libs_mplayer $_ld_tmp" | 5051 libs_mplayer="$libs_mplayer $ld_tmp" |
5049 vomodules="sdl $vomodules" | 5052 vomodules="sdl $vomodules" |
5050 aomodules="sdl $aomodules" | 5053 aomodules="sdl $aomodules" |
5051 else | 5054 else |
5052 def_sdl='#undef CONFIG_SDL' | 5055 def_sdl='#undef CONFIG_SDL' |
5053 novomodules="sdl $novomodules" | 5056 novomodules="sdl $novomodules" |
5093 glFinish(); | 5096 glFinish(); |
5094 return 0; | 5097 return 0; |
5095 } | 5098 } |
5096 EOF | 5099 EOF |
5097 _gl=no | 5100 _gl=no |
5098 for _ld_tmp in "" -lGL "-lGL -lXdamage" "-lGL $_ld_pthread" ; do | 5101 for ld_tmp in "" -lGL "-lGL -lXdamage" "-lGL $ld_pthread" ; do |
5099 if cc_check $_ld_tmp ; then | 5102 if cc_check $ld_tmp ; then |
5100 _gl=yes | 5103 _gl=yes |
5101 _gl_x11=yes | 5104 _gl_x11=yes |
5102 libs_mplayer="$libs_mplayer $_ld_tmp $_ld_dl" | 5105 libs_mplayer="$libs_mplayer $ld_tmp $ld_dl" |
5103 break | 5106 break |
5104 fi | 5107 fi |
5105 done | 5108 done |
5106 if cc_check -DGL_WIN32 -lopengl32 ; then | 5109 if cc_check -DGL_WIN32 -lopengl32 ; then |
5107 _gl=yes | 5110 _gl=yes |
5518 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 5)) | 5521 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 5)) |
5519 #error "alsa version != 0.5.x" | 5522 #error "alsa version != 0.5.x" |
5520 #endif | 5523 #endif |
5521 int main(void) { return 0; } | 5524 int main(void) { return 0; } |
5522 EOF | 5525 EOF |
5523 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.5.x' | 5526 cc_check -lasound $ld_dl $ld_pthread && _alsaver='0.5.x' |
5524 | 5527 |
5525 cat > $TMPC << EOF | 5528 cat > $TMPC << EOF |
5526 #include <sys/asoundlib.h> | 5529 #include <sys/asoundlib.h> |
5527 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) | 5530 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) |
5528 #error "alsa version != 0.9.x" | 5531 #error "alsa version != 0.9.x" |
5529 #endif | 5532 #endif |
5530 int main(void) { return 0; } | 5533 int main(void) { return 0; } |
5531 EOF | 5534 EOF |
5532 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-sys' | 5535 cc_check -lasound $ld_dl $ld_pthread && _alsaver='0.9.x-sys' |
5533 cat > $TMPC << EOF | 5536 cat > $TMPC << EOF |
5534 #include <alsa/asoundlib.h> | 5537 #include <alsa/asoundlib.h> |
5535 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) | 5538 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) |
5536 #error "alsa version != 0.9.x" | 5539 #error "alsa version != 0.9.x" |
5537 #endif | 5540 #endif |
5538 int main(void) { return 0; } | 5541 int main(void) { return 0; } |
5539 EOF | 5542 EOF |
5540 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-alsa' | 5543 cc_check -lasound $ld_dl $ld_pthread && _alsaver='0.9.x-alsa' |
5541 | 5544 |
5542 cat > $TMPC << EOF | 5545 cat > $TMPC << EOF |
5543 #include <sys/asoundlib.h> | 5546 #include <sys/asoundlib.h> |
5544 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) | 5547 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) |
5545 #error "alsa version != 1.0.x" | 5548 #error "alsa version != 1.0.x" |
5546 #endif | 5549 #endif |
5547 int main(void) { return 0; } | 5550 int main(void) { return 0; } |
5548 EOF | 5551 EOF |
5549 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-sys' | 5552 cc_check -lasound $ld_dl $ld_pthread && _alsaver='1.0.x-sys' |
5550 cat > $TMPC << EOF | 5553 cat > $TMPC << EOF |
5551 #include <alsa/asoundlib.h> | 5554 #include <alsa/asoundlib.h> |
5552 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) | 5555 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) |
5553 #error "alsa version != 1.0.x" | 5556 #error "alsa version != 1.0.x" |
5554 #endif | 5557 #endif |
5555 int main(void) { return 0; } | 5558 int main(void) { return 0; } |
5556 EOF | 5559 EOF |
5557 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-alsa' | 5560 cc_check -lasound $ld_dl $ld_pthread && _alsaver='1.0.x-alsa' |
5558 fi | 5561 fi |
5559 def_alsa='#undef CONFIG_ALSA' | 5562 def_alsa='#undef CONFIG_ALSA' |
5560 def_alsa5='#undef CONFIG_ALSA5' | 5563 def_alsa5='#undef CONFIG_ALSA5' |
5561 def_alsa9='#undef CONFIG_ALSA9' | 5564 def_alsa9='#undef CONFIG_ALSA9' |
5562 def_alsa1x='#undef CONFIG_ALSA1X' | 5565 def_alsa1x='#undef CONFIG_ALSA1X' |
5600 res_comment="using alsa 1.0.x and alsa/asoundlib.h" | 5603 res_comment="using alsa 1.0.x and alsa/asoundlib.h" |
5601 else | 5604 else |
5602 _alsa=no | 5605 _alsa=no |
5603 res_comment="unknown version" | 5606 res_comment="unknown version" |
5604 fi | 5607 fi |
5605 extra_ldflags="$extra_ldflags -lasound $_ld_dl $_ld_pthread" | 5608 extra_ldflags="$extra_ldflags -lasound $ld_dl $ld_pthread" |
5606 else | 5609 else |
5607 noaomodules="alsa $noaomodules" | 5610 noaomodules="alsa $noaomodules" |
5608 fi | 5611 fi |
5609 echores "$_alsa" | 5612 echores "$_alsa" |
5610 | 5613 |
5797 elif test "$_dvdread" = auto ; then | 5800 elif test "$_dvdread" = auto ; then |
5798 _dvdread=no | 5801 _dvdread=no |
5799 if test "$_dl" = yes; then | 5802 if test "$_dl" = yes; then |
5800 _dvdreadcflags=$($_dvdreadconfig --cflags 2> /dev/null) | 5803 _dvdreadcflags=$($_dvdreadconfig --cflags 2> /dev/null) |
5801 _dvdreadlibs=$($_dvdreadconfig --libs 2> /dev/null) | 5804 _dvdreadlibs=$($_dvdreadconfig --libs 2> /dev/null) |
5802 if header_check dvdread/dvd_reader.h $_dvdreadcflags $_dvdreadlibs $_ld_dl ; then | 5805 if header_check dvdread/dvd_reader.h $_dvdreadcflags $_dvdreadlibs $ld_dl ; then |
5803 _dvdread=yes | 5806 _dvdread=yes |
5804 extra_cflags="$extra_cflags $_dvdreadcflags" | 5807 extra_cflags="$extra_cflags $_dvdreadcflags" |
5805 extra_ldflags="$extra_ldflags $_dvdreadlibs" | 5808 extra_ldflags="$extra_ldflags $_dvdreadlibs" |
5806 res_comment="external" | 5809 res_comment="external" |
5807 fi | 5810 fi |
5883 printf("%s\n", CDIO_VERSION); | 5886 printf("%s\n", CDIO_VERSION); |
5884 return test == (void *)1; | 5887 return test == (void *)1; |
5885 } | 5888 } |
5886 EOF | 5889 EOF |
5887 _libcdio=no | 5890 _libcdio=no |
5888 for _ld_tmp in "" "-lwinmm" ; do | 5891 for ld_tmp in "" "-lwinmm" ; do |
5889 _ld_tmp="-lcdio_cdda -lcdio -lcdio_paranoia $_ld_tmp" | 5892 ld_tmp="-lcdio_cdda -lcdio -lcdio_paranoia $ld_tmp" |
5890 cc_check $_ld_tmp && _libcdio=yes && | 5893 cc_check $ld_tmp && _libcdio=yes && |
5891 extra_ldflags="$extra_ldflags $_ld_tmp" && break | 5894 extra_ldflags="$extra_ldflags $ld_tmp" && break |
5892 done | 5895 done |
5893 if test "$_libcdio" = no && $_pkg_config --exists libcdio_paranoia ; then | 5896 if test "$_libcdio" = no && $_pkg_config --exists libcdio_paranoia ; then |
5894 _inc_tmp=$($_pkg_config --cflags libcdio_paranoia) | 5897 _inc_tmp=$($_pkg_config --cflags libcdio_paranoia) |
5895 _ld_tmp=$($_pkg_config --libs libcdio_paranoia) | 5898 ld_tmp=$($_pkg_config --libs libcdio_paranoia) |
5896 cc_check $_inc_tmp $_ld_tmp && _libcdio=yes && | 5899 cc_check $_inc_tmp $ld_tmp && _libcdio=yes && |
5897 extra_ldflags="$extra_ldflags $_ld_tmp" && extra_cflags="$extra_cflags $_inc_tmp" | 5900 extra_ldflags="$extra_ldflags $ld_tmp" && extra_cflags="$extra_cflags $_inc_tmp" |
5898 fi | 5901 fi |
5899 fi | 5902 fi |
5900 if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then | 5903 if test "$_libcdio" = yes && test "$_cdparanoia" = no ; then |
5901 _cdda='yes' | 5904 _cdda='yes' |
5902 def_libcdio='#define CONFIG_LIBCDIO 1' | 5905 def_libcdio='#define CONFIG_LIBCDIO 1' |
5997 } | 6000 } |
5998 return 0; | 6001 return 0; |
5999 } | 6002 } |
6000 EOF | 6003 EOF |
6001 _fontconfig=no | 6004 _fontconfig=no |
6002 for _ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" "-lexpat -lfreetype -lz -liconv" ; do | 6005 for ld_tmp in "" "-lexpat -lfreetype" "-lexpat -lfreetype -lz" "-lexpat -lfreetype -lz -liconv" ; do |
6003 _ld_tmp="-lfontconfig $_ld_tmp" | 6006 ld_tmp="-lfontconfig $ld_tmp" |
6004 cc_check $_ld_tmp && _fontconfig=yes && extra_ldflags="$extra_ldflags $_ld_tmp" && break | 6007 cc_check $ld_tmp && _fontconfig=yes && extra_ldflags="$extra_ldflags $ld_tmp" && break |
6005 done | 6008 done |
6006 if test "$_fontconfig" = no && $_pkg_config --exists fontconfig ; then | 6009 if test "$_fontconfig" = no && $_pkg_config --exists fontconfig ; then |
6007 _inc_tmp=$($_pkg_config --cflags fontconfig) | 6010 _inc_tmp=$($_pkg_config --cflags fontconfig) |
6008 _ld_tmp=$($_pkg_config --libs fontconfig) | 6011 ld_tmp=$($_pkg_config --libs fontconfig) |
6009 cc_check $_inc_tmp $_ld_tmp && _fontconfig=yes && | 6012 cc_check $_inc_tmp $ld_tmp && _fontconfig=yes && |
6010 extra_ldflags="$extra_ldflags $_ld_tmp" && extra_cflags="$extra_cflags $_inc_tmp" | 6013 extra_ldflags="$extra_ldflags $ld_tmp" && extra_cflags="$extra_cflags $_inc_tmp" |
6011 fi | 6014 fi |
6012 fi | 6015 fi |
6013 if test "$_fontconfig" = yes ; then | 6016 if test "$_fontconfig" = yes ; then |
6014 def_fontconfig='#define CONFIG_FONTCONFIG 1' | 6017 def_fontconfig='#define CONFIG_FONTCONFIG 1' |
6015 else | 6018 else |
6074 echores "$_ass" | 6077 echores "$_ass" |
6075 | 6078 |
6076 | 6079 |
6077 echocheck "fribidi with charsets" | 6080 echocheck "fribidi with charsets" |
6078 _inc_tmp="" | 6081 _inc_tmp="" |
6079 _ld_tmp="" | 6082 ld_tmp="" |
6080 if test "$_fribidi" = auto ; then | 6083 if test "$_fribidi" = auto ; then |
6081 cat > $TMPC << EOF | 6084 cat > $TMPC << EOF |
6082 #include <stdlib.h> | 6085 #include <stdlib.h> |
6083 /* workaround for fribidi 0.10.4 and below */ | 6086 /* workaround for fribidi 0.10.4 and below */ |
6084 #define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8 | 6087 #define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8 |
6089 return 0; | 6092 return 0; |
6090 } | 6093 } |
6091 EOF | 6094 EOF |
6092 _fribidi=no | 6095 _fribidi=no |
6093 _inc_tmp="" | 6096 _inc_tmp="" |
6094 _ld_tmp="-lfribidi" | 6097 ld_tmp="-lfribidi" |
6095 cc_check $_inc_tmp $_ld_tmp && _fribidi=yes | 6098 cc_check $_inc_tmp $ld_tmp && _fribidi=yes |
6096 if $_pkg_config --exists fribidi > /dev/null 2>&1 && | 6099 if $_pkg_config --exists fribidi > /dev/null 2>&1 && |
6097 test "$_fribidi" = no ; then | 6100 test "$_fribidi" = no ; then |
6098 _inc_tmp="$($_pkg_config --cflags fribidi)" | 6101 _inc_tmp="$($_pkg_config --cflags fribidi)" |
6099 _ld_tmp="$($_pkg_config --libs fribidi)" | 6102 ld_tmp="$($_pkg_config --libs fribidi)" |
6100 cc_check $_inc_tmp $_ld_tmp && _fribidi=yes | 6103 cc_check $_inc_tmp $ld_tmp && _fribidi=yes |
6101 fi | 6104 fi |
6102 fi | 6105 fi |
6103 if test "$_fribidi" = yes ; then | 6106 if test "$_fribidi" = yes ; then |
6104 def_fribidi='#define CONFIG_FRIBIDI 1' | 6107 def_fribidi='#define CONFIG_FRIBIDI 1' |
6105 extra_cflags="$extra_cflags $_inc_tmp" | 6108 extra_cflags="$extra_cflags $_inc_tmp" |
6106 extra_ldflags="$extra_ldflags $_ld_tmp" | 6109 extra_ldflags="$extra_ldflags $ld_tmp" |
6107 else | 6110 else |
6108 def_fribidi='#undef CONFIG_FRIBIDI' | 6111 def_fribidi='#undef CONFIG_FRIBIDI' |
6109 fi | 6112 fi |
6110 echores "$_fribidi" | 6113 echores "$_fribidi" |
6111 | 6114 |
6356 theora_clear(&st); | 6359 theora_clear(&st); |
6357 | 6360 |
6358 return 0; | 6361 return 0; |
6359 } | 6362 } |
6360 EOF | 6363 EOF |
6361 _ld_theora=$($_pkg_config --silence-errors --libs theora) | 6364 ld_theora=$($_pkg_config --silence-errors --libs theora) |
6362 _inc_theora=$($_pkg_config --silence-errors --cflags theora) | 6365 _inc_theora=$($_pkg_config --silence-errors --cflags theora) |
6363 cc_check $_inc_theora $_ld_theora && extra_ldflags="$extra_ldflags $_ld_theora" && | 6366 cc_check $_inc_theora $ld_theora && extra_ldflags="$extra_ldflags $ld_theora" && |
6364 extra_cflags="$extra_cflags $_inc_theora" && _theora=yes | 6367 extra_cflags="$extra_cflags $_inc_theora" && _theora=yes |
6365 if test _theora = no; then | 6368 if test _theora = no; then |
6366 _ld_theora="-ltheora -logg" | 6369 ld_theora="-ltheora -logg" |
6367 cc_check $_ld_theora && extra_ldflags="$extra_ldflags $_ld_theora" && _theora=yes | 6370 cc_check $ld_theora && extra_ldflags="$extra_ldflags $ld_theora" && _theora=yes |
6368 fi | 6371 fi |
6369 if test "$_theora" = no && test "$_tremor_internal" = yes; then | 6372 if test "$_theora" = no && test "$_tremor_internal" = yes; then |
6370 _ld_theora=$($_pkg_config --silence-errors --libs theora) | 6373 ld_theora=$($_pkg_config --silence-errors --libs theora) |
6371 _inc_theora=$($_pkg_config --silence-errors --cflags theora) | 6374 _inc_theora=$($_pkg_config --silence-errors --cflags theora) |
6372 cc_check tremor/bitwise.c $_inc_theora $_ld_theora && | 6375 cc_check tremor/bitwise.c $_inc_theora $ld_theora && |
6373 extra_ldflags="$extra_ldflags $_ld_theora" && | 6376 extra_ldflags="$extra_ldflags $ld_theora" && |
6374 extra_cflags="$extra_cflags $_inc_theora" && _theora=yes | 6377 extra_cflags="$extra_cflags $_inc_theora" && _theora=yes |
6375 if test _theora = no; then | 6378 if test _theora = no; then |
6376 _ld_theora="-ltheora -logg" | 6379 ld_theora="-ltheora -logg" |
6377 cc_check tremor/bitwise.c $_ld_theora && | 6380 cc_check tremor/bitwise.c $ld_theora && |
6378 extra_ldflags="$extra_ldflags $_ld_theora" && _theora=yes | 6381 extra_ldflags="$extra_ldflags $ld_theora" && _theora=yes |
6379 fi | 6382 fi |
6380 fi | 6383 fi |
6381 fi | 6384 fi |
6382 if test "$_theora" = yes ; then | 6385 if test "$_theora" = yes ; then |
6383 def_theora='#define CONFIG_OGGTHEORA 1' | 6386 def_theora='#define CONFIG_OGGTHEORA 1' |
6384 codecmodules="libtheora $codecmodules" | 6387 codecmodules="libtheora $codecmodules" |
6385 # when --enable-theora is forced, we'd better provide a probably sane | 6388 # when --enable-theora is forced, we'd better provide a probably sane |
6386 # $_ld_theora than nothing | 6389 # $ld_theora than nothing |
6387 test -z "$_ld_theora" && extra_ldflags="$extra_ldflags -ltheora -logg" | 6390 test -z "$ld_theora" && extra_ldflags="$extra_ldflags -ltheora -logg" |
6388 else | 6391 else |
6389 def_theora='#undef CONFIG_OGGTHEORA' | 6392 def_theora='#undef CONFIG_OGGTHEORA' |
6390 nocodecmodules="libtheora $nocodecmodules" | 6393 nocodecmodules="libtheora $nocodecmodules" |
6391 fi | 6394 fi |
6392 echores "$_theora" | 6395 echores "$_theora" |
6476 | 6479 |
6477 | 6480 |
6478 echocheck "libdca support" | 6481 echocheck "libdca support" |
6479 if test "$_libdca" = auto ; then | 6482 if test "$_libdca" = auto ; then |
6480 _libdca=no | 6483 _libdca=no |
6481 for _ld_dca in -ldca -ldts ; do | 6484 for ld_dca in -ldca -ldts ; do |
6482 statement_check_broken stdint.h dts.h 'dts_init(0)' $_ld_dca && | 6485 statement_check_broken stdint.h dts.h 'dts_init(0)' $ld_dca && |
6483 extra_ldflags="$extra_ldflags $_ld_dca" && _libdca=yes && break | 6486 extra_ldflags="$extra_ldflags $ld_dca" && _libdca=yes && break |
6484 done | 6487 done |
6485 fi | 6488 fi |
6486 if test "$_libdca" = yes ; then | 6489 if test "$_libdca" = yes ; then |
6487 def_libdca='#define CONFIG_LIBDCA 1' | 6490 def_libdca='#define CONFIG_LIBDCA 1' |
6488 codecmodules="libdca $codecmodules" | 6491 codecmodules="libdca $codecmodules" |
6525 #include <inttypes.h> | 6528 #include <inttypes.h> |
6526 #include <faac.h> | 6529 #include <faac.h> |
6527 int main(void) { unsigned long x, y; faacEncOpen(48000, 2, &x, &y); return 0; } | 6530 int main(void) { unsigned long x, y; faacEncOpen(48000, 2, &x, &y); return 0; } |
6528 EOF | 6531 EOF |
6529 _faac=no | 6532 _faac=no |
6530 for _ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do | 6533 for ld_faac in "-lfaac" "-lfaac -lmp4v2 -lstdc++" ; do |
6531 cc_check $_ld_faac && libs_mencoder="$libs_mencoder $_ld_faac" && _faac=yes && break | 6534 cc_check $ld_faac && libs_mencoder="$libs_mencoder $ld_faac" && _faac=yes && break |
6532 done | 6535 done |
6533 fi | 6536 fi |
6534 if test "$_faac" = yes ; then | 6537 if test "$_faac" = yes ; then |
6535 def_faac="#define CONFIG_FAAC 1" | 6538 def_faac="#define CONFIG_FAAC 1" |
6536 test "$_faac_lavc" = auto && _faac_lavc=yes | 6539 test "$_faac_lavc" = auto && _faac_lavc=yes |
6537 if test "$_faac_lavc" = yes ; then | 6540 if test "$_faac_lavc" = yes ; then |
6538 def_faac_lavc="#define CONFIG_LIBFAAC 1" | 6541 def_faac_lavc="#define CONFIG_LIBFAAC 1" |
6539 libs_mplayer="$libs_mplayer $_ld_faac" | 6542 libs_mplayer="$libs_mplayer $ld_faac" |
6540 libavencoders="$libavencoders LIBFAAC_ENCODER" | 6543 libavencoders="$libavencoders LIBFAAC_ENCODER" |
6541 fi | 6544 fi |
6542 codecmodules="faac $codecmodules" | 6545 codecmodules="faac $codecmodules" |
6543 else | 6546 else |
6544 _faac_lavc=no | 6547 _faac_lavc=no |
6603 } | 6606 } |
6604 EOF | 6607 EOF |
6605 _libbs2b=no | 6608 _libbs2b=no |
6606 if $_pkg_config --exists libbs2b ; then | 6609 if $_pkg_config --exists libbs2b ; then |
6607 _inc_tmp=$($_pkg_config --cflags libbs2b) | 6610 _inc_tmp=$($_pkg_config --cflags libbs2b) |
6608 _ld_tmp=$($_pkg_config --libs libbs2b) | 6611 ld_tmp=$($_pkg_config --libs libbs2b) |
6609 cc_check $_inc_tmp $_ld_tmp && extra_ldflags="$extra_ldflags $_ld_tmp" && | 6612 cc_check $_inc_tmp $ld_tmp && extra_ldflags="$extra_ldflags $ld_tmp" && |
6610 extra_cflags="$extra_cflags $_inc_tmp" && _libbs2b=yes | 6613 extra_cflags="$extra_cflags $_inc_tmp" && _libbs2b=yes |
6611 else | 6614 else |
6612 for _inc_tmp in "" -I/usr/include/bs2b -I/usr/local/include \ | 6615 for _inc_tmp in "" -I/usr/include/bs2b -I/usr/local/include \ |
6613 -I/usr/local/include/bs2b ; do | 6616 -I/usr/local/include/bs2b ; do |
6614 if cc_check $_inc_tmp -lbs2b ; then | 6617 if cc_check $_inc_tmp -lbs2b ; then |
6754 | 6757 |
6755 _live=no | 6758 _live=no |
6756 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 | 6759 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 |
6757 _livelibdir=$(echo $I| sed s/-I//) | 6760 _livelibdir=$(echo $I| sed s/-I//) |
6758 test -e "$_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a" && | 6761 test -e "$_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a" && |
6759 cxx_check $I/liveMedia/include $I/UsageEnvironment/include $I/BasicUsageEnvironment/include $I/groupsock/include $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a $_livelibdir/UsageEnvironment/libUsageEnvironment.a $_livelibdir/groupsock/libgroupsock.a $_ld_sock && | 6762 cxx_check $I/liveMedia/include $I/UsageEnvironment/include $I/BasicUsageEnvironment/include $I/groupsock/include $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a $_livelibdir/UsageEnvironment/libUsageEnvironment.a $_livelibdir/groupsock/libgroupsock.a $ld_sock && |
6760 extra_ldflags="$_livelibdir/liveMedia/libliveMedia.a \ | 6763 extra_ldflags="$_livelibdir/liveMedia/libliveMedia.a \ |
6761 $_livelibdir/UsageEnvironment/libUsageEnvironment.a \ | 6764 $_livelibdir/UsageEnvironment/libUsageEnvironment.a \ |
6762 $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a \ | 6765 $_livelibdir/BasicUsageEnvironment/libBasicUsageEnvironment.a \ |
6763 $_livelibdir/groupsock/libgroupsock.a \ | 6766 $_livelibdir/groupsock/libgroupsock.a \ |
6764 $extra_ldflags -lstdc++ $_ld_sock" \ | 6767 $extra_ldflags -lstdc++ $ld_sock" \ |
6765 extra_cxxflags="-I$_livelibdir/liveMedia/include \ | 6768 extra_cxxflags="-I$_livelibdir/liveMedia/include \ |
6766 -I$_livelibdir/UsageEnvironment/include \ | 6769 -I$_livelibdir/UsageEnvironment/include \ |
6767 -I$_livelibdir/BasicUsageEnvironment/include \ | 6770 -I$_livelibdir/BasicUsageEnvironment/include \ |
6768 -I$_livelibdir/groupsock/include" && | 6771 -I$_livelibdir/groupsock/include" && |
6769 _live=yes && break | 6772 _live=yes && break |
6797 if test "$_librtmp" = auto && test "$networking" = yes ; then | 6800 if test "$_librtmp" = auto && test "$networking" = yes ; then |
6798 statement_check librtmp/rtmp.h 'RTMP_Socket(NULL)' -lrtmp && | 6801 statement_check librtmp/rtmp.h 'RTMP_Socket(NULL)' -lrtmp && |
6799 _librtmp=yes && extra_ldflags="$extra_ldflags -lrtmp" | 6802 _librtmp=yes && extra_ldflags="$extra_ldflags -lrtmp" |
6800 if test "$_librtmp" != yes && $_pkg_config --exists librtmp ; then | 6803 if test "$_librtmp" != yes && $_pkg_config --exists librtmp ; then |
6801 _inc_tmp=$($_pkg_config --cflags librtmp) | 6804 _inc_tmp=$($_pkg_config --cflags librtmp) |
6802 _ld_tmp=$($_pkg_config --libs librtmp) | 6805 ld_tmp=$($_pkg_config --libs librtmp) |
6803 cc_check $_inc_tmp $_ld_tmp && _librtmp=yes && | 6806 cc_check $_inc_tmp $ld_tmp && _librtmp=yes && |
6804 extra_ldflags="$extra_ldflags $_ld_tmp" && | 6807 extra_ldflags="$extra_ldflags $ld_tmp" && |
6805 extra_cflags="$extra_cflags $_inc_tmp" | 6808 extra_cflags="$extra_cflags $_inc_tmp" |
6806 fi | 6809 fi |
6807 fi | 6810 fi |
6808 if test "$_librtmp" = yes && test "$networking" = yes; then | 6811 if test "$_librtmp" = yes && test "$networking" = yes; then |
6809 nolibrtmp=no | 6812 nolibrtmp=no |
6826 test -d ffmpeg/libavutil && ffmpeg_a=yes && ffmpeg=yes | 6829 test -d ffmpeg/libavutil && ffmpeg_a=yes && ffmpeg=yes |
6827 elif test "$ffmpeg_so" = auto ; then | 6830 elif test "$ffmpeg_so" = auto ; then |
6828 ffmpeg_so=no | 6831 ffmpeg_so=no |
6829 if $_pkg_config --exists libavutil ; then | 6832 if $_pkg_config --exists libavutil ; then |
6830 inc_ffmpeg=$($_pkg_config --cflags libpostproc libswscale libavformat libavcodec libavutil) | 6833 inc_ffmpeg=$($_pkg_config --cflags libpostproc libswscale libavformat libavcodec libavutil) |
6831 _ld_tmp=$($_pkg_config --libs libpostproc libswscale libavformat libavcodec libavutil) | 6834 ld_tmp=$($_pkg_config --libs libpostproc libswscale libavformat libavcodec libavutil) |
6832 header_check libavutil/avutil.h $inc_ffmpeg $_ld_tmp && | 6835 header_check libavutil/avutil.h $inc_ffmpeg $ld_tmp && |
6833 extra_ldflags="$extra_ldflags $_ld_tmp" && ffmpeg_so=yes && ffmpeg=yes | 6836 extra_ldflags="$extra_ldflags $ld_tmp" && ffmpeg_so=yes && ffmpeg=yes |
6834 elif header_check libavutil/avutil.h -lpostproc -lswscale -lavformat -lavcodec -lavutil ; then | 6837 elif header_check libavutil/avutil.h -lpostproc -lswscale -lavformat -lavcodec -lavutil ; then |
6835 extra_ldflags="$extra_ldflags -lpostproc -lswscale -lavformat -lavcodec -lavutil" | 6838 extra_ldflags="$extra_ldflags -lpostproc -lswscale -lavformat -lavcodec -lavutil" |
6836 ffmpeg_so=yes | 6839 ffmpeg_so=yes |
6837 ffmpeg=yes | 6840 ffmpeg=yes |
6838 fi | 6841 fi |
6906 echores "$_libopencore_amrwb" | 6909 echores "$_libopencore_amrwb" |
6907 | 6910 |
6908 echocheck "libdv-0.9.5+" | 6911 echocheck "libdv-0.9.5+" |
6909 if test "$_libdv" = auto ; then | 6912 if test "$_libdv" = auto ; then |
6910 _libdv=no | 6913 _libdv=no |
6911 statement_check libdv/dv.h 'dv_encoder_new(1, 1, 1)' -ldv $_ld_pthread && _libdv=yes | 6914 statement_check libdv/dv.h 'dv_encoder_new(1, 1, 1)' -ldv $ld_pthread && _libdv=yes |
6912 fi | 6915 fi |
6913 if test "$_libdv" = yes ; then | 6916 if test "$_libdv" = yes ; then |
6914 def_libdv='#define CONFIG_LIBDV095 1' | 6917 def_libdv='#define CONFIG_LIBDV095 1' |
6915 extra_ldflags="$extra_ldflags -ldv" | 6918 extra_ldflags="$extra_ldflags -ldv" |
6916 codecmodules="libdv $codecmodules" | 6919 codecmodules="libdv $codecmodules" |
6938 echores "$crystalhd" | 6941 echores "$crystalhd" |
6939 | 6942 |
6940 echocheck "Xvid" | 6943 echocheck "Xvid" |
6941 if test "$_xvid" = auto ; then | 6944 if test "$_xvid" = auto ; then |
6942 _xvid=no | 6945 _xvid=no |
6943 for _ld_tmp in "-lxvidcore" "-lxvidcore $_ld_pthread" ; do | 6946 for ld_tmp in "-lxvidcore" "-lxvidcore $ld_pthread" ; do |
6944 statement_check xvid.h 'xvid_global(0, 0, 0, 0)' $_ld_tmp && | 6947 statement_check xvid.h 'xvid_global(0, 0, 0, 0)' $ld_tmp && |
6945 extra_ldflags="$extra_ldflags $_ld_tmp" && _xvid=yes && break | 6948 extra_ldflags="$extra_ldflags $ld_tmp" && _xvid=yes && break |
6946 done | 6949 done |
6947 fi | 6950 fi |
6948 | 6951 |
6949 if test "$_xvid" = yes ; then | 6952 if test "$_xvid" = yes ; then |
6950 def_xvid='#define CONFIG_XVID4 1' | 6953 def_xvid='#define CONFIG_XVID4 1' |
6978 #error We do not support old versions of x264. Get the latest from git. | 6981 #error We do not support old versions of x264. Get the latest from git. |
6979 #endif | 6982 #endif |
6980 int main(void) { x264_encoder_open((void*)0); return 0; } | 6983 int main(void) { x264_encoder_open((void*)0); return 0; } |
6981 EOF | 6984 EOF |
6982 _x264=no | 6985 _x264=no |
6983 for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread" ; do | 6986 for ld_x264 in "-lx264 $ld_pthread" "-lx264 $ld_pthread" ; do |
6984 cc_check $_ld_x264 && libs_mencoder="$libs_mencoder $_ld_x264" && _x264=yes && break | 6987 cc_check $ld_x264 && libs_mencoder="$libs_mencoder $ld_x264" && _x264=yes && break |
6985 done | 6988 done |
6986 fi | 6989 fi |
6987 | 6990 |
6988 if test "$_x264" = yes ; then | 6991 if test "$_x264" = yes ; then |
6989 def_x264='#define CONFIG_X264 1' | 6992 def_x264='#define CONFIG_X264 1' |
6990 codecmodules="x264 $codecmodules" | 6993 codecmodules="x264 $codecmodules" |
6991 test "$_x264_lavc" = auto && _x264_lavc=yes | 6994 test "$_x264_lavc" = auto && _x264_lavc=yes |
6992 if test "$_x264_lavc" = yes ; then | 6995 if test "$_x264_lavc" = yes ; then |
6993 def_x264_lavc='#define CONFIG_LIBX264 1' | 6996 def_x264_lavc='#define CONFIG_LIBX264 1' |
6994 libs_mplayer="$libs_mplayer $_ld_x264" | 6997 libs_mplayer="$libs_mplayer $ld_x264" |
6995 libavencoders="$libavencoders LIBX264_ENCODER" | 6998 libavencoders="$libavencoders LIBX264_ENCODER" |
6996 fi | 6999 fi |
6997 else | 7000 else |
6998 _x264_lavc=no | 7001 _x264_lavc=no |
6999 def_x264='#undef CONFIG_X264' | 7002 def_x264='#undef CONFIG_X264' |
7024 return 0; | 7027 return 0; |
7025 } | 7028 } |
7026 EOF | 7029 EOF |
7027 if $_pkg_config --exists dirac ; then | 7030 if $_pkg_config --exists dirac ; then |
7028 _inc_dirac=$($_pkg_config --silence-errors --cflags dirac) | 7031 _inc_dirac=$($_pkg_config --silence-errors --cflags dirac) |
7029 _ld_dirac=$($_pkg_config --silence-errors --libs dirac) | 7032 ld_dirac=$($_pkg_config --silence-errors --libs dirac) |
7030 cc_check $_inc_dirac $_ld_dirac && | 7033 cc_check $_inc_dirac $ld_dirac && |
7031 _libdirac_lavc=yes && | 7034 _libdirac_lavc=yes && |
7032 extra_cflags="$extra_cflags $_inc_dirac" && | 7035 extra_cflags="$extra_cflags $_inc_dirac" && |
7033 extra_ldflags="$extra_ldflags $_ld_dirac" | 7036 extra_ldflags="$extra_ldflags $ld_dirac" |
7034 fi | 7037 fi |
7035 fi | 7038 fi |
7036 fi | 7039 fi |
7037 if test "$_libdirac_lavc" = yes ; then | 7040 if test "$_libdirac_lavc" = yes ; then |
7038 def_libdirac_lavc='#define CONFIG_LIBDIRAC 1' | 7041 def_libdirac_lavc='#define CONFIG_LIBDIRAC 1' |
7056 #include <schroedinger/schro.h> | 7059 #include <schroedinger/schro.h> |
7057 int main(void) { schro_init(); return SCHRO_ENCODER_RATE_CONTROL_CONSTANT_QUALITY; } | 7060 int main(void) { schro_init(); return SCHRO_ENCODER_RATE_CONTROL_CONSTANT_QUALITY; } |
7058 EOF | 7061 EOF |
7059 if $_pkg_config --exists schroedinger-1.0 ; then | 7062 if $_pkg_config --exists schroedinger-1.0 ; then |
7060 _inc_schroedinger=$($_pkg_config --silence-errors --cflags schroedinger-1.0) | 7063 _inc_schroedinger=$($_pkg_config --silence-errors --cflags schroedinger-1.0) |
7061 _ld_schroedinger=$($_pkg_config --silence-errors --libs schroedinger-1.0) | 7064 ld_schroedinger=$($_pkg_config --silence-errors --libs schroedinger-1.0) |
7062 cc_check $_inc_schroedinger $_ld_schroedinger && | 7065 cc_check $_inc_schroedinger $ld_schroedinger && |
7063 _libschroedinger_lavc=yes && | 7066 _libschroedinger_lavc=yes && |
7064 extra_cflags="$extra_cflags $_inc_schroedinger" && | 7067 extra_cflags="$extra_cflags $_inc_schroedinger" && |
7065 extra_ldflags="$extra_ldflags $_ld_schroedinger" | 7068 extra_ldflags="$extra_ldflags $ld_schroedinger" |
7066 fi | 7069 fi |
7067 fi | 7070 fi |
7068 fi | 7071 fi |
7069 if test "$_libschroedinger_lavc" = yes ; then | 7072 if test "$_libschroedinger_lavc" = yes ; then |
7070 def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 1' | 7073 def_libschroedinger_lavc='#define CONFIG_LIBSCHROEDINGER 1' |
7155 statement_check lame/lame.h 'lame_set_VBR_quality(NULL, 0)' -lmp3lame && | 7158 statement_check lame/lame.h 'lame_set_VBR_quality(NULL, 0)' -lmp3lame && |
7156 _mp3lame=yes && _mp3lame_lavc=yes | 7159 _mp3lame=yes && _mp3lame_lavc=yes |
7157 fi | 7160 fi |
7158 if test "$_mp3lame" = yes ; then | 7161 if test "$_mp3lame" = yes ; then |
7159 def_mp3lame="#define CONFIG_MP3LAME 1" | 7162 def_mp3lame="#define CONFIG_MP3LAME 1" |
7160 _ld_mp3lame=-lmp3lame | 7163 ld_mp3lame=-lmp3lame |
7161 libs_mencoder="$libs_mencoder $_ld_mp3lame" | 7164 libs_mencoder="$libs_mencoder $ld_mp3lame" |
7162 statement_check lame/lame.h 'lame_set_preset(NULL, STANDARD_FAST)' $_ld_mp3lame && def_mp3lame_preset="#define CONFIG_MP3LAME_PRESET 1" | 7165 statement_check lame/lame.h 'lame_set_preset(NULL, STANDARD_FAST)' $ld_mp3lame && def_mp3lame_preset="#define CONFIG_MP3LAME_PRESET 1" |
7163 statement_check lame/lame.h 'lame_set_preset(NULL, MEDIUM_FAST)' $_ld_mp3lame && def_mp3lame_preset_medium="#define CONFIG_MP3LAME_PRESET_MEDIUM 1" | 7166 statement_check lame/lame.h 'lame_set_preset(NULL, MEDIUM_FAST)' $ld_mp3lame && def_mp3lame_preset_medium="#define CONFIG_MP3LAME_PRESET_MEDIUM 1" |
7164 if test "$_mp3lame_lavc" = yes ; then | 7167 if test "$_mp3lame_lavc" = yes ; then |
7165 def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 1" | 7168 def_mp3lame_lavc="#define CONFIG_LIBMP3LAME 1" |
7166 libavencoders="$libavencoders LIBMP3LAME_ENCODER" | 7169 libavencoders="$libavencoders LIBMP3LAME_ENCODER" |
7167 libs_mplayer="$libs_mplayer $_ld_mp3lame" | 7170 libs_mplayer="$libs_mplayer $ld_mp3lame" |
7168 fi | 7171 fi |
7169 else | 7172 else |
7170 _mp3lame_lavc=no | 7173 _mp3lame_lavc=no |
7171 fi | 7174 fi |
7172 res_comment="in FFmpeg: $_mp3lame_lavc" | 7175 res_comment="in FFmpeg: $_mp3lame_lavc" |
7690 fi | 7693 fi |
7691 | 7694 |
7692 | 7695 |
7693 # Dynamic linking flags | 7696 # Dynamic linking flags |
7694 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly) | 7697 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly) |
7695 _ld_dl_dynamic='' | 7698 ld_dl_dynamic='' |
7696 freebsd || netbsd || openbsd || dragonfly || bsdos && _ld_dl_dynamic='-rdynamic' | 7699 freebsd || netbsd || openbsd || dragonfly || bsdos && ld_dl_dynamic='-rdynamic' |
7697 if test "$_real" = yes || test "$_xanim" = yes && ! win32 && ! qnx && ! darwin && ! os2 && ! sunos; then | 7700 if test "$_real" = yes || test "$_xanim" = yes && ! win32 && ! qnx && ! darwin && ! os2 && ! sunos; then |
7698 _ld_dl_dynamic='-rdynamic' | 7701 ld_dl_dynamic='-rdynamic' |
7699 fi | 7702 fi |
7700 | 7703 |
7701 extra_ldflags="$extra_ldflags $_ld_pthread $_ld_dl $_ld_dl_dynamic" | 7704 extra_ldflags="$extra_ldflags $ld_pthread $ld_dl $ld_dl_dynamic" |
7702 bsdos && extra_ldflags="$extra_ldflags -ldvd" | 7705 bsdos && extra_ldflags="$extra_ldflags -ldvd" |
7703 (netbsd || openbsd) && x86_32 && extra_ldflags="$extra_ldflags -li386" | 7706 (netbsd || openbsd) && x86_32 && extra_ldflags="$extra_ldflags -li386" |
7704 | 7707 |
7705 def_debug='#undef MP_DEBUG' | 7708 def_debug='#undef MP_DEBUG' |
7706 test "$_debug" != "" && def_debug='#define MP_DEBUG 1' | 7709 test "$_debug" != "" && def_debug='#define MP_DEBUG 1' |
7771 if os2 ; then | 7774 if os2 ; then |
7772 extra_ldflags="$extra_ldflags -Zomf -Zstack 16384 -Zbin-files -Zargs-wild" | 7775 extra_ldflags="$extra_ldflags -Zomf -Zstack 16384 -Zbin-files -Zargs-wild" |
7773 fi | 7776 fi |
7774 | 7777 |
7775 # linker paths should be the same for mencoder and mplayer | 7778 # linker paths should be the same for mencoder and mplayer |
7776 _ld_tmp="" | 7779 ld_tmp="" |
7777 for I in $libs_mplayer ; do | 7780 for I in $libs_mplayer ; do |
7778 _tmp=$(echo $I | sed -e 's/^-L.*$//') | 7781 _tmp=$(echo $I | sed -e 's/^-L.*$//') |
7779 if test -z "$_tmp" ; then | 7782 if test -z "$_tmp" ; then |
7780 extra_ldflags="$extra_ldflags $I" | 7783 extra_ldflags="$extra_ldflags $I" |
7781 else | 7784 else |
7782 _ld_tmp="$_ld_tmp $I" | 7785 ld_tmp="$ld_tmp $I" |
7783 fi | 7786 fi |
7784 done | 7787 done |
7785 libs_mplayer=$_ld_tmp | 7788 libs_mplayer=$ld_tmp |
7786 | 7789 |
7787 | 7790 |
7788 ############################################################################# | 7791 ############################################################################# |
7789 | 7792 |
7790 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" | 7793 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" |
7809 fi | 7812 fi |
7810 if test "$_dvdnav" = auto ; then | 7813 if test "$_dvdnav" = auto ; then |
7811 _dvdnav=no | 7814 _dvdnav=no |
7812 _dvdnavdir=$($_dvdnavconfig --cflags) | 7815 _dvdnavdir=$($_dvdnavconfig --cflags) |
7813 _dvdnavlibs=$($_dvdnavconfig --libs) | 7816 _dvdnavlibs=$($_dvdnavconfig --libs) |
7814 statement_check_broken stdint.h dvdnav/dvdnav.h 'dvdnav_t *dvd = 0' $_dvdnavdir $_dvdnavlibs $_ld_dl $_ld_pthread && _dvdnav=yes | 7817 statement_check_broken stdint.h dvdnav/dvdnav.h 'dvdnav_t *dvd = 0' $_dvdnavdir $_dvdnavlibs $ld_dl $ld_pthread && _dvdnav=yes |
7815 fi | 7818 fi |
7816 if test "$_dvdnav" = yes ; then | 7819 if test "$_dvdnav" = yes ; then |
7817 def_dvdnav='#define CONFIG_DVDNAV 1' | 7820 def_dvdnav='#define CONFIG_DVDNAV 1' |
7818 if test "$dvdnav_internal" = yes ; then | 7821 if test "$dvdnav_internal" = yes ; then |
7819 cflags_libdvdnav="-Ilibdvdnav" | 7822 cflags_libdvdnav="-Ilibdvdnav" |
7886 CFLAGS_NO_OMIT_LEAF_FRAME_POINTER = $cflags_no_omit_leaf_frame_pointer | 7889 CFLAGS_NO_OMIT_LEAF_FRAME_POINTER = $cflags_no_omit_leaf_frame_pointer |
7887 CFLAGS_STACKREALIGN = $cflags_stackrealign | 7890 CFLAGS_STACKREALIGN = $cflags_stackrealign |
7888 CFLAGS_SVGALIB_HELPER = $cflags_svgalib_helper | 7891 CFLAGS_SVGALIB_HELPER = $cflags_svgalib_helper |
7889 CFLAGS_TREMOR_LOW = $cflags_tremor_low | 7892 CFLAGS_TREMOR_LOW = $cflags_tremor_low |
7890 | 7893 |
7891 EXTRALIBS = $extra_ldflags $_ld_static $extra_libs | 7894 EXTRALIBS = $extra_ldflags $ld_static $extra_libs |
7892 EXTRALIBS_MPLAYER = $libs_mplayer | 7895 EXTRALIBS_MPLAYER = $libs_mplayer |
7893 EXTRALIBS_MENCODER = $libs_mencoder | 7896 EXTRALIBS_MENCODER = $libs_mencoder |
7894 | 7897 |
7895 GETCH = $_getch | 7898 GETCH = $_getch |
7896 HELP_FILE = $_mp_help | 7899 HELP_FILE = $_mp_help |