diff options
author | Stephen Hutchinson <qyot27@gmail.com> | 2013-05-20 06:46:17 -0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-21 00:14:42 +0200 |
commit | 08bfe8721c69d71981b17e017df9a860f6a74a39 (patch) | |
tree | fd34d4ba9c74ae5247bce4e257f4d73da998ba46 /configure | |
parent | 4dc8c0756fbb91634c0c7555d5e66c35f3b69b63 (diff) | |
download | mpv-08bfe8721c69d71981b17e017df9a860f6a74a39.tar.bz2 mpv-08bfe8721c69d71981b17e017df9a860f6a74a39.tar.xz |
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.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |