]> git.eshelyaron.com Git - emacs.git/commitdiff
Make --with-imagemagick bug out if there's no support for it
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 Sep 2019 17:01:51 +0000 (19:01 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 Sep 2019 17:01:51 +0000 (19:01 +0200)
* configure.ac (HAVE_IMAGEMAGICK): Stop configuration if the user
has said --with-imagemagick, but there's no support for it
(bug#24455).

configure.ac

index e822b0b7b0fcdfcef7435103bafd81f0af265059..7435f2e8da3157e34c495e437632c2d99b32a8d7 100644 (file)
@@ -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