From b56951c38521ee7eb1add349ab314e7bb2495eb0 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 13 May 2009 22:11:06 +0000 Subject: [PATCH] * fix build when ecore_imf is not available. Patch by Lars Munch * formatting SVN revision: 40632 --- legacy/edje/configure.ac | 25 ++++++++++++------------- legacy/edje/src/lib/edje_entry.c | 2 ++ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/legacy/edje/configure.ac b/legacy/edje/configure.ac index 070ce3cf05..22e96e7a2e 100644 --- a/legacy/edje/configure.ac +++ b/legacy/edje/configure.ac @@ -145,11 +145,13 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) AM_PATH_PYTHON([2.5], , [:]) AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != : ]) - -### Checks for libraries +# pkg-config PKG_PROG_PKG_CONFIG + +### Checks for libraries + # Evil library for compilation on Windows EFL_EDJE_BUILD="" @@ -171,12 +173,11 @@ PKG_CHECK_MODULES([EDJE], eet >= 1.0.1 evas >= 0.9.9 ecore >= 0.9.9 - ecore-imf >= 0.9.9 - ecore-imf-evas >= 0.9.9 ecore-job >= 0.9.9 embryo >= 0.9.1 - ] -) + ]) + +requirement_edje="embryo ecore-job ecore evas eet eina-0 ${requirement_edje}" have_ecore_imf="no" PKG_CHECK_MODULES([ECORE_IMF], @@ -189,10 +190,8 @@ PKG_CHECK_MODULES([ECORE_IMF], have_ecore_imf="yes" requirement_edje="ecore-imf ecore-imf-evas ${requirement_edje}" ], - [have_ecore_imf="yes"] -) - -requirement_edje="embryo ecore-job ecore evas eet eina-0 ${requirement_edje}" + [have_ecore_imf="yes"], + [have_ecore_imf="no"]) # Dependencies for the binaries @@ -282,11 +281,13 @@ echo "------------------------------------------------------------------------" echo echo "Configuration Options Summary:" echo +echo " Ecore IMF............: $have_ecore_imf" +echo echo " EDJE_PROGRAM_CACHE...: $want_edje_program_cache" echo echo " Build binaries.......: $have_edje_cc" echo -echo " Documentation........: ${enable_doc}" +echo " Documentation........: ${build_doc}" echo echo " Compilation..........: make" echo @@ -294,5 +295,3 @@ echo " Installation.........: make install" echo echo " prefix.............: $prefix" echo -echo " Ecore IMF............: $have_ecore_imf" -echo diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c index 26f3d04a48..f44356625c 100644 --- a/legacy/edje/src/lib/edje_entry.c +++ b/legacy/edje/src/lib/edje_entry.c @@ -27,10 +27,12 @@ void *alloca (size_t); #include "edje_private.h" +#ifdef ECORE_IMF static int _edje_entry_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos); static int _edje_entry_imf_event_commit_cb(void *data, int type, void *event); static int _edje_entry_imf_event_changed_cb(void *data, int type, void *event); static int _edje_entry_imf_event_delete_surrounding_cb(void *data, int type, void *event); +#endif typedef struct _Entry Entry; typedef struct _Sel Sel;