How to check SDL-ttf version in file?


I’m a beginner with configure and their autotools:
I need to check the SDL-ttf version, my program should only compile if
the SDL ttf version is >= 2.0.6.

Currently I put this in my file:

Test SDL TTF library (don’t know how to check the correct version)

AC_MSG_ERROR([Sorry >= SDL_ttf-2.0.6 library required! It’s
available from])

Does somebody knows exactly how to do it?
I tried to find demos, but the only demos I found that uses SDL, had
only a Makefile (no configure file).

saf at
No more spam, free disposable email addresses.