foxygit / doom Log in
commit 88240aec241381721f47df3fae0abb7ede07aa35
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Jan 8 22:45:18 2007 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Mon Jan 8 22:45:18 2007 +0000

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

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 826
---
 configure.in | 12 ++++++++----
 1 file 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, )