shithub: choc

Download patch

ref: 88240aec241381721f47df3fae0abb7ede07aa35
parent: 1a20757516d576dec50d01fe3d75091453cf766b
author: Simon Howard <[email protected]>
date: Mon Jan 8 17:45:18 EST 2007

Bomb out with an error in configure if SDL_mixer or SDL_net are not
found.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 826

--- a/configure.in
+++ b/configure.in
@@ -31,13 +31,17 @@
 AC_CHECK_LIB(SDL_mixer,Mix_LoadMUS,[
 dnl    AC_DEFINE(HAVE_LIBSDL_MIXER)
     SDLMIXER_LIBS="$SDLMIXER_LIBS -lSDL_mixer"
-],echo "*** Compiling without SDL_mixer installed probably won't work"
-,$SDL_LIBS $SDLMIXER_LIBS)
+],[
+    echo "*** Could not find SDL_mixer.  Please install it."
+    exit -1
+],$SDL_LIBS $SDLMIXER_LIBS)
 
 AC_CHECK_LIB(SDL_net,SDLNet_UDP_Send,[
     SDLNET_LIBS="$SDLNET_LIBS -lSDL_net"
-],echo "*** Compiling without SDL_net installed probably won't work"
-,$SDL_LIBS $SDLNET_LIBS)
+],[
+    echo "*** Could not find SDL_net.  Please install it."
+    exit -1
+] ,$SDL_LIBS $SDLNET_LIBS)
 
 AC_CHECK_TOOL(WINDRES, windres, )