diff --git a/configure.ac b/configure.ac index e822b0b7b0f..7435f2e8da3 100644 --- a/configure.ac +++ b/configure.ac @@ -2638,6 +2638,9 @@ if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${HAVE_W32}" if test $HAVE_IMAGEMAGICK = yes; then AC_DEFINE([HAVE_IMAGEMAGICK], 1, [Define to 1 if using ImageMagick.]) else + if test "${with_imagemagick}" != "no"; then + AC_MSG_ERROR([ImageMagick wanted, but it does not compile. Maybe some library files are missing?]); + fi IMAGEMAGICK_CFLAGS= IMAGEMAGICK_LIBS= fi