X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/blobdiff_plain/c6befa16c63af350eb56d822dc52ed207980c027..HEAD:/configure diff --git a/configure b/configure index 72138f448..ba18d8fa1 100755 --- a/configure +++ b/configure @@ -100,6 +100,7 @@ show_help(){ echo " --disable-golomb disable Golomb code" echo " --disable-mdct disable MDCT code" echo " --disable-rdft disable RDFT code" + echo " --enable-runtime-cpudetect detect cpu capabilities at runtime (bigger binary)" echo " --enable-hardcoded-tables use hardcoded tables instead of runtime generation" echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers" echo " --enable-beos-netserver enable BeOS netserver" @@ -109,6 +110,9 @@ show_help(){ echo " --disable-decoder=NAME disable decoder NAME" echo " --enable-decoder=NAME enable decoder NAME" echo " --disable-decoders disable all decoders" + echo " --disable-hwaccel=NAME disable hwaccel NAME" + echo " --enable-hwaccel=NAME enable hwaccel NAME" + echo " --disable-hwaccels disable all hwaccels" echo " --disable-muxer=NAME disable muxer NAME" echo " --enable-muxer=NAME enable muxer NAME" echo " --disable-muxers disable all muxers" @@ -132,6 +136,7 @@ show_help(){ echo " --disable-filters disable all filters" echo " --list-decoders show all available decoders" echo " --list-encoders show all available encoders" + echo " --list-hwaccels show all available hardware accelerators" echo " --list-muxers show all available muxers" echo " --list-demuxers show all available demuxers" echo " --list-parsers show all available parsers" @@ -241,6 +246,7 @@ echolog(){ die(){ echolog "$@" cat < 3) || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" || die "ERROR: MinGW runtime version must be >= 3.15." @@ -1633,6 +1655,7 @@ case $target_os in SHFLAGS='-shared -Wl,--enable-auto-image-base' objformat="win32" enable dos_paths + check_cflags -fno-common ;; *-dos|freedos|opendos) disable ffplay ffserver @@ -1671,6 +1694,8 @@ case $target_os in SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.lib' enable dos_paths ;; + gnu/kfreebsd) + ;; *) die "Unknown OS '$target_os'." @@ -1713,22 +1738,20 @@ EOF fi -if ! enabled gpl; then - die_gpl_disabled(){ - name=$1 - shift - enabled_any $@ && die "$name is under GPL and --enable-gpl is not specified." - } - die_gpl_disabled "The Postprocessing code" postproc - die_gpl_disabled "libx264" libx264 - die_gpl_disabled "libxvidcore" libxvid - die_gpl_disabled "FAAD2" libfaad2 - die_gpl_disabled "The X11 grabber" x11grab -fi +die_license_disabled() { + enabled $1 || { enabled $2 && die "$2 is $1 and --enable-$1 is not specified."; } +} + +die_license_disabled gpl libfaad2 +die_license_disabled gpl libx264 +die_license_disabled gpl libxvid +die_license_disabled gpl postproc +die_license_disabled gpl x11grab + +die_license_disabled nonfree libamr_nb +die_license_disabled nonfree libamr_wb +die_license_disabled nonfree libfaac -if ! enabled nonfree && enabled_any libamr_nb libamr_wb; then - die "libamr is nonfree and --enable-nonfree is not specified." -fi check_deps $ARCH_EXT_LIST @@ -1786,7 +1809,7 @@ if test $cpu != "generic"; then Cell|CELL|cell) add_cflags -mcpu=cell warn_altivec disabled Cell - enable ppc64 + enable ppc64 ldbrx ;; # targets that do NOT support conditional mov (cmov) i[345]86|pentium|pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3) @@ -1821,6 +1844,9 @@ if test $cpu != "generic"; then ev4|ev45|ev5|ev56|pca56|ev6|ev67) enabled ccc && add_cflags -arch $cpu || add_cflags -mcpu=$cpu ;; + bf*) + add_cflags -mcpu=$cpu + ;; *) echo "WARNING: Unknown CPU \"$cpu\", ignored." ;; @@ -1886,6 +1912,7 @@ fi enabled ppc && check_asm dcbzl '"dcbzl 0, 1"' enabled ppc && check_asm ppc4xx '"maclhw r10, r11, r12"' +enabled ppc && check_asm xform_asm '"lwzx 0, %y0" :: "Z"(*(int*)0)' # check for SIMD availability @@ -1952,6 +1979,7 @@ check_func memalign check_func mkstemp check_func posix_memalign check_func_headers io.h setmode +check_func_headers lzo/lzo1x.h lzo1x_999_compress check_func_headers windows.h GetProcessTimes check_func_headers windows.h VirtualAlloc @@ -2001,6 +2029,7 @@ for thread in $THREADS_LIST; do done check_lib math.h sin -lm +check_lib va/va.h vaInitialize -lva # test for C99 functions in math.h for func in llrint lrint lrintf round roundf truncf; do @@ -2012,7 +2041,7 @@ done # these are off by default, so fail if requested and not available enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32 -enabled libamr_nb && require libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm +enabled libamr_nb && require libamrnb amrnb/interf_dec.h Decoder_Interface_init -lamrnb -lm enabled libamr_wb && require libamrwb amrwb/dec_if.h D_IF_init -lamrwb -lm enabled libdirac && add_cflags $(pkg-config --cflags dirac) && require libdirac libdirac_decoder/dirac_parser.h dirac_decoder_init -ldirac_decoder && @@ -2134,6 +2163,8 @@ check_header soundcard.h check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound +check_lib2 jack/jack.h jack_client_open -ljack + # deal with the X11 frame grabber enabled x11grab && check_header X11/Xlib.h && @@ -2225,6 +2256,7 @@ check_asm asmalign_pot '".align 3"' enabled_any $DECODER_LIST && enable decoders enabled_any $ENCODER_LIST && enable encoders +enabled_any $HWACCEL_LIST && enable hwaccels enabled_any $BSF_LIST && enable bsfs enabled_any $DEMUXER_LIST && enable demuxers enabled_any $MUXER_LIST && enable muxers @@ -2240,6 +2272,7 @@ check_deps $CONFIG_LIST \ $HAVE_LIST \ $DECODER_LIST \ $ENCODER_LIST \ + $HWACCEL_LIST \ $PARSER_LIST \ $BSF_LIST \ $DEMUXER_LIST \ @@ -2261,6 +2294,7 @@ if test "$extra_version" != ""; then echo "version string suffix $extra_version" fi echo "big-endian ${bigendian-no}" +echo "runtime cpu detection ${runtime_cpudetect-no}" if enabled x86; then echo "yasm ${yasm-no}" echo "MMX enabled ${mmx-no}" @@ -2336,7 +2370,7 @@ echo "zlib enabled ${zlib-no}" echo "bzlib enabled ${bzlib-no}" echo -for type in decoder encoder parser demuxer muxer protocol filter bsf indev outdev; do +for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do echo "Enabled ${type}s:" eval list=\$$(toupper $type)_LIST for part in $list; do @@ -2463,6 +2497,7 @@ print_config CONFIG_ $TMPH config.mak $CONFIG_LIST \ $CONFIG_EXTRA \ $DECODER_LIST \ $ENCODER_LIST \ + $HWACCEL_LIST \ $PARSER_LIST \ $BSF_LIST \ $DEMUXER_LIST \