2 AC_MSG_CHECKING(for SDL)
\r
4 AM_PATH_SDL($SDL_VERSION,
\r
6 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found. Try http://www.libsdl.org/])
\r
9 dnl checking for SDL_net
\r
10 AC_MSG_CHECKING(for SDL_net lib)
\r
12 if test "x$enable_sdltest" = "xyes" ; then
\r
14 ac_save_CFLAGS="$CFLAGS"
\r
15 ac_save_LIBS="$LIBS"
\r
16 CFLAGS="$CFLAGS $SDL_CFLAGS"
\r
17 LIBS="$SDL_LIBS $LIBS"
\r
20 #include <SDL/SDL.h>
\r
22 #include <SDL_net/SDL_net.h>
\r
24 #include <SDL/SDL_net.h>
\r
27 int main(int argc, char *argv[])
\r
30 #define main K_and_R_C_main
\r
38 CFLAGS="$ac_save_CFLAGS"
\r
39 LIBS="$ac_save_LIBS"
\r
42 AC_MSG_RESULT($have_SDLnet)
\r
43 if test x$have_SDLnet != xyes; then
\r
44 AC_MSG_ERROR([*** Can't find the SDL_net library Try: http://www.libsdl.org/projects/SDL_net])
\r
47 if test `uname` == Darwin; then
\r
48 SDL_LIBS="$SDL_LIBS -framework SDL_net"
\r
50 SDL_LIBS="$SDL_LIBS -lSDL_net"
\r