Hi,

configure.ac contains syntax which is not compatible with the shebang
path declaration of "/bin/sh".

Although ksh and bash support "==" for the builtin "test" command this
does not hold true for /bin/sh in general. It does not matter if 
/bin/sh is actually bash, like on most Linux systems, but can produce
unexpected results if that is not the case.

The appended patch (against ImageMagick 6.3.4.8) changes those
occurrences of "==" to "=".

ciao
     Klaus
--- configure.ac.orig   2007-05-13 20:33:06.000000000 +0200
+++ configure.ac
@@ -684,7 +684,7 @@ if test "x$with_windows_font_dir" = "xno
     with_windows_font_dir=
 fi
 if test "$with_windows_font_dir" != '' ; then
-    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} 
--with-windows-font-dir==$with_windows_font_dir "
+    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} 
--with-windows-font-dir=$with_windows_font_dir "
 fi
 
 AC_ARG_WITH(zlib,
@@ -1373,7 +1373,7 @@ fi
 
 if test "$have_fontconfig" = 'yes'; then
     AC_DEFINE(HasFONTCONFIG,1,Define if you have FONTCONFIG library)
-    if test "$with_modules" == 'no' ; then
+    if test "$with_modules" = 'no' ; then
     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
     fi
 fi
@@ -1658,7 +1658,7 @@ fi
 
 if test "$have_gvc" = 'yes'; then
     AC_DEFINE(HasGVC,1,Define if you have GVC library)
-    if test "$with_modules" == 'no' ; then
+    if test "$with_modules" = 'no' ; then
         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
     fi
 fi
@@ -1767,7 +1767,7 @@ fi
 
 if test "$have_openexr" = 'yes'; then
     AC_DEFINE(HasOPENEXR,1,Define if you have OPENEXR library)
-    if test "$with_modules" == 'no' ; then
+    if test "$with_modules" = 'no' ; then
         CPPFLAGS="$OPENEXR_CFLAGS $CPPFLAGS"
     fi
 fi
@@ -1794,7 +1794,7 @@ fi
 
 if test "$have_rsvg" = 'yes'; then
     AC_DEFINE(HasRSVG,1,Define if you have RSVG library)
-    if test "$with_modules" == 'no' ; then
+    if test "$with_modules" = 'no' ; then
         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
     fi
 fi
_______________________________________________
Magick-bugs mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-bugs

Reply via email to