summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2007-01-08 22:45:18 +0000
committerSimon Howard2007-01-08 22:45:18 +0000
commit88240aec241381721f47df3fae0abb7ede07aa35 (patch)
tree9034020fc2437f7c09cfd3ada3460f997f414e94
parent1a20757516d576dec50d01fe3d75091453cf766b (diff)
downloadchocolate-doom-88240aec241381721f47df3fae0abb7ede07aa35.tar.gz
chocolate-doom-88240aec241381721f47df3fae0abb7ede07aa35.tar.bz2
chocolate-doom-88240aec241381721f47df3fae0abb7ede07aa35.zip
Bomb out with an error in configure if SDL_mixer or SDL_net are not
found. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 826
-rw-r--r--configure.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 6b515665..ed78c4ba 100644
--- a/configure.in
+++ b/configure.in
@@ -31,13 +31,17 @@ SDL_LIBS=`echo $SDL_LIBS | sed 's/mwindows/mconsole/'`
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, )