diff options
author | James Almer <jamrial@gmail.com> | 2017-09-29 03:34:38 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-29 03:34:38 +0300 |
commit | e16ea52ed35cab948f428eac6a0cc02ca5129674 (patch) | |
tree | 532a830665d229ae7df2ec4c6ba11a9e19663768 | |
parent | 3d4f8b9184a4693c577e0b73496e6cc1989c6bbf (diff) |
configure: fix enabling SDL2 without pkg-config
Regression since d81b34069e80cb04160689ef5a160b9aee858257.
Signed-off-by: James Almer <jamrial@gmail.com>
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |