X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=b014e6b99c49f32e5d22441c0238e26d77aa433b;hb=4e67382d72982a0670062f2f7e0567036d038c6e;hp=b572d598d463307676613bf3da1360764af75381;hpb=9457a11a220c406ce3576ea78ca28c251c3240cf;p=ffmpeg diff --git a/configure b/configure index b572d598d46..b014e6b99c4 100755 --- a/configure +++ b/configure @@ -338,6 +338,7 @@ Toolchain options: Advanced options (experts only): --malloc-prefix=PREFIX prefix malloc and related names with PREFIX + --custom-allocator=NAME use a supported custom allocator --disable-symver disable symbol versioning --enable-hardcoded-tables use hardcoded tables instead of runtime generation --disable-safe-bitstream-reader @@ -2011,6 +2012,7 @@ CMDLINE_SET=" cc cpu cross_prefix + custom_allocator cxx dep_cc doxygen @@ -2325,6 +2327,7 @@ rv20_decoder_select="h263_decoder" rv20_encoder_select="h263_encoder" rv30_decoder_select="golomb h264pred h264qpel mpegvideo rv34dsp" rv40_decoder_select="golomb h264pred h264qpel mpegvideo rv34dsp" +screenpresso_decoder_deps="zlib" shorten_decoder_select="golomb" sipr_decoder_select="lsp" snow_decoder_select="dwt h264qpel hpeldsp me_cmp rangecoder videodsp" @@ -2693,7 +2696,7 @@ x11grab_indev_deps="x11grab" x11grab_xcb_indev_deps="libxcb" # protocols -async_protocol_deps="pthreads" +async_protocol_deps="threads" bluray_protocol_deps="libbluray" ffrtmpcrypt_protocol_deps="!librtmp_protocol" ffrtmpcrypt_protocol_deps_any="gcrypt gmp openssl" @@ -4199,6 +4202,7 @@ fi if [ "$cpu" != generic ]; then add_cflags $cpuflags add_asflags $cpuflags + test "$cc_type" = "$ld_type" && add_ldflags $cpuflags fi # compiler sanity check @@ -5092,6 +5096,17 @@ check_builtin sync_val_compare_and_swap "" "int *ptr; int oldval, newval; __sync check_builtin gmtime_r time.h "time_t *time; struct tm *tm; gmtime_r(time, tm)" check_builtin localtime_r time.h "time_t *time; struct tm *tm; localtime_r(time, tm)" +case "$custom_allocator" in + jemalloc) + # jemalloc by default does not use a prefix + require libjemalloc jemalloc/jemalloc.h malloc -ljemalloc + ;; + tcmalloc) + require_pkg_config libtcmalloc gperftools/tcmalloc.h tc_malloc + malloc_prefix=tc_ + ;; +esac + check_func_headers malloc.h _aligned_malloc && enable aligned_malloc check_func ${malloc_prefix}memalign && enable memalign check_func ${malloc_prefix}posix_memalign && enable posix_memalign @@ -5288,7 +5303,7 @@ enabled libopus && require_pkg_config opus opus_multistream.h opus_mul enabled libpulse && require_pkg_config libpulse pulse/pulseaudio.h pa_context_new enabled libquvi && require_pkg_config libquvi quvi/quvi.h quvi_init enabled librtmp && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket -enabled librubberband && require_pkg_config rubberband rubberband/rubberband-c.h rubberband_new +enabled librubberband && require_pkg_config "rubberband >= 1.8.1" rubberband/rubberband-c.h rubberband_new enabled libschroedinger && require_pkg_config schroedinger-1.0 schroedinger/schro.h schro_init enabled libshine && require_pkg_config shine shine/layer3.h shine_encode_buffer enabled libsmbclient && { use_pkg_config smbclient libsmbclient.h smbc_init ||