Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: patched-ffmpeg-mt/configure

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # FFmpeg configure script 3 # FFmpeg configure script
4 # 4 #
5 # Copyright (c) 2000-2002 Fabrice Bellard 5 # Copyright (c) 2000-2002 Fabrice Bellard
6 # Copyright (c) 2005-2008 Diego Biurrun 6 # Copyright (c) 2005-2008 Diego Biurrun
7 # Copyright (c) 2005-2008 Mans Rullgard 7 # Copyright (c) 2005-2008 Mans Rullgard
8 # 8 #
9 9
10 # Prevent locale nonsense from breaking basic text processing. 10 # Prevent locale nonsense from breaking basic text processing.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 --disable-static do not build static libraries [no] 75 --disable-static do not build static libraries [no]
76 --enable-shared build shared libraries [no] 76 --enable-shared build shared libraries [no]
77 --enable-gpl allow use of GPL code, the resulting libs 77 --enable-gpl allow use of GPL code, the resulting libs
78 and binaries will be under GPL [no] 78 and binaries will be under GPL [no]
79 --enable-version3 upgrade (L)GPL to version 3 [no] 79 --enable-version3 upgrade (L)GPL to version 3 [no]
80 --enable-nonfree allow use of nonfree code, the resulting libs 80 --enable-nonfree allow use of nonfree code, the resulting libs
81 and binaries will be unredistributable [no] 81 and binaries will be unredistributable [no]
82 --disable-doc do not build documentation 82 --disable-doc do not build documentation
83 --disable-ffmpeg disable ffmpeg build 83 --disable-ffmpeg disable ffmpeg build
84 --disable-ffplay disable ffplay build 84 --disable-ffplay disable ffplay build
85 --disable-ffprobe disable ffprobe build
85 --disable-ffserver disable ffserver build 86 --disable-ffserver disable ffserver build
86 --disable-avdevice disable libavdevice build 87 --disable-avdevice disable libavdevice build
87 --disable-avcodec disable libavcodec build 88 --disable-avcodec disable libavcodec build
88 --disable-avformat disable libavformat build 89 --disable-avformat disable libavformat build
89 --disable-swscale disable libswscale build 90 --disable-swscale disable libswscale build
90 --enable-postproc enable GPLed postprocessing support [no] 91 --enable-postproc enable GPLed postprocessing support [no]
91 --enable-avfilter video filter support [no] 92 --enable-avfilter video filter support [no]
92 --enable-avfilter-lavf video filters dependent on avformat [no] 93 --enable-avfilter-lavf video filters dependent on avformat [no]
93 --enable-beosthreads use BeOS threads [no] 94 --enable-beosthreads use BeOS threads [no]
94 --enable-os2threads use OS/2 threads [no] 95 --enable-os2threads use OS/2 threads [no]
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 log check_func "$@" 662 log check_func "$@"
662 func=$1 663 func=$1
663 shift 664 shift
664 disable $func 665 disable $func
665 check_ld "$@" <<EOF && enable $func 666 check_ld "$@" <<EOF && enable $func
666 extern int $func(); 667 extern int $func();
667 int main(void){ $func(); } 668 int main(void){ $func(); }
668 EOF 669 EOF
669 } 670 }
670 671
672 check_mathfunc(){
673 log check_mathfunc "$@"
674 func=$1
675 shift
676 disable $func
677 check_ld "$@" <<EOF && enable $func
678 #include <math.h>
679 float foo(float f) { return $func(f); }
680 int main(void){ return 0; }
681 EOF
682 }
683
671 check_func_headers(){ 684 check_func_headers(){
672 log check_func_headers "$@" 685 log check_func_headers "$@"
673 headers=$1 686 headers=$1
674 func=$2 687 func=$2
675 shift 2 688 shift 2
676 disable $func 689 disable $func
677 incs="" 690 incs=""
678 for hdr in $headers; do 691 for hdr in $headers; do
679 incs="$incs 692 incs="$incs
680 #include <$hdr>" 693 #include <$hdr>"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 avformat 884 avformat
872 avisynth 885 avisynth
873 beos_netserver 886 beos_netserver
874 bzlib 887 bzlib
875 dct 888 dct
876 doc 889 doc
877 dxva2 890 dxva2
878 fastdiv 891 fastdiv
879 ffmpeg 892 ffmpeg
880 ffplay 893 ffplay
894 ffprobe
881 ffserver 895 ffserver
882 fft 896 fft
883 golomb 897 golomb
884 gpl 898 gpl
885 gprof 899 gprof
886 gray 900 gray
887 hardcoded_tables 901 hardcoded_tables
888 libdc1394 902 libdc1394
889 libdirac 903 libdirac
890 libfaac 904 libfaac
891 libfaad 905 libfaad
892 libfaadbin 906 libfaadbin
893 libgsm 907 libgsm
894 libmp3lame 908 libmp3lame
895 libnut 909 libnut
896 libopencore_amrnb 910 libopencore_amrnb
897 libopencore_amrwb 911 libopencore_amrwb
898 libopenjpeg 912 libopenjpeg
899 libschroedinger 913 libschroedinger
900 libspeex 914 libspeex
901 libtheora 915 libtheora
902 libvorbis 916 libvorbis
903 libx264 917 libx264
904 libxvid 918 libxvid
905 lpc 919 lpc
920 lsp
906 mdct 921 mdct
907 memalign_hack 922 memalign_hack
908 mlib 923 mlib
909 mpegaudio_hp 924 mpegaudio_hp
910 network 925 network
911 nonfree 926 nonfree
912 pic 927 pic
913 postproc 928 postproc
914 powerpc_perf 929 powerpc_perf
915 rdft 930 rdft
(...skipping 29 matching lines...) Expand all
945 m68k 960 m68k
946 mips 961 mips
947 mips64 962 mips64
948 parisc 963 parisc
949 ppc 964 ppc
950 ppc64 965 ppc64
951 s390 966 s390
952 sh4 967 sh4
953 sparc 968 sparc
954 sparc64 969 sparc64
970 tomi
955 x86 971 x86
956 x86_32 972 x86_32
957 x86_64 973 x86_64
958 ' 974 '
959 975
960 ARCH_EXT_LIST=' 976 ARCH_EXT_LIST='
961 altivec 977 altivec
962 amd3dnow 978 amd3dnow
963 amd3dnowext 979 amd3dnowext
964 armv5te 980 armv5te
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 ebx_available 1022 ebx_available
1007 exp2 1023 exp2
1008 exp2f 1024 exp2f
1009 fast_64bit 1025 fast_64bit
1010 fast_clz 1026 fast_clz
1011 fast_cmov 1027 fast_cmov
1012 fast_unaligned 1028 fast_unaligned
1013 fork 1029 fork
1014 getaddrinfo 1030 getaddrinfo
1015 gethrtime 1031 gethrtime
1032 GetProcessMemoryInfo
1016 GetProcessTimes 1033 GetProcessTimes
1017 getrusage 1034 getrusage
1035 struct_rusage_ru_maxrss
1018 inet_aton 1036 inet_aton
1019 inline_asm 1037 inline_asm
1020 isatty 1038 isatty
1021 ldbrx 1039 ldbrx
1022 libdc1394_1 1040 libdc1394_1
1023 libdc1394_2 1041 libdc1394_2
1024 llrint 1042 llrint
1043 local_aligned_16
1044 local_aligned_8
1025 log2 1045 log2
1026 log2f 1046 log2f
1027 loongson 1047 loongson
1028 lrint 1048 lrint
1029 lrintf 1049 lrintf
1030 lzo1x_999_compress 1050 lzo1x_999_compress
1031 machine_ioctl_bt848_h 1051 machine_ioctl_bt848_h
1032 machine_ioctl_meteor_h 1052 machine_ioctl_meteor_h
1033 malloc_h 1053 malloc_h
1034 memalign 1054 memalign
1035 mkstemp 1055 mkstemp
1036 pld 1056 pld
1037 posix_memalign 1057 posix_memalign
1038 round 1058 round
1039 roundf 1059 roundf
1040 sdl 1060 sdl
1041 sdl_video_size 1061 sdl_video_size
1042 setmode 1062 setmode
1043 socklen_t 1063 socklen_t
1044 soundcard_h 1064 soundcard_h
1045 poll_h 1065 poll_h
1066 setrlimit
1046 struct_addrinfo 1067 struct_addrinfo
1047 struct_ipv6_mreq 1068 struct_ipv6_mreq
1048 struct_sockaddr_in6 1069 struct_sockaddr_in6
1049 struct_sockaddr_sa_len 1070 struct_sockaddr_sa_len
1050 struct_sockaddr_storage 1071 struct_sockaddr_storage
1051 sys_mman_h 1072 sys_mman_h
1052 sys_resource_h 1073 sys_resource_h
1053 sys_select_h 1074 sys_select_h
1054 sys_soundcard_h 1075 sys_soundcard_h
1055 sys_videoio_h 1076 sys_videoio_h
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 host_cc 1129 host_cc
1109 host_cflags 1130 host_cflags
1110 host_ldflags 1131 host_ldflags
1111 host_libs 1132 host_libs
1112 host_os 1133 host_os
1113 ld 1134 ld
1114 logfile 1135 logfile
1115 malloc_prefix 1136 malloc_prefix
1116 nm 1137 nm
1117 source_path 1138 source_path
1139 strip
1118 sysinclude 1140 sysinclude
1119 sysroot 1141 sysroot
1120 target_exec 1142 target_exec
1121 target_os 1143 target_os
1122 target_path 1144 target_path
1123 " 1145 "
1124 1146
1125 CMDLINE_APPEND=" 1147 CMDLINE_APPEND="
1126 extra_cflags 1148 extra_cflags
1127 " 1149 "
(...skipping 24 matching lines...) Expand all
1152 sse_deps="mmx" 1174 sse_deps="mmx"
1153 ssse3_deps="sse" 1175 ssse3_deps="sse"
1154 1176
1155 fast_64bit_if_any="alpha ia64 mips64 parisc64 ppc64 sparc64 x86_64" 1177 fast_64bit_if_any="alpha ia64 mips64 parisc64 ppc64 sparc64 x86_64"
1156 fast_clz_if_any="alpha armv5te avr32 mips ppc x86" 1178 fast_clz_if_any="alpha armv5te avr32 mips ppc x86"
1157 fast_unaligned_if_any="armv6 ppc x86" 1179 fast_unaligned_if_any="armv6 ppc x86"
1158 1180
1159 need_memalign="altivec neon sse" 1181 need_memalign="altivec neon sse"
1160 inline_asm_deps="!tms470" 1182 inline_asm_deps="!tms470"
1161 1183
1184 # subsystems
1185 mdct_select="fft"
1186 rdft_select="fft"
1187
1162 # decoders / encoders / hardware accelerators 1188 # decoders / encoders / hardware accelerators
1163 aac_decoder_select="fft mdct aac_parser" 1189 aac_decoder_select="mdct rdft aac_parser"
1164 aac_encoder_select="fft mdct" 1190 aac_encoder_select="mdct"
1165 ac3_decoder_select="fft mdct ac3_parser" 1191 ac3_decoder_select="mdct ac3_parser"
1166 alac_encoder_select="lpc" 1192 alac_encoder_select="lpc"
1167 atrac3_decoder_select="fft mdct" 1193 amrnb_decoder_select="lsp"
1168 binkaudio_dct_decoder_select="fft mdct rdft dct" 1194 atrac1_decoder_select="mdct"
1169 binkaudio_rdft_decoder_select="fft mdct rdft" 1195 atrac3_decoder_select="mdct"
1196 binkaudio_dct_decoder_select="mdct rdft dct"
1197 binkaudio_rdft_decoder_select="mdct rdft"
1170 cavs_decoder_select="golomb" 1198 cavs_decoder_select="golomb"
1171 cook_decoder_select="fft mdct" 1199 cook_decoder_select="mdct"
1172 cscd_decoder_suggest="zlib" 1200 cscd_decoder_suggest="zlib"
1173 dca_decoder_select="fft mdct" 1201 dca_decoder_select="mdct"
1174 dnxhd_encoder_select="aandct" 1202 dnxhd_encoder_select="aandct"
1175 dxa_decoder_select="zlib" 1203 dxa_decoder_select="zlib"
1176 eac3_decoder_select="ac3_decoder" 1204 eac3_decoder_select="ac3_decoder"
1177 eamad_decoder_select="aandct" 1205 eamad_decoder_select="aandct"
1178 eatgq_decoder_select="aandct" 1206 eatgq_decoder_select="aandct"
1179 eatqi_decoder_select="aandct" 1207 eatqi_decoder_select="aandct"
1180 ffv1_decoder_select="golomb" 1208 ffv1_decoder_select="golomb"
1181 flac_decoder_select="golomb" 1209 flac_decoder_select="golomb"
1182 flac_encoder_select="golomb lpc" 1210 flac_encoder_select="golomb lpc"
1183 flashsv_decoder_select="zlib" 1211 flashsv_decoder_select="zlib"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 mpeg4_vdpau_decoder_deps="vdpau_vdpau_h vdpau_vdpau_x11_h" 1248 mpeg4_vdpau_decoder_deps="vdpau_vdpau_h vdpau_vdpau_x11_h"
1221 mpeg4_vdpau_decoder_select="vdpau mpeg4_decoder" 1249 mpeg4_vdpau_decoder_select="vdpau mpeg4_decoder"
1222 mpeg_xvmc_decoder_deps="X11_extensions_XvMClib_h" 1250 mpeg_xvmc_decoder_deps="X11_extensions_XvMClib_h"
1223 mpeg_xvmc_decoder_select="mpegvideo_decoder" 1251 mpeg_xvmc_decoder_select="mpegvideo_decoder"
1224 msmpeg4v1_decoder_select="h263_decoder" 1252 msmpeg4v1_decoder_select="h263_decoder"
1225 msmpeg4v1_encoder_select="h263_encoder" 1253 msmpeg4v1_encoder_select="h263_encoder"
1226 msmpeg4v2_decoder_select="h263_decoder" 1254 msmpeg4v2_decoder_select="h263_decoder"
1227 msmpeg4v2_encoder_select="h263_encoder" 1255 msmpeg4v2_encoder_select="h263_encoder"
1228 msmpeg4v3_decoder_select="h263_decoder" 1256 msmpeg4v3_decoder_select="h263_decoder"
1229 msmpeg4v3_encoder_select="h263_encoder" 1257 msmpeg4v3_encoder_select="h263_encoder"
1230 nellymoser_decoder_select="fft mdct" 1258 nellymoser_decoder_select="mdct"
1231 nellymoser_encoder_select="fft mdct" 1259 nellymoser_encoder_select="mdct"
1232 png_decoder_select="zlib" 1260 png_decoder_select="zlib"
1233 png_encoder_select="zlib" 1261 png_encoder_select="zlib"
1234 qdm2_decoder_select="fft mdct rdft" 1262 qcelp_decoder_select="lsp"
1263 qdm2_decoder_select="mdct rdft"
1235 rv10_decoder_select="h263_decoder" 1264 rv10_decoder_select="h263_decoder"
1236 rv10_encoder_select="h263_encoder" 1265 rv10_encoder_select="h263_encoder"
1237 rv20_decoder_select="h263_decoder" 1266 rv20_decoder_select="h263_decoder"
1238 rv20_encoder_select="h263_encoder" 1267 rv20_encoder_select="h263_encoder"
1239 rv30_decoder_select="golomb" 1268 rv30_decoder_select="golomb"
1240 rv40_decoder_select="golomb" 1269 rv40_decoder_select="golomb"
1241 shorten_decoder_select="golomb" 1270 shorten_decoder_select="golomb"
1271 sipr_decoder_select="lsp"
1272 snow_encoder_select="aandct"
1242 sonic_decoder_select="golomb" 1273 sonic_decoder_select="golomb"
1243 sonic_encoder_select="golomb" 1274 sonic_encoder_select="golomb"
1244 sonic_ls_encoder_select="golomb" 1275 sonic_ls_encoder_select="golomb"
1276 svq1_encoder_select="aandct"
1245 svq3_decoder_select="golomb" 1277 svq3_decoder_select="golomb"
1246 svq3_decoder_suggest="zlib" 1278 svq3_decoder_suggest="zlib"
1247 theora_decoder_select="vp3_decoder" 1279 theora_decoder_select="vp3_decoder"
1248 tiff_decoder_suggest="zlib" 1280 tiff_decoder_suggest="zlib"
1249 tiff_encoder_suggest="zlib" 1281 tiff_encoder_suggest="zlib"
1250 truehd_decoder_select="mlp_decoder" 1282 truehd_decoder_select="mlp_decoder"
1251 tscc_decoder_select="zlib" 1283 tscc_decoder_select="zlib"
1284 twinvq_decoder_select="mdct lsp"
1252 vc1_decoder_select="h263_decoder" 1285 vc1_decoder_select="h263_decoder"
1253 vc1_dxva2_hwaccel_deps="dxva2api_h DXVA_PictureParameters_wDecodedPictureIndex" 1286 vc1_dxva2_hwaccel_deps="dxva2api_h DXVA_PictureParameters_wDecodedPictureIndex"
1254 vc1_dxva2_hwaccel_select="dxva2 vc1_decoder" 1287 vc1_dxva2_hwaccel_select="dxva2 vc1_decoder"
1255 vc1_vaapi_hwaccel_deps="va_va_h" 1288 vc1_vaapi_hwaccel_deps="va_va_h"
1256 vc1_vaapi_hwaccel_select="vaapi vc1_decoder" 1289 vc1_vaapi_hwaccel_select="vaapi vc1_decoder"
1257 vc1_vdpau_decoder_deps="vdpau_vdpau_h vdpau_vdpau_x11_h" 1290 vc1_vdpau_decoder_deps="vdpau_vdpau_h vdpau_vdpau_x11_h"
1258 vc1_vdpau_decoder_select="vdpau vc1_decoder" 1291 vc1_vdpau_decoder_select="vdpau vc1_decoder"
1259 vorbis_decoder_select="fft mdct" 1292 vorbis_decoder_select="mdct"
1260 vorbis_encoder_select="fft mdct" 1293 vorbis_encoder_select="mdct"
1261 vp6a_decoder_select="vp6_decoder" 1294 vp6a_decoder_select="vp6_decoder"
1262 vp6f_decoder_select="vp6_decoder" 1295 vp6f_decoder_select="vp6_decoder"
1263 wmav1_decoder_select="fft mdct" 1296 wmapro_decoder_select="mdct"
1264 wmav1_encoder_select="fft mdct" 1297 wmav1_decoder_select="mdct"
1265 wmav2_decoder_select="fft mdct" 1298 wmav1_encoder_select="mdct"
1266 wmav2_encoder_select="fft mdct" 1299 wmav2_decoder_select="mdct"
1300 wmav2_encoder_select="mdct"
1301 wmavoice_decoder_select="lsp"
1267 wmv1_decoder_select="h263_decoder" 1302 wmv1_decoder_select="h263_decoder"
1268 wmv1_encoder_select="h263_encoder" 1303 wmv1_encoder_select="h263_encoder"
1269 wmv2_decoder_select="h263_decoder" 1304 wmv2_decoder_select="h263_decoder"
1270 wmv2_encoder_select="h263_encoder" 1305 wmv2_encoder_select="h263_encoder"
1271 wmv3_decoder_select="vc1_decoder" 1306 wmv3_decoder_select="vc1_decoder"
1272 wmv3_dxva2_hwaccel_select="vc1_dxva2_hwaccel" 1307 wmv3_dxva2_hwaccel_select="vc1_dxva2_hwaccel"
1273 wmv3_vaapi_hwaccel_select="vc1_vaapi_hwaccel" 1308 wmv3_vaapi_hwaccel_select="vc1_vaapi_hwaccel"
1274 wmv3_vdpau_decoder_select="vc1_vdpau_decoder" 1309 wmv3_vdpau_decoder_select="vc1_vdpau_decoder"
1275 zlib_decoder_select="zlib" 1310 zlib_decoder_select="zlib"
1276 zlib_encoder_select="zlib" 1311 zlib_encoder_select="zlib"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 matroska_audio_muxer_select="matroska_muxer" 1353 matroska_audio_muxer_select="matroska_muxer"
1319 matroska_demuxer_suggest="zlib bzlib" 1354 matroska_demuxer_suggest="zlib bzlib"
1320 mov_demuxer_suggest="zlib" 1355 mov_demuxer_suggest="zlib"
1321 mp3_demuxer_deps="mpegaudio_parser" 1356 mp3_demuxer_deps="mpegaudio_parser"
1322 mp4_muxer_select="mov_muxer" 1357 mp4_muxer_select="mov_muxer"
1323 mpegtsraw_demuxer_select="mpegts_demuxer" 1358 mpegtsraw_demuxer_select="mpegts_demuxer"
1324 mxf_d10_muxer_select="mxf_muxer" 1359 mxf_d10_muxer_select="mxf_muxer"
1325 ogg_demuxer_select="golomb" 1360 ogg_demuxer_select="golomb"
1326 psp_muxer_select="mov_muxer" 1361 psp_muxer_select="mov_muxer"
1327 rtsp_demuxer_deps="sdp_demuxer" 1362 rtsp_demuxer_deps="sdp_demuxer"
1363 rtsp_muxer_deps="sdp_demuxer"
1364 rtsp_muxer_select="rtp_muxer"
1328 sdp_demuxer_deps="rtp_protocol mpegts_demuxer" 1365 sdp_demuxer_deps="rtp_protocol mpegts_demuxer"
1329 spdif_muxer_select="aac_parser" 1366 spdif_muxer_select="aac_parser"
1330 tg2_muxer_select="mov_muxer" 1367 tg2_muxer_select="mov_muxer"
1331 tgp_muxer_select="mov_muxer" 1368 tgp_muxer_select="mov_muxer"
1332 w64_demuxer_deps="wav_demuxer" 1369 w64_demuxer_deps="wav_demuxer"
1333 1370
1334 # indevs / outdevs 1371 # indevs / outdevs
1335 alsa_indev_deps="alsa_asoundlib_h snd_pcm_htimestamp" 1372 alsa_indev_deps="alsa_asoundlib_h snd_pcm_htimestamp"
1336 alsa_indev_extralibs="-lasound" 1373 alsa_indev_extralibs="-lasound"
1337 alsa_outdev_deps="alsa_asoundlib_h" 1374 alsa_outdev_deps="alsa_asoundlib_h"
(...skipping 28 matching lines...) Expand all
1366 movie_filter_deps="avfilter_lavf" 1403 movie_filter_deps="avfilter_lavf"
1367 avfilter_lavf_deps="avformat" 1404 avfilter_lavf_deps="avformat"
1368 1405
1369 # libraries 1406 # libraries
1370 avdevice_deps="avcodec avformat" 1407 avdevice_deps="avcodec avformat"
1371 avformat_deps="avcodec" 1408 avformat_deps="avcodec"
1372 1409
1373 # programs 1410 # programs
1374 ffmpeg_deps="avcodec avformat swscale" 1411 ffmpeg_deps="avcodec avformat swscale"
1375 ffplay_deps="avcodec avformat swscale sdl" 1412 ffplay_deps="avcodec avformat swscale sdl"
1413 ffplay_select="rdft"
1414 ffprobe_deps="avcodec avformat"
1376 ffserver_deps="avformat ffm_muxer rtp_protocol rtsp_demuxer" 1415 ffserver_deps="avformat ffm_muxer rtp_protocol rtsp_demuxer"
1377 ffserver_extralibs='$ldl' 1416 ffserver_extralibs='$ldl'
1378 1417
1379 doc_deps="texi2html" 1418 doc_deps="texi2html"
1380 1419
1381 # default parameters 1420 # default parameters
1382 1421
1383 logfile="config.err" 1422 logfile="config.err"
1384 1423
1385 # installation paths 1424 # installation paths
1386 prefix_default="/usr/local" 1425 prefix_default="/usr/local"
1387 bindir_default='${prefix}/bin' 1426 bindir_default='${prefix}/bin'
1388 datadir_default='${prefix}/share/ffmpeg' 1427 datadir_default='${prefix}/share/ffmpeg'
1389 incdir_default='${prefix}/include' 1428 incdir_default='${prefix}/include'
1390 libdir_default='${prefix}/lib' 1429 libdir_default='${prefix}/lib'
1391 mandir_default='${prefix}/share/man' 1430 mandir_default='${prefix}/share/man'
1392 shlibdir_default="$libdir_default" 1431 shlibdir_default="$libdir_default"
1393 1432
1394 # toolchain 1433 # toolchain
1395 ar="ar" 1434 ar="ar"
1396 cc_default="gcc" 1435 cc_default="gcc"
1397 cc_version=\"unknown\" 1436 cc_version=\"unknown\"
1398 host_cc_default="gcc" 1437 host_cc_default="gcc"
1399 ln_s="ln -sf" 1438 ln_s="ln -sf"
1400 nm_default="nm" 1439 nm_default="nm"
1401 objformat="elf" 1440 objformat="elf"
1402 ranlib="ranlib" 1441 ranlib="ranlib"
1403 strip="strip" 1442 strip_default="strip"
1404 yasmexe="yasm" 1443 yasmexe="yasm"
1405 1444
1406 nm_opts='-g' 1445 nm_opts='-g'
1407 1446
1408 # machine 1447 # machine
1409 arch=$(uname -m) 1448 arch_default=$(uname -m)
1410 cpu="generic" 1449 cpu="generic"
1411 1450
1412 # OS 1451 # OS
1413 target_os=$(tolower $(uname -s)) 1452 target_os_default=$(tolower $(uname -s))
1414 host_os=$target_os 1453 host_os=$target_os_default
1415 1454
1416 # configurable options 1455 # configurable options
1417 enable avcodec 1456 enable avcodec
1418 enable avdevice 1457 enable avdevice
1419 enable avformat 1458 enable avformat
1420 enable avutil 1459 enable avutil
1421 enable asm 1460 enable asm
1422 enable debug 1461 enable debug
1423 enable doc 1462 enable doc
1424 enable fastdiv 1463 enable fastdiv
1425 enable ffmpeg 1464 enable ffmpeg
1426 enable ffplay 1465 enable ffplay
1466 enable ffprobe
1427 enable ffserver 1467 enable ffserver
1428 enable mpegaudio_hp 1468 enable mpegaudio_hp
1429 enable network 1469 enable network
1430 enable optimizations 1470 enable optimizations
1431 enable protocols 1471 enable protocols
1432 enable static 1472 enable static
1433 enable stripping 1473 enable stripping
1434 enable swscale 1474 enable swscale
1435 enable swscale_alpha 1475 enable swscale_alpha
1436 1476
1437 # build settings 1477 # build settings
1438 SHFLAGS='-shared -Wl,-soname,$$(@F)' 1478 SHFLAGS='-shared -Wl,-soname,$$(@F)'
1439 FFSERVERLDFLAGS=-Wl,-E 1479 FFSERVERLDFLAGS=-Wl,-E
1440 LIBPREF="lib" 1480 LIBPREF="lib"
1441 LIBSUF=".a" 1481 LIBSUF=".a"
1442 FULLNAME='$(NAME)$(BUILDSUF)' 1482 FULLNAME='$(NAME)$(BUILDSUF)'
1443 LIBNAME='$(LIBPREF)$(FULLNAME)$(LIBSUF)' 1483 LIBNAME='$(LIBPREF)$(FULLNAME)$(LIBSUF)'
1444 SLIBPREF="lib" 1484 SLIBPREF="lib"
1445 SLIBSUF=".so" 1485 SLIBSUF=".so"
1446 SLIBNAME='$(SLIBPREF)$(FULLNAME)$(SLIBSUF)' 1486 SLIBNAME='$(SLIBPREF)$(FULLNAME)$(SLIBSUF)'
1447 SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIBVERSION)' 1487 SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIBVERSION)'
1448 SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)' 1488 SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
1449 LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"' 1489 LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
1450 1490
1451 CC_O='-o $@' 1491 CC_O='-o $@'
1452 1492
1453 host_cflags='-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -O3 -g -Wall' 1493 host_cflags='-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -O3 -g -Wall'
1454 host_libs='-lm' 1494 host_libs='-lm'
1455 1495
1456 target_path='$(CURDIR)' 1496 target_path='$(CURDIR)'
1457 1497
1458 # gcc stupidly only outputs the basename of targets with -MM, but we need the 1498 # gcc stupidly only outputs the basename of targets with -MM, but we need the
1459 # full relative path for objects in subdirectories for non-recursive Make. 1499 # full relative path for objects in subdirectories for non-recursive Make.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 esac 1618 esac
1579 done 1619 done
1580 1620
1581 disabled logging && logfile=/dev/null 1621 disabled logging && logfile=/dev/null
1582 1622
1583 echo "# $0 $FFMPEG_CONFIGURATION" > $logfile 1623 echo "# $0 $FFMPEG_CONFIGURATION" > $logfile
1584 set >> $logfile 1624 set >> $logfile
1585 1625
1586 test -n "$cross_prefix" && enable cross_compile 1626 test -n "$cross_prefix" && enable cross_compile
1587 1627
1628 if enabled cross_compile; then
1629 test -n "$arch" && test -n "$target_os" ||
1630 die "Must specify target arch and OS when cross-compiling"
1631 fi
1632
1633 set_default arch target_os
1634
1588 ar="${cross_prefix}${ar}" 1635 ar="${cross_prefix}${ar}"
1589 cc_default="${cross_prefix}${cc_default}" 1636 cc_default="${cross_prefix}${cc_default}"
1590 nm_default="${cross_prefix}${nm_default}" 1637 nm_default="${cross_prefix}${nm_default}"
1591 ranlib="${cross_prefix}${ranlib}" 1638 ranlib="${cross_prefix}${ranlib}"
1592 strip="${cross_prefix}${strip}" 1639 strip_default="${cross_prefix}${strip_default}"
1593 1640
1594 sysinclude_default="${sysroot}/usr/include" 1641 sysinclude_default="${sysroot}/usr/include"
1595 1642
1596 set_default cc nm sysinclude 1643 set_default cc nm strip sysinclude
1597 enabled cross_compile || host_cc_default=$cc 1644 enabled cross_compile || host_cc_default=$cc
1598 set_default host_cc 1645 set_default host_cc
1599 1646
1600 exesuf() { 1647 exesuf() {
1601 case $1 in 1648 case $1 in
1602 mingw32*|cygwin*|*-dos|freedos|opendos|os/2*) echo .exe ;; 1649 mingw32*|cygwin*|*-dos|freedos|opendos|os/2*) echo .exe ;;
1603 esac 1650 esac
1604 } 1651 }
1605 1652
1606 EXESUF=$(exesuf $target_os) 1653 EXESUF=$(exesuf $target_os)
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 filter_cppflags=echo 1704 filter_cppflags=echo
1658 filter_asflags=echo 1705 filter_asflags=echo
1659 1706
1660 if $cc -v 2>&1 | grep -qi ^gcc; then 1707 if $cc -v 2>&1 | grep -qi ^gcc; then
1661 cc_type=gcc 1708 cc_type=gcc
1662 cc_version=__VERSION__ 1709 cc_version=__VERSION__
1663 if ! $cc -dumpversion | grep -q '^2\.'; then 1710 if ! $cc -dumpversion | grep -q '^2\.'; then
1664 CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' 1711 CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
1665 AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' 1712 AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
1666 fi 1713 fi
1667 speed_cflags='-O2' 1714 speed_cflags='-O3'
1668 size_cflags='-Os' 1715 size_cflags='-Os'
1669 elif $cc --version 2>/dev/null | grep -q Intel; then 1716 elif $cc --version 2>/dev/null | grep -q Intel; then
1670 cc_type=icc 1717 cc_type=icc
1671 cc_version="AV_STRINGIFY(__INTEL_COMPILER)" 1718 cc_version="AV_STRINGIFY(__INTEL_COMPILER)"
1672 CC_DEPFLAGS='-MMD' 1719 CC_DEPFLAGS='-MMD'
1673 AS_DEPFLAGS='-MMD' 1720 AS_DEPFLAGS='-MMD'
1674 speed_cflags='-O3' 1721 speed_cflags='-O3'
1675 size_cflags='-Os' 1722 size_cflags='-Os'
1676 elif $cc -v 2>&1 | grep -q xlc; then 1723 elif $cc -v 2>&1 | grep -q xlc; then
1677 cc_type=xlc 1724 cc_type=xlc
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1808 case "$cc_type" in 1855 case "$cc_type" in
1809 gcc) 1856 gcc)
1810 add_cppflags --sysroot="$sysroot" 1857 add_cppflags --sysroot="$sysroot"
1811 add_ldflags --sysroot="$sysroot" 1858 add_ldflags --sysroot="$sysroot"
1812 ;; 1859 ;;
1813 tms470) 1860 tms470)
1814 add_cppflags -I"$sysinclude" 1861 add_cppflags -I"$sysinclude"
1815 add_ldflags --sysroot="$sysroot" 1862 add_ldflags --sysroot="$sysroot"
1816 ;; 1863 ;;
1817 clang) 1864 clang)
1818 add_cppflags -isysroot="$sysroot" 1865 add_cppflags -isysroot "$sysroot"
1819 add_ldflags -isysroot="$sysroot" 1866 add_ldflags -isysroot "$sysroot"
1820 ;; 1867 ;;
1821 esac 1868 esac
1822 fi 1869 fi
1823 1870
1824 if test "$cpu" = host; then 1871 if test "$cpu" = host; then
1825 enabled cross_compile && die "--cpu=host makes no sense when cross-compiling ." 1872 enabled cross_compile && die "--cpu=host makes no sense when cross-compiling ."
1826 1873
1827 case "$cc_type" in 1874 case "$cc_type" in
1828 gcc) 1875 gcc)
1829 check_native(){ 1876 check_native(){
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 SLIB_EXTRA_CMD='emximp -o $(SUBDIR)$(LIBPREF)$(NAME)_dll.a $(SUBDIR)$(NA ME).def; \ 2257 SLIB_EXTRA_CMD='emximp -o $(SUBDIR)$(LIBPREF)$(NAME)_dll.a $(SUBDIR)$(NA ME).def; \
2211 emximp -o $(SUBDIR)$(LIBPREF)$(NAME)_dll.lib $(SUBDIR)$(NAME).def;' 2258 emximp -o $(SUBDIR)$(LIBPREF)$(NAME)_dll.lib $(SUBDIR)$(NAME).def;'
2212 SLIB_INSTALL_EXTRA_CMD='install -m 644 $(SUBDIR)$(LIBPREF)$(NAME)_dll.a $(SUBDIR)$(LIBPREF)$(NAME)_dll.lib "$(LIBDIR)"' 2259 SLIB_INSTALL_EXTRA_CMD='install -m 644 $(SUBDIR)$(LIBPREF)$(NAME)_dll.a $(SUBDIR)$(LIBPREF)$(NAME)_dll.lib "$(LIBDIR)"'
2213 SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(L IBDIR)"/$(LIBPREF)$(NAME)_dll.lib' 2260 SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(L IBDIR)"/$(LIBPREF)$(NAME)_dll.lib'
2214 enable dos_paths 2261 enable dos_paths
2215 ;; 2262 ;;
2216 gnu/kfreebsd) 2263 gnu/kfreebsd)
2217 ;; 2264 ;;
2218 gnu) 2265 gnu)
2219 ;; 2266 ;;
2220 2267 none)
2268 ;;
2221 *) 2269 *)
2222 die "Unknown OS '$target_os'." 2270 die "Unknown OS '$target_os'."
2223 ;; 2271 ;;
2224 esac 2272 esac
2225 2273
2226 set_default $PATHS_LIST 2274 set_default $PATHS_LIST
2227 2275
2228 add_extralibs $osextralibs 2276 add_extralibs $osextralibs
2229 2277
2230 # Combine FFLDFLAGS and the LDFLAGS environment variable. 2278 # Combine FFLDFLAGS and the LDFLAGS environment variable.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 # HACK: currently fails to build if .bss is > 4MB and shared libs are built 2397 # HACK: currently fails to build if .bss is > 4MB and shared libs are built
2350 enabled shared && enable_weak hardcoded_tables 2398 enabled shared && enable_weak hardcoded_tables
2351 2399
2352 elif enabled mips; then 2400 elif enabled mips; then
2353 2401
2354 check_asm loongson '"dmult.g $1, $2, $3"' 2402 check_asm loongson '"dmult.g $1, $2, $3"'
2355 enabled mmi && check_asm mmi '"lq $2, 0($2)"' 2403 enabled mmi && check_asm mmi '"lq $2, 0($2)"'
2356 2404
2357 elif enabled ppc; then 2405 elif enabled ppc; then
2358 2406
2407 enable local_aligned_8 local_aligned_16
2408
2359 check_asm dcbzl '"dcbzl 0, 1"' 2409 check_asm dcbzl '"dcbzl 0, 1"'
2360 check_asm ppc4xx '"maclhw r10, r11, r12"' 2410 check_asm ppc4xx '"maclhw r10, r11, r12"'
2361 check_asm xform_asm '"lwzx %1, %y0" :: "Z"(*(int*)0), "r"(0)' 2411 check_asm xform_asm '"lwzx %1, %y0" :: "Z"(*(int*)0), "r"(0)'
2362 2412
2363 # AltiVec flags: The FSF version of GCC differs from the Apple version 2413 # AltiVec flags: The FSF version of GCC differs from the Apple version
2364 if enabled altivec; then 2414 if enabled altivec; then
2365 check_cflags -maltivec -mabi=altivec && 2415 check_cflags -maltivec -mabi=altivec &&
2366 { check_header altivec.h && inc_altivec_h="#include <altivec.h>" ; } || 2416 { check_header altivec.h && inc_altivec_h="#include <altivec.h>" ; } ||
2367 check_cflags -faltivec 2417 check_cflags -faltivec
2368 2418
(...skipping 14 matching lines...) Expand all
2383 EOF 2433 EOF
2384 fi 2434 fi
2385 2435
2386 elif enabled sparc; then 2436 elif enabled sparc; then
2387 2437
2388 enabled vis && check_asm vis '"pdist %f0, %f0, %f0"' -mcpu=ultrasparc && 2438 enabled vis && check_asm vis '"pdist %f0, %f0, %f0"' -mcpu=ultrasparc &&
2389 add_cflags -mcpu=ultrasparc -mtune=ultrasparc 2439 add_cflags -mcpu=ultrasparc -mtune=ultrasparc
2390 2440
2391 elif enabled x86; then 2441 elif enabled x86; then
2392 2442
2443 enable local_aligned_8 local_aligned_16
2444
2393 # check whether EBP is available on x86 2445 # check whether EBP is available on x86
2394 # As 'i' is stored on the stack, this program will crash 2446 # As 'i' is stored on the stack, this program will crash
2395 # if the base pointer is used to access it because the 2447 # if the base pointer is used to access it because the
2396 # base pointer is cleared in the inline assembly code. 2448 # base pointer is cleared in the inline assembly code.
2397 check_exec_crash <<EOF && enable ebp_available 2449 check_exec_crash <<EOF && enable ebp_available
2398 volatile int i=0; 2450 volatile int i=0;
2399 __asm__ volatile ( 2451 __asm__ volatile (
2400 "xorl %%ebp, %%ebp" 2452 "xorl %%ebp, %%ebp"
2401 ::: "%ebp"); 2453 ::: "%ebp");
2402 return i; 2454 return i;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2447 ldl=-ldl 2499 ldl=-ldl
2448 fi 2500 fi
2449 2501
2450 # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that 2502 # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
2451 check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; } 2503 check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; }
2452 2504
2453 check_func fork 2505 check_func fork
2454 check_func getaddrinfo $network_extralibs 2506 check_func getaddrinfo $network_extralibs
2455 check_func gethrtime 2507 check_func gethrtime
2456 check_func getrusage 2508 check_func getrusage
2509 check_struct "sys/time.h sys/resource.h" "struct rusage" ru_maxrss
2457 check_func inet_aton $network_extralibs 2510 check_func inet_aton $network_extralibs
2458 check_func isatty 2511 check_func isatty
2459 check_func ${malloc_prefix}memalign && enable memalign 2512 check_func ${malloc_prefix}memalign && enable memalign
2460 check_func mkstemp 2513 check_func mkstemp
2461 check_func ${malloc_prefix}posix_memalign && enable posix_memalign 2514 check_func ${malloc_prefix}posix_memalign && enable posix_memalign
2515 check_func setrlimit
2462 check_func_headers io.h setmode 2516 check_func_headers io.h setmode
2463 check_func_headers lzo/lzo1x.h lzo1x_999_compress 2517 check_func_headers lzo/lzo1x.h lzo1x_999_compress
2518 check_lib2 "windows.h psapi.h" GetProcessMemoryInfo -lpsapi
2464 check_func_headers windows.h GetProcessTimes 2519 check_func_headers windows.h GetProcessTimes
2465 check_func_headers windows.h VirtualAlloc 2520 check_func_headers windows.h VirtualAlloc
2466 2521
2467 check_header conio.h 2522 check_header conio.h
2468 check_header dlfcn.h 2523 check_header dlfcn.h
2469 check_header dxva2api.h 2524 check_header dxva2api.h
2470 check_header malloc.h 2525 check_header malloc.h
2471 check_header poll.h 2526 check_header poll.h
2472 check_header sys/mman.h 2527 check_header sys/mman.h
2473 check_header sys/resource.h 2528 check_header sys/resource.h
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2512 if enabled $thread; then 2567 if enabled $thread; then
2513 test -n "$thread_type" && 2568 test -n "$thread_type" &&
2514 die "ERROR: Only one thread type must be selected." || 2569 die "ERROR: Only one thread type must be selected." ||
2515 thread_type="$thread" 2570 thread_type="$thread"
2516 fi 2571 fi
2517 done 2572 done
2518 2573
2519 check_lib math.h sin -lm 2574 check_lib math.h sin -lm
2520 check_lib va/va.h vaInitialize -lva 2575 check_lib va/va.h vaInitialize -lva
2521 2576
2522 check_func exp2 2577 check_mathfunc exp2
2523 check_func exp2f 2578 check_mathfunc exp2f
2524 check_func llrint 2579 check_mathfunc llrint
2525 check_func log2 2580 check_mathfunc log2
2526 check_func log2f 2581 check_mathfunc log2f
2527 check_func lrint 2582 check_mathfunc lrint
2528 check_func lrintf 2583 check_mathfunc lrintf
2529 check_func round 2584 check_mathfunc round
2530 check_func roundf 2585 check_mathfunc roundf
2531 check_func truncf 2586 check_mathfunc truncf
2532 2587
2533 # these are off by default, so fail if requested and not available 2588 # these are off by default, so fail if requested and not available
2534 enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lavifil32 2589 enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lavifil32
2535 enabled libdirac && add_cflags $(pkg-config --cflags dirac) && 2590 enabled libdirac && add_cflags $(pkg-config --cflags dirac) &&
2536 require libdirac libdirac_decoder/dirac_parser.h dirac_de coder_init $(pkg-config --libs dirac) && 2591 require libdirac libdirac_decoder/dirac_parser.h dirac_de coder_init $(pkg-config --libs dirac) &&
2537 require libdirac libdirac_encoder/dirac_encoder.h dirac_e ncoder_init $(pkg-config --libs dirac) 2592 require libdirac libdirac_encoder/dirac_encoder.h dirac_e ncoder_init $(pkg-config --libs dirac)
2538 enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaa c 2593 enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaa c
2539 enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad 2594 enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad
2540 enabled libgsm && require libgsm gsm.h gsm_create -lgsm 2595 enabled libgsm && require libgsm gsm/gsm.h gsm_create -lgsm
2541 enabled libmp3lame && require libmp3lame lame/lame.h lame_init -lmp3lame -lm 2596 enabled libmp3lame && require libmp3lame lame/lame.h lame_init -lmp3lame -lm
2542 enabled libnut && require libnut libnut.h nut_demuxer_init -lnut 2597 enabled libnut && require libnut libnut.h nut_demuxer_init -lnut
2543 enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_de c.h Decoder_Interface_init -lopencore-amrnb -lm 2598 enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_de c.h Decoder_Interface_init -lopencore-amrnb -lm
2544 enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb -lm 2599 enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb -lm
2545 enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg 2600 enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg
2546 enabled libschroedinger && add_cflags $(pkg-config --cflags schroedinger-1.0) && 2601 enabled libschroedinger && add_cflags $(pkg-config --cflags schroedinger-1.0) &&
2547 require libschroedinger schroedinger/schro.h schro_in it $(pkg-config --libs schroedinger-1.0) 2602 require libschroedinger schroedinger/schro.h schro_in it $(pkg-config --libs schroedinger-1.0)
2548 enabled libspeex && require libspeex speex/speex.h speex_decoder_init -lspeex 2603 enabled libspeex && require libspeex speex/speex.h speex_decoder_init -lspeex
2549 enabled libtheora && require libtheora theora/theoraenc.h th_info_init -ltheor aenc -ltheoradec -logg 2604 enabled libtheora && require libtheora theora/theoraenc.h th_info_init -ltheor aenc -ltheoradec -logg
2550 enabled libvorbis && require libvorbis vorbis/vorbisenc.h vorbis_info_init -lv orbisenc -lvorbis -logg 2605 enabled libvorbis && require libvorbis vorbis/vorbisenc.h vorbis_info_init -lv orbisenc -lvorbis -logg
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
2645 check_cflags -Wall 2700 check_cflags -Wall
2646 check_cflags -Wno-switch 2701 check_cflags -Wno-switch
2647 check_cflags -Wdisabled-optimization 2702 check_cflags -Wdisabled-optimization
2648 check_cflags -Wpointer-arith 2703 check_cflags -Wpointer-arith
2649 check_cflags -Wredundant-decls 2704 check_cflags -Wredundant-decls
2650 check_cflags -Wno-pointer-sign 2705 check_cflags -Wno-pointer-sign
2651 check_cflags -Wcast-qual 2706 check_cflags -Wcast-qual
2652 check_cflags -Wwrite-strings 2707 check_cflags -Wwrite-strings
2653 check_cflags -Wtype-limits 2708 check_cflags -Wtype-limits
2654 check_cflags -Wundef 2709 check_cflags -Wundef
2710 check_cflags -Wmissing-prototypes
2655 enabled extra_warnings && check_cflags -Winline 2711 enabled extra_warnings && check_cflags -Winline
2656 2712
2657 # add some linker flags 2713 # add some linker flags
2658 check_ldflags -Wl,--warn-common 2714 check_ldflags -Wl,--warn-common
2659 check_ldflags -Wl,--as-needed 2715 check_ldflags -Wl,--as-needed
2660 check_ldflags '-Wl,-rpath-link,\$(BUILD_ROOT)/libpostproc -Wl,-rpath-link,\$(BUI LD_ROOT)/libswscale -Wl,-rpath-link,\$(BUILD_ROOT)/libavfilter -Wl,-rpath-link,\ $(BUILD_ROOT)/libavdevice -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath- link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil' 2716 check_ldflags '-Wl,-rpath-link,\$(BUILD_ROOT)/libpostproc -Wl,-rpath-link,\$(BUI LD_ROOT)/libswscale -Wl,-rpath-link,\$(BUILD_ROOT)/libavfilter -Wl,-rpath-link,\ $(BUILD_ROOT)/libavdevice -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath- link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil'
2661 check_ldflags -Wl,-Bsymbolic 2717 check_ldflags -Wl,-Bsymbolic
2662 2718
2663 echo "X{};" > $TMPV 2719 echo "X{};" > $TMPV
2664 test_ldflags -Wl,--version-script,$TMPV && 2720 test_ldflags -Wl,--version-script,$TMPV &&
(...skipping 26 matching lines...) Expand all
2691 elif enabled ccc; then 2747 elif enabled ccc; then
2692 # disable some annoying warnings 2748 # disable some annoying warnings
2693 add_cflags -msg_disable cvtu32to64 2749 add_cflags -msg_disable cvtu32to64
2694 add_cflags -msg_disable embedcomment 2750 add_cflags -msg_disable embedcomment
2695 add_cflags -msg_disable needconstext 2751 add_cflags -msg_disable needconstext
2696 add_cflags -msg_disable nomainieee 2752 add_cflags -msg_disable nomainieee
2697 add_cflags -msg_disable ptrmismatch1 2753 add_cflags -msg_disable ptrmismatch1
2698 add_cflags -msg_disable unreachcode 2754 add_cflags -msg_disable unreachcode
2699 elif enabled gcc; then 2755 elif enabled gcc; then
2700 check_cflags -fno-tree-vectorize 2756 check_cflags -fno-tree-vectorize
2757 check_cflags -Werror=implicit
2758 check_cflags -Werror=missing-prototypes
2701 elif enabled clang; then 2759 elif enabled clang; then
2702 check_cflags -Qunused-arguments 2760 check_cflags -Qunused-arguments
2703 elif enabled armcc; then 2761 elif enabled armcc; then
2704 # 2523: use of inline assembler is deprecated 2762 # 2523: use of inline assembler is deprecated
2705 add_cflags -Wrvct,--diag_suppress=2523 2763 add_cflags -Wrvct,--diag_suppress=2523
2764 add_cflags -Wrvct,--diag_suppress=1207
2706 elif enabled tms470; then 2765 elif enabled tms470; then
2707 add_cflags -pds=824 -pds=837 2766 add_cflags -pds=824 -pds=837
2708 fi 2767 fi
2709 2768
2710 if enabled gprof; then 2769 if enabled gprof; then
2711 add_cflags -p 2770 add_cflags -p
2712 add_ldflags -p 2771 add_ldflags -p
2713 fi 2772 fi
2714 2773
2715 # Find out if the .align argument is a power of two or not. 2774 # Find out if the .align argument is a power of two or not.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2905 MANDIR=\$(DESTDIR)$mandir 2964 MANDIR=\$(DESTDIR)$mandir
2906 SRC_PATH="$source_path" 2965 SRC_PATH="$source_path"
2907 SRC_PATH_BARE=$source_path 2966 SRC_PATH_BARE=$source_path
2908 BUILD_ROOT="$PWD" 2967 BUILD_ROOT="$PWD"
2909 ARCH=$arch 2968 ARCH=$arch
2910 CC=$cc 2969 CC=$cc
2911 AS=$as 2970 AS=$as
2912 LD=$ld 2971 LD=$ld
2913 DEPCC=$dep_cc 2972 DEPCC=$dep_cc
2914 YASM=$yasmexe 2973 YASM=$yasmexe
2974 YASMDEP=$yasmexe
2915 AR=$ar 2975 AR=$ar
2916 RANLIB=$ranlib 2976 RANLIB=$ranlib
2977 CP=cp -p
2917 LN_S=$ln_s 2978 LN_S=$ln_s
2918 STRIP=$strip 2979 STRIP=$strip
2919 CPPFLAGS=$CPPFLAGS 2980 CPPFLAGS=$CPPFLAGS
2920 CFLAGS=$CFLAGS 2981 CFLAGS=$CFLAGS
2921 ASFLAGS=$ASFLAGS 2982 ASFLAGS=$ASFLAGS
2922 CC_O=$CC_O 2983 CC_O=$CC_O
2923 LDFLAGS=$LDFLAGS 2984 LDFLAGS=$LDFLAGS
2924 FFSERVERLDFLAGS=$FFSERVERLDFLAGS 2985 FFSERVERLDFLAGS=$FFSERVERLDFLAGS
2925 SHFLAGS=$SHFLAGS 2986 SHFLAGS=$SHFLAGS
2926 YASMFLAGS=$YASMFLAGS 2987 YASMFLAGS=$YASMFLAGS
(...skipping 15 matching lines...) Expand all
2942 HOSTCFLAGS=$host_cflags 3003 HOSTCFLAGS=$host_cflags
2943 HOSTEXESUF=$HOSTEXESUF 3004 HOSTEXESUF=$HOSTEXESUF
2944 HOSTLDFLAGS=$host_ldflags 3005 HOSTLDFLAGS=$host_ldflags
2945 HOSTLIBS=$host_libs 3006 HOSTLIBS=$host_libs
2946 TARGET_EXEC=$target_exec 3007 TARGET_EXEC=$target_exec
2947 TARGET_PATH=$target_path 3008 TARGET_PATH=$target_path
2948 SDL_LIBS=$sdl_libs 3009 SDL_LIBS=$sdl_libs
2949 SDL_CFLAGS=$sdl_cflags 3010 SDL_CFLAGS=$sdl_cflags
2950 LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD 3011 LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD
2951 EXTRALIBS=$extralibs 3012 EXTRALIBS=$extralibs
3013 INSTALL=install
2952 EOF 3014 EOF
2953 3015
2954 get_version(){ 3016 get_version(){
2955 name=$1 3017 name=$1
2956 file=$source_path/$2 3018 file=$source_path/$2
2957 eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }') 3019 eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }')
2958 eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${nam e}_VERSION_MICRO 3020 eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${nam e}_VERSION_MICRO
2959 lcname=$(tolower $name) 3021 lcname=$(tolower $name)
2960 eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak 3022 eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak
2961 eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak 3023 eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
3081 3143
3082 pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION" 3144 pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION"
3083 pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$ext ralibs" "libavutil = $LIBAVUTIL_VERSION" 3145 pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$ext ralibs" "libavutil = $LIBAVUTIL_VERSION"
3084 pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_V ERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION" 3146 pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_V ERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
3085 pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VE RSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION" 3147 pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VE RSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION"
3086 enabled avfilter && 3148 enabled avfilter &&
3087 pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTE R_VERSION" "$extralibs" "libavutil = $LIBAVUTIL_VERSION" 3149 pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTE R_VERSION" "$extralibs" "libavutil = $LIBAVUTIL_VERSION"
3088 enabled postproc && 3150 enabled postproc &&
3089 pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPRO C_VERSION" 3151 pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPRO C_VERSION"
3090 pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERS ION" "" "libavutil = $LIBAVUTIL_VERSION" 3152 pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERS ION" "" "libavutil = $LIBAVUTIL_VERSION"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698