diff options
author | Diego Biurrun <diego@biurrun.de> | 2017-02-11 16:51:25 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-02-16 09:28:33 +0100 |
commit | d00a0d8e84fef1b9124bfaf71cc17df79ca464a6 (patch) | |
tree | 3dd30abbb0572000191d4e1b7ddd22e50cd1d185 | |
parent | 8847eeaa141898850381400000fb2b8a7adc7100 (diff) | |
download | ffmpeg-d00a0d8e84fef1b9124bfaf71cc17df79ca464a6.tar.gz |
configure: Handle SDL version check through pkg-config
-rwxr-xr-x | configure | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -4748,9 +4748,7 @@ if enabled nvenc; then require_cpp_condition nvEncodeAPI.h "NVENCAPI_MAJOR_VERSION >= 6" fi -if check_pkg_config sdl SDL_events.h SDL_PollEvent; then - check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x010201" $sdl_cflags && - check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x010300" $sdl_cflags && +if check_pkg_config "sdl >= 1.2.1 sdl < 1.3.0" SDL_events.h SDL_PollEvent; then enable sdl fi |