From 5e4fcb8a6036746ec1b500297fa55989a80094b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 22 Aug 2013 14:47:53 +0300 Subject: final SDL2 compilation fixes. now it can be compiled, but still not works. --- configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8abb9d82a..756160ce8 100755 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,9 @@ if test "x$with_sdl2" == "xyes"; then # using embedded sdl2gfx CPPFLAGS="$CPPFLAGS -I./sdl2gfx" + AC_CHECK_LIB(SDL2_net, SDLNet_Init, , + AC_MSG_ERROR([ *** Unable to find SDL2_net library])) + with_sdl2=yes else AC_PATH_PROG(SDL_CONFIG, sdl-config) @@ -87,6 +90,9 @@ else AC_MSG_ERROR([ *** Unable to find SDL_gfx library (http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx)])) AC_CHECK_HEADERS(SDL_rotozoom.h, ,) + AC_CHECK_LIB(SDL_net, SDLNet_Init, , + AC_MSG_ERROR([ *** Unable to find SDL_net library])) + with_sdl2=no fi @@ -239,9 +245,6 @@ fi AM_CONDITIONAL(USE_MUMBLE, test x$with_mumble = xyes) -AC_CHECK_LIB(SDL_net, SDLNet_Init, , -AC_MSG_ERROR([ *** Unable to find SDL_net library])) - AC_ARG_WITH(librt,[ --without-librt don't link to librt ] ) if test "x$with_librt" == "xno"; then without_librt=yes -- cgit v1.2.3-60-g2f50