summaryrefslogtreecommitdiff
path: root/configure
Commit message (Collapse)AuthorAge
...
* configure: Disable PIC for cygwin just as for win32/mingwMartin Storsjö2013-05-13
| | | | | | | | If this is explicitly disabled for win32/mingw, it should also be disabled for cygwin, for consistency and for the same reasons as for win32/mingw. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: x86: Only enable cpunop on i686Diego Biurrun2013-05-12
| | | | | The assembler may insert nopl instructions for cpunop, which are not (universally) supported on i586 CPUs.
* configure: Rename cmov processor capability to i686Diego Biurrun2013-05-12
| | | | | The goal is to make the capapility slightly more general and have it cover the availability of the nopl instruction in addition to cmov.
* configure: Explicitly disable PIC when targeting win32/mingwMartin Storsjö2013-05-12
| | | | | | | | | | | | | | These platforms do not have any notion of PIC. On some compilers, enabling pic produces a number of warnings. This avoids trying to produce PIC loads in the ARM assembly - there are no relocation types in PE/COFF that correspond to BFD_RELOC_32_PCREL (R_ARM_REL32 in ELF). As a side-effect, this avoids enabling PIC on mingw64, getting rid of the warnings about PIC not having any effect on that platform. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Use enable_weak when enabling picMartin Storsjö2013-05-12
| | | | | | | This allows it to be overridden, either by the user on the command line, or by other sections of the configure script. Signed-off-by: Martin Storsjö <martin@martin.st>
* msvc: Move linker pragma from config.h to libavutil/internal.hMartin Storsjö2013-05-08
| | | | | | | This makes linking succeed for tools that include config.h but don't link to libavutil. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: add dependencies to lavfi .pc fileAnton Khirnov2013-05-07
| | | | | | | The scale filter depends on sws, resample on lavr, and movie on lavf and lavc. Fixes Bug 502.
* configure: make avconv select (a)trim filtersAnton Khirnov2013-05-07
| | | | They are now used for -ss/-t
* configure: Check for getenvMartin Storsjö2013-05-04
| | | | | | | | | | | | | | | | When targeting the "windows store application" (metro) API subset (or the windows phone API subset), the getenv function isn't available. If it is unavailable, just define getenv to NULL. The check uses check_func_headers, since the function actually might exist in the libraries, but is hidden in the headers. The fallback is in config.h since msvc can't do -D defines with parameters on the command line, and it's used both within the libraries and the frontend applications (so a libavutil internal header wouldn't be enough). Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Add basic valgrind-memcheck supportReinhard Tartler2013-05-04
| | | | | | | | With the parameter --valgrind-memcheck, the configure script sets reasonable defaults that can be overridden as explained in the documentation. The idea of using set_defaults is from Luca Barbato.
* compat: msvc: Make sure the object files are included when linking staticallyMartin Storsjö2013-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | If building libav with -MD in the cflags (for making the MSVC compiler generate code for using a dynamically linked libc), the system headers that declare strtod, snprintf and vsnprintf declare the functions as imported from a DLL. To hook up wrappers of our own for these functions, the function names are defined to avpriv_*, so that the calling code within libav calls the wrappers instead. Since these functions are declared to be imported from DLLs, the calling code expects to load them from DLL import function pointers (creating references to _imp__avpriv_strtod instead of directly to avpriv_strtod). If the libav libraries are not built as DLLs, no such function pointers (as the calling code expects) are created. The linker can fix this up automatically in some cases (producing warnings LNK4217 and LNK4049), if the object files are already included. By telling the linker to try to include those symbols (without the _imp prefix as the calling code ends up using), we get the object files included, so that the linker can do the automatic fixup. This is done via config.h, so that all (or at least most) of the object files in our libraries force including the compat files, to make sure they are included regardless of what files from our static libraries actually are included. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Don't do enable_deep_weak on disabled variablesMartin Storsjö2013-05-02
| | | | | | | | | | | | | This avoids cases where configure tries to weakly enable an item which actually is disabled, ending up still enabling dependencies of the item which itself is only enabled weakly. More concretely, the h264 decoder suggests error resilience, which is then enabled weakly (unless manually disabled). Previously, dsputil, which is a dependency of error resilience, was enabled even if error resilience wasn't enabled in the end. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Use a different variable name in push/popvarMartin Storsjö2013-05-02
| | | | | | | | | The variable name 'var' is commonly used to iterate through arguments in other functions. When the pushvar function internally uses the variable 'var', it makes pushing/popping the variable 'var' not work as intended. Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpeg: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* svq1enc: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* svq3: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | | | This also converts vc1, since that is mpegvideo-based. Signed-off-by: Martin Storsjö <martin@martin.st>
* svq1: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | | | This makes svq1 independent of dsputil. Signed-off-by: Martin Storsjö <martin@martin.st>
* mimic: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* interplayvideo: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | | | This makes interplayvideo independent of dsputil. Signed-off-by: Martin Storsjö <martin@martin.st>
* bink: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* indeo3: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | | | This makes the Indeo 3 decoder independent of dsputil. Signed-off-by: Martin Storsjö <martin@martin.st>
* vp56: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | | | This makes vp5 and vp6 independent of dsputil. Signed-off-by: Martin Storsjö <martin@martin.st>
* vp3: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | | | This makes vp3 independent of dsputil. Signed-off-by: Martin Storsjö <martin@martin.st>
* hpeldsp: Add half-pel functions (currently copies of dsputil)Ronald S. Bultje2013-04-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavfi: new interlace filterVittorio Giovara2013-04-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Cosmetics, restore alphabetic order in atomics lists.Anton Khirnov2013-04-11
|
* dsputil: Make dsputil selectableRonald S. Bultje2013-04-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Integrate lcov/gcov into LibavReinhard Tartler2013-04-05
| | | | | | | The gcov/lcov are a common toolchain for visualizing code coverage with the GNU/Toolchain. The documentation and implementation of this integration was heavily inspired from the blog entry by Mike Melanson: http://multimedia.cx/eggs/using-lcov-with-ffmpeg/
* clang: use -fsantize=address and -fsanitize=threadLuca Barbato2013-04-03
| | | | The previous syntax is deprecated.
* configure: Check for the atomic.h functions used in the suncc atomics headerMartin Storsjö2013-04-03
| | | | | | | The "suncc" atomics implementation uses a suncc specific memory barrier, but also relies on a few atomic functions from atomic.h, that are not suncc specific but specific to solaris. This made the current implementation fail on suncc on linux.
* configure: prettify atomics handling.Anton Khirnov2013-04-03
| | | | | Add simpler names and a shorthand for native atomics (as opposed to pthreads fallback).
* configure: Add error_resilience as dependency to the eatqi decoderMartin Storsjö2013-03-27
| | | | | | | This makes standalone compilation of the eatqi decoder succeed. The dependency comes from the shared mpeg12dec.o file. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: fix dependencies of XvMC and old vdpau mpeg2 decodersJanne Grunau2013-03-26
|
* configure: Remove a stray msmpeg4v1 encoder declarationMartin Storsjö2013-03-26
| | | | | | No such encoder exists currently. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Remove the mpegvideo dependency from svq1Martin Storsjö2013-03-26
| | | | | | The svq1 decoder can be built standalone without mpegvideo. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: Make it possible to compile without error_resilienceRonald S. Bultje2013-03-26
| | | | | | | | | | Error resilience is enabled by the h264 decoder, unless explicitly disabled. --disable-everything --enable-decoder=h264 will produce a h264 decoder with error resilience enabled, while --disable-everything --enable-decoder=h264 --disable-error-resilience will produce a h264 decoder with error resilience disabled. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Move start code finding to utils.cMartin Storsjö2013-03-26
| | | | | | | | | | This allows dropping the mpegvideo dependency from a number of components. This also fixes standalone building of the h264 parser, which was broken in 64e438697. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Enable hwaccels without external dependencies by default.Diego Biurrun2013-03-21
|
* avplay: enable only when SDL 1.2 is foundVittorio Giovara2013-03-09
| | | | | | SDL 2 is API incompatible. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronizeMartin Storsjö2013-03-08
| | | | | | | | | | | | Not all gcc configurations have an implementation of all the atomic operations, and some gcc configurations have some atomic builtins implemented but not all. Thus check for the most essential function, whose presence should indicate that all others are present as well, since it can be used to implement all the other ones. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu: add support for atomic operations.Ronald S. Bultje2013-03-08
| | | | | | | | | | These could be used for reference counting, or for keeping track of decoding progress in references in multithreaded decoders. Support is provided by gcc/msvc/suncc intrinsics, with a fallback using pthread mutexes. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* configure: Add missing videodsp dependencies to some decodersDiego Biurrun2013-03-07
|
* configure: Add missing h264chroma dependencies to vp5, vp6Diego Biurrun2013-03-07
|
* build: Fix error_resilience code dependenciesDiego Biurrun2013-03-07
|
* h264: Integrate draw_horiz_band into ff_h264_draw_horiz_bandRonald S. Bultje2013-03-07
| | | | | | | | | | This makes the decoder independent of mpegvideo. This copy of the draw_horiz_band code is simplified compared to the "generic" mpegvideo one which still has a number of special cases for different codecs. Signed-off-by: Martin Storsjö <martin@martin.st>
* cavs: Add a dependency on h264chromaCarl Eugen Hoyos2013-03-06
| | | | | | This fixes standalone building of this decoder. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Use check_builtin() where appropriateDiego Biurrun2013-03-05
|
* configure: Add check_builtin convenience functionDiego Biurrun2013-03-05
|
* configure: Add sanitize_var_name convenience functionDiego Biurrun2013-03-05
| | | | | This is useful in all the places where special characters in variable names are manually translated to underscores.