From bbbd8a812af193d1fd1c08c818a6ca422327991c Mon Sep 17 00:00:00 2001 From: antognolli Date: Wed, 22 Jun 2011 21:31:53 +0000 Subject: [PATCH] evas/autotools - fix build when no dependencies for examples are found. Some examples need ecore, ecore-evas and edje to demonstrate its functionality. If --enable-build-examples is used, these dependencies are required. This commit disables the examples build if they are not found in the system. TODO: improve efl_examples.m4 and use it in evas build too - I'll work on that soon. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@60609 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index dc59e3e..41c3c36 100644 --- a/configure.ac +++ b/configure.ac @@ -1576,9 +1576,10 @@ AC_ARG_ENABLE([build-examples], # put in here the dependencies for Evas' examples. they are # meant to be 'real world' usage examples, thus one will be # using higher level libraries on these programs - PKG_CHECK_MODULES([ECORE_EVAS], [ecore-evas ecore]) + PKG_CHECK_MODULES([ECORE_EVAS], [ecore-evas ecore], [], [build_examples="no"]) PKG_CHECK_MODULES([EDJE], [edje], - [edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc]) + [edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc], + [build_examples="no"]) AC_SUBST(edje_cc) else build_examples="no" -- 2.7.4