X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=7e52abf47b99d9ca29a71d2d0b89b1a1068e3b72;hb=2df7f7714a12a59d31058aba15fb1e348e36b0ab;hp=11005ab320faa0a725be005c77030ce05ea67292;hpb=f4ca970dba13a60a1334cce1b574036e6f624b9c;p=ffmpeg diff --git a/configure b/configure index 11005ab320f..7e52abf47b9 100755 --- a/configure +++ b/configure @@ -329,7 +329,7 @@ die(){ If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the -libav-user@libav.org mailing list or IRC #libav on irc.freenode.net. +libav-tools@libav.org mailing list or IRC #libav on irc.freenode.net. EOF if disabled logging; then cat </dev/null | grep -q ^cparser; then + _type=cparser + _ident=$($_cc --version | head -n1) + _depflags='-MMD' + _cflags_speed='-O4' + _cflags_size='-O2' + _flags_filter=cparser_flags fi eval ${pfx}_type=\$_type @@ -3174,7 +3196,7 @@ case $target_os in # Link to the import library instead of the normal static library # for shared libs. LD_LIB='%.lib' - # Cannot build shared and static libs at the same time with MSVC. + # Cannot build both shared and static libs with MSVC or icl. disable static fi shlibdir_default="$bindir_default" @@ -3569,8 +3591,8 @@ EOF elf*) enabled debug && append YASMFLAGS $yasm_debug ;; esac - check_yasm "vextractf128 xmm0, ymm0, 0" && enable yasm || - die "yasm not found, use --disable-yasm for a crippled build" + check_yasm "movbe ecx, [5]" && enable yasm || + die "yasm/nasm not found or too old. Use --disable-yasm for a crippled build." check_yasm "vfmaddps ymm0, ymm1, ymm2, ymm3" || disable fma4_external check_yasm "CPU amdnop" && enable cpunop fi @@ -3893,7 +3915,7 @@ enabled xmm_clobber_test && -Wl,--wrap,avcodec_decode_video2 \ -Wl,--wrap,avcodec_decode_subtitle2 \ -Wl,--wrap,avcodec_encode_audio2 \ - -Wl,--wrap,avcodec_encode_video \ + -Wl,--wrap,avcodec_encode_video2 \ -Wl,--wrap,avcodec_encode_subtitle \ -Wl,--wrap,sws_scale || disable xmm_clobber_test @@ -3980,6 +4002,9 @@ elif enabled clang; then check_cflags -Werror=implicit-function-declaration check_cflags -Werror=missing-prototypes check_cflags -Werror=return-type +elif enabled cparser; then + add_cflags -Wno-missing-variable-declarations + add_cflags -Wno-empty-statement elif enabled armcc; then # 2523: use of inline assembler is deprecated add_cflags -W${armcc_opt},--diag_suppress=2523 @@ -3996,9 +4021,12 @@ elif enabled_any msvc icl; then enabled x86_32 && disable aligned_stack enabled_all x86_32 debug && add_cflags -Oy- enabled debug && add_ldflags -debug + enable pragma_deprecated if enabled icl; then - # basically -fstrict-aliasing that does not work (correctly) on icl 13.x - check_cpp_condition "windows.h" "__ICL < 1300" && add_cflags -Qansi-alias + # -Qansi-alias is basically -fstrict-aliasing, but does not work + # (correctly) on icl 13.x. + check_cpp_condition "windows.h" "__ICL < 1300 || __ICL >= 1400" && + add_cflags -Qansi-alias # icl will pass the inline asm tests but inline asm is currently # not supported (build will fail) disable inline_asm @@ -4140,6 +4168,7 @@ AR=$ar ARFLAGS=$arflags AR_O=$ar_o RANLIB=$ranlib +STRIP=$strip LN_S=$ln_s CPPFLAGS=$CPPFLAGS CFLAGS=$CFLAGS