]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 6 Jun 2015 13:46:55 +0000 (13:46 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 6 Jun 2015 13:46:55 +0000 (13:46 +0000)
MagickCore/profile.c
MagickCore/property.c
configure
configure.ac

index c23a8790f00a7afb96b6d5da88a666bbafbe950e..dc1d92e51d5d35828ba7df758a1f6274504fa976 100644 (file)
 #include "MagickCore/token.h"
 #include "MagickCore/utility.h"
 #if defined(MAGICKCORE_LCMS_DELEGATE)
-#if defined(MAGICKCORE_LCMS_VERSION_1)
-#include "lcms.h"
-#else
+#if defined(MAGICKCORE_HAVE_LCMS_LCMS2_H)
+#include <wchar.h>
+#include <lcms/lcms2.h>
+#elif defined(MAGICKCORE_HAVE_LCMS2_H)
 #include <wchar.h>
 #include "lcms2.h"
+#elif defined(MAGICKCORE_HAVE_LCMS_LCMS_H)
+#include <lcms/lcms.h>
+#else
+#include "lcms.h"
 #endif
 #endif
 \f
index fd7f6533f8626ef3616e880908cd9e4ea656d745..259f209479d69685e3a517ae176cef0577eebbd0 100644 (file)
 #include "MagickCore/xml-tree.h"
 #include "MagickCore/xml-tree-private.h"
 #if defined(MAGICKCORE_LCMS_DELEGATE)
-#if defined(MAGICKCORE_LCMS_VERSION_1)
-#include "lcms.h"
-#else
+#if defined(MAGICKCORE_HAVE_LCMS_LCMS2_H)
+#include <lcms/lcms2.h>
+#elif defined(MAGICKCORE_HAVE_LCMS2_H)
 #include "lcms2.h"
+#elif defined(MAGICKCORE_HAVE_LCMS_LCMS_H)
+#include <lcms/lcms.h>
+#else
+#include "lcms.h"
 #endif
 #endif
 \f
index c6186c35ef18ba215fee6266744214eb3c52d343..3bcbd6759eee4fa5d725f37580a509d594089823 100755 (executable)
--- a/configure
+++ b/configure
@@ -4387,7 +4387,7 @@ MAGICK_PATCHLEVEL_VERSION=0
 
 MAGICK_VERSION=7.0.0-0
 
-MAGICK_SVN_REVISION=18754M
+MAGICK_SVN_REVISION=18759:18761M
 
 
 # Substitute library versioning
@@ -30308,6 +30308,17 @@ $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
   LCMS_CFLAGS="$LCMS2_CFLAGS"
   LCMS_LIBS="$LCMS2_LIBS"
   CFLAGS="$LCMS2_CFLAGS $CFLAGS"
+  ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
+if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
+  have_lcms_header='yes'
+fi
+
+
+  if test "$have_lcms_header" = 'yes'; then
+
+$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
+
+  fi
 else
 
 pkg_failed=no
@@ -30388,7 +30399,17 @@ $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
 $as_echo "#define LCMS_VERSION_1 1" >>confdefs.h
 
     CFLAGS="$LCMS_CFLAGS $CFLAGS"
-  fi
+    ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
+if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
+  have_lcms_header='yes'
+fi
+
+
+    if test "$have_lcms_header" = 'yes'; then
+
+$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
+
+    fi
 fi
 
  if test "$have_lcms" = 'yes'; then
@@ -38774,8 +38795,7 @@ matches your expectations.
   JBIG              --with-jbig=$with_jbig             $have_jbig
   JPEG v1           --with-jpeg=$with_jpeg             $have_jpeg
   JPEG-2000         --with-jp2=$with_jp2               $have_jp2
-  LCMS v1           --with-lcms=$with_lcms             $have_lcms
-  LCMS v2           --with-lcms2=$with_lcms2           $have_lcms2
+  LCMS              --with-lcms=$with_lcms             $have_lcms
   LIBJPEG2          --with-openjp2=$with_openjp2       $have_openjp2
   LQR               --with-lqr=$with_lqr               $have_lqr
   LTDL              --with-ltdl=$with_ltdl             $have_ltdl
@@ -38861,8 +38881,7 @@ matches your expectations.
   JBIG              --with-jbig=$with_jbig             $have_jbig
   JPEG v1           --with-jpeg=$with_jpeg             $have_jpeg
   JPEG-2000         --with-jp2=$with_jp2               $have_jp2
-  LCMS v1           --with-lcms=$with_lcms             $have_lcms
-  LCMS v2           --with-lcms2=$with_lcms2           $have_lcms2
+  LCMS              --with-lcms=$with_lcms             $have_lcms
   LIBJPEG2          --with-openjp2=$with_openjp2       $have_openjp2
   LQR               --with-lqr=$with_lqr               $have_lqr
   LTDL              --with-ltdl=$with_ltdl             $have_ltdl
index 43732de3274d70fa97c3a98451b478061faf2acc..0c1c5f5208dcce5a3825704469863e100b8fe39e 100755 (executable)
@@ -2268,13 +2268,20 @@ if test "$have_lcms" = 'yes'; then
   LCMS_CFLAGS="$LCMS2_CFLAGS"
   LCMS_LIBS="$LCMS2_LIBS"
   CFLAGS="$LCMS2_CFLAGS $CFLAGS"
+  AC_CHECK_HEADER(lcms2/lcms2.h,have_lcms_header='yes',,)
+  if test "$have_lcms_header" = 'yes'; then
+    AC_DEFINE(HAVE_LCMS2_LCMS2_H,1,Define if you have the <lcms2/lcms2.h> header file.)
+  fi
 else
   PKG_CHECK_MODULES(LCMS,[lcms >= 1.0.0], have_lcms=yes, have_lcms=no)
   if test "$have_lcms" = 'yes'; then
     AC_DEFINE(LCMS_DELEGATE,1,Define if you have LCMS library)
     AC_DEFINE(LCMS_VERSION_1,1,Define if you have LCMS version 1 library)
     CFLAGS="$LCMS_CFLAGS $CFLAGS"
-  fi
+    AC_CHECK_HEADER(lcms/lcms.h,have_lcms_header='yes',,)
+    if test "$have_lcms_header" = 'yes'; then
+      AC_DEFINE(HAVE_LCMS_LCMS_H,1,Define if you have the <lcms/lcms.h> header file.)
+    fi
 fi
 
 AM_CONDITIONAL(LCMS_DELEGATE, test "$have_lcms" = 'yes')
@@ -3856,8 +3863,7 @@ matches your expectations.
   JBIG              --with-jbig=$with_jbig             $have_jbig
   JPEG v1           --with-jpeg=$with_jpeg             $have_jpeg
   JPEG-2000         --with-jp2=$with_jp2               $have_jp2
-  LCMS v1           --with-lcms=$with_lcms             $have_lcms
-  LCMS v2           --with-lcms2=$with_lcms2           $have_lcms2
+  LCMS              --with-lcms=$with_lcms             $have_lcms
   LIBJPEG2          --with-openjp2=$with_openjp2       $have_openjp2
   LQR               --with-lqr=$with_lqr               $have_lqr
   LTDL              --with-ltdl=$with_ltdl             $have_ltdl