test/configure.in
changeset 3280 00cace2d9080
parent 3090 37f9304df6a9
child 3292 245a7d79577c
     1.1 --- a/test/configure.in	Sat Sep 19 12:48:52 2009 +0000
     1.2 +++ b/test/configure.in	Sat Sep 19 13:29:40 2009 +0000
     1.3 @@ -128,5 +128,23 @@
     1.4  
     1.5  AC_SUBST(GLLIB)
     1.6  
     1.7 +dnl Check for SDL_ttf
     1.8 +AC_MSG_CHECKING(for SDL_ttf)
     1.9 +have_SDL_ttf=no
    1.10 +AC_TRY_COMPILE([
    1.11 + #include "SDL_ttf.h"
    1.12 +],[
    1.13 +],[
    1.14 +have_SDL_ttf=yes
    1.15 +])
    1.16 +AC_MSG_RESULT($have_SDL_ttf)
    1.17 +
    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 +fi
    1.22 +
    1.23 +AC_SUBST(SDL_TTF_LIB)
    1.24 +
    1.25  dnl Finally create all the generated files
    1.26  AC_OUTPUT([Makefile])