shithub: choc

Download patch

ref: a98b31b018f5835889b3e6d2afe3d5f6789ea258
parent: 5e59e11b31c300c8636b04ccc25a42f6654182ac
author: Simon Howard <[email protected]>
date: Fri Nov 28 12:55:25 EST 2014

Update library names to SDL2 versions.

Use SDL2_mixer and SDL2_net rather than SDL_mixer/SDL_net.

--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,7 @@
 fi
 
 dnl Search for SDL ...
+dnl SDL2-TODO: Use pkg-config?
 
 AM_PATH_SDL2(2.0.3)
 
@@ -58,9 +59,9 @@
     # Check for SDL_mixer.
 
     AC_CHECK_LIB(SDL2_mixer,Mix_LoadMUS,[
-        SDLMIXER_LIBS="$SDLMIXER_LIBS -lSDL_mixer"
+        SDLMIXER_LIBS="$SDLMIXER_LIBS -lSDL2_mixer"
     ],[
-        echo "*** Could not find SDL_mixer.  Please install it."
+        echo "*** Could not find SDL2_mixer.  Please install it."
         exit -1
     ])
 
@@ -67,9 +68,9 @@
     # Check for SDL_net.
 
     AC_CHECK_LIB(SDL2_net,SDLNet_UDP_Send,[
-        SDLNET_LIBS="$SDLNET_LIBS -lSDL_net"
+        SDLNET_LIBS="$SDLNET_LIBS -lSDL2_net"
     ],[
-        echo "*** Could not find SDL_net.  Please install it."
+        echo "*** Could not find SDL2_net.  Please install it."
         exit -1
     ])