Add the SDL_CFLAGS to CPP_FLAGS
Test for sdl_net.h instead of sdl/sdl_net.h Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1719
This commit is contained in:
parent
6905301089
commit
5de58e54bc
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ AM_PATH_SDL($SDL_VERSION,
|
|||
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
|
||||
)
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
|
||||
|
||||
dnl Checks for header files.
|
||||
|
||||
|
@ -144,7 +144,7 @@ fi
|
|||
|
||||
AH_TEMPLATE(C_MODEM,[Define to 1 to enable internal modem support, requires SDL_net])
|
||||
AH_TEMPLATE(C_IPX,[Define to 1 to enable IPX over Internet networking, requires SDL_net])
|
||||
AC_CHECK_HEADER(SDL/SDL_net.h,have_sdl_net_h=yes,)
|
||||
AC_CHECK_HEADER(SDL_net.h,have_sdl_net_h=yes,)
|
||||
AC_CHECK_LIB(SDL_net, SDLNet_Init, have_sdl_net_lib=yes, , )
|
||||
if test x$have_sdl_net_lib = xyes -a x$have_sdl_net_h = xyes ; then
|
||||
LIBS="$LIBS -lSDL_net"
|
||||
|
|
Loading…
Add table
Reference in a new issue