From ec2498df2813aefe5cc5d2b9fd0467b4aa4a9a0e Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 14 Mar 2026 20:33:03 +0100 Subject: [PATCH] Make sure the correct quotes are used with mingw and msys (#8574) --- config/delegates.xml.in | 136 ++++++++++++++++++++-------------------- configure.ac | 10 +++ 2 files changed, 78 insertions(+), 68 deletions(-) diff --git a/config/delegates.xml.in b/config/delegates.xml.in index 15e6e0373f..e77936926f 100644 --- a/config/delegates.xml.in +++ b/config/delegates.xml.in @@ -59,73 +59,73 @@ will it read any output image. --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/configure.ac b/configure.ac index a0499a51a7..383be3725e 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,16 @@ MAGICK_TARGET_OS=$host_os AC_SUBST([MAGICK_TARGET_OS]) AC_DEFINE_UNQUOTED([MAGICK_TARGET_OS],[$MAGICK_TARGET_OS],[Target Host OS]) +case "$host_os" in + mingw* | msys*) + QUOTE=""" + ;; + *) + QUOTE="'" + ;; +esac + +AC_SUBST([QUOTE]) # Substitute versioning AC_SUBST([MAGICK_MAJOR_VERSION],[magick_major_version])