Use pkg-config for ecore stuff.

SVN revision: 30897
This commit is contained in:
Kim Woelders 2007-07-18 11:16:34 +00:00
parent f3b0ed3326
commit 1d2f6424d1
1 changed files with 4 additions and 11 deletions

View File

@ -139,17 +139,10 @@ AC_ARG_ENABLE(ecore,
[ --enable-ecore use ecore functions (for testing only - DO NOT USE!) @<:@default=no@:>@],,
enable_ecore=no)
if test "x$enable_ecore" = "xyes"; then
AC_CHECK_LIB(ecore_x, ecore_x_init,
[
AC_DEFINE(USE_ECORE, 1, [Ecore list support])
AC_DEFINE(USE_ECORE_X, 1, [Ecore_x support])
],[
AC_MSG_ERROR([Cannot find ecore libraries])
])
ECORE_LIBS=`ecore-config --libs-x`
ECORE_CFLAGS=`ecore-config --cflags`
AC_SUBST(ECORE_LIBS)
AC_SUBST(ECORE_CFLAGS)
PKG_CHECK_MODULES(ECORE, ecore-x,
AC_DEFINE(USE_ECORE, 1, [Use libecore])
AC_DEFINE(USE_ECORE_X, 1, [Use libecore_x]),
enable_ecore=no)
fi
# Is this reasonably correct?