From 94808d9f6c958106176f891b35cb7d59f63c56c7 Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Mon, 17 Jan 2005 22:20:49 +0000 Subject: Checking for SDL_mixer and SDL_image in configure --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index ce7a99e0..c28be9bb 100755 --- a/configure.in +++ b/configure.in @@ -71,6 +71,14 @@ AC_DEFUN(FIND_PATH, fi ]) +# Check for SDL_image and SDL_mixer library +AC_CHECK_LIB(SDL_image, IMG_LoadPNG_RW, , +AC_MSG_ERROR([ *** Unable to find SDL_image library with PNG support +(http://www.libsdl.org/projects/SDL_image/)])) +AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, , +AC_MSG_ERROR([ *** Unable to find SDL_mixer library +(http://www.libsdl.org/projects/SDL_mixer/)])) + FIND_PATH(sdl-config, LIBSDL_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [ AC_MSG_ERROR([Could not find libsdl anywhere, check http://www.sdl.org]) ]) -- cgit v1.2.3-70-g09d2