summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston/make-lcms-configurable.patch
blob: ef145b8473cdb961d31f06039d8b8f35b1faa476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: weston-1.5.0/configure.ac
===================================================================
--- weston-1.5.0.orig/configure.ac
+++ weston-1.5.0/configure.ac
@@ -491,8 +491,16 @@ AC_ARG_ENABLE(demo-clients-install,
 			     enable_demo_clients_install=no)
 AM_CONDITIONAL(INSTALL_DEMO_CLIENTS, [test "x$enable_demo_clients_install" = "xyes"])
 
+AC_ARG_ENABLE(lcms,
+              AS_HELP_STRING([--disable-lcms],
+                             [disable lcms support]),,
+              enable_lcms=yes)
+
+AS_IF([test "x$enable_lcms" != "xno"], [
 PKG_CHECK_MODULES(LCMS, lcms2,
-                  [have_lcms=yes], [have_lcms=no])
+                  [have_lcms=yes], [have_lcms=no])],
+                  [have_lcms=no])
+
 if test "x$have_lcms" = xyes; then
        AC_DEFINE(HAVE_LCMS, 1, [Have lcms support])
 fi