@ -431,11 +431,7 @@ AM_CONDITIONAL([EFL_ENABLE_TESTS], [test "x${_efl_enable_tests}" = "xyes"])
# check for crypto/tls library to use
case "$build_crypto" in
gnutls)
EFL_PKG_CHECK_STRICT([gnutls >= 2.11])
AC_DEFINE([HAVE_GNUTLS], [1], [Have Gnutls support])
requirements_pc_crypto="gnutls >= 2.11 ${requirements_pc_crypto}"
requirements_pc_deps_crypto="gnutls >= 2.11 ${requirements_pc_deps_crypto}"
EFL_DEPEND_PKG([crypto], [GNUTLS], [gnutls >= 2.11])
# libgcrypt
AC_PATH_GENERIC([libgcrypt], [], [:],
@ -444,11 +440,7 @@ case "$build_crypto" in
;;
openssl)
EFL_PKG_CHECK_STRICT([openssl])
AC_DEFINE([HAVE_OPENSSL], [1], [Have Openssl support])
requirements_pc_crypto="openssl ${requirements_pc_crypto}"
requirements_pc_deps_crypto="openssl ${requirements_pc_deps_crypto}"
EFL_DEPEND_PKG([crypto], [OPENSSL], [openssl])
;;
esac
@ -1453,56 +1445,31 @@ esac
requirements_pc_evas="eo >= ${PACKAGE_VERSION} eet >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${requirements_pc_evas}"
# Freetype
EFL_PKG_CHECK_STRICT([freetype2 >= 9.3.0])
requirements_pc_evas="freetype2 >= 9.3.0 ${requirements_pc_evas}"
requirements_pc_deps_evas="freetype2 >= 9.3.0 ${requirements_pc_deps_evas}"
EFL_DEPEND_PKG([evas], [FREETYPE], [freetype2 >= 9.3.0])
## optional dependencies
# FontConfig
have_fontconfig="no"
if test "x${want_fontconfig}" = "xyes"; then
EFL_PKG_CHECK_STRICT([fontconfig >= 2.5.0])
have_fontconfig="yes"
AC_DEFINE(HAVE_FONTCONFIG, 1, [have fontconfig searching capabilities])
requirements_pc_evas="fontconfig >= 2.5.0 ${requirements_pc_evas}"
requirements_pc_deps_evas="fontconfig >= 2.5.0 ${requirements_pc_deps_evas}"
fi
EFL_OPTIONAL_DEPEND_PKG([evas], [${want_fontconfig}],
[FONTCONFIG], [fontconfig >= 2.5.0])
# fribidi support
have_fribidi="no"
if test "x${want_fribidi}" = "xyes"; then
EFL_PKG_CHECK_STRICT([fribidi >= 0.19.2])
have_fribidi="yes"
AC_DEFINE([HAVE_FRIBIDI], [1], [have fribidi support])
requirements_pc_evas="fribidi >= 0.19.2 ${requirements_pc_evas}"
requirements_pc_deps_evas="fribidi >= 0.19.2 ${requirements_pc_deps_evas}"
CPPFLAGS_SAVE="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS"
AC_CHECK_SIZEOF([FriBidiChar], [], [#include <fribidi/fribidi.h>])
CPPFLAGS="$CPPFLAGS_SAVE"
fi
EFL_OPTIONAL_DEPEND_PKG([evas], [${want_fribidi}],
[FRIBIDI], [fribidi >= 0.19.2],
[
CPPFLAGS_SAVE="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS"
AC_CHECK_SIZEOF([FriBidiChar], [], [#include <fribidi/fribidi.h>])
CPPFLAGS="$CPPFLAGS_SAVE"
])
# harfbuzz support
have_harfbuzz="no"
have_harfbuzz_ft="no"
if test "x${want_harfbuzz}" = "xyes"; then
EFL_PKG_CHECK_STRICT([harfbuzz >= 0.9.0])
have_harfbuzz="yes"
requirements_pc_evas="harfbuzz >= 0.9.0 ${requirements_pc_evas}"
requirements_pc_deps_evas="harfbuzz >= 0.9.0 ${requirements_pc_deps_evas}"
fi
EFL_OPTIONAL_DEPEND_PKG([evas], [${want_harfbuzz}],
[HARFBUZZ], [harfbuzz >= 0.9.0])
# Pixman
have_pixman="no"
if test "x${want_pixman}" = "xyes"; then
EFL_PKG_CHECK_STRICT([pixman-1])
have_pixman="yes"
AC_DEFINE([HAVE_PIXMAN], [1], [have pixman for rendering])
requirements_pc_evas="pixman-1 ${requirements_pc_evas}"
requirements_pc_deps_evas="pixman-1 ${requirements_pc_deps_evas}"
fi
EFL_OPTIONAL_DEPEND_PKG([evas], [${want_pixman}], [PIXMAN], [pixman-1])
if test "x${have_pixman}" = "xyes" ; then
if test "x${have_pixman_font}" = "xyes" ; then
@ -1980,14 +1947,8 @@ requirements_pc_ecore="eo >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${req
# glib
have_glib="no"
if test "x${want_glib}" = "xyes" ; then
EFL_PKG_CHECK_STRICT([glib-2.0])
have_glib="yes"
AC_DEFINE([HAVE_GLIB], [1], [Have GLib])
requirements_pc_ecore="glib-2.0 ${requirements_pc_ecore}"
requirements_pc_deps_ecore="glib-2.0 ${requirements_pc_deps_ecore}"
else
EFL_OPTIONAL_DEPEND_PKG([ecore], [${want_glib}], [GLIB], [glib-2.0])
if test "x${have_glib}" = "xno"; then
want_g_main_loop="no"
fi
@ -2155,27 +2116,12 @@ requirements_pc_deps_ecore_con="${requirements_pc_deps_crypto} ${requirements_pc
requirements_libs_ecore_con="${requirements_libs_crypto} ${requirements_libs_ecore_con}"
# cURL
have_curl="no"
if test "x${want_curl}" = "xyes" ; then
EFL_PKG_CHECK_STRICT([libcurl])
have_curl="yes"
AC_DEFINE([HAVE_CURL], [1], [Downloading with CURL])
requirements_pc_ecore_con="libcurl ${requirements_pc_ecore_con}"
requirements_pc_deps_ecore_con="libcurl ${requirements_pc_deps_ecore_con}"
fi
EFL_OPTIONAL_DEPEND_PKG([ecore_con], [${want_curl}], [CURL], [libcurl])
# c-ares
have_cares="no"
if test "x${want_cares}" = "xyes" ; then
EFL_PKG_CHECK_STRICT([libcares >= 1.6.1])
have_cares="yes"
AC_DEFINE([HAVE_CARES], [1], [Build Ecore_Con_Info with c-ares support])
requirements_pc_ecore_con="libcares >= 1.6.1 ${requirements_pc_ecore_con}"
requirements_pc_deps_ecore_con="libcares >= 1.6.1 ${requirements_pc_deps_ecore_con}"
fi
EFL_OPTIONAL_DEPEND_PKG([ecore_con], [${want_cares}],
[CARES], [libcares >= 1.6.1])
AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
if test "x${requirements_pc_deps_ecore_con}" != "x" ; then