Fix:

./configure: line 22678: test: too many arguments
--- configure.orig	2024-05-28 15:34:12.000000000 -0500
+++ configure	2024-05-28 15:37:33.000000000 -0500
@@ -22675,7 +22675,7 @@
 
 # Fatal error if user flag for ImageMagick could not be satisified
 if test x$with_imagemagick = xyes \
-&& test x$IMAGEMAGICK_CPPFLAGS = x; then
+&& test "x$IMAGEMAGICK_CPPFLAGS" = x; then
 	{ { $as_echo "$as_me:$LINENO: error: ImageMagick build requested (--enable-imagemagick=yes), but no suitable version was found." >&5
 $as_echo "$as_me: error: ImageMagick build requested (--enable-imagemagick=yes), but no suitable version was found." >&2;}
    { (exit 1); exit 1; }; }
