test/configure.in
changeset 6598 81d643a61b54
parent 6390 3047baa4a5e0
child 6785 c094c438c0a6
     1.1 --- a/test/configure.in	Sun Oct 21 22:38:09 2012 -0700
     1.2 +++ b/test/configure.in	Tue Oct 23 15:28:27 2012 -0700
     1.3 @@ -143,21 +143,11 @@
     1.4  AC_SUBST(GLLIB)
     1.5  
     1.6  dnl Check for SDL_ttf
     1.7 -AC_MSG_CHECKING(for SDL_ttf)
     1.8 -have_SDL_ttf=no
     1.9 -AC_TRY_COMPILE([
    1.10 - #include "SDL_ttf.h"
    1.11 -],[
    1.12 -],[
    1.13 -have_SDL_ttf=yes
    1.14 -])
    1.15 -AC_MSG_RESULT($have_SDL_ttf)
    1.16 -
    1.17 +AC_CHECK_LIB(SDL2_ttf, TTF_Init, have_SDL_ttf=yes)
    1.18  if test x$have_SDL_ttf = xyes; then
    1.19      CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
    1.20 -    SDL_TTF_LIB="-lSDL_ttf"
    1.21 +    SDL_TTF_LIB="-lSDL2_ttf"
    1.22  fi
    1.23 -
    1.24  AC_SUBST(SDL_TTF_LIB)
    1.25  
    1.26  dnl Finally create all the generated files