From 06b6924cb4f6b915411cfde29d4c6a792391b20f Mon Sep 17 00:00:00 2001 From: Sean Burke Date: Fri, 4 Jul 2003 02:29:04 +0000 Subject: [PATCH] configure should die if SDL_image or madlib aren't present. --- stepmania/configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 93e99dad9f..895c444333 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -22,12 +22,26 @@ test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS="" MDL_HAVE_OPENGL AC_SEARCH_LIBS(IMG_Load, [SDL_image], have_SDL_image=yes, have_SDL_image=no) +if test "x$have_SDL_image" = "xno"; then + echo + echo "*** SDL_image is required to build StepMania; please" + echo "*** make sure that SDL_image is installed to continue" + echo "*** the installation process." + exit 0; +fi # Since we link statically against SDL_sound, we need to link all # of its support libraries ourself. AC_SEARCH_LIBS(vorbis_comment_add, [vorbis], have_vorbis=yes, have_vorbis=no) AC_SEARCH_LIBS(ogg_stream_init, [ogg], have_ogg=yes, have_ogg=no) AC_SEARCH_LIBS(ov_open, [vorbisfile], have_vorbisfile=yes, have_vorbisfile=no) AC_SEARCH_LIBS(mad_synth_init, [mad], have_mad=yes, have_mad=no) +if test "x$have_mad" = "xno"; then + echo + echo "*** Madlib is required to build StepMania; please" + echo "*** make sure that madlib is installed to continue" + echo "*** the installation process." + exit 0; +fi AM_PATH_SDL