That isn't necessary. I already found some issues. I don't want to
go into details unless someone is really interested at that. In short:
* Don't use AM_PATH_SDL.
* Try to avoid AC_SEARCH_LIBS and AC_CHECK_LIBS.
* Use PKG_CHECK_MODULES wherever possible.
In your concrete case, you can check for SDL, SDL_image and SDL_mixer
via pkg-config. The only problem is SDL_ttf which doesn't provide a
pkg-config entry, so it has to be checked the "old way".
So I recommend to put into your configure.ac something along the lines:
PKG_CHECK_MODULES([SDL], [sdl >= 1.2.13], ...SUCCESS..., ...FAILURE...)
PKG_CHECK_MODULES([SDL_image], [SDL_image], ...SUCCESS..., ...FAILURE...)
PKG_CHECK_MODULES([SDL_mixer], [SDL_mixer], ...SUCCESS..., ...FAILURE...)
AC_CHECK_LIB(SDL_ttf, TTF_OpenFontRW, ...SUCCESS..., ...FAILURE...)
> * I am compiling with autotools, configuring with :
>
> configure --prefix --host=i686-pc-mingw32 --build=i686-pc-linux-gnu
It should be sufficient to do:
./configure --host=i686-pc-mingw32
Have a look at the tutorial "Step 5a" for more information.
http://mingw-cross-env.nongnu.org/#tutorial
Greets,
Volker
--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR