From c3138a95ba16fd044b65788cfcb1f8503ea2b33b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 13 Feb 2004 10:42:22 +0000 Subject: [PATCH] add libjpeg check --- stepmania/configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index a6e711b094..2d78d9f40f 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -72,6 +72,17 @@ if test "x$have_SDL_image" = "xno"; then exit 0; fi +have_libjpeg=yes +AC_SEARCH_LIBS(jpeg_read_scanlines, [jpeg], , have_libjpeg=no) +AC_CHECK_HEADER(jpeglib.h, , have_libjpeg=no) +if test "x$have_SDL_image" = "xno"; then + echo + echo "*** libjpeg is required to build StepMania; please" + echo "*** make sure that libjpeg is installed to continue" + echo "*** the installation process." + exit 0; +fi + SM_ZLIB SM_AUDIO