From def4f750bc79d88963567c976813666a4dd706e7 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 29 Dec 2005 20:49:46 +0000 Subject: * Added errors when SDL_net or libcrypto are not found. * Reset SEGV signal handling after SDL initialisation to allow cores to be dumped. * Added script that perpetually runs the server and automatically saves a backtrace and restarts when it crashes. --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 758e76ce..8fce7423 100644 --- a/configure.ac +++ b/configure.ac @@ -17,11 +17,14 @@ AC_PROG_INSTALL # Checks for libraries. -AC_CHECK_LIB([crypto], [EVP_md5]) +AC_CHECK_LIB([crypto], [EVP_md5], , +AC_MSG_ERROR([ *** Unable to find libcrypto library])) AC_CHECK_LIB([physfs], [PHYSFS_init], , AC_MSG_ERROR([ *** Unable to find PhysFS library (icculus.org/physfs/)])) +AC_CHECK_LIB([SDL_net], [SDLNet_Init], , +AC_MSG_ERROR([ *** Unable to find SDL_net library])) PKG_CHECK_MODULES(XML2, [libxml-2.0 >= 2.4]) CXXFLAGS="$CXXFLAGS $XML2_CFLAGS" @@ -33,8 +36,6 @@ AC_CHECK_LIB_TMW([SDL], [1.2.0]) CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" -AC_CHECK_LIB([SDL_net], [SDLNet_Init]) - # Checks for header files. AC_HEADER_STDC -- cgit v1.2.3-70-g09d2