• Home
  • Raw
  • Download

Lines Matching +full:clang +full:- +full:cl +full:- +full:10 +full:- +full:x86

5 # Copyright (c) 2000-2002 Fabrice Bellard
6 # Copyright (c) 2005-2008 Diego Biurrun
7 # Copyright (c) 2005-2008 Mans Rullgard
32 if test "0$FF_CONF_EXEC" -lt 1; then
36 if test "0$FF_CONF_EXEC" -lt 2; then
40 if test "0$FF_CONF_EXEC" -lt 3; then
45 echo "This configure script requires a POSIX-compatible shell"
48 echo "Instead, install a working POSIX-compatible shell."
50 if test "$BASH_VERSION" = '2.04.0(1)-release'; then
57 test -d /usr/xpg4/bin && PATH=/usr/xpg4/bin:$PATH
65 --help print this message
66 --quiet Suppress showing informative output
67 --list-decoders show all available decoders
68 --list-encoders show all available encoders
69 --list-hwaccels show all available hardware accelerators
70 --list-demuxers show all available demuxers
71 --list-muxers show all available muxers
72 --list-parsers show all available parsers
73 --list-protocols show all available protocols
74 --list-bsfs show all available bitstream filters
75 --list-indevs show all available input devices
76 --list-outdevs show all available output devices
77 --list-filters show all available filters
80 --logfile=FILE log tests and output to FILE [ffbuild/config.log]
81 --disable-logging do not log configure debug information
82 --fatal-warnings fail if any configure warning is generated
83 --prefix=PREFIX install in PREFIX [$prefix_default]
84 --bindir=DIR install binaries in DIR [PREFIX/bin]
85 --datadir=DIR install data files in DIR [PREFIX/share/ffmpeg]
86 --docdir=DIR install documentation in DIR [PREFIX/share/doc/ffmpeg]
87 --libdir=DIR install libs in DIR [PREFIX/lib]
88 --shlibdir=DIR install shared libs in DIR [LIBDIR]
89 --incdir=DIR install includes in DIR [PREFIX/include]
90 --mandir=DIR install man page in DIR [PREFIX/share/man]
91 --pkgconfigdir=DIR install pkg-config files in DIR [LIBDIR/pkgconfig]
92 --enable-rpath use rpath to allow installing libraries in paths
95 --install-name-dir=DIR Darwin directory name for installed targets
98 --enable-gpl allow use of GPL code, the resulting libs
100 --enable-version3 upgrade (L)GPL to version 3 [no]
101 --enable-nonfree allow use of nonfree code, the resulting libs
105 --disable-static do not build static libraries [no]
106 --enable-shared build shared libraries [no]
107 --enable-small optimize for size instead of speed
108 --disable-runtime-cpudetect disable detecting CPU capabilities at runtime (smaller binary)
109 --enable-gray enable full grayscale support (slower color)
110 --disable-swscale-alpha disable alpha channel support in swscale
111 --disable-all disable building components, libraries and programs
112 --disable-autodetect disable automatically detected external libraries [no]
115 --disable-programs do not build command line programs
116 --disable-ffmpeg disable ffmpeg build
117 --disable-ffplay disable ffplay build
118 --disable-ffprobe disable ffprobe build
121 --disable-doc do not build documentation
122 --disable-htmlpages do not build HTML documentation pages
123 --disable-manpages do not build man documentation pages
124 --disable-podpages do not build POD documentation pages
125 --disable-txtpages do not build text documentation pages
128 --disable-avdevice disable libavdevice build
129 --disable-avcodec disable libavcodec build
130 --disable-avformat disable libavformat build
131 --disable-swresample disable libswresample build
132 --disable-swscale disable libswscale build
133 --disable-postproc disable libpostproc build
134 --disable-avfilter disable libavfilter build
135 --enable-avresample enable libavresample build (deprecated) [no]
136 --disable-pthreads disable pthreads [autodetect]
137 --disable-w32threads disable Win32 threads [autodetect]
138 --disable-os2threads disable OS/2 threads [autodetect]
139 --disable-network disable network support [no]
140 --disable-dct disable DCT code
141 --disable-dwt disable DWT code
142 --disable-error-resilience disable error resilience code
143 --disable-lsp disable LSP code
144 --disable-lzo disable LZO decoder code
145 --disable-mdct disable MDCT code
146 --disable-rdft disable RDFT code
147 --disable-fft disable FFT code
148 --disable-faan disable floating point AAN (I)DCT code
149 --disable-pixelutils disable pixel utils in libavutil
152 --disable-everything disable all components listed below
153 --disable-encoder=NAME disable encoder NAME
154 --enable-encoder=NAME enable encoder NAME
155 --disable-encoders disable all encoders
156 --disable-decoder=NAME disable decoder NAME
157 --enable-decoder=NAME enable decoder NAME
158 --disable-decoders disable all decoders
159 --disable-hwaccel=NAME disable hwaccel NAME
160 --enable-hwaccel=NAME enable hwaccel NAME
161 --disable-hwaccels disable all hwaccels
162 --disable-muxer=NAME disable muxer NAME
163 --enable-muxer=NAME enable muxer NAME
164 --disable-muxers disable all muxers
165 --disable-demuxer=NAME disable demuxer NAME
166 --enable-demuxer=NAME enable demuxer NAME
167 --disable-demuxers disable all demuxers
168 --enable-parser=NAME enable parser NAME
169 --disable-parser=NAME disable parser NAME
170 --disable-parsers disable all parsers
171 --enable-bsf=NAME enable bitstream filter NAME
172 --disable-bsf=NAME disable bitstream filter NAME
173 --disable-bsfs disable all bitstream filters
174 --enable-protocol=NAME enable protocol NAME
175 --disable-protocol=NAME disable protocol NAME
176 --disable-protocols disable all protocols
177 --enable-indev=NAME enable input device NAME
178 --disable-indev=NAME disable input device NAME
179 --disable-indevs disable input devices
180 --enable-outdev=NAME enable output device NAME
181 --disable-outdev=NAME disable output device NAME
182 --disable-outdevs disable output devices
183 --disable-devices disable all devices
184 --enable-filter=NAME enable filter NAME
185 --disable-filter=NAME disable filter NAME
186 --disable-filters disable all filters
193 explicitly disabled. E.g. --enable-libwavpack will enable linking to
195 specifically disabled with --disable-encoder=libwavpack.
197 Note that only the system libraries are auto-detected. All the other external
203 --disable-alsa disable ALSA support [autodetect]
204 --disable-appkit disable Apple AppKit framework [autodetect]
205 --disable-avfoundation disable Apple AVFoundation framework [autodetect]
206 --enable-avisynth enable reading of AviSynth script files [no]
207 --disable-bzlib disable bzlib [autodetect]
208 --disable-coreimage disable Apple CoreImage framework [autodetect]
209 --enable-chromaprint enable audio fingerprinting with chromaprint [no]
210 --enable-frei0r enable frei0r video filtering [no]
211 --enable-gcrypt enable gcrypt, needed for rtmp(t)e support
213 --enable-gmp enable gmp, needed for rtmp(t)e support
215 --enable-gnutls enable gnutls, needed for https support
217 --disable-iconv disable iconv [autodetect]
218 --enable-jni enable JNI support [no]
219 --enable-ladspa enable LADSPA audio filtering [no]
220 --enable-libaom enable AV1 video encoding/decoding via libaom [no]
221 --enable-libaribb24 enable ARIB text and caption decoding via libaribb24 [no]
222 --enable-libass enable libass subtitles rendering,
224 --enable-libbluray enable BluRay reading using libbluray [no]
225 --enable-libbs2b enable bs2b DSP library [no]
226 --enable-libcaca enable textual display using libcaca [no]
227 --enable-libcelt enable CELT decoding via libcelt [no]
228 --enable-libcdio enable audio CD grabbing with libcdio [no]
229 --enable-libcodec2 enable codec2 en/decoding using libcodec2 [no]
230 --enable-libdav1d enable AV1 decoding via libdav1d [no]
231 --enable-libdavs2 enable AVS2 decoding via libdavs2 [no]
232 --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
234 --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no]
235 --enable-libflite enable flite (voice synthesis) support via libflite [no]
236 --enable-libfontconfig enable libfontconfig, useful for drawtext filter [no]
237 --enable-libfreetype enable libfreetype, needed for drawtext filter [no]
238 --enable-libfribidi enable libfribidi, improves drawtext filter [no]
239 --enable-libglslang enable GLSL->SPIRV compilation via libglslang [no]
240 --enable-libgme enable Game Music Emu via libgme [no]
241 --enable-libgsm enable GSM de/encoding via libgsm [no]
242 --enable-libiec61883 enable iec61883 via libiec61883 [no]
243 --enable-libilbc enable iLBC de/encoding via libilbc [no]
244 --enable-libjack enable JACK audio sound server [no]
245 --enable-libklvanc enable Kernel Labs VANC processing [no]
246 --enable-libkvazaar enable HEVC encoding via libkvazaar [no]
247 --enable-liblensfun enable lensfun lens correction [no]
248 --enable-libmodplug enable ModPlug via libmodplug [no]
249 --enable-libmp3lame enable MP3 encoding via libmp3lame [no]
250 --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]
251 --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
252 --enable-libopencv enable video filtering via libopencv [no]
253 --enable-libopenh264 enable H.264 encoding via OpenH264 [no]
254 --enable-libopenjpeg enable JPEG 2000 de/encoding via OpenJPEG [no]
255 --enable-libopenmpt enable decoding tracked files via libopenmpt [no]
256 --enable-libopus enable Opus de/encoding via libopus [no]
257 --enable-libpulse enable Pulseaudio input via libpulse [no]
258 --enable-librabbitmq enable RabbitMQ library [no]
259 --enable-librav1e enable AV1 encoding via rav1e [no]
260 --enable-librsvg enable SVG rasterization via librsvg [no]
261 --enable-librubberband enable rubberband needed for rubberband filter [no]
262 --enable-librtmp enable RTMP[E] support via librtmp [no]
263 --enable-libshine enable fixed-point MP3 encoding via libshine [no]
264 --enable-libsmbclient enable Samba protocol via libsmbclient [no]
265 --enable-libsnappy enable Snappy compression, needed for hap encoding [no]
266 --enable-libsoxr enable Include libsoxr resampling [no]
267 --enable-libspeex enable Speex de/encoding via libspeex [no]
268 --enable-libsrt enable Haivision SRT protocol via libsrt [no]
269 --enable-libssh enable SFTP protocol via libssh [no]
270 --enable-libtensorflow enable TensorFlow as a DNN module backend
272 --enable-libtesseract enable Tesseract, needed for ocr filter [no]
273 --enable-libtheora enable Theora encoding via libtheora [no]
274 --enable-libtls enable LibreSSL (via libtls), needed for https support
276 --enable-libtwolame enable MP2 encoding via libtwolame [no]
277 --enable-libv4l2 enable libv4l2/v4l-utils [no]
278 --enable-libvidstab enable video stabilization using vid.stab [no]
279 --enable-libvmaf enable vmaf filter via libvmaf [no]
280 --enable-libvo-amrwbenc enable AMR-WB encoding via libvo-amrwbenc [no]
281 --enable-libvorbis enable Vorbis en/decoding via libvorbis,
283 --enable-libvpx enable VP8 and VP9 de/encoding via libvpx [no]
284 --enable-libwavpack enable wavpack encoding via libwavpack [no]
285 --enable-libwebp enable WebP encoding via libwebp [no]
286 --enable-libx264 enable H.264 encoding via x264 [no]
287 --enable-libx265 enable HEVC encoding via x265 [no]
288 --enable-libxavs enable AVS encoding via xavs [no]
289 --enable-libxavs2 enable AVS2 encoding via xavs2 [no]
290 --enable-libxcb enable X11 grabbing using XCB [autodetect]
291 --enable-libxcb-shm enable X11 grabbing shm communication [autodetect]
292 --enable-libxcb-xfixes enable X11 grabbing mouse rendering [autodetect]
293 --enable-libxcb-shape enable X11 grabbing shape rendering [autodetect]
294 --enable-libxvid enable Xvid encoding via xvidcore,
295 native MPEG-4/Xvid encoder exists [no]
296 --enable-libxml2 enable XML parsing using the C library libxml2, needed
298 --enable-libzimg enable z.lib, needed for zscale filter [no]
299 --enable-libzmq enable message passing via libzmq [no]
300 --enable-libzvbi enable teletext support via libzvbi [no]
301 --enable-lv2 enable LV2 audio filtering [no]
302 --disable-lzma disable lzma [autodetect]
303 --enable-decklink enable Blackmagic DeckLink I/O support [no]
304 --enable-mbedtls enable mbedTLS, needed for https support
306 --enable-mediacodec enable Android MediaCodec support [no]
307 --enable-mediafoundation enable encoding via MediaFoundation [auto]
308 --enable-libmysofa enable libmysofa, needed for sofalizer filter [no]
309 --enable-openal enable OpenAL 1.1 capture support [no]
310 --enable-opencl enable OpenCL processing [no]
311 --enable-opengl enable OpenGL rendering [no]
312 --enable-openssl enable openssl, needed for https support
314 --enable-pocketsphinx enable PocketSphinx, needed for asr filter [no]
315 --disable-sndio disable sndio support [autodetect]
316 --disable-schannel disable SChannel SSP, needed for TLS support on
318 --disable-sdl2 disable sdl2 [autodetect]
319 --disable-securetransport disable Secure Transport, needed for TLS support
321 --enable-vapoursynth enable VapourSynth demuxer [no]
322 --enable-vulkan enable Vulkan code [no]
323 --disable-xlib disable xlib [autodetect]
324 --disable-zlib disable zlib [autodetect]
327 --disable-amf disable AMF video encoding code [autodetect]
328 --disable-audiotoolbox disable Apple AudioToolbox code [autodetect]
329 --enable-cuda-nvcc enable Nvidia CUDA compiler [no]
330 --disable-cuda-llvm disable CUDA compilation using clang [autodetect]
331 --disable-cuvid disable Nvidia CUVID support [autodetect]
332 --disable-d3d11va disable Microsoft Direct3D 11 video acceleration code [autodetect]
333 --disable-dxva2 disable Microsoft DirectX 9 video acceleration code [autodetect]
334 --disable-ffnvcodec disable dynamically linked Nvidia code [autodetect]
335 --enable-libdrm enable DRM code (Linux) [no]
336 --enable-libmfx enable Intel MediaSDK (AKA Quick Sync Video) code via libmfx [no]
337 --enable-libnpp enable Nvidia Performance Primitives-based code [no]
338--enable-mmal enable Broadcom Multi-Media Abstraction Layer (Raspberry Pi) via MMAL [no]
339 --disable-nvdec disable Nvidia video decoding acceleration (via hwaccel) [autodetect]
340 --disable-nvenc disable Nvidia video encoding code [autodetect]
341 --enable-omx enable OpenMAX IL code [no]
342 --enable-omx-rpi enable OpenMAX IL code for Raspberry Pi [no]
343 --enable-rkmpp enable Rockchip Media Process Platform code [no]
344 --disable-v4l2-m2m disable V4L2 mem2mem code [autodetect]
345 --disable-vaapi disable Video Acceleration API (mainly Unix/Intel) code [autodetect]
346--disable-vdpau disable Nvidia Video Decode and Presentation API for Unix code [autodetec…
347 --disable-videotoolbox disable VideoToolbox code [autodetect]
350 --arch=ARCH select architecture [$arch]
351 --cpu=CPU select the minimum required CPU (affects
353 --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]
354 --progs-suffix=SUFFIX program name suffix []
355 --enable-cross-compile assume a cross-compiler is used
356 --sysroot=PATH root of cross-build tree
357 --sysinclude=PATH location of cross-build system headers
358 --target-os=OS compiler targets OS [$target_os]
359 --target-exec=CMD command to run executables on target
360 --target-path=DIR path to view of build directory on target
361 --target-samples=DIR path to samples directory on target
362 --tempprefix=PATH force fixed dir/prefix instead of mktemp for checks
363 --toolchain=NAME set tool defaults according to NAME
364 (gcc-asan, clang-asan, gcc-msan, clang-msan,
365 gcc-tsan, clang-tsan, gcc-usan, clang-usan,
366 valgrind-massif, valgrind-memcheck,
367 msvc, icl, gcov, llvm-cov, hardened)
368 --nm=NM use nm tool NM [$nm_default]
369 --ar=AR use archive tool AR [$ar_default]
370 --as=AS use assembler AS [$as_default]
371 --ln_s=LN_S use symbolic link tool LN_S [$ln_s_default]
372 --strip=STRIP use strip tool STRIP [$strip_default]
373 --windres=WINDRES use windows resource compiler WINDRES [$windres_default]
374 --x86asmexe=EXE use nasm-compatible assembler EXE [$x86asmexe_default]
375 --cc=CC use C compiler CC [$cc_default]
376 --cxx=CXX use C compiler CXX [$cxx_default]
377 --objcc=OCC use ObjC compiler OCC [$cc_default]
378 --dep-cc=DEPCC use dependency generator DEPCC [$cc_default]
379 --nvcc=NVCC use Nvidia CUDA compiler NVCC or clang [$nvcc_default]
380 --ld=LD use linker LD [$ld_default]
381 --pkg-config=PKGCONFIG use pkg-config tool PKGCONFIG [$pkg_config_default]
382 --pkg-config-flags=FLAGS pass additional flags to pkgconf []
383 --ranlib=RANLIB use ranlib RANLIB [$ranlib_default]
384 --doxygen=DOXYGEN use DOXYGEN to generate API doc [$doxygen_default]
385 --host-cc=HOSTCC use host C compiler HOSTCC
386 --host-cflags=HCFLAGS use HCFLAGS when compiling for host
387 --host-cppflags=HCPPFLAGS use HCPPFLAGS when compiling for host
388 --host-ld=HOSTLD use host linker HOSTLD
389 --host-ldflags=HLDFLAGS use HLDFLAGS when linking for host
390 --host-extralibs=HLIBS use libs HLIBS when linking for host
391 --host-os=OS compiler host OS [$target_os]
392 --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]
393 --extra-cxxflags=ECFLAGS add ECFLAGS to CXXFLAGS [$CXXFLAGS]
394 --extra-objcflags=FLAGS add FLAGS to OBJCFLAGS [$CFLAGS]
395 --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]
396 --extra-ldexeflags=ELDFLAGS add ELDFLAGS to LDEXEFLAGS [$LDEXEFLAGS]
397 --extra-ldsoflags=ELDFLAGS add ELDFLAGS to LDSOFLAGS [$LDSOFLAGS]
398 --extra-libs=ELIBS add ELIBS [$ELIBS]
399 --extra-version=STRING version string suffix []
400 --optflags=OPTFLAGS override optimization-related compiler flags
401 --nvccflags=NVCCFLAGS override nvcc flags [$nvccflags_default]
402 --build-suffix=SUFFIX library name suffix []
403 --enable-pic build position-independent code
404 --enable-thumb compile for Thumb instruction set
405 --enable-lto use link-time optimization
406 --env="ENV=override" override the environment variables
409 --malloc-prefix=PREFIX prefix malloc and related names with PREFIX
410 --custom-allocator=NAME use a supported custom allocator
411 --disable-symver disable symbol versioning
412 --enable-hardcoded-tables use hardcoded tables instead of runtime generation
413 --disable-safe-bitstream-reader
416 --sws-max-filter-size=N the max filter size swscale uses [$sws_max_filter_size_default]
419 --disable-asm disable all assembly optimizations
420 --disable-altivec disable AltiVec optimizations
421 --disable-vsx disable VSX optimizations
422 --disable-power8 disable POWER8 optimizations
423 --disable-amd3dnow disable 3DNow! optimizations
424 --disable-amd3dnowext disable 3DNow! extended optimizations
425 --disable-mmx disable MMX optimizations
426 --disable-mmxext disable MMXEXT optimizations
427 --disable-sse disable SSE optimizations
428 --disable-sse2 disable SSE2 optimizations
429 --disable-sse3 disable SSE3 optimizations
430 --disable-ssse3 disable SSSE3 optimizations
431 --disable-sse4 disable SSE4 optimizations
432 --disable-sse42 disable SSE4.2 optimizations
433 --disable-avx disable AVX optimizations
434 --disable-xop disable XOP optimizations
435 --disable-fma3 disable FMA3 optimizations
436 --disable-fma4 disable FMA4 optimizations
437 --disable-avx2 disable AVX2 optimizations
438 --disable-avx512 disable AVX-512 optimizations
439 --disable-aesni disable AESNI optimizations
440 --disable-armv5te disable armv5te optimizations
441 --disable-armv6 disable armv6 optimizations
442 --disable-armv6t2 disable armv6t2 optimizations
443 --disable-vfp disable VFP optimizations
444 --disable-neon disable NEON optimizations
445 --disable-inline-asm disable use of inline assembly
446 --disable-x86asm disable use of standalone x86 assembly
447 --disable-mipsdsp disable MIPS DSP ASE R1 optimizations
448 --disable-mipsdspr2 disable MIPS DSP ASE R2 optimizations
449 --disable-msa disable MSA optimizations
450 --disable-msa2 disable MSA2 optimizations
451 --disable-mipsfpu disable floating point MIPS optimizations
452 --disable-mmi disable Loongson SIMD optimizations
453 --disable-fast-unaligned consider unaligned accesses slow
456 --disable-debug disable debugging symbols
457 --enable-debug=LEVEL set the debug level [$debuglevel]
458 --disable-optimizations disable compiler optimizations
459 --enable-extra-warnings enable more compiler warnings
460 --disable-stripping disable stripping of executables and shared libraries
461 --assert-level=level 0(default), 1 or 2, amount of assertion testing,
463 --enable-memory-poisoning fill heap uninitialized allocated space with arbitrary data
464 --valgrind=VALGRIND run "make fate" tests through valgrind to detect memory
466 Cannot be combined with --target-exec
467 --enable-ftrapv Trap arithmetic overflows
468 --samples=PATH location of test samples for FATE, if not set use
470 --enable-neon-clobber-test check NEON registers for clobbering (should be
472 --enable-xmm-clobber-test check XMM registers for clobbering (Win64-only;
474 --enable-random randomly enable/disable components
475 --disable-random
476 --enable-random=LIST randomly enable/disable specific components or
477 --disable-random=LIST component groups. LIST is a comma-separated list
481 --random-seed=VALUE seed value for --enable/disable-random
482 --disable-valgrind-backtrace do not print a backtrace under Valgrind
483 (only applies to --disable-optimizations builds)
484 --enable-ossfuzz Enable building fuzzer tool
485 --libfuzzer=PATH path to libfuzzer
486 --ignore-tests=TESTS comma-separated list (without "fate-" prefix
488 --enable-linux-perf enable Linux Performance Monitor API
489 --disable-large-tests disable tests that use a large amount of memory
496 if test -t 1 && which tput >/dev/null 2>&1; then
498 if test -n "$ncolors" && test $ncolors -ge 8; then
516 while IFS= read -r log_file_line; do
535 ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
539 Rerun configure with logging enabled (do not use --disable-logging), and
566 test "x$v" = "x${v#*[!A-Za-z0-9_/.+-]}" || v="'$v'"
625 echo $@ | sed 's/[^A-Za-z0-9_]/_/g'
648 eval level=\${${pvar}_level:-0}
650 eval level=$(($level-1))
709 set -- $var
724 set -- $var
804 # most of the time here $cfg has no deps - avoid costly no-op work
808 set -- $cfg "$dep_all" "$dep_any" "$dep_con" "$dep_sel" "$dep_sgs" "$dep_ifa" "$dep_ifn"
812 [ -n "$dep_ifa" ] && { enabled_all $dep_ifa && enable_weak $cfg; }
813 [ -n "$dep_ifn" ] && { enabled_any $dep_ifn && enable_weak $cfg; }
836 map 'eval echo "$v \${$v:-no}"' "$@" |
850 n = -v ? \"\" : \"!\";
853 pre = -v ? \"\" : \"@c \";
856 gsub(/_/, \"-\", c2);
893 # keeps the last occurence of each non-unique item
975 map 'add_cppflags -D$v' "$@"
1031 test_cmd $cxx $CPPFLAGS $CFLAGS $CXXFLAGS "$@" $CXX_C -o $TMPO $TMPCPP
1038 …test_cmd $objcc -Werror=missing-prototypes $CPPFLAGS $CFLAGS $OBJCFLAGS "$@" $OBJCC_C $(cc_o $TMPO…
1047 [ -x "$(command -v cygpath)" ] && tmpcu_=$(cygpath -m $tmpcu_) && tmpo_=$(cygpath -m $tmpo_)
1083 test_cmd $x86asmexe $X86ASMFLAGS -Werror "$@" $(x86asm_o $TMPO) $TMPASM
1153 flags=$(filter_out '-l*|*.so' $@)
1154 libs=$(filter '-l*|*.so' $@)
1200 set -- $($cflags_filter "$@")
1213 set -- $($cflags_filter "$@")
1221 set -- $($objcflags_filter "$@")
1234 set -- $($ldflags_filter "$@")
1274 rm -f -- "$TMPO"
1291 enable $name && eval ${name}_extralibs='"-framework $framework"'
1402 set -- $($cflags_filter "$flags")
1442 test_cmd $pkg_config --exists --print-errors $pkg_version || return
1443 pkg_cflags=$($pkg_config --cflags $pkg_config_flags $pkg)
1444 pkg_libs=$($pkg_config --libs $pkg_config_flags $pkg)
1509 test_code cc "$headers" "const void *p = &(($struct *)0)->$member" "$@" &&
1530 test_code cc "$headers" "char c[2 * !!($condition) - 1]" "$@" && enable "$name"
1578 …check_pkg_config "$@" || die "ERROR: $pkg_version not found using pkg-config$pkg_config_fail_messa…
1604 set -- $($host_cflags_filter "$@")
1632 cmp -s "$1" "$2" && { test "$quiet" != "yes" && echo "$2 is unchanged"; } && return
1633 mkdir -p "$(dirname $2)"
1634 cp -f "$1" "$2"
1638 # system-dependent things.
1995 x86
2564 i686_deps="x86"
2565 mmx_deps="x86"
2582 mmx_inline_deps="inline_asm x86"
2592 aligned_stack_if_any="aarch64 ppc x86"
2594 fast_clz_if_any="aarch64 alpha avr32 mips ppc x86"
2595 fast_unaligned_if_any="aarch64 ppc x86"
2908 videotoolbox_hwaccel_extralibs="-framework QuartzCore"
3016 # hardware-accelerated codecs
3018 mediafoundation_extralibs="-lmfplat -lmfuuid -lole32 -lstrmiids"
3364 android_camera_indev_extralibs="-landroid -lcamera2ndk -lmediandk"
3369 avfoundation_indev_extralibs="-framework Foundation"
3374 decklink_indev_extralibs="-lstdc++"
3377 decklink_outdev_extralibs="-lstdc++"
3379 dshow_indev_extralibs="-lpsapi -lole32 -lstrmiids -luuid -loleaut32 -lshlwapi"
3383 gdigrab_indev_extralibs="-lgdi32"
3503 coreimage_filter_extralibs="-framework OpenGL"
3505 coreimagesrc_filter_extralibs="-framework OpenGL"
3731 ln_s_default="ln -s -f"
3732 nm_default="nm -g"
3733 pkg_config_default=pkg-config
3736 version_script='--version-script'
3743 target_os_default=$(tolower $(uname -s))
3748 arch_default=$(uname -p)
3749 strip_default="strip -X32_64"
3750 nm_default="nm -g -X32_64"
3752 arch_default=$(uname -m)
3782 # Avoid external, non-system, libraries getting enabled by dependency resolution
3786 SHFLAGS='-shared -Wl,-soname,$$(@F)'
3805 AS_C='-c'
3806 AS_O='-o $@'
3807 CC_C='-c'
3808 CC_E='-E -o $@'
3809 CC_O='-o $@'
3810 CXX_C='-c'
3811 CXX_O='-o $@'
3812 OBJCC_C='-c'
3813 OBJCC_E='-E -o $@'
3814 OBJCC_O='-o $@'
3815 X86ASM_O='-o $@'
3816 LD_O='-o $@'
3817 LD_LIB='-l%'
3818 LD_PATH='-L'
3819 HOSTCC_C='-c'
3820 HOSTCC_E='-E -o $@'
3821 HOSTCC_O='-o $@'
3822 HOSTLD_O='-o $@'
3823 NVCC_C='-c'
3824 NVCC_O='-o $@'
3826 host_extralibs='-lm'
3832 # since the object filename is not given with the -MM flag, the compiler
3834 DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>/dev/null | sed -e "/^\#.*/d" -e "s,^[[:sp…
3835 DEPFLAGS='-MM'
3837 mkdir -p ffbuild
3840 if test -f configure; then
3842 elif test -f src/configure; then
3849 test -e "$source_path/config.h" &&
3864 out=${4:-$thing}
3865 sed -n "s/^[^#]*extern.*$pattern *ff_\([^ ]*\)_$thing;/\1_$out/p" "$file"
3870 sed -n 's/^extern AVFilter ff_[avfsinkrc]\{2,5\}_\([[:alnum:]_]\{1,\}\);/\1_filter/p' $file
3929 echo "See $0 --help for available options."
3934 tr ' ' '\n' | sort | tr '\r\n' ' ' | awk -v col_width=24 -v width="$ncols" '
3937 num_rows = int((NF + num_cols-1) / num_cols);
3943 line = sprintf("%s%-" col_width "s", line, $i);
3961 set -- $*
3968 echo "prob ${prob:-0.5}"
3983 --extra-ldflags=*)
3986 --extra-ldexeflags=*)
3989 --extra-ldsoflags=*)
3992 --extra-ldlibflags=*)
3993 warn "The --extra-ldlibflags option is only provided for compatibility and will be\n"\
3994 "removed in the future. Use --extra-ldsoflags instead."
3997 --extra-libs=*)
4000 --disable-devices)
4003 --enable-debug=*)
4006 --disable-programs)
4009 --disable-everything)
4012 --disable-all)
4017 --enable-random|--disable-random)
4018 action=${opt%%-random}
4019 do_random ${action#--} $COMPONENT_LIST
4021 --enable-random=*|--disable-random=*)
4022 action=${opt%%-random=*}
4023 do_random ${action#--} $optval
4025 --enable-sdl)
4028 --enable-*=*|--disable-*=*)
4029 eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
4038 --enable-yasm|--disable-yasm)
4040 "removed in the future. Use --enable-x86asm / --disable-x86asm instead."
4041 test $opt = --enable-yasm && x86asm=yes || x86asm=no
4043 --yasmexe=*)
4044 warn "The --yasmexe option is only provided for compatibility and will be\n"\
4045 "removed in the future. Use --x86asmexe instead."
4048 --enable-?*|--disable-?*)
4049 eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')
4059 --list-*)
4060 NAME="${opt#--list-}"
4065 --help|-h) show_help
4067 --quiet|-q) quiet=yes
4069 --fatal-warnings) enable fatal_warnings
4071 --libfuzzer=*)
4076 optname="${optname#--}"
4077 optname=$(echo "$optname" | sed 's/-/_/g')
4118 Specify --enable-static to build the static libraries or --enable-shared to
4120 --disable-static in addition to --enable-shared.
4126 enabled $1 || { enabled $v && die "$v is $1 and --enable-$1 is not specified."; }
4130 …enabled $1 || { enabled $v && die "$v is incompatible with the gpl and --enable-$1 is not specifie…
4162 # Disable all the library-specific components if the library itself
4177 test -n "$valgrind" && toolchain="valgrind-memcheck"
4179 enabled ossfuzz && ! echo $CFLAGS | grep -q -- "-fsanitize=" && ! echo $CFLAGS | grep -q -- "-fcov…
4180 …add_cflags -fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard,trace-cmp -fno-omit-fr…
4181 add_ldflags -fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard,trace-cmp
4185 *-asan)
4186 cc_default="${toolchain%-asan}"
4187 add_cflags -fsanitize=address
4188 add_ldflags -fsanitize=address
4190 *-msan)
4191 cc_default="${toolchain%-msan}"
4192 add_cflags -fsanitize=memory -fsanitize-memory-track-origins
4193 add_ldflags -fsanitize=memory
4195 *-tsan)
4196 cc_default="${toolchain%-tsan}"
4197 add_cflags -fsanitize=thread
4198 add_ldflags -fsanitize=thread
4200 gcc-tsan)
4201 add_cflags -fPIC
4202 add_ldflags -fPIC
4206 *-usan)
4207 cc_default="${toolchain%-usan}"
4208 add_cflags -fsanitize=undefined
4209 add_ldflags -fsanitize=undefined
4211 valgrind-*)
4214 valgrind-massif)
4215--tool=massif --alloc-fn=av_malloc --alloc-fn=av_mallocz --alloc-fn=av_calloc --alloc-fn=av_fast_p…
4217 valgrind-memcheck)
4218 …_args="--error-exitcode=1 --malloc-fill=0x2a --track-origins=yes --leak-check=full --gen-suppressi…
4229 cl_major_ver=$(cl.exe 2>&1 | sed -n 's/.*Version \([[:digit:]]\{1,\}\)\..*/\1/p')
4230 if [ -z "$cl_major_ver" ] || [ $cl_major_ver -ge 18 ]; then
4231 cc_default="cl.exe"
4232 cxx_default="cl.exe"
4237 nm_default="dumpbin.exe -symbols"
4251 # such as -Fo<file> or -out:<file>.
4257 nm_default="dumpbin -symbols"
4263 add_cflags -fprofile-arcs -ftest-coverage
4264 add_ldflags -fprofile-arcs -ftest-coverage
4266 llvm-cov)
4267 add_cflags -fprofile-arcs -ftest-coverage
4268 add_ldflags --coverage
4271 add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
4272 add_cflags -fno-strict-overflow -fstack-protector-all
4273 add_ldflags -Wl,-z,relro -Wl,-z,now
4274 add_cflags -fPIE
4275 add_ldexeflags -fPIE -pie
4282 if test -n "$cross_prefix"; then
4283 test -n "$arch" && test -n "$target_os" ||
4284 die "Must specify target arch (--arch) and OS (--target-os) when cross-compiling"
4290 cc_default="clang"
4298 if ${cross_prefix}${ranlib_default} 2>&1 | grep -q "\-D "; then
4299 ranlib_default="${cross_prefix}${ranlib_default} -D"
4309 warn "Option --enable-cuda-sdk is deprecated. Use --enable-cuda-nvcc instead."
4315 nvccflags_default="-gencode arch=compute_30,code=sm_30 -O2"
4317 nvcc_default="clang"
4318 nvccflags_default="--cuda-gpu-arch=sm_30 -O2"
4328 if ! $pkg_config --version >/dev/null 2>&1; then
4331 elif is_in -static $cc $LDFLAGS && ! is_in --static $pkg_config $pkg_config_flags; then
4333 Note: When building a static binary, add --pkg-config-flags=\"--static\"."
4337 ! $doxygen --version >/dev/null 2>&1; then
4343 mingw32*|mingw64*|win32|win64|cygwin*|*-dos|freedos|opendos|os/2*|symbian) echo .exe ;;
4355 if [ -n "$tempprefix" ] ; then
4361 elif ! test_cmd mktemp -u XXXXXX; then
4371 FFTMPDIR=$(mktemp -d "${TMPDIR}/ffconf.XXXXXXXX" 2> /dev/null) ||
4376 (set -C; exec > $tmp) 2> /dev/null ||
4381 trap 'rm -rf -- "$FFTMPDIR"' EXIT
4396 unset -f mktemp
4416 # Filter out MSVC cl.exe options from cflags that shouldn't
4417 # be passed to gas-preprocessor
4418 -M[TD]*) ;;
4427 -Wno-switch) echo -Wno-switch-enum ;;
4428 -Wno-format-zero-length) ;;
4429 -Wdisabled-optimization) ;;
4430 -Wno-pointer-sign) echo -Wno-other ;;
4442 -Wall) ;;
4443 -Wextra) ;;
4444 -std=c*) ;;
4446 -fomit-frame-pointer) ;;
4447 -g) echo -Z7 ;;
4448 -fno-math-errno) ;;
4449 -fno-common) ;;
4450 -fno-signed-zeros) ;;
4451 -fPIC) ;;
4452 -mthumb) ;;
4453 -march=*) ;;
4454 -lz) echo zlib.lib ;;
4455 -lx264) echo libx264.lib ;;
4456 -lstdc++) ;;
4457 -l*) echo ${flag#-l}.lib ;;
4458 -LARGEADDRESSAWARE) echo $flag ;;
4459 -L*) echo -libpath:${flag#-L} ;;
4460 -Wl,*) ;;
4470 -Wall) echo -W3 -wd4018 -wd4146 -wd4244 -wd4305 \
4471 -wd4554 ;;
4472 -Wextra) echo -W4 -wd4244 -wd4127 -wd4018 -wd4389 \
4473 -wd4146 -wd4057 -wd4204 -wd4706 -wd4305 \
4474 -wd4152 -wd4324 -we4013 -wd4100 -wd4214 \
4475 -wd4307 \
4476 -wd4273 -wd4554 -wd4701 -wd4703 ;;
4485 # Despite what Intel's documentation says -Wall, which is supported
4487 -Wall) echo $flag -Qdiag-disable:remark ;;
4488 -std=c99) echo -Qstd=c99 ;;
4489 -flto) echo -ipo ;;
4497 -flto) echo -ipo ;;
4506 -march=*|-mcpu=*)
4508 native) echo -xtarget=native ;;
4509 v9|niagara) echo -xarch=sparc ;;
4510 ultrasparc) echo -xarch=sparcvis ;;
4511 ultrasparc3|niagara2) echo -xarch=sparcvis2 ;;
4512 i586|pentium) echo -xchip=pentium ;;
4513 i686|pentiumpro|pentium2) echo -xtarget=pentium_pro ;;
4514 pentium3*|c3-2) echo -xtarget=pentium3 ;;
4515 pentium-m) echo -xarch=sse2 -xchip=pentium3 ;;
4516 pentium4*) echo -xtarget=pentium4 ;;
4517 prescott|nocona) echo -xarch=sse3 -xchip=pentium4 ;;
4518 *-sse3) echo -xarch=sse3 ;;
4519 core2) echo -xarch=ssse3 -xchip=core2 ;;
4520 bonnell) echo -xarch=ssse3 ;;
4521 corei7|nehalem) echo -xtarget=nehalem ;;
4522 westmere) echo -xtarget=westmere ;;
4523 silvermont) echo -xarch=sse4_2 ;;
4524 corei7-avx|sandybridge) echo -xtarget=sandybridge ;;
4525 core-avx*|ivybridge|haswell|broadwell|skylake*|knl)
4526 echo -xarch=avx ;;
4527 amdfam10|barcelona) echo -xtarget=barcelona ;;
4528 btver1) echo -xarch=amdsse4a ;;
4529 btver2|bdver*|znver*) echo -xarch=avx ;;
4530 athlon-4|athlon-[mx]p) echo -xarch=ssea ;;
4531 k8|opteron|athlon64|athlon-fx)
4532 echo -xarch=sse2a ;;
4533 athlon*) echo -xarch=pentium_proa ;;
4536 -std=c99) echo -xc99 ;;
4537 -fomit-frame-pointer) echo -xregs=frameptr ;;
4538 -fPIC) echo -KPIC -xcode=pic32 ;;
4539 -W*,*) echo $flag ;;
4540 -f*-*|-W*|-mimpure-text) ;;
4541 -shared) echo -G ;;
4557 if $_cc --version 2>&1 | grep -q '^GNU assembler'; then
4558 true # no-op to avoid reading stdin in following checks
4559 elif $_cc -v 2>&1 | grep -q '^gcc.*LLVM'; then
4561 gcc_extra_ver=$(expr "$($_cc --version 2>/dev/null | head -n1)" : '.*\((.*)\)')
4562 _ident="llvm-gcc $($_cc -dumpversion 2>/dev/null) $gcc_extra_ver"
4563 _depflags='-MMD -MF $(@:.o=.d) -MT $@'
4564 _cflags_speed='-O3'
4565 _cflags_size='-Os'
4566 elif $_cc -v 2>&1 | grep -qi ^gcc; then
4568 gcc_version=$($_cc --version | head -n1)
4569 gcc_basever=$($_cc -dumpversion)
4576 *) _depflags='-MMD -MF $(@:.o=.d) -MT $@' ;;
4584 _cflags_speed='-O3'
4585 _cflags_size='-Os'
4586 elif $_cc --version 2>/dev/null | grep -q ^icc; then
4588 _ident=$($_cc --version | head -n1)
4589 _depflags='-MMD'
4590 _cflags_speed='-O3'
4591 _cflags_size='-Os'
4592 _cflags_noopt='-O1'
4594 elif $_cc -v 2>&1 | grep -q xlc; then
4596 _ident=$($_cc -qversion 2>/dev/null | head -n1)
4597 _cflags_speed='-O5'
4598 _cflags_size='-O5 -qcompact'
4599 elif $_cc --vsn 2>/dev/null | grep -Eq "ARM (C/C\+\+ )?Compiler"; then
4600 test -d "$sysroot" || die "No valid sysroot specified."
4602 _ident=$($_cc --vsn | grep -i build | head -n1 | sed 's/.*: //')
4604 $_cc --arm_linux_configure \
4605 --arm_linux_config_file="$armcc_conf" \
4606 --configure_sysroot="$sysroot" \
4607 --configure_cpp_headers="$sysinclude" >>$logfile 2>&1 ||
4609 $_cc --vsn | grep -q RVCT && armcc_opt=rvct || armcc_opt=armcc
4610 _flags="--arm_linux_config_file=$armcc_conf --translate_gcc"
4612 _depflags='-MMD'
4613 _cflags_speed='-O3'
4614 _cflags_size='-Os'
4615 elif $_cc -v 2>&1 | grep -q clang && ! $_cc -? > /dev/null 2>&1; then
4616 _type=clang
4617 _ident=$($_cc --version 2>/dev/null | head -n1)
4618 _depflags='-MMD -MF $(@:.o=.d) -MT $@'
4619 _cflags_speed='-O3'
4620 _cflags_size='-Oz'
4621 elif $_cc -V 2>&1 | grep -q Sun; then
4623 _ident=$($_cc -V 2>&1 | head -n1 | cut -d' ' -f 2-)
4624 …='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\," -e…
4625 _DEPFLAGS='-xM1 -xc99'
4626 _ldflags='-std=c99'
4627 _cflags_speed='-O5'
4628 _cflags_size='-O5 -xspace'
4630 elif $_cc -v 2>&1 | grep -q 'PathScale\|Path64'; then
4632 _ident=$($_cc -v 2>&1 | head -n1 | tr -d :)
4633 _depflags='-MMD -MF $(@:.o=.d) -MT $@'
4634 _cflags_speed='-O2'
4635 _cflags_size='-Os'
4636 _flags_filter='filter_out -Wdisabled-optimization'
4637 elif $_cc -v 2>&1 | grep -q Open64; then
4639 _ident=$($_cc -v 2>&1 | head -n1 | tr -d :)
4640 _depflags='-MMD -MF $(@:.o=.d) -MT $@'
4641 _cflags_speed='-O2'
4642 _cflags_size='-Os'
4643 _flags_filter='filter_out -Wdisabled-optimization|-Wtype-limits|-fno-signed-zeros'
4644 elif $_cc 2>&1 | grep -q 'Microsoft.*ARM.*Assembler'; then
4646 _ident=$($_cc | head -n1)
4648 _flags="-nologo -ignore 4509"
4650 elif $_cc 2>&1 | grep -q Intel; then
4652 _ident=$($_cc 2>&1 | head -n1)
4653 _depflags='-QMMD -QMF$(@:.o=.d) -QMT$@'
4656 _cflags_speed="-O2"
4657 _cflags_size="-O1 -Oi" # -O1 without -Oi miscompiles stuff
4658 if $_cc 2>&1 | grep -q Linker; then
4659 _ld_o='-out:$@'
4661 _ld_o='-Fe$@'
4663 _cc_o='-Fo$@'
4664 _cc_e='-P'
4667 _ld_path='-libpath:'
4668 # -Qdiag-error to make icl error when seeing certain unknown arguments
4669 _flags='-nologo -Qdiag-error:4044,10157'
4670 # -Qvec- -Qsimd- to prevent miscompilation, -GS, fp:precise for consistency
4672 _cflags='-Qms0 -Qvec- -Qsimd- -GS -fp:precise'
4674 elif $_cc -? 2>/dev/null | grep -q 'LLVM.*Linker'; then
4676 # the -? parameter gives the help output which contains an identifyable
4678 _type=lld-link
4681 _ident=$($_cc -flavor gnu --version 2>/dev/null)
4682 _ld_o='-out:$@'
4685 _ld_path='-libpath:'
4686 …elif $_cc -nologo- 2>&1 | grep -q Microsoft || { $_cc -v 2>&1 | grep -q clang && $_cc -? > /dev/nu…
4688 if $_cc -nologo- 2>&1 | grep -q Microsoft; then
4689 _ident=$($_cc 2>&1 | head -n1 | tr -d '\r')
4691 _ident=$($_cc --version 2>/dev/null | head -n1 | tr -d '\r')
4694 _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs'
4695 _cflags_speed="-O2"
4696 _cflags_size="-O1"
4697 _cflags_noopt="-O1"
4698 if $_cc -nologo- 2>&1 | grep -q Linker; then
4699 _ld_o='-out:$@'
4701 _ld_o='-Fe$@'
4703 _cc_o='-Fo$@'
4704 _cc_e='-P -Fi$@'
4707 _ld_path='-libpath:'
4708 _flags='-nologo'
4710 elif $_cc --version 2>/dev/null | grep -q ^cparser; then
4712 _ident=$($_cc --version | head -n1)
4713 _depflags='-MMD'
4714 _cflags_speed='-O4'
4715 _cflags_size='-O2'
4724 eval ${1}_C=\${_cc_c-\${${1}_C}}
4725 eval ${1}_E=\${_cc_e-\${${1}_E}}
4726 eval ${1}_O=\${_cc_o-\${${1}_O}}
4728 if [ -n "$_depflags" ]; then
4731 eval ${1}DEP=\${_DEPCMD:-\$DEPCMD}
4732 eval ${1}DEP_FLAGS=\${_DEPFLAGS:-\$DEPFLAGS}
4753 test -n "$cc_type" && enable $cc_type ||
4777 LD_O=${_ld_o-$LD_O}
4778 LD_LIB=${_ld_lib-$LD_LIB}
4779 LD_PATH=${_ld_path-$LD_PATH}
4784 HOSTLD_O=${_ld_o-$HOSTLD_O}
4786 if [ -z "$CC_DEPFLAGS" ] && [ "$dep_cc" != "$cc" ]; then
4788 CCDEP=${_DEPCMD:-$DEPCMD}
4793 if $ar 2>&1 | grep -q Microsoft; then
4794 arflags="-nologo"
4795 ar_o='-out:$@'
4796 elif $ar 2>&1 | grep -q "\[D\] "; then
4809 if test -n "$sysroot"; then
4811 gcc|llvm_gcc|clang)
4812 add_cppflags --sysroot="$sysroot"
4813 add_ldflags --sysroot="$sysroot"
4820 warn "--cpu=host makes no sense when cross-compiling."
4825 $cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return
4826 sed -n "/cc1.*$1=/{
4832 cpu=$(check_native -march || check_native -mcpu)
4834 clang)
4836 $cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return
4837 sed -n "/cc1.*-target-cpu /{
4838 s/.*-target-cpu \\([^ ]*\\).*/\\1/
4843 cpu=$(check_native -march)
4847 test "${cpu:-host}" = host &&
4848 die "--cpu=host not supported with compiler $cc"
4862 add_cppflags -EL
4863 add_ldflags -EL
4866 add_cppflags -EB
4867 add_ldflags -EB
4887 tilegx|tile-gx)
4890 i[3-6]86*|i86pc|BePC|x86pc|x86_64|x86_32|amd64)
4891 arch="x86"
4898 # Add processor-specific flags
4903 cpuflags="-march=$cpu"
4906 cpuflags="-mcpu=$cpu"
4912 cpuflags="-mcpu=$cpu"
4918 "defined __ARM_ARCH_${1}__ || defined __TARGET_ARCH_${2:-$1}" \
4938 elif check_arm_arch 7A 7_A; then echo armv7-a
4939 elif check_arm_arch 7S; then echo armv7-a
4940 elif check_arm_arch 7R 7_R; then echo armv7-r
4941 elif check_arm_arch 7M 7_M; then echo armv7-m
4942 elif check_arm_arch 7EM 7E_M; then echo armv7-m
4943 elif check_arm_arch 8A 8_A; then echo armv8-a
4951 cpuflags="-march=$cpu"
4952 subarch=$(echo $cpu | sed 's/[^a-z0-9]//g')
4955 cpuflags="-mcpu=$cpu"
4957 cortex-a*) subarch=armv7a ;;
4958 cortex-r*) subarch=armv7r ;;
4959 cortex-m*) enable thumb; subarch=armv7m ;;
4970 armv[6-8]*)
4979 ap7[02]0[0-2])
4981 cpuflags="-mpart=$cpu"
4985 cpuflags="-march=$cpu"
4989 cpuflags="-mcpu=$cpu"
4993 cpuflags="-march=$cpu"
4999 cpuflags="-mcpu=$cpu"
5003 cpuflags="-march=$cpu"
5035 # When gcc version less than 5.3.0, add -fno-expensive-optimizations flag.
5037 gcc_version=$(gcc -dumpversion)
5038 … if [ "$(echo "$gcc_version 5.3.0" | tr " " "\n" | sort -rV | head -n 1)" == "$gcc_version" ]; then
5041 expensive_optimization_flag="-fno-expensive-optimizations"
5046 cpuflags="-march=loongson3a -mhard-float $expensive_optimization_flag"
5049 cpuflags="-march=loongson2e -mhard-float $expensive_optimization_flag"
5052 cpuflags="-march=loongson2f -mhard-float $expensive_optimization_flag"
5089 … check_cflags "-mtune=p5600" && check_cflags "-msched-weight -mload-store-pairs -funroll-loops"
5093 …check_cflags "-mtune=i6400 -mabi=64" && check_cflags "-msched-weight -mload-store-pairs -funroll-l…
5097 …check_cflags "-mtune=p6600 -mabi=64" && check_cflags "-msched-weight -mload-store-pairs -funroll-l…
5111 cpuflags="-mcpu=601"
5115 cpuflags="-mcpu=603"
5119 cpuflags="-mcpu=604"
5123 cpuflags="-mcpu=750"
5127 cpuflags="-mcpu=7450"
5131 cpuflags="-mcpu=7400"
5135 cpuflags="-mcpu=970"
5138 power[3-6]*)
5139 cpuflags="-mcpu=$cpu"
5142 power[7-8]*)
5143 cpuflags="-mcpu=$cpu"
5146 cpuflags="-mcpu=cell"
5151 cpuflags="-mcpu=e500mc"
5155 cpuflags="-mcpu=8548 -mhard-float -mfloat-gprs=double"
5160 cpuflags="-mcpu=8540 -mhard-float"
5170 cpuflags="-mcpu=$cpu"
5173 cpuflags="-mcpu=$cpu"
5177 elif enabled x86; then
5181 cpuflags="-march=$cpu"
5186 pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3)
5187 cpuflags="-march=$cpu"
5191 …i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opte…
5194 cpuflags="-march=$cpu"
5200 cpuflags="-march=$cpu"
5220 if test -z "$cross_prefix" && ! enabled cross_compile ; then
5221 echo "If $cc is a cross-compiler, use the --enable-cross-compile option."
5227 add_cppflags -D_ISOC99_SOURCE
5228 add_cxxflags -D__STDC_CONSTANT_MACROS
5229 check_cxxflags -std=c++11 || check_cxxflags -std=c++0x
5231 # some compilers silently accept -std=c11, so we also need to check that the
5233 test_cflags_cc -std=c11 ctype.h "__STDC_VERSION__ >= 201112L" &&
5234 add_cflags -std=c11 ||
5235 check_cflags -std=c99
5237 check_cppflags -D_FILE_OFFSET_BITS=64
5238 check_cppflags -D_LARGEFILE_SOURCE
5240 add_host_cppflags -D_ISOC99_SOURCE
5241 check_host_cflags -std=c99
5242 check_host_cflags -Wall
5248 expr=${3:-'sizeof(void *) > 4'}
5249 test_code cc "" "int test[2*($expr) - 1]" &&
5278 x86)
5293 SHFLAGS=-shared
5294 add_cppflags '-I\$(SRC_PATH)/compat/aix'
5295 enabled shared && add_ldflags -Wl,-brtl
5296 arflags='-Xany -r -c'
5302 add_cflags -fPIE
5303 add_ldexeflags -fPIE -pie
5306 SHFLAGS='-shared -Wl,-soname,$(SLIBNAME)'
5310 network_extralibs="-lnetwork"
5314 SHFLAGS='-shared -Wl,-h,$$(@F)'
5315 enabled x86 && append SHFLAGS -mimpure-text
5316 network_extralibs="-lsocket -lnsl"
5317 add_cppflags -D__EXTENSIONS__
5321 # guards for processor-specific code, instead suppress
5322 # generation of the HWCAPS ELF section on Solaris x86 only.
5323 enabled_all suncc x86 &&
5325 add_ldflags -Wl,-M,mapfile
5326 nm_default='nm -P -g'
5328 version_script='-M'
5329 VERSION_SCRIPT_POSTPROCESS_CMD='perl $(SRC_PATH)/compat/solaris/make_sunver.pl - $(OBJS)'
5333 oss_indev_extralibs="-lossaudio"
5334 oss_outdev_extralibs="-lossaudio"
5335 enabled gcc || check_ldflags -Wl,-zmuldefs
5341 SHFLAGS='-shared'
5344 oss_indev_extralibs="-lossaudio"
5345 oss_outdev_extralibs="-lossaudio"
5353 add_extralibs -lpoll -lgnugetopt
5354 strip="strip -d"
5357 enabled ppc && add_asflags -force_cpusubtype_ALL
5359 …SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(INSTALL_NAME_DIR)/$(SLIBNAME_WITH_MAJO…
5360 enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress
5361 strip="${strip} -x"
5362 add_ldflags -Wl,-dynamic,-search_paths_first
5363 check_cflags -Werror=partial-availability
5369 { check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; }
5371 add_cppflags '-I\$(SRC_PATH)/compat/dispatch_semaphore'
5372 if test -n "$sysroot"; then
5373 is_in -isysroot $cc $CPPFLAGS $CFLAGS || check_cppflags -isysroot $sysroot
5374 is_in -isysroot $ld $LDFLAGS || check_ldflags -isysroot $sysroot
5376 version_script='-exported_symbols_list'
5377 …T_POSTPROCESS_CMD='tr " " "\n" | sed -n /global:/,/local:/p | grep ";" | tr ";" "\n" | sed -E "s/(…
5378 # Workaround for Xcode 11 -fstack-check bug
5379 if enabled clang; then
5380 clang_version=$($cc -dumpversion)
5381 test ${clang_version%%.*} -eq 11 && add_cflags -fno-stack-check
5391 LIBTARGET="i386:x86-64"
5401 enabled shared && ! enabled small && test_cmd $windres --version && enable gnu_windres
5402 enabled x86_32 && check_ldflags -Wl,--large-address-aware
5406 SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
5407 SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
5408 if test_cmd lib.exe -list; then
5409 …SLIB_EXTRA_CMD=-'lib.exe -nologo -machine:$(LIBTARGET) -def:$$(@:$(SLIBSUF)=.def) -out:$(SUBDIR)$(…
5414 …SLIB_EXTRA_CMD=-'$(DLLTOOL) -m $(LIBTARGET) -d $$(@:$(SLIBSUF)=.def) -l $(SUBDIR)$(SLIBNAME:$(SLIB…
5421 …SHFLAGS='-shared -Wl,--out-implib,$(SUBDIR)lib$(SLIBNAME:$(SLIBSUF)=.dll.a) -Wl,--disable-auto-ima…
5426 check_ldflags -Wl,--nxcompat,--dynamicbase
5429 # for dynamicbase (ASLR). Using -pie does retain the reloc section
5433 disabled debug && add_ldexeflags -Wl,--pic-executable,-e,_mainCRTStartup
5435 disabled debug && add_ldexeflags -Wl,--pic-executable,-e,mainCRTStartup
5436 check_ldflags -Wl,--high-entropy-va # binutils 2.25
5438 add_ldexeflags -Wl,--image-base,0x140000000
5439 append SHFLAGS -Wl,--image-base,0x180000000
5451 enabled x86_32 && check_ldflags -LARGEADDRESSAWARE
5455 SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
5456 SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
5462 SHFLAGS='-dll -def:$$(@:$(SLIBSUF)=.def) -implib:$(SUBDIR)$(SLIBNAME:$(SLIBSUF)=.lib)'
5472 SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
5473 SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
5477 SHFLAGS='-shared -Wl,--out-implib,$(SUBDIR)lib$(FULLNAME).dll.a'
5480 enabled shared && ! enabled small && test_cmd $windres --version && enable gnu_windres
5481 add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
5483 *-dos|freedos|opendos)
5484 network_extralibs="-lsocket"
5497 strip="lxlite -CS"
5500 add_cppflags -D_GNU_SOURCE
5501 add_ldflags -Zomf -Zbin-files -Zargs-wild -Zhigh-mem -Zmap
5502 SHFLAGS='$(SUBDIR)$(NAME).def -Zdll -Zomf'
5506 SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
5507 SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(shell echo $(FULLNAME) | cut -c1-6)$(LIBMAJOR)$(SLIBSUF)'
5513 SLIB_EXTRA_CMD='emximp -o $(SUBDIR)$(LIBPREF)$(FULLNAME)_dll.a $(SUBDIR)$(FULLNAME).def; \
5514 emximp -o $(SUBDIR)$(LIBPREF)$(FULLNAME)_dll.lib $(SUBDIR)$(FULLNAME).def;'
5522 add_cppflags -D_BSD_SOURCE
5527 add_cppflags -D_QNX_SOURCE
5528 network_extralibs="-lsocket"
5533 add_cflags --include=$sysinclude/gcce/gcce.h -fvisibility=default
5534 add_cppflags -D__GCCE__ -D__SYMBIAN32__ -DSYMBIAN_OE_POSIX_SIGNALS
5535 add_ldflags -Wl,--target1-abs,--no-undefined \
5536 -Wl,-Ttext,0x80000,-Tdata,0x1000000 -shared \
5537 -Wl,--entry=_E32Startup -Wl,-u,_E32Startup
5538 add_extralibs -l:eexe.lib -l:usrt2_2.lib -l:dfpaeabi.dso \
5539 -l:drtaeabi.dso -l:scppnwdl.dso -lsupc++ -lgcc \
5540 -l:libc.dso -l:libm.dso -l:euser.dso -l:libcrt0.lib
5552 link_dest=$(mktemp -u $TMPDIR/dest_XXXXXXXX)
5553 link_name=$(mktemp -u $TMPDIR/name_XXXXXXXX)
5557 if [ "$source_path" != "." ] && [ "$source_path" != "src" ] && ([ ! -d src ] || [ -L src ]) && [ -e…
5559 [ -e src ] && rm src
5568 rm -r "$link_dest"
5569 rm -r "$link_name"
5579 add_${pfx}cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
5582 add_${pfx}cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
5586 add_${pfx}cppflags -U__STRICT_ANSI__ -D_XOPEN_SOURCE=600
5592 add_cflags "-include $source_path/compat/msvcrt/snprintf.h"
5594 add_${pfx}cppflags -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1
5596 add_${pfx}cppflags -D__printf__=__gnu_printf__
5598 add_${pfx}cppflags -D_WIN32_WINNT=0x0600
5599 add_${pfx}cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
5606 add_${pfx}cppflags -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1
5608 add_${pfx}cppflags -D__MSVCRT_VERSION__=0x0700
5610 add_${pfx}cppflags -D_WIN32_WINNT=0x0600
5612 add_${pfx}cppflags -D__printf__=__gnu_printf__
5613 add_${pfx}cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
5618 add_host_cppflags -Dsnprintf=_snprintf
5626 add_${pfx}cppflags -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS
5633 # Don't do this if WINAPI_FAMILY is set and is set to a non-desktop
5638 { test_${pfx}cpp <<EOF && add_${pfx}cppflags -D_WIN32_WINNT=0x0600; }
5647 check_func strtoll || add_cflags -Dstrtoll=_strtoi64
5648 check_func strtoull || add_cflags -Dstrtoull=_strtoui64
5656 add_${pfx}cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
5659 add_cppflags -U__STRICT_ANSI__
5660 add_cflags "-include $source_path/compat/djgpp/math.h"
5667 …"$?" != 0 && test_${pfx}cc -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 <<EOF && add_${pfx}cppflag…
5672 eval test -n "\${${pfx}libc_type}" && enable ${pfx}libc_${libc_type}
5687 add_cppflags '-I\$(SRC_PATH)/compat/float'
5698 disabled optimizations || enabled ossfuzz || check_cflags -fomit-frame-pointer
5703 add_cppflags -DPIC
5708 add_cflags -fPIC
5709 add_asflags -fPIC
5728 check_cc pragma_deprecated "" '_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")'
5734 od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
5758 as_noop=-v
5761 arm*) gaspp_as_type=armasm; as_noop=-h ;;
5766 [ $target_os = "darwin" ] && gaspp_as_type="apple-$gaspp_as_type"
5768 test "${as#*gas-preprocessor.pl}" != "$as" ||
5769 test_cmd gas-preprocessor.pl -arch $arch -as-type $gaspp_as_type -- ${as:=$cc} $as_noop &&
5770 gas="${gas:=gas-preprocessor.pl} -arch $arch -as-type $gaspp_as_type -- ${as:=$cc}"
5775 $nogas "GNU assembler not found, install/update gas-preprocessor"
5788 # internal assembler in clang 3.3 does not support this instruction
5796 check_cflags -mieee
5804 enabled thumb && check_cflags -mthumb || check_cflags -marm
5811 case "${cross_prefix:-$cc}" in
5818 warn "Compiler does not indicate floating-point ABI, guessing $fpabi."
5835 check_as as_arch_directive ".arch armv7-a"
5848 enabled loongson2 && check_inline_asm loongson2 '"dmult.g $8, $9, $10"'
5854 enabled mips64r6 && check_inline_asm_flags mips64r6 '"dlsa $0, $0, $0, 1"' '-mips64r6'
5855 enabled mips64r2 && check_inline_asm_flags mips64r2 '"dext $0, $0, 0, 1"' '-mips64r2'
5856 …bled mips64r6 && disabled mips64r2 && check_inline_asm_flags mips64r1 '"daddi $0, $0, 0"' '-mips64'
5858 enabled mips32r6 && check_inline_asm_flags mips32r6 '"aui $0, $0, 0"' '-mips32r6'
5859 enabled mips32r5 && check_inline_asm_flags mips32r5 '"eretnc"' '-mips32r5'
5860 enabled mips32r2 && check_inline_asm_flags mips32r2 '"ext $0, $0, 0, 1"' '-mips32r2'
5861 …abled mips32r5 && disabled mips32r2 && check_inline_asm_flags mips32r1 '"addi $0, $0, 0"' '-mips32'
5864 enabled mipsfpu && check_inline_asm_flags mipsfpu '"cvt.d.l $f0, $f2"' '-mhard-float'
5865 …abled mips32r6 || enabled mips64r6) && check_inline_asm_flags mipsfpu '"cvt.d.l $f0, $f1"' '-mfp64'
5866 …enabled mipsfpu && enabled msa && check_inline_asm_flags msa '"addvi.b $w0, $w1, 1"' '-mmsa' && ch…
5867 enabled mipsdsp && check_inline_asm_flags mipsdsp '"addu.qb $t0, $t1, $t2"' '-mdsp'
5868 enabled mipsdspr2 && check_inline_asm_flags mipsdspr2 '"absq_s.qb $t0, $t1"' '-mdspr2'
5869 …enabled msa && enabled msa2 && check_inline_asm_flags msa2 '"nxbits.any.b $w0, $w0"' '-mmsa2' && c…
5878 case $($cc -dumpversion) in
5879 4.[3-9].*) check_cflags -fno-optimize-sibling-calls ;;
5893 check_cflags -maltivec -mabi=altivec
5900 enabled altivec || warn "Altivec disabled, possibly missing --cpu flag"
5904 check_cflags -mvsx &&
5913 elif enabled x86; then
5920 # check whether EBP is available on x86
5930 # check whether EBX is available on x86
5946 if test_cmd $x86asmexe_probe -v; then
5949 x86asm_debug="-g -F dwarf"
5951 X86ASM_DEPFLAGS='-MD $(@:.o=.d)'
5952 elif test_cmd $x86asmexe_probe --version; then
5955 x86asm_debug="-g dwarf2"
5956 X86ASMDEP='$(DEPX86ASM) $(X86ASMFLAGS) -M $(X86ASM_O) $< > $(@:.o=.d)'
5967 …disabled x86asm && die "nasm/yasm not found or too old. Use --disable-x86asm for a crippled build."
5968 X86ASMFLAGS="-f $objformat"
5969 enabled pic && append X86ASMFLAGS "-DPIC"
5970 test -n "$extern_prefix" && append X86ASMFLAGS "-DPREFIX"
5983 athlon*|opteron*|k8*|pentium|pentium-mmx|prescott|nocona|atom|geode)
5992 check_ldflags -Wl,--as-needed
5993 check_ldflags -Wl,-z,noexecstack
6000 check_type netinet/in.h "struct group_source_req" -D_BSD_SOURCE
6001 check_type netinet/in.h "struct ip_mreq_source" -D_BSD_SOURCE
6002 check_type netinet/in.h "struct ipv6_mreq" -D_DARWIN_C_SOURCE
6015 check_func_headers winsock2.h closesocket -lws2 &&
6016 network_extralibs="-lws2" ||
6017 { check_func_headers winsock2.h closesocket -lws2_32 &&
6018 network_extralibs="-lws2_32"; } || disable winsock2_h network
6046 require libjemalloc jemalloc/jemalloc.h malloc -ljemalloc
6060 check_lib clock_gettime time.h clock_gettime || check_lib clock_gettime time.h clock_gettime -lrt
6071 # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that
6072 check_func_headers time.h nanosleep || check_lib nanosleep time.h nanosleep -lrt
6075 check_struct "sys/stat.h" "struct stat" st_mtim.tv_nsec -D_BSD_SOURCE
6103 check_lib xlib "X11/Xlib.h X11/extensions/Xvlib.h" XvGetPortAttribute -lXv -lX11 -lXext
6109 check_headers dxva2api.h -D_WIN32_WINNT=0x0600
6125 check_func_headers VideoToolbox/VTCompressionSession.h VTCompressionSessionPrepareToEncodeFrames -f…
6130 # it seems there are versions of clang in some distros that try to use the
6133 check_builtin stdatomic stdatomic.h "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, …
6135 check_lib advapi32 "windows.h" RegCloseKey -ladvapi32
6136 check_lib bcrypt "windows.h bcrypt.h" BCryptGenRandom -lbcrypt &&
6138 check_lib ole32 "windows.h" CoTaskMemFree -lole32
6139 check_lib shell32 "windows.h shellapi.h" CommandLineToArgvW -lshell32
6140 check_lib psapi "windows.h psapi.h" GetProcessMemoryInfo -lpsapi
6142 check_lib android android/native_window.h ANativeWindow_acquire -landroid
6143 check_lib mediandk "stdint.h media/NdkImage.h" AImage_delete -lmediandk
6144 check_lib camera2ndk "stdbool.h stdint.h camera/NdkCameraManager.h" ACameraManager_create -lcamera2…
6158 …cs CoreGraphics/CoreGraphics.h CGGetActiveDisplayList "-framework CoreGraphic…
6159 …nservices ApplicationServices/ApplicationServices.h CGGetActiveDisplayList "-framework Application…
6162 … check_lib coreservices CoreServices/CoreServices.h UTGetOSTypeFromString "-framework CoreServices"
6163 check_func_headers CoreMedia/CMFormatDescription.h kCMVideoCodecType_HEVC "-framework CoreMedia"
6164 …s CoreVideo/CVPixelBuffer.h kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange "-framework CoreVideo"
6165 …check_func_headers CoreVideo/CVImageBuffer.h kCVImageBufferTransferFunction_SMPTE_ST_2084_PQ "-fra…
6166 …check_func_headers CoreVideo/CVImageBuffer.h kCVImageBufferTransferFunction_ITU_R_2100_HLG "-frame…
6167 …check_func_headers CoreVideo/CVImageBuffer.h kCVImageBufferTransferFunction_Linear "-framework Cor…
6172 check_type "windows.h dxva.h" "DXVA_PicParams_HEVC" -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -D_CR…
6173 check_type "windows.h dxva.h" "DXVA_PicParams_VP9" -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -D_CRT…
6176 check_type "d3d9.h dxva2api.h" DXVA2_ConfigPictureDecode -D_WIN32_WINNT=0x0602
6177 check_func_headers mfapi.h MFCreateAlignedMemoryBuffer -lmfplat
6182 if [ -z "$nvccflags" ]; then
6187 nvccflags="$nvccflags -m64"
6189 nvccflags="$nvccflags -m32"
6193 nvccflags="$nvccflags -ptx"
6195 …nvccflags="$nvccflags -S -nocudalib -nocudainc --cuda-device-only -include ${source_link}/compat/c…
6223 if check_lib pthreads pthread.h pthread_join -pthread &&
6224 check_lib pthreads pthread.h pthread_create -pthread; then
6225 add_cflags -pthread
6226 elif check_lib pthreads pthread.h pthread_join -pthreads &&
6227 check_lib pthreads pthread.h pthread_create -pthreads; then
6228 add_cflags -pthreads
6229 elif check_lib pthreads pthread.h pthread_join -ldl -pthread &&
6230 check_lib pthreads pthread.h pthread_create -ldl -pthread; then
6231 add_cflags -ldl -pthread
6232 elif check_lib pthreads pthread.h pthread_join -lpthreadGC2 &&
6233 check_lib pthreads pthread.h pthread_create -lpthreadGC2; then
6235 elif check_lib pthreads pthread.h pthread_join -lpthread &&
6236 check_lib pthreads pthread.h pthread_create -lpthread; then
6250 check_lib zlib zlib.h zlibVersion -lz; }
6251 enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2
6252 enabled lzma && check_lib lzma lzma.h lzma_version_number -llzma
6255 check_lib libdl dlfcn.h "dlopen dlsym" || check_lib libdl dlfcn.h "dlopen dlsym" -ldl
6257 check_lib libm math.h sin -lm
6266 eval check_mathfunc $func \${${func}_args:-1} $libm_extralibs
6270 eval check_complexfunc $func \${${func}_args:-1}
6276 enabled chromaprint && require chromaprint chromaprint.h chromaprint_get_version -lchromaprint
6280 enabled gmp && require gmp gmp.h mpz_export -lgmp
6287 … die "ERROR: libaribb24 requires version higher than 1.0.3 or --enable-gpl."; }
6288 enabled lv2 && require_pkg_config lv2 lilv-0 "lilv/lilv.h" lilv_world_new
6289 …uire libiec61883 libiec61883/iec61883.h iec61883_cmp_connect -lraw1394 -lavc1394 -lrom1394 -liec61…
6293 enabled libcelt && require libcelt celt/celt.h celt_decode -lcelt0 &&
6294 { check_lib libcelt celt/celt.h celt_decoder_create_custom -lcelt0 ||
6297 enabled libcodec2 && require libcodec2 codec2/codec2.h codec2_create -lcodec2
6300 enabled libdc1394 && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new
6302 enabled libfdk_aac && { check_pkg_config libfdk_aac fdk-aac "fdk-aac/aacenc_lib.h" aacEncOpe…
6303 { require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac &&
6304 warn "using libfdk without pkg-config"; } }
6305-lflite_cmu_time_awb -lflite_cmu_us_awb -lflite_cmu_us_kal -lflite_cmu_us_kal16 -lflite_cmu_us_rms…
6311 …ang::TIntermediate*" -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper -lSPIRV -lSPIRV-To…
6313 require libgme gme/gme.h gme_new_emu -lgme -lstdc++; }
6315 check_lib libgsm "${gsm_hdr}" gsm_create -lgsm && break;
6317 enabled libilbc && require libilbc ilbc.h WebRtcIlbcfix_InitDecode -lilbc $pthreads_extra…
6318 enabled libklvanc && require libklvanc libklvanc/vanc.h klvanc_context_create -lklvanc
6321 # While it may appear that require is being used as a pkg-config
6325 # pkg-config support. Instead, users should make sure that the build
6328 …{ require libmfx "mfx/mfxvideo.h" MFXInit "-llibmfx $advapi32_extralibs" && warn "using libmfx wit…
6334 enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3l…
6336 … require libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine -lmysofa $zlib_extralibs; }
6337 enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnp…
6338 check_lib libnpp npp.h nppGetLibVersion -lnppi -lnppc -lnppidei ||
6340 …ncore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopen…
6341 …ed libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amr…
6344 … require libopencv opencv2/core/core_c.h cvCreateImageHeader -lopencv_core -lopencv_imgproc; } ||
6348 …fig libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version -DOPJ_STATIC && add_cppflags -DOPJ_ST…
6349 ….2.6557" libopenmpt/libopenmpt.h openmpt_module_create -lstdc++ && append libopenmpt_extralibs "-l…
6361 enabled librsvg && require_pkg_config librsvg librsvg-2.0 librsvg-2.0/librsvg/rsvg.h rsvg…
6363 … "rubberband >= 1.8.1" rubberband/rubberband-c.h rubberband_new -lstdc++ && append librubberband_e…
6366 require libsmbclient libsmbclient.h smbc_init -lsmbclient; }
6367 enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++
6368 enabled libsoxr && require libsoxr soxr.h soxr_create -lsoxr
6372 enabled libtensorflow && require libtensorflow tensorflow/c/c_api.h TF_Version -ltensorflow
6374 …ibtheora && require libtheora theora/theoraenc.h th_info_init -ltheoraenc -ltheoradec -logg
6376 enabled libtwolame && require libtwolame twolame.h twolame_init -ltwolame &&
6377 … { check_lib libtwolame twolame.h twolame_encode_buffer_float32_interleaved -ltwolame ||
6378 … die "ERROR: libtwolame must be installed and version must be >= 0.3.10"; }
6382 enabled libvo_amrwbenc && require libvo_amrwbenc vo-amrwbenc/enc_if.h E_IF_init -lvo-amrwbenc
6389 …vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp8_dx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs …
6393 …vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp8_cx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs …
6397 …vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp9_dx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs …
6401 …vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp9_cx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs …
6408 enabled libwavpack && require libwavpack wavpack/wavpack.h WavpackOpenFileOutput -lwavpack
6413 …{ require libx264 "stdint.h x264.h" x264_encoder_encode "-lx264 $pthreads_extralibs $libm_extralib…
6414 warn "using libx264 without pkg-config"; } } &&
6419 enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode "-lxavs $pthread…
6421 enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore
6424 enabled libzvbi && require_pkg_config libzvbi zvbi-0.2 libzvbi.h vbi_decoder_new &&
6426 … enabled gpl || die "ERROR: libzvbi requires version 0.2.28 or --enable-gpl."; }
6427 enabled libxml2 && require_pkg_config libxml2 libxml-2.0 libxml2/libxml/xmlversion.h xmlC…
6430 … check_lib mbedtls mbedtls/ssl.h mbedtls_ssl_init -lmbedtls -lmbedx509 -lmbedcrypto ||
6432 enabled mediacodec && { enabled jni || die "ERROR: mediacodec requires --enable-jni"; }
6433 …check_lib mmal interface/mmal/mmal.h mmal_port_connect -lmmal_core -lmmal_util -lmmal_vc_client -l…
6435 …add_cflags -isystem/opt/vc/include/ -isystem/opt/vc/include/interface/vmcs_host/linux -isystem/opt…
6436 add_ldflags -L/opt/vc/lib/ &&
6437 …check_lib mmal interface/mmal/mmal.h mmal_port_connect -lmmal_core -lmmal_util -lmmal_vc_client -l…
6440 enabled openal && { { for al_extralibs in "${OPENAL_LIBS}" "-lopenal" "-lOpenAL32"; do
6445 enabled opencl && { check_pkg_config opencl OpenCL CL/cl.h clEnqueueNDRangeKernel ||
6446 … check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
6447 check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
6449 { test_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
6450 test_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||
6452 enabled opengl && { check_lib opengl GL/glx.h glXGetProcAddress "-lGL" ||
6453 check_lib opengl windows.h wglGetProcAddress "-lopengl32 -lgdi32" ||
6454 check_lib opengl OpenGL/gl3.h glGetError "-Wl,-framework,OpenGL" ||
6455 … check_lib opengl ES2/gl.h glGetError "-isysroot=${sysroot} -Wl,-framework,OpenGLES" ||
6460 add_cflags -isystem/opt/vc/include/IL &&
6467 check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
6468 check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||
6469 check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
6470 … check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
6476 die "ERROR: rkmpp requires --enable-libdrm"; }
6478 enabled vapoursynth && require_pkg_config vapoursynth "vapoursynth-script >= 42" VSScript.h v…
6482 GCRYPT_CONFIG="${cross_prefix}libgcrypt-config"
6483 if "${GCRYPT_CONFIG}" --version > /dev/null 2>&1; then
6484 gcrypt_cflags=$("${GCRYPT_CONFIG}" --cflags)
6485 gcrypt_extralibs=$("${GCRYPT_CONFIG}" --libs)
6490 require gcrypt gcrypt.h gcry_mpi_new -lgcrypt
6495 SDL2_CONFIG="${cross_prefix}sdl2-config"
6497 if disabled sdl2 && "${SDL2_CONFIG}" --version > /dev/null 2>&1; then
6498 sdl2_cflags=$("${SDL2_CONFIG}" --cflags)
6499 sdl2_extralibs=$("${SDL2_CONFIG}" --libs)
6506 sdl2_extralibs=$(filter_out '-mwindows' $sdl2_extralibs)
6513 decklink_outdev_extralibs="$decklink_outdev_extralibs -lole32 -loleaut32"
6514 decklink_indev_extralibs="$decklink_indev_extralibs -lole32 -loleaut32"
6520 check_func SecIdentityCreate "-Wl,-framework,CoreFoundation -Wl,-framework,Security" &&
6521 …SecureTransport.h Security/Security.h" "SSLCreateContext" "-Wl,-framework,CoreFoundation -Wl,-fram…
6525 check_func SecItemImport "-Wl,-framework,CoreFoundation -Wl,-framework,Security"
6528 … check_func_headers "windows.h security.h" InitializeSecurityContext -DSECURITY_WIN32 -lsecur32 &&
6530 schannel_extralibs="-lsecur32" ||
6533 makeinfo --version > /dev/null 2>&1 && enable makeinfo || disable makeinfo
6535 …&& [ 0$(makeinfo --version | grep "texinfo" | sed 's/.*texinfo[^0-9]*\([0-9]*\)\..*/\1/') -ge 5 ] \
6537 disabled makeinfo_html && texi2html --help 2> /dev/null | grep -q 'init-file' && enable texi2html |…
6538 perl -v > /dev/null 2>&1 && enable perl || disable perl
6539 pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man
6540 rsync --help 2> /dev/null | grep -q 'contimeout' && enable rsync_contimeout || disable rsync_contim…
6562 check_lib user32 "windows.h winuser.h" GetShellWindow -luser32
6563 check_lib vfw32 "windows.h vfw.h" capCreateCaptureWindow -lvfw32
6579 …test_cc -D__BSD_VISIBLE -D__XSI_VISIBLE <<EOF && add_cppflags -D__BSD_VISIBLE -D__XSI_VISIBLE && e…
6586 check_lib alsa alsa/asoundlib.h snd_pcm_htimestamp -lasound; }
6591 enabled sndio && check_lib sndio sndio.h sio_open -lsndio
6596 …check_lib libcdio "cdio/cdda.h cdio/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio…
6597 …dio/paranoia/cdda.h cdio/paranoia/paranoia.h" cdio_cddap_open -lcdio_paranoia -lcdio_cdda -lcdio ||
6605 enabled libxcb_shm && check_pkg_config libxcb_shm xcb-shm xcb/shm.h xcb_shm_attach
6606 …enabled libxcb_shape && check_pkg_config libxcb_shape xcb-shape xcb/shape.h xcb_shape_get_rect…
6607 …enabled libxcb_xfixes && check_pkg_config libxcb_xfixes xcb-xfixes xcb/xfixes.h xcb_xfixes_get_cur…
6614 test_cpp <<EOF && enable uwp && d3d11va_extralibs="-ldxgi -ld3d11"
6631 check_pkg_config vaapi_drm "libva-drm" "va/va_drm.h" vaGetDisplayDRM
6634 check_pkg_config vaapi_x11 "libva-x11" "va/va_x11.h" vaGetDisplay
6650 check_type "CL/cl_intel.h" "clCreateImageFromFdINTEL_fn" &&
6652 check_func_headers "CL/cl_ext.h" clImportMemoryARM &&
6660 …check_type "CL/cl.h CL/cl_va_api_media_sharing_intel.h" "clCreateFromVA_APIMediaSurfaceINTEL_fn" &&
6666 check_type "CL/cl_dx9_media_sharing.h" cl_dx9_surface_info_khr &&
6671 check_type "CL/cl_d3d11.h" clGetDeviceIDsFromD3D11KHR_fn &&
6679 check_lib vdpau_x11 "vdpau/vdpau.h vdpau/vdpau_x11.h" vdp_device_create_x11 -lvdpau -lX11
6681 …hd && check_lib crystalhd "stdint.h libcrystalhd/libcrystalhd_if.h" DtsCrystalHDVersion -lcrystalhd
6686 if enabled x86; then
6709 test_cc -I$source_path <<EOF || disable nvenc
6724 check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv
6727 enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
6730 check_cflags -Wdeclaration-after-statement
6731 check_cflags -Wall
6732 check_cflags -Wdisabled-optimization
6733 check_cflags -Wpointer-arith
6734 check_cflags -Wredundant-decls
6735 check_cflags -Wwrite-strings
6736 check_cflags -Wtype-limits
6737 check_cflags -Wundef
6738 check_cflags -Wmissing-prototypes
6739 check_cflags -Wno-pointer-to-int-cast
6740 check_cflags -Wstrict-prototypes
6741 check_cflags -Wempty-body
6744 check_cflags -Wcast-qual
6745 check_cflags -Wextra
6746 check_cflags -Wpedantic
6750 warning_flag=-W${1#-Wno-}
6754 test_cflags -Werror=unused-command-line-argument &&
6755 append unknown_warning_flags "-Werror=unused-command-line-argument"
6756 test_cflags -Werror=unknown-warning-option &&
6757 append unknown_warning_flags "-Werror=unknown-warning-option"
6759 check_disable_warning -Wno-parentheses
6760 check_disable_warning -Wno-switch
6761 check_disable_warning -Wno-format-zero-length
6762 check_disable_warning -Wno-pointer-sign
6763 check_disable_warning -Wno-unused-const-variable
6764 check_disable_warning -Wno-bool-operation
6765 check_disable_warning -Wno-char-subscripts
6768 warning_flag=-W${1#-Wno-}
6772 check_disable_warning_headers -Wno-deprecated-declarations
6773 check_disable_warning_headers -Wno-unused-variable
6780 check_ldflags -Wl,--warn-common
6781 check_ldflags -Wl,-rpath-link=:libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavfo…
6782 enabled rpath && add_ldexeflags -Wl,-rpath,$libdir && add_ldsoflags -Wl,-rpath,$libdir
6783 test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic
6786 check_stripflags -x
6789 check_ldflags -Wl,--wrap,avcodec_open2 \
6790 -Wl,--wrap,avcodec_decode_audio4 \
6791 -Wl,--wrap,avcodec_decode_video2 \
6792 -Wl,--wrap,avcodec_decode_subtitle2 \
6793 -Wl,--wrap,avcodec_encode_audio2 \
6794 -Wl,--wrap,avcodec_encode_video2 \
6795 -Wl,--wrap,avcodec_encode_subtitle \
6796 -Wl,--wrap,avcodec_send_packet \
6797 -Wl,--wrap,avcodec_receive_packet \
6798 -Wl,--wrap,avcodec_send_frame \
6799 -Wl,--wrap,avcodec_receive_frame \
6800 -Wl,--wrap,swr_convert \
6801 -Wl,--wrap,avresample_convert ||
6805 check_ldflags -Wl,--wrap,avcodec_open2 \
6806 -Wl,--wrap,avcodec_decode_audio4 \
6807 -Wl,--wrap,avcodec_decode_video2 \
6808 -Wl,--wrap,avcodec_decode_subtitle2 \
6809 -Wl,--wrap,avcodec_encode_audio2 \
6810 -Wl,--wrap,avcodec_encode_video2 \
6811 -Wl,--wrap,avcodec_encode_subtitle \
6812 -Wl,--wrap,avcodec_send_packet \
6813 -Wl,--wrap,avcodec_receive_packet \
6814 -Wl,--wrap,avcodec_send_frame \
6815 -Wl,--wrap,avcodec_receive_frame \
6816 -Wl,--wrap,swr_convert \
6817 -Wl,--wrap,avresample_convert \
6818 -Wl,--wrap,sws_scale ||
6829 if test_ldflags -Wl,${version_script},$TMPV; then
6830 append SHFLAGS '-Wl,${version_script},\$(SUBDIR)lib\$(NAME).ver'
6843 if [ -z "$optflags" ]; then
6859 check_optflags -fno-math-errno
6860 check_optflags -fno-signed-zeros
6864 check_cflags -flto
6865 check_ldflags -flto $cpuflags
6869 enabled ftrapv && check_cflags -ftrapv
6871 test_cc -mno-red-zone <<EOF && noredzone_flags="-mno-red-zone"
6878 check_cflags -w1
6879 # -wd: Disable following warnings
6880 # 144, 167, 556: -Wno-pointer-sign
6884 # 10006: ignoring unknown option -fno-signed-zeros
6885 # 10148: ignoring unknown option -Wno-parentheses
6886 # 10156: ignoring option '-W'; no argument required
6889 check_cflags -wd144,167,188,556,1292,1419,10006,10148,10156,13200,13203
6890 # 11030: Warning unknown option --as-needed
6891 # 10156: ignoring option '-export'; no argument required
6892 check_ldflags -wd10156,11030
6898 icc_version=$($cc -dumpversion)
6899 test ${icc_version%%.*} -ge 11 &&
6900 check_cflags -falign-stack=maintain-16-byte ||
6904 check_optflags -fno-tree-vectorize
6905 check_cflags -Werror=format-security
6906 check_cflags -Werror=implicit-function-declaration
6907 check_cflags -Werror=missing-prototypes
6908 check_cflags -Werror=return-type
6909 check_cflags -Werror=vla
6910 check_cflags -Wformat
6911 check_cflags -fdiagnostics-color=auto
6912 enabled extra_warnings || check_disable_warning -Wno-maybe-uninitialized
6920 check_cflags -mpreferred-stack-boundary=4
6925 check_cflags -mllvm -stack-alignment=16
6926 elif enabled clang; then
6928 # Clang doesn't support maintaining alignment without assuming the
6931 # every single entry point into the libraries or enable -mstackrealign
6938 check_cflags -mllvm -stack-alignment=16
6939 check_cflags -mstack-alignment=16
6943 check_cflags -mllvm -stack-alignment=16
6944 check_cflags -mstack-alignment=16
6946 check_cflags -Qunused-arguments
6947 check_cflags -Werror=implicit-function-declaration
6948 check_cflags -Werror=missing-prototypes
6949 check_cflags -Werror=return-type
6951 add_cflags -Wno-missing-variable-declarations
6952 add_cflags -Wno-empty-statement
6954 add_cflags -W${armcc_opt},--diag_suppress=4343 # hardfp compat
6955 add_cflags -W${armcc_opt},--diag_suppress=3036 # using . as system include dir
6957 add_cflags -W${armcc_opt},--diag_suppress=2523
6958 add_cflags -W${armcc_opt},--diag_suppress=1207
6959 add_cflags -W${armcc_opt},--diag_suppress=1293 # assignment in condition
6960 add_cflags -W${armcc_opt},--diag_suppress=3343 # hardfp compat
6961 add_cflags -W${armcc_opt},--diag_suppress=167 # pointer sign
6962 add_cflags -W${armcc_opt},--diag_suppress=513 # pointer sign
6964 add_cflags -fstrict-overflow -OPT:wrap_around_unsafe_opt=OFF
6968 enabled_all x86_32 debug && add_cflags -Oy-
6969 enabled debug && add_ldflags -debug
6972 # -Qansi-alias is basically -fstrict-aliasing, but does not work
6975 add_cflags -Qansi-alias
6991 test_cc <<EOF || add_cflags -FIstdlib.h
6995 # the new SSA optimzer in VS2015 U3 is mis-optimizing some parts of the code
6998 check_cflags -d2SSAOptimizer-
6999 # enable utf-8 source processing on VS2015 U2 and newer
7001 add_cflags -utf-8
7008 test_${pfx}cc <<EOF || add_${pfx}cflags -Dinline=__inline
7015 clang)
7016 add_asflags -Qunused-arguments
7021 clang)
7022 check_ldflags -Qunused-arguments
7035 …ding without atomics not supported, try adding --enable-pthreads or --cpu=i486 or higher if you ar…
7043 *-dos|freedos|opendos)
7069 if test -n "$(filter '*_extralibs' $nested_entries)"; then
7102 test -n "$thread_type" &&
7110 add_cppflags '-I\$(SRC_PATH)/compat/atomics/gcc'
7112 add_cppflags '-I\$(SRC_PATH)/compat/atomics/win32'
7114 add_cppflags '-I\$(SRC_PATH)/compat/atomics/suncc'
7117 add_cppflags '-I\$(SRC_PATH)/compat/atomics/pthread'
7120 add_cppflags '-I\$(SRC_PATH)/compat/atomics/dummy'
7129 enabled zlib && add_cppflags -DZLIB_CONST
7173 add_cflags $(filter_out '-Dmain=SDL_main' $sdl2_cflags)
7194 # deps-expand fflib $1: N x {append all expanded deps; unique}
7234 echo "big-endian ${bigendian-no}"
7235 echo "runtime cpu detection ${runtime_cpudetect-no}"
7236 if enabled x86; then
7237 echo "standalone assembly ${x86asm-no}"
7238 echo "x86 assembler ${x86asmexe}"
7239 echo "MMX enabled ${mmx-no}"
7240 echo "MMXEXT enabled ${mmxext-no}"
7241 echo "3DNow! enabled ${amd3dnow-no}"
7242 echo "3DNow! extended enabled ${amd3dnowext-no}"
7243 echo "SSE enabled ${sse-no}"
7244 echo "SSSE3 enabled ${ssse3-no}"
7245 echo "AESNI enabled ${aesni-no}"
7246 echo "AVX enabled ${avx-no}"
7247 echo "AVX2 enabled ${avx2-no}"
7248 echo "AVX-512 enabled ${avx512-no}"
7249 echo "XOP enabled ${xop-no}"
7250 echo "FMA3 enabled ${fma3-no}"
7251 echo "FMA4 enabled ${fma4-no}"
7252 echo "i686 features enabled ${i686-no}"
7253 echo "CMOV is fast ${fast_cmov-no}"
7254 echo "EBX available ${ebx_available-no}"
7255 echo "EBP available ${ebp_available-no}"
7258 echo "NEON enabled ${neon-no}"
7259 echo "VFP enabled ${vfp-no}"
7262 echo "ARMv5TE enabled ${armv5te-no}"
7263 echo "ARMv6 enabled ${armv6-no}"
7264 echo "ARMv6T2 enabled ${armv6t2-no}"
7265 echo "VFP enabled ${vfp-no}"
7266 echo "NEON enabled ${neon-no}"
7267 echo "THUMB enabled ${thumb-no}"
7270 echo "MIPS FPU enabled ${mipsfpu-no}"
7271 echo "MIPS DSP R1 enabled ${mipsdsp-no}"
7272 echo "MIPS DSP R2 enabled ${mipsdspr2-no}"
7273 echo "MIPS MSA enabled ${msa-no}"
7274 echo "MIPS MSA2 enabled ${msa2-no}"
7275 echo "LOONGSON MMI enabled ${mmi-no}"
7278 echo "AltiVec enabled ${altivec-no}"
7279 echo "VSX enabled ${vsx-no}"
7280 echo "POWER8 enabled ${power8-no}"
7281 echo "PPC 4xx optimizations ${ppc4xx-no}"
7282 echo "dcbzl available ${dcbzl-no}"
7284 echo "debug symbols ${debug-no}"
7285 echo "strip symbols ${stripping-no}"
7286 echo "optimize for size ${small-no}"
7287 echo "optimizations ${optimizations-no}"
7288 echo "static ${static-no}"
7289 echo "shared ${shared-no}"
7290 echo "postprocessing support ${postproc-no}"
7291 echo "network support ${network-no}"
7292 echo "threading support ${thread_type-no}"
7293 echo "safe bitstream reader ${safe_bitstream_reader-no}"
7294 echo "texi2html enabled ${texi2html-no}"
7295 echo "perl enabled ${perl-no}"
7296 echo "pod2man enabled ${pod2man-no}"
7297 echo "makeinfo enabled ${makeinfo-no}"
7298 echo "makeinfo supports HTML ${makeinfo_html-no}"
7299 test -n "$random_seed" &&
7326 if test -n "$ignore_tests"; then
7337 if test -n "$WARN_IF_GETS_DISABLED_LIST"; then
7346 if test -n "$WARNINGS"; then
7351 test -e Makefile || echo "include $source_path/Makefile" > Makefile
7365 # Automatically generated by configure - do not modify!
7409 CP=cp -p
7480 TARGET_SAMPLES=${target_samples:-\$(SAMPLES)}
7481 CFLAGS-ffplay=${sdl2_cflags}
7498 SAMPLES:=${samples:-\$(FATE_SAMPLES)}
7507 eval echo "EXTRALIBS-${entry}=\$${entry}_extralibs" >> ffbuild/config.mak
7511 /* Automatically generated by configure - do not modify! */
7519 #define CC_IDENT "$(c_escape ${cc_ident:-Unknown compiler})"
7529 test -n "$assert_level" &&
7532 test -n "$malloc_prefix" &&
7538 ; Automatically generated by configure - do not modify!
7545 mkdir -p doc
7546 mkdir -p tests
7547 mkdir -p tests/api
7548 echo "@c auto-generated by configure - do not modify! " > doc/config.texi
7580 eval "$(sed -n "s/^extern AVFilter ff_\([avfsinkrc]\{2,5\}\)_\(.*\);/full_filter_name_\2=\1_\2/p" $…
7624 # Settings for pkg-config files
7627 # Automatically generated by configure - do not modify!
7633 rpath=$(enabled rpath && echo "-Wl,-rpath,\${libdir}")