]> git.sesse.net Git - ffmpeg/commitdiff
configure: fix enabling SDL2 without pkg-config
authorJames Almer <jamrial@gmail.com>
Fri, 29 Sep 2017 00:34:38 +0000 (21:34 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 29 Sep 2017 00:34:38 +0000 (21:34 -0300)
Regression since d81b34069e80cb04160689ef5a160b9aee858257.

Signed-off-by: James Almer <jamrial@gmail.com>
configure

index 9cf98c8cc2ac7c17fbcef160ac5901b3361777e3..8e4775be8cebcfd285f02874f4ad0572e3362a06 100755 (executable)
--- a/configure
+++ b/configure
@@ -6115,8 +6115,8 @@ if enabled sdl2; then
         sdl2_extralibs=$("${SDL2_CONFIG}" --libs)
         check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x020001" $sdl2_cflags &&
         check_cpp_condition SDL.h "(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x020100" $sdl2_cflags &&
-        check_func SDL_Init $sdl2_extralibs $sdl2_cflags ||
-            disable sdl2
+        check_func SDL_Init $sdl2_extralibs $sdl2_cflags &&
+            enable sdl2
     fi
     if test $target_os = "mingw32"; then
         sdl2_extralibs="$sdl2_extralibs -mconsole"