Since babl-space.h includes lcms2.h, we need to include LCMS_CFLAGS
everywhere that includes babl-internal.h.
model-cmyk.c \
model-ycbcr.c
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl $(LCMS_CFLAGS)
noinst_LTLIBRARIES= libbase.la
libbase_la_SOURCES= $(h_sources) $(c_sources)
-I$(top_builddir) \
-I$(top_srcdir) \
-I$(top_srcdir)/babl \
- -I$(top_srcdir)/extensions
+ -I$(top_srcdir)/extensions \
+ $(LCMS_CFLAGS)
extdir = $(libdir)/babl-@BABL_API_VERSION@
ext_LTLIBRARIES = \
TESTS_ENVIRONMENT = LD_LIBRARY_PATH=$(top_builddir)/babl:$LD_LIBRARY_PATH GI_TYPELIB_PATH=$(top_builddir)/babl BABL_PATH=$(top_builddir)/extensions/.libs
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl $(LCMS_CFLAGS)
AM_LDFLAGS = $(THREAD_LIB) -no-install
LDADD = $(top_builddir)/babl/libbabl-@BABL_API_VERSION@.la \
-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl $(LCMS_CFLAGS)
AM_LDFLAGS = -no-install
LDADD = $(top_builddir)/babl/libbabl-@BABL_API_VERSION@.la \