diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-01-17 22:20:49 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-01-17 22:20:49 +0000 |
commit | 94808d9f6c958106176f891b35cb7d59f63c56c7 (patch) | |
tree | 579bd3975a50682be9fa5852e648e216e249bb1a | |
parent | 5b2fde1c744c9cc5d1a62c5177b8fb23dfee8378 (diff) | |
download | mana-94808d9f6c958106176f891b35cb7d59f63c56c7.tar.gz mana-94808d9f6c958106176f891b35cb7d59f63c56c7.tar.bz2 mana-94808d9f6c958106176f891b35cb7d59f63c56c7.tar.xz mana-94808d9f6c958106176f891b35cb7d59f63c56c7.zip |
Checking for SDL_mixer and SDL_image in configure
-rwxr-xr-x | config.h.in | 6 | ||||
-rwxr-xr-x | configure.in | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index 649eb2c3..92325e5d 100755 --- a/config.h.in +++ b/config.h.in @@ -9,6 +9,12 @@ /* Defines if your system has the LIBSDL library */ #undef HAVE_LIBSDL +/* Define to 1 if you have the `SDL_image' library (-lSDL_image). */ +#undef HAVE_LIBSDL_IMAGE + +/* Define to 1 if you have the `SDL_mixer' library (-lSDL_mixer). */ +#undef HAVE_LIBSDL_MIXER + /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H 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]) ]) |