summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2013-05-20 06:46:17 -0400
committerwm4 <wm4@nowhere>2013-05-21 00:14:42 +0200
commit08bfe8721c69d71981b17e017df9a860f6a74a39 (patch)
treefd34d4ba9c74ae5247bce4e257f4d73da998ba46 /configure
parent4dc8c0756fbb91634c0c7555d5e66c35f3b69b63 (diff)
downloadmpv-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-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index f394e19344..da9ed698d5 100755
--- a/configure
+++ b/configure
@@ -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