make ecore-imf required.

SVN revision: 72446
This commit is contained in:
Carsten Haitzler 2012-06-19 07:16:13 +00:00
parent 235da7fe25
commit e34967f6b6
2 changed files with 3 additions and 24 deletions

View File

@ -26,34 +26,13 @@ requirements="\
ecore >= 1.2.99 \
edje >= 1.2.99 \
emotion >= 1.0.99 \
ecore-imf >= 1.2.99 \
"
PKG_CHECK_MODULES([TERMINOLOGY], [${requirements}])
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
have_ecore_imf="no"
want_ecore_imf="auto"
AC_ARG_ENABLE([ecore-imf],
[AC_HELP_STRING([--disable-ecore-imf], [disable ecore-imf (Input Method Framework) usage. @<:@default=enabled@:>@])],
[want_ecore_imf=$enableval], [])
if test "x$want_ecore_imf" != "xno"; then
PKG_CHECK_MODULES([ECORE_IMF],
[ecore-imf >= 1.2.0 ecore-imf-evas >= 1.2.0],
[
AC_DEFINE([HAVE_ECORE_IMF], [1], [Input Method Support])
have_ecore_imf="yes"
requirements="ecore-imf-evas >= 1.2.0 ecore-imf >= 1.2.0 ${requirements}"
],
[have_ecore_imf="no"])
if test "x$want_ecore_imf" = "xyes" -a "x$have_ecore_imf" = "xno"; then
AC_MSG_ERROR([ecore-imf support requested but not found by pkg-config.])
fi
fi
with_max_log_level="<unset>"
AC_ARG_WITH(maximum-log-level,
[AC_HELP_STRING([--with-maximum-log-level=NUMBER],

View File

@ -4,9 +4,9 @@ bin_PROGRAMS = terminology
terminology_CPPFLAGS = -I. \
-DPACKAGE_BIN_DIR=\"$(bindir)\" -DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" @TERMINOLOGY_CFLAGS@ @ECORE_IMF_CFLAGS@
-DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" @TERMINOLOGY_CFLAGS@
terminology_LDADD = @TERMINOLOGY_LIBS@ @ECORE_IMF_LIBS@
terminology_LDADD = @TERMINOLOGY_LIBS@
terminology_SOURCES = \
private.h \