Blob Blame History Raw
From 230a501d36e098867d4c6f692f6c9c9102ffa899 Mon Sep 17 00:00:00 2001
From: Roman Dobosz <gryf73@gmail.com>
Date: Mon, 20 Apr 2020 07:53:22 +0200
Subject: [PATCH] Fix typo on defining imagemagick version.

In this patch we will fix an issue during compilation on systems, which
have ImageMagick version 7, and slightly more recent version of
compiler. If we define USE_MAGICK with null value, compilation will fail
on preprocessor check on such defined variable.
---
 m4/wm_imgfmt_check.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/wm_imgfmt_check.m4 b/m4/wm_imgfmt_check.m4
index 2236e6cc..6f9ecc4a 100644
--- a/m4/wm_imgfmt_check.m4
+++ b/m4/wm_imgfmt_check.m4
@@ -314,7 +314,7 @@ AS_IF([test "x$enable_magick" = "xno"],
               wm_save_CFLAGS="$CFLAGS"
               AS_IF([wm_fn_lib_try_compile "MagickWand/MagickWand.h" "MagickWand *wand;" "wand = NewMagickWand()" "$wm_cv_libchk_magick_cflags"],
                   [wm_cv_libchk_magick="$wm_cv_libchk_magick_cflags % $wm_cv_libchk_magick_libs"
-		   wm_cv_libchk_mgick_version=7],
+		   wm_cv_libchk_magick_version=7],
 		  [wm_fn_lib_try_compile "wand/magick_wand.h" "MagickWand *wand;" "wand = NewMagickWand()" "$wm_cv_libchk_magick_cflags"],
                   [wm_cv_libchk_magick="$wm_cv_libchk_magick_cflags % $wm_cv_libchk_magick_libs"
 		   wm_cv_libchk_magick_version=6],
-- 
2.26.2