|
|
53c576 |
diff -ruN openjdk/common/autoconf/libraries.m4 openjdk/common/autoconf/libraries.m4
|
|
|
53c576 |
--- openjdk/common/autoconf/libraries.m4 2013-11-14 22:04:38.039440136 -0500
|
|
|
53c576 |
+++ openjdk/common/autoconf/libraries.m4 2013-11-14 22:05:11.474356424 -0500
|
|
|
53c576 |
@@ -676,6 +676,46 @@
|
|
|
53c576 |
|
|
|
53c576 |
###############################################################################
|
|
|
53c576 |
#
|
|
|
53c576 |
+ # Check for the lcms2 library
|
|
|
53c576 |
+ #
|
|
|
53c576 |
+
|
|
|
53c576 |
+ AC_ARG_WITH(lcms, [AS_HELP_STRING([--with-lcms],
|
|
|
53c576 |
+ [use lcms2 from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
|
|
|
53c576 |
+
|
|
|
53c576 |
+ AC_CHECK_LIB(lcms2, cmsOpenProfileFromFile,
|
|
|
53c576 |
+ [ LCMS_FOUND=yes ],
|
|
|
53c576 |
+ [ LCMS_FOUND=no ])
|
|
|
53c576 |
+
|
|
|
53c576 |
+ AC_MSG_CHECKING([for which lcms to use])
|
|
|
53c576 |
+
|
|
|
53c576 |
+ DEFAULT_LCMS=bundled
|
|
|
53c576 |
+
|
|
|
53c576 |
+ #
|
|
|
53c576 |
+ # If user didn't specify, use DEFAULT_LCMS
|
|
|
53c576 |
+ #
|
|
|
53c576 |
+ if test "x${with_lcms}" = "x"; then
|
|
|
53c576 |
+ with_lcms=${DEFAULT_LCMS}
|
|
|
53c576 |
+ fi
|
|
|
53c576 |
+
|
|
|
53c576 |
+ if test "x${with_lcms}" = "xbundled"; then
|
|
|
53c576 |
+ USE_EXTERNAL_LCMS=false
|
|
|
53c576 |
+ AC_MSG_RESULT([bundled])
|
|
|
53c576 |
+ elif test "x${with_lcms}" = "xsystem"; then
|
|
|
53c576 |
+ if test "x${LCMS_FOUND}" = "xyes"; then
|
|
|
53c576 |
+ USE_EXTERNAL_LCMS=true
|
|
|
53c576 |
+ AC_MSG_RESULT([system])
|
|
|
53c576 |
+ else
|
|
|
53c576 |
+ AC_MSG_RESULT([system not found])
|
|
|
53c576 |
+ AC_MSG_ERROR([--with-lcms=system specified, but no lcms found!])
|
|
|
53c576 |
+ fi
|
|
|
53c576 |
+ else
|
|
|
53c576 |
+ AC_MSG_ERROR([Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'])
|
|
|
53c576 |
+ fi
|
|
|
53c576 |
+
|
|
|
53c576 |
+ AC_SUBST(USE_EXTERNAL_LCMS)
|
|
|
53c576 |
+
|
|
|
53c576 |
+ ###############################################################################
|
|
|
53c576 |
+ #
|
|
|
53c576 |
# Check for the png library
|
|
|
53c576 |
#
|
|
|
53c576 |
|