applied a patch from Adrian Bunk that changes the function to look for

2003-11-25  Sven Neumann  <sven@gimp.org>

	* configure.in: applied a patch from Adrian Bunk that changes the
	function to look for when checking for lcms (bug #127893). Also
	added a warning when lcms is not found.
This commit is contained in:
Sven Neumann 2003-11-25 14:38:08 +00:00 committed by Sven Neumann
parent b8e13405ea
commit 469840f812
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2003-11-25 Sven Neumann <sven@gimp.org>
* configure.in: applied a patch from Adrian Bunk that changes the
function to look for when checking for lcms (bug #127893). Also
added a warning when lcms is not found.
2003-11-25 Sven Neumann <sven@gimp.org>
* plug-ins/bmp/bmp.[ch]

View File

@ -1041,17 +1041,22 @@ AC_SUBST(WMF_CFLAGS)
################
have_lcms=no
AC_CHECK_LIB(lcms, cmsCreateProofingTransform, [
AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [
AC_CHECK_HEADER(lcms.h,
have_lcms=yes
LCMS_LIBS="-llcms", [
have_lcms=yes, [
AC_CHECK_HEADER(lcms/lcms.h,
have_lcms=yes
AC_DEFINE(HAVE_LCMS_LCMS_H, 1,
[Define to 1 if the lcms header must be included as lcms/lcms.h])
LCMS_LIBS="-llcms")])
[Define to 1 if the lcms header must be included as lcms/lcms.h]))
])
])
if test $have_lcms = yes; then
LCMS_LIBS="-llcms"
else
AC_MSG_WARN([*** color proof module will not be built (lcms not found or unuseable) ***])
fi
AC_SUBST(LCMS_LIBS)
AM_CONDITIONAL(HAVE_LCMS, test $have_lcms = yes)