On 13 September 2011 16:51, Neil Roberts <[email protected]> wrote: > Mx is only used to build the lights example which isn't installed > anyway. If you could somehow convince the configure not to detect your > installed Mx then it should all hopefully build. Ideally the package for > mash shouldn't depend on Mx.
I think magic deps like this are nearly always a bad idea, as on my system I have mx-devel, but not on koji. The attached patch gets things building for me. Thanks, Richard.
From efc1b3c17bdc91d51789bfa1f918588ec5443df2 Mon Sep 17 00:00:00 2001 From: Richard Hughes <[email protected]> Date: Thu, 15 Sep 2011 15:48:18 +0100 Subject: [PATCH] Allow to compile with --disable-examples to avoid the implicit MX dep --- configure.ac | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8046636..9207fca 100644 --- a/configure.ac +++ b/configure.ac @@ -71,10 +71,19 @@ PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.16 gobject-2.0 >= 2.16]) PKG_CHECK_MODULES(CLUTTER, [clutter-1.0 >= 1.5.10]) dnl Optionally depend on Mx just for the test-lights example -PKG_CHECK_MODULES(MX, [mx-1.0 >= 1.1.0], [have_mx=yes], [have_mx=no]) -AS_IF([test "x$have_mx" = "xno"], - AC_MSG_WARN([Mx was not found. It is not required but the lighting example will not be built without it])) +AC_ARG_ENABLE(examples, AS_HELP_STRING([--enable-examples],[Build examples]), + enable_examples=$enableval,enable_examples=auto) +have_mx="no" +if test x$enable_examples = xyes; then + PKG_CHECK_MODULES(MX, [mx-1.0 >= 1.1.0], [have_mx=yes], [have_mx=no])) + AS_IF([test "x$have_mx" = "xno"], + AC_MSG_ERROR([Mx was not found and is required for the lighting example])) +elif test x$enable_examples = xauto; then + PKG_CHECK_MODULES(MX, [mx-1.0 >= 1.1.0], [have_mx=yes], [have_mx=no]) + AS_IF([test "x$have_mx" = "xno"], + AC_MSG_WARN([Mx was not found. It is not required but the lighting example will not be built without it])) +fi AM_CONDITIONAL([HAVE_MX], [test "x$have_mx" = "xyes"]) -- 1.7.6.2
_______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
