[babl/wip/pippin/inverted-cmyk: 3/11] build: check for and link against lcms2
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl/wip/pippin/inverted-cmyk: 3/11] build: check for and link against lcms2
- Date: Fri, 16 Nov 2018 20:51:56 +0000 (UTC)
commit d34171a80d8ded7f65914c015e063b83f0b03899
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Nov 12 23:30:07 2018 +0100
build: check for and link against lcms2
babl/Makefile.am | 5 ++---
configure.ac | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/babl/Makefile.am b/babl/Makefile.am
index 98b822b..75345f2 100644
--- a/babl/Makefile.am
+++ b/babl/Makefile.am
@@ -92,18 +92,17 @@ AM_CPPFLAGS = \
lib_LTLIBRARIES= libbabl-@BABL_API_VERSION@.la
libbabl_@BABL_API_VERSION@_la_SOURCES= $(h_sources) $(c_sources)
-libbabl_@BABL_API_VERSION@_la_CFLAGS= $(SSE2_EXTRA_CFLAGS)
+libbabl_@BABL_API_VERSION@_la_CFLAGS= $(SSE2_EXTRA_CFLAGS) $(LCMS_CFLAGS)
libbabl_@BABL_API_VERSION@_la_LIBADD= \
base/libbase.la \
@LTLIBOBJS@
-libbabl_la_LDFLAGS= \
- $(MATH_LIB) $(THREAD_LIB) $(LOG_LIB)
libbabl_@BABL_API_VERSION@_la_LDFLAGS= \
${win32_no_undefined} \
$(MATH_LIB) $(THREAD_LIB) $(LOG_LIB) \
+ $(LCMS_LIBS) \
-export-symbols $(top_srcdir)/export-symbols \
-version-info $(BABL_LIBRARY_VERSION)
diff --git a/configure.ac b/configure.ac
index 5ddc42b..43b1aa5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -215,6 +215,24 @@ case "$target_or_host" in
;;
esac
+################
+# Check for lcms
+################
+
+AC_ARG_WITH(lcms, [ --without-lcms build without lcms support])
+
+have_lcms="no (lcms support disabled)"
+if test "x$with_lcms" != xno; then
+ have_lcms=yes
+ PKG_CHECK_MODULES(LCMS, lcms2 >= lcms_required_version,
+ AC_DEFINE(HAVE_LCMS, 1, [Define to 1 if lcms is available])
+ LCMS='lcms$(EXEEXT)',
+ have_lcms="no (lcms not found or unusable)")
+fi
+
+AC_SUBST(LCMS)
+AM_CONDITIONAL(HAVE_LCMS, test "x$have_lcms" = xyes)
+
############################
# Check how to find plug-ins
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]