test/configure.in
changeset 6598 81d643a61b54
parent 6390 3047baa4a5e0
child 6785 c094c438c0a6
equal deleted inserted replaced
6597:d359909f8121 6598:81d643a61b54
   141 fi
   141 fi
   142 
   142 
   143 AC_SUBST(GLLIB)
   143 AC_SUBST(GLLIB)
   144 
   144 
   145 dnl Check for SDL_ttf
   145 dnl Check for SDL_ttf
   146 AC_MSG_CHECKING(for SDL_ttf)
   146 AC_CHECK_LIB(SDL2_ttf, TTF_Init, have_SDL_ttf=yes)
   147 have_SDL_ttf=no
       
   148 AC_TRY_COMPILE([
       
   149  #include "SDL_ttf.h"
       
   150 ],[
       
   151 ],[
       
   152 have_SDL_ttf=yes
       
   153 ])
       
   154 AC_MSG_RESULT($have_SDL_ttf)
       
   155 
       
   156 if test x$have_SDL_ttf = xyes; then
   147 if test x$have_SDL_ttf = xyes; then
   157     CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
   148     CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
   158     SDL_TTF_LIB="-lSDL_ttf"
   149     SDL_TTF_LIB="-lSDL2_ttf"
   159 fi
   150 fi
   160 
       
   161 AC_SUBST(SDL_TTF_LIB)
   151 AC_SUBST(SDL_TTF_LIB)
   162 
   152 
   163 dnl Finally create all the generated files
   153 dnl Finally create all the generated files
   164 AC_OUTPUT([Makefile])
   154 AC_OUTPUT([Makefile])