mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-20 00:05:06 +02:00
configure: Handle SDL version check through pkg-config
This commit is contained in:
parent
8847eeaa14
commit
d00a0d8e84
4
configure
vendored
4
configure
vendored
@ -4748,9 +4748,7 @@ if enabled nvenc; then
|
|||||||
require_cpp_condition nvEncodeAPI.h "NVENCAPI_MAJOR_VERSION >= 6"
|
require_cpp_condition nvEncodeAPI.h "NVENCAPI_MAJOR_VERSION >= 6"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if check_pkg_config sdl SDL_events.h SDL_PollEvent; then
|
if check_pkg_config "sdl >= 1.2.1 sdl < 1.3.0" 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 &&
|
|
||||||
enable sdl
|
enable sdl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user