Skip to content

Commit

Permalink
Check for sdl2-config when doing the SDL version test.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 16, 2012
1 parent a40a4f1 commit 9063a6a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion acinclude.m4
Expand Up @@ -27,7 +27,15 @@ AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run
AC_REQUIRE([AC_CANONICAL_TARGET])
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH])
AC_PATH_PROG(SDL1_CONFIG, sdl-config, no, [$PATH])
AC_PATH_PROG(SDL2_CONFIG, sdl2-config, no, [$PATH])
if test "$SDL2_CONFIG" != "no" ; then
SDL_CONFIG=$SDL2_CONFIG
else
SDL_CONFIG=$SDL1_CONFIG
fi
min_sdl_version=ifelse([$1], ,0.11.0,$1)
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
no_sdl=""
Expand Down

0 comments on commit 9063a6a

Please sign in to comment.