mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
configure: map --enable-sdl2 to autodetection
Commit 02bbd87b
disabled SDL linking by default. This commit followed
the ancient mplayer convention of disabling detection of compiler flags
with --enable-* switches. Unfortunately, this makes compiling with SDL
enabled a pain.
Make --enable-sdl/sdl2 use autodetection, even if it's inconsistent with
most other --enable-* switches. The same is already done for
--enable-openal, though.
Based on a pull request by qyot27.
This commit is contained in:
parent
4dc8c0756f
commit
08bfe8721c
4
configure
vendored
4
configure
vendored
@ -2198,7 +2198,7 @@ fi #if win32; then
|
||||
|
||||
|
||||
echocheck "SDL 2.0"
|
||||
if test "$_sdl2" = auto ; then
|
||||
if test "$_sdl2" = yes ; then
|
||||
pkg_config_add 'sdl2' && _sdl2=yes
|
||||
fi
|
||||
if test "$_sdl2" = yes ; then
|
||||
@ -2212,7 +2212,7 @@ else
|
||||
def_sdl2='#undef CONFIG_SDL2'
|
||||
echores "$_sdl2"
|
||||
echocheck "SDL"
|
||||
if test "$_sdl" = auto ; then
|
||||
if test "$_sdl" = yes ; then
|
||||
pkg_config_add 'sdl' && _sdl=yes
|
||||
fi
|
||||
if test "$_sdl" = yes ; then
|
||||
|
Loading…
Reference in New Issue
Block a user