1 EFL_VERSION([1], [17], [99], [dev])
2 AC_INIT([efl], [efl_version], [enlightenment-devel@lists.sourceforge.net])
5 AC_CONFIG_SRCDIR([configure.ac])
6 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_HEADERS([config.h])
10 #ifndef EFL_CONFIG_H__
11 #define EFL_CONFIG_H__
14 #endif /* EFL_CONFIG_H__ */
18 AM_INIT_AUTOMAKE([1.6 dist-xz -Wall color-tests subdir-objects])
19 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
21 # Due to a bug in automake 1.14 we need to use this after AM_INIT_AUTOMAKE
22 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15981
23 AC_USE_SYSTEM_EXTENSIONS
27 #### Apply configuring with legacy api's only, eo api's or both.
29 EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
30 EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
33 #### For the moment the Eo EFL API is not ready you need to explicitely optin.
34 EFL_ENABLE_EO_API_SUPPORT
35 EFL_ENABLE_BETA_API_SUPPORT
38 [AS_HELP_STRING([--with-api=@<:@eo/legacy/both@:>@],[Select the EFL API Model @<:@default=both@:>@])],
44 EFL_API_LEGACY_DEF="#define EFL_NOLEGACY_API_SUPPORT"
45 EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
54 EFL_API_EO_DEF="#define EFL_EO_API_SUPPORT"
56 *) AC_MSG_ERROR([Invalid api (${efl_api}): must be eo, legacy or both]) ;;
59 AC_SUBST(EFL_API_LEGACY_DEF)
60 AC_SUBST(EFL_API_EO_DEF)
62 #### Additional options to configure
64 # string to identify the build
66 [AS_HELP_STRING([--with-id=BUILD_ID],[Specify a string to identify the build (vendor, maintainer, etc).
67 @<:@default=none@:>@])],
68 [EFL_BUILD_ID="${withval}"],
69 [EFL_BUILD_ID="none"])
70 AC_SUBST(EFL_BUILD_ID)
73 AC_ARG_WITH([profile],
74 [AS_HELP_STRING([--with-profile=PROFILE],[use the predefined build profile, one of: dev, debug and release.
75 @<:@default=dev@:>@])],
76 [build_profile=${withval}],
77 [build_profile=def_build_profile])
79 case "${build_profile}" in
83 AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}])
88 eina_log_backtrace="yes"
89 case "${build_profile}" in
92 eina_log_backtrace="no"
96 # Enable CRI & ERR backtrace by default for release but not for dev/debug
97 AC_DEFINE_IF([EINA_LOG_BACKTRACE_ENABLE], [test "x${eina_log_backtrace}" = "xyes"], [1], [Default log level triggering backtraces])
99 # TODO: add some build "profile" (server, full, etc...)
101 AC_ARG_WITH([crypto],
102 [AS_HELP_STRING([--with-crypto=CRYPTO],[use the predefined build crypto, one of:
103 openssl, gnutls or none.
104 @<:@default=openssl@:>@])],
105 [build_crypto=${withval}],
106 [build_crypto=openssl])
108 case "${build_crypto}" in
112 AC_MSG_ERROR([Unknown build crypto option: --with-crypto=${build_crypto}])
117 [AS_HELP_STRING([--with-tests=none|regular|coverage],[choose testing method: regular, coverage or none.
118 @<:@default=none@:>@])],
119 [build_tests=${withval}],
124 case "${build_tests}" in
126 if test "${build_profile}" = "dev"; then
140 AC_MSG_ERROR([Unknown build tests option: --with-tests=${build_tests}])
144 AC_ARG_WITH([ecore-con-http-test-url],
145 [AS_HELP_STRING([--with-ecore-con-http-test-url=http://username:password@example.com],[Url of http server for testing with username and password])],[ECORE_CON_HTTP_TEST_URL=${withval}][AC_DEFINE_UNQUOTED([ECORE_CON_HTTP_TEST_URL],["$withval"],[Http url for testing])])
147 AC_ARG_WITH([ecore-con-ftp-test-url],
148 [AS_HELP_STRING([--with-ecore-con-ftp-test-url=ftp://username:password@ftp.example.com?file=filename&directory=dir],[Url of ftp server for testing with username, password, complete filepath for upload with optional directory])],[ECORE_CON_FTP_TEST_URL=${withval}][AC_DEFINE_UNQUOTED([ECORE_CON_FTP_TEST_URL],["$withval"],[Ftp url for testing])])
150 dbusservicedir="${datadir}/dbus-1/services"
151 AC_ARG_WITH([dbus-services],
152 [AS_HELP_STRING([--with-dbus-services=DBUS_SERVICES],[specify a directory to store dbus service files.])],
153 [dbusservicedir=$withval])
154 AC_SUBST(dbusservicedir)
156 efl_deprecated_option="no"
157 EFL_WITH_BIN([eet], [eet-eet], [eet])
158 EFL_WITH_BIN([edje], [edje-cc])
159 EFL_WITH_BIN([eolian], [eolian-gen])
160 EFL_WITH_BIN([eolian_cxx], [eolian-cxx])
161 EFL_WITH_BIN([eolian-js], [eolian-js], [eolian_js])
162 EFL_WITH_BIN_SUFFIX([elua], [elua], [_bin])
163 EFL_WITH_BIN([eldbus], [eldbus_codegen], [eldbus-codegen])
164 EFL_WITH_BIN([elementary], [elementary-codegen], [elementary_codegen])
165 EFL_WITH_BIN([elementary], [elm-prefs-cc], [elm_prefs_cc])
169 requirements_pc_eflall=""
170 requirements_pc_deps_eflall=""
171 requirements_libs_eflall=""
172 requirements_cflags_eflall=""
174 requirements_pc_crypto=""
175 requirements_pc_deps_crypto=""
176 requirements_libs_crypto=""
177 requirements_cflags_crypto=""
181 # TODO: move me to m4 file that setups module/so related variables
184 AC_MSG_ERROR([ceGCC compiler is not supported anymore. Exiting...])
189 MODULE_ARCH="v-v_maj.v_min"
193 MODULE_ARCH="v-v_maj.v_min"
197 MODULE_ARCH="v-v_maj.v_min"
202 EFL_VERSION_MAJOR="v_maj"
203 EFL_VERSION_MINOR="v_min"
204 AC_SUBST(EFL_VERSION_MAJOR)
205 AC_SUBST(EFL_VERSION_MINOR)
207 ELM_UNIX_DEF="#undef"
208 ELM_WIN32_DEF="#undef"
210 have_systemd_pkg="no"
219 # TODO: check cygwin* here
222 ELM_WIN32_DEF="#define"
223 EFLALL_CFLAGS="${EFLALL_CFLAGS} -D__USE_MINGW_ANSI_STDIO"
227 ELM_UNIX_DEF="#define"
231 ELM_UNIX_DEF="#define"
235 have_systemd_pkg="auto"
236 ELM_UNIX_DEF="#define"
239 ELM_UNIX_DEF="#define"
243 case "$host_vendor" in
249 AC_SUBST([MODULE_ARCH])
250 AC_DEFINE_UNQUOTED([MODULE_ARCH], ["${MODULE_ARCH}"], ["Module architecture"])
251 AC_DEFINE_UNQUOTED([SHARED_LIB_SUFFIX], ["${MODULE_EXT}"], [Suffix for shared objects])
252 AC_DEFINE_UNQUOTED([EXEEXT], ["${EXEEXT}"], [Suffix for binary objects])
254 # TODO: move me to m4 file that setups the windows related variables
255 AM_CONDITIONAL([HAVE_WIN32], [test "x${have_win32}" = "xyes"])
256 AM_CONDITIONAL([HAVE_WINDOWS], [test "x${have_windows}" = "xyes"])
257 AM_CONDITIONAL([HAVE_PS3], [test "x${have_ps3}" = "xyes"])
259 AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
260 AM_CONDITIONAL([HAVE_OSX], [test "x${have_darwin}" = "xyes"])
261 AM_CONDITIONAL([HAVE_X86_64], [test "x${host_cpu}" = "xx86_64"])
263 AC_SUBST([ELM_UNIX_DEF])
264 AC_SUBST([ELM_WIN32_DEF])
266 #### Checks for programs
270 if test "x${have_windows}" = "xyes" ; then
271 lt_cv_deplibs_check_method='pass_all'
273 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
274 LT_INIT([win32-dll disable-static pic-only])
277 CXXFLAGS="${CXXFLAGS} -fPIC -DPIC"
278 LDFLAGS="${LDFLAGS} -fPIC -DPIC"
282 AM_GNU_GETTEXT_VERSION([0.18])
284 m4_ifdef([AC_GNU_GETTEXT], [
285 AC_GNU_GETTEXT([external])
286 po_makefile_in=po/Makefile.in
290 m4_ifdef([AM_GNU_GETTEXT], [
291 AM_GNU_GETTEXT([external])
292 po_makefile_in=po/Makefile.in
299 AC_SUBST([LTLIBINTL])
300 LOCALE_DIR="${localedir}"
303 if test "x${POSUB}" = "x" ; then
307 AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
320 AM_CONDITIONAL([BUILD_EFL_NATIVE], [test "x${cross_compiling}" = "xno"])
322 if test "x${ac_cv_prog_cc_c99}" = "xno" ; then
323 AC_MSG_ERROR([efl requires a c99-capable compiler])
325 # We should be using ${CXX} here, but there is a bug in
326 # autotools macro and CXX is always set to g++ even if
327 # it's not found. So we are using an internal variable
328 # that does the work for now, may get broken in the future.
329 if test "x${ac_ct_CXX}" = "x" -a "x${CXX}" = "xg++"; then
330 AC_MSG_ERROR([efl requires a C++ compiler got ${ac_ct_CXX} and ${CXX}.])
338 if test "x${PKG_CONFIG}" = "x" ; then
339 AC_MSG_ERROR([pkg-config tool not found. Install it or set PKG_CONFIG environment variable to that path tool. Exiting...])
342 # doxygen program for documentation building
344 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
348 if test "${want_coverage}" = "yes" ; then
349 AC_CHECK_PROG([have_lcov], [lcov], [yes], [no])
350 if test "x${have_lcov}" = "xyes" ; then
351 AC_SEARCH_LIBS([__gcov_init], [gcov])
352 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-arcs -ftest-coverage])
353 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-fprofile-instr-generate -fcoverage-mapping])
354 EFL_CHECK_LINKER_FLAGS([EFLALL], [-fprofile-instr-generate -fcoverage-mapping])
355 if test "x${prefer_assert}" = "xno"; then
356 EFLALL_COV_CFLAGS="${EFLALL_COV_CFLAGS} -DNDEBUG"
358 EFLALL_COV_CFLAGS="${EFLALL_COV_CFLAGS} -g -O0"
361 AC_MSG_ERROR([lcov is not found])
365 AM_CONDITIONAL([EFL_ENABLE_COVERAGE], [test "${want_coverage}" = "yes"])
367 #### Checks for libraries
369 # check unit testing library
371 if test "${want_tests}" = "yes"; then
372 PKG_CHECK_MODULES([CHECK], [check >= 0.9.5])
374 AM_CONDITIONAL([EFL_ENABLE_TESTS], [test "${want_tests}" = "yes"])
377 # check for crypto/tls library to use
378 case "$build_crypto" in
380 EFL_DEPEND_PKG([crypto], [GNUTLS], [gnutls >= 2.12.16])
382 AM_PATH_LIBGCRYPT([], [:],
383 [AC_MSG_ERROR([libgcrypt required but not found])])
384 requirements_libs_crypto="${LIBGCRYPT_LIBS} ${requirements_libs_crypto}"
385 requirements_cflags_crypto="${LIBGCRYPT_CFLAGS} ${requirements_cflags_crypto}"
389 EFL_DEPEND_PKG([crypto], [OPENSSL], [openssl])
392 AM_CONDITIONAL([HAVE_CRYPTO_GNUTLS], [test "${build_crypto}" = "gnutls"])
393 AM_CONDITIONAL([HAVE_CRYPTO_OPENSSL], [test "${build_crypto}" = "openssl"])
397 AC_ARG_ENABLE([lua-old],
398 [AS_HELP_STRING([--enable-lua-old],[Enable interpreted Lua support (5.1 or 5.2). @<:@default=disabled@:>@])],
400 if test "x${enableval}" = "xyes" ; then
408 AM_CONDITIONAL([ENABLE_LUA_OLD], [test "${want_lua_old}" = "yes"])
409 AC_DEFINE_IF([ENABLE_LUA_OLD], [test "${want_lua_old}" = "yes"],
410 [1], [Use interpreted Lua (5.1 or 5.2)])
411 AC_SUBST([want_lua_old])
415 AC_ARG_ENABLE([liblz4],
416 [AS_HELP_STRING([--enable-liblz4],[Enable usage of liblz4 instead of our embedded copy. @<:@default=disabled@:>@])],
418 if test "x${enableval}" = "xyes" ; then
419 # Only ships pc file since r120
420 PKG_CHECK_MODULES([LIBLZ4], [liblz4])
421 EFL_DEPEND_PKG([EET], [LIBLZ4], [liblz4])
422 EFL_DEPEND_PKG([EVAS], [LIBLZ4], [liblz4])
430 AM_CONDITIONAL([ENABLE_LIBLZ4], [test "${want_liblz4}" = "yes"])
431 AC_DEFINE_IF([ENABLE_LIBLZ4], [test "${want_liblz4}" = "yes"], [1], [Use liblz4 external library instead of embedded copy])
432 AC_SUBST([want_liblz4])
433 AC_SUBST([ENABLE_LIBLZ4])
435 #### Checks for header files
437 # Common Checks (keep names sorted for ease of use):
455 #### Checks for types
458 AC_CHECK_SIZEOF([wchar_t])
459 EINA_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
460 AC_SUBST([EINA_SIZEOF_WCHAR_T])
462 AC_CHECK_SIZEOF(int, 4)
463 AC_CHECK_SIZEOF(long, 4)
465 AC_CHECK_SIZEOF([uintptr_t])
467 AC_CHECK_TYPES([siginfo_t], [], [],
471 # include <siginfo.h>
475 #### Checks for structures
478 #### Checks for compiler characteristics
482 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers -fvisibility=hidden -fdata-sections -ffunction-sections])
483 EFL_CHECK_LINKER_FLAGS([EFLALL], [-fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-strict-aliasing -Wl,--as-needed -Wl,--no-copy-dt-needed-entries])
484 case "${build_profile}" in
486 dnl Check if compiler has a dodgy -Wshadow that emits errors when shadowing a global
487 AC_MSG_CHECKING([whether -Wshadow generates spurious warnings])
488 CFLAGS_save="${CFLAGS}"
489 CFLAGS="${CFLAGS} -Werror -Wshadow"
490 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int x;]], [[int x = 0; (void)x;]])],[AC_MSG_RESULT([no])
491 EFL_CHECK_COMPILER_FLAGS([EFLALL], [-Wshadow])],[AC_MSG_RESULT([yes])])
492 CFLAGS="${CFLAGS_save}"
503 EFL_ATTRIBUTE_ALWAYS_INLINE
505 EFLALL_LIBS="${EFLALL_LIBS}"
506 EFLALL_CFLAGS="${EFLALL_CFLAGS}"
508 ## CPU architecture specific assembly
512 build_cpu_altivec="no"
516 AC_ARG_ENABLE([neon],
517 [AS_HELP_STRING([--disable-neon],[disable neon support @<:@default=enable@:>@])],
519 if test "x${enableval}" = "xyes"; then
532 AC_DEFINE([BUILD_MMX], [1], [Build MMX Code])
534 AC_CHECK_HEADER([immintrin.h],
536 AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
539 [build_cpu_sse3="no"])
540 AC_MSG_CHECKING([whether to build SSE3 code])
541 AC_MSG_RESULT([${build_cpu_sse3}])
543 if test "x$build_cpu_sse3" = "xyes" ; then
548 build_cpu_altivec="yes"
549 AC_CHECK_HEADER([altivec.h],
551 AC_DEFINE([BUILD_ALTIVEC], [1], [Build Altivec Code])
552 AC_DEFINE([HAVE_ALTIVEC_H], [1], [Have altivec.h header file])
553 build_cpu_altivec="yes"
557 save_CPPFLAGS=$CPPFLAGS
558 CFLAGS=$CFLAGS" -maltivec"
559 CPPFLAGS=$CPPFLAGS" -maltivec"
560 unset ac_cv_header_altivec_h
561 AC_CHECK_HEADER([altivec.h],
563 AC_DEFINE([BUILD_ALTIVEC], [1], [Build Altivec Code])
564 AC_DEFINE([HAVE_ALTIVEC_H], [1], [Have altivec.h header file])
565 build_cpu_altivec="yes"
567 [build_cpu_altivec="no"]
570 CPPFLAGS=$save_CPPFLAGS
573 if test "x${build_cpu_altivec}" = "xyes"; then
574 AC_MSG_CHECKING([whether to use altivec compiler flag])
575 if test "x$GCC" = "xyes"; then
576 if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then
577 altivec_cflags="-faltivec"
578 AC_DEFINE([BUILD_ALTIVEC], [1], [Build Altivec Code])
579 elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then
580 altivec_cflags="-maltivec"
581 AC_DEFINE([BUILD_ALTIVEC], [1], [Build Altivec Code])
584 AC_MSG_RESULT([${altivec_cflags}])
585 CFLAGS="$CFLAGS ${altivec_cflags}"
586 ALTIVEC_CFLAGS="-maltivec"
590 if test "x${want_neon}" = "xyes"; then
592 AC_MSG_CHECKING([whether to use NEON instructions])
593 CFLAGS_save="${CFLAGS}"
594 CFLAGS="${CFLAGS} -mfpu=neon -ftree-vectorize"
595 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <arm_neon.h>]], [[asm volatile ("vqadd.u8 d0, d1, d0\n")]])],[
597 AC_DEFINE([BUILD_NEON], [1], [Build NEON Code])
599 NEON_CFLAGS="-mfpu=neon"
604 CFLAGS="${CFLAGS_save}"
608 if test "x${want_neon}" = "xyes"; then
610 AC_MSG_CHECKING([whether to use NEON instructions])
611 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <arm_neon.h>]], [[volatile uint32x4_t test = vdupq_n_u32(0x1);]])],[
613 AC_DEFINE([BUILD_NEON], [1], [Build NEON Code])
614 AC_DEFINE([BUILD_NEON_INTRINSICS], [1], [Build NEON Intrinsics])
624 AC_SUBST([ALTIVEC_CFLAGS])
625 AC_SUBST([SSE3_CFLAGS])
626 AC_SUBST([NEON_CFLAGS])
628 #### Checks for linker characteristics
631 #### Checks for library functions
652 EFL_CHECK_FUNCS([EFLALL], [fnmatch gettimeofday dirfd fcntl])
654 have_atfile_source="${ac_cv_func_fstatat}"
655 AC_DEFINE_IF([HAVE_ATFILE_SOURCE],
656 [test "x${have_atfile_source}" = "xyes"],
657 [1], [Use fstatat and other -at file functions])
661 ###################### EFL ######################
664 AC_ARG_ENABLE([libeeze],
665 [AS_HELP_STRING([--disable-libeeze],[disable Eeze device library @<:@default=enable@:>@])],
667 if test "x${enableval}" = "xyes"; then
676 if test "x${want_libeeze}" = "xyes" ; then
677 if test "x${have_linux}" = "xyes" ; then
687 AC_ARG_ENABLE([systemd],
688 [AS_HELP_STRING([--enable-systemd],[Enable systemd support. @<:@default=disabled@:>@])],
690 if test "x${enableval}" = "xyes" ; then
699 systemd_dbus_prefix="# "
700 if test "${want_systemd}" = "yes"; then
701 systemd_dbus_prefix=""
703 AC_SUBST(systemd_dbus_prefix)
705 AC_ARG_WITH([systemdunitdir],
706 AS_HELP_STRING([--with-systemdunitdir=DIR],[path to systemd user services directory]),
707 [USER_SESSION_DIR=${withval}])
708 if test "$want_systemd" == "no"; then
709 have_systemd_user_session="no"
710 elif test -n "${USER_SESSION_DIR}"; then
711 have_systemd_user_session="yes"
712 AC_MSG_NOTICE([Using systemd user services directory as ${USER_SESSION_DIR}])
714 # Detect systemd user session directory properly
715 EFL_PKG_CHECK_VAR([USER_SESSION_DIR], [systemd >= 192], [systemduserunitdir],
716 [have_systemd_user_session="yes"], [have_systemd_user_session="no"])
718 if test "$want_systemd" = "yes" -a "$have_systemd_user_session" = "no"; then
719 AC_MSG_ERROR([systemd support wanted, but systemd was not found.])
723 AM_CONDITIONAL([HAVE_SYSTEMD_USER_SESSION], [test "x${have_systemd_user_session}" = "xyes"])
724 AC_SUBST([USER_SESSION_DIR])
726 if test "x${have_systemd_pkg}" = "xauto" -o "x${have_systemd_pkg}" = "xyes"; then
727 PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 209],
728 [have_systemd_pkg="yes"],
729 [have_systemd_pkg="no"])
732 # check for systemd library if requested
733 if test "x${want_systemd}" = "xyes" -a "x${have_systemd_pkg}" = "xno"; then
734 AC_MSG_ERROR([Systemd dependency requested but not found])
737 AM_CONDITIONAL([WANT_SYSTEMD], [test "${want_systemd}" = "yes"])
738 AM_CONDITIONAL([HAVE_SYSTEMD], [test "${want_systemd}" = "yes" -a "${have_systemd_pkg}" = "yes"])
739 #### Platform-dependent
742 EFL_LIB_START_OPTIONAL([Evil], [test "${have_windows}" = "yes"])
746 ### Additional options to configure
747 EFL_SELECT_WINDOWS_VERSION
749 ### Checks for programs
751 ### Checks for libraries
753 EFL_ADD_LIBS([EVIL], [-lpsapi -lole32 -lws2_32 -lsecur32 -luuid])
755 ### Checks for header files
759 ### Checks for structures
761 ### Checks for compiler characteristics
763 EVIL_CPPFLAGS="-DPSAPI_VERSION=1"
764 # TODO: should we have these at EFL (global?)
765 # Note: these warnings should not be used with C++ code
766 EVIL_CFLAGS_WRN="-Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls"
767 EVIL_CXXFLAGS="${EVIL_CXXFLAGS}"
769 if test "x${have_win32}" = "xyes" ; then
770 EVIL_CFLAGS="-DSECURITY_WIN32 ${EVIL_CFLAGS}"
771 EVIL_CXXFLAGS="-fno-rtti -fno-exceptions -DSECURITY_WIN32 ${EVIL_CXXFLAGS}"
774 AC_SUBST([EVIL_CPPFLAGS])
775 AC_SUBST([EVIL_CFLAGS_WRN])
776 AC_SUBST([EVIL_CXXFLAGS])
778 ### Checks for linker characteristics
780 ### Checks for library functions
782 EFL_LIB_END_OPTIONAL([Evil])
784 AC_SUBST([USE_EVIL_CFLAGS])
785 AC_SUBST([USE_EVIL_LIBS])
790 EFL_LIB_START_OPTIONAL([Escape], [test "${have_ps3}" = "yes"])
792 ### Additional options to configure
796 ### Checks for programs
798 ### Checks for libraries
799 EFL_ADD_LIBS([ESCAPE], [-llv2 -lm -lnet -lsysmodule -liberty])
801 ### Checks for header files
805 ### Checks for structures
807 ### Checks for compiler characteristics
809 ### Checks for linker characteristics
811 ### Checks for library functions
813 EFL_LIB_END_OPTIONAL([Escape])
816 EFL_CHECK_FUNC([SHM], [shm_open])
817 SHM_LIBS="${requirements_libs_shm}"
821 AC_SUBST([DL_INTERNAL_LIBS])
822 #### End of Platform-dependent
827 EFL_LIB_START([Eina])
831 have_safety_checks="yes"
833 case "${build_profile}" in
835 with_max_log_level=""
836 have_stringshare_usage="no"
838 want_debug_malloc="no"
839 want_debug_threads="no"
840 want_default_mempool="no"
845 with_max_log_level=""
846 have_stringshare_usage="yes"
848 want_debug_malloc="yes"
849 want_debug_threads="yes"
850 want_default_mempool="yes"
855 with_max_log_level="3"
856 have_stringshare_usage="no"
858 want_debug_malloc="no"
859 want_debug_threads="no"
860 want_default_mempool="no"
865 PKG_CHECK_MODULES(UNWIND, [libunwind libunwind-generic],
866 [have_unwind=yes], [have_unwind=no])
867 AS_IF([test "x$have_unwind" = "xyes"],
868 [AC_DEFINE([HAVE_UNWIND], [1], [Have libunwind])])
869 AM_CONDITIONAL(HAVE_UNWIND, test "x$have_unwind" = "xyes")
871 EINA_CONFIG([HAVE_ALLOCA_H], [test "x${ac_cv_working_alloca_h}" = "xyes"])
872 EINA_CONFIG([SAFETY_CHECKS], [test "x${have_safety_checks}" = "xyes"])
873 EINA_CONFIG([DEFAULT_MEMPOOL], [test "x${want_default_mempool}" = "xyes"])
875 if test -n "${with_max_log_level}"; then
876 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${with_max_log_level}])
877 AC_DEFINE_UNQUOTED([EINA_LOG_LEVEL_MAXIMUM], [${with_max_log_level}], [if set, logging is limited to this amount.])
880 AC_DEFINE_IF([EINA_STRINGSHARE_USAGE],
881 [test "x${have_stringshare_usage}" = "xyes"],
882 [1], [Report Eina stringshare usage pattern])
884 ### Additional options to configure
885 AC_ARG_ENABLE([magic-debug],
886 [AS_HELP_STRING([--disable-magic-debug],[disable magic debug of eina structure @<:@default=enabled@:>@])],
888 if test "x${enableval}" = "xyes" ; then
889 have_magic_debug="yes"
891 have_magic_debug="no"
894 [have_magic_debug="yes"])
896 EINA_CONFIG([MAGIC_DEBUG], [test "x${have_magic_debug}" = "xyes"])
898 AC_ARG_WITH([xattr-tests-path],
899 [AS_HELP_STRING([--with-xattr-tests-path=DIR],[path of xattr enabled directory to create test files])],[XATTR_TEST_DIR=${withval}][AC_DEFINE_UNQUOTED([XATTR_TEST_DIR],["$withval"], [xattr enabled directory])])
901 evas_dicts_hyphen_dir="/usr/share/hyphen/"
902 AC_ARG_WITH([dictionaries-hyphen-dir],
903 [AS_HELP_STRING([--with-dictionaries-hyphen-dir=DIR],[path of hunspell-compatible hyphen dictionaries])], [evas_dicts_hyphen_dir=$withval])
904 AC_DEFINE_UNQUOTED([EVAS_DICTS_HYPHEN_DIR],["$evas_dicts_hyphen_dir"], [Hunspell-compatible hyphen dictionaries install directory])
906 ### Checks for programs
908 ### Checks for libraries
909 EFL_PLATFORM_DEPEND([EINA], [all])
911 EFL_ADD_LIBS([EINA], [-lm])
916 AC_ARG_ENABLE([valgrind],
917 [AS_HELP_STRING([--disable-valgrind],[enable valgrind mempool declaration. @<:@default=disabled@:>@])],
919 if test "x${enableval}" = "xyes" ; then
926 if test "${want_valgrind}" = "auto"; then
927 PKG_CHECK_EXISTS([valgrind >= 2.4.0], [want_valgrind="yes"],
929 AC_MSG_WARN([valgrind support desired by --with-profile=${build_profile} but not found. If your platform supports it, install valgrind.])])
932 if test "${want_valgrind}" = "no"; then
933 AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled])
935 PKG_CHECK_MODULES([VALGRIND], [valgrind >= 2.4.0])
936 AC_DEFINE([HAVE_VALGRIND], [1], [Valgrind support enabled])
939 AC_DEFINE_IF([EINA_DEBUG_MALLOC],
940 [test "x${ac_cv_func_malloc_usable_size}" = "xyes" && test "x${want_debug_malloc}" = "xyes"],
941 [1], [Turn on debugging overhead in mempool])
943 AC_DEFINE_IF([EINA_COW_MAGIC_ON],
944 [test "x${want_cow_magic}" = "xyes" ],
945 [1], [Turn on Eina_Magic in Eina_Cow])
947 EFL_OPTIONAL_DEPEND_PKG([EINA], [${want_systemd}], [SYSTEMD], [libsystemd])
949 EFL_EVAL_PKGS([EINA])
955 PKG_CHECK_MODULES([GLIB],
960 if test "x${have_glib}" = "xyes" ; then
961 GLIB_CFLAGS="${GLIB_CFLAGS} -DEINA_BENCH_HAVE_GLIB"
964 ### Checks for header files
966 # sys/mman.h could be provided by evil/escape/exotic so we need to set CFLAGS accordingly
967 CFLAGS_save="${CFLAGS}"
968 CFLAGS="${CFLAGS} ${EINA_CFLAGS}"
969 AC_CHECK_HEADERS([sys/mman.h])
970 CFLAGS="${CFLAGS_save}"
972 AC_CHECK_HEADER([byteswap.h], [have_byteswap="yes"], [have_byteswap="no"])
976 EINA_CONFIG([HAVE_DIRENT_H], [test "x${have_dirent}" = "xyes"])
977 AC_DEFINE_IF([HAVE_DIRENT_H], [test "x${have_dirent}" = "xyes"],
978 [1], [Define to 1 if you have a valid <dirent.h> header file.])
980 ### Checks for structures
982 ### Checks for compiler characteristics
983 EINA_CONFIG([HAVE_BYTESWAP_H], [test "x${have_byteswap}" = "xyes"])
985 EFL_CHECK_GCC_BUILTIN([bswap16], [HAVE_BSWAP16])
986 EFL_CHECK_GCC_BUILTIN([bswap32], [HAVE_BSWAP32])
987 EFL_CHECK_GCC_BUILTIN([bswap64], [HAVE_BSWAP64])
989 ### Checks for linker characteristics
991 ### Checks for library functions
993 AC_CHECK_FUNCS([fchmod])
995 EFL_CHECK_FUNCS([EINA], [dlopen dladdr iconv shm_open splice setxattr getpagesize])
998 if test "x${efl_func_fnmatch}" = "xyes" && test "x${want_log}" = "xyes" ; then
1002 AC_MSG_CHECKING([wether to build Eina_Log infrastructure])
1003 AC_MSG_RESULT([${enable_log}])
1005 EINA_CONFIG([ENABLE_LOG], [test "x${enable_log}" = "xyes"])
1008 if test "x${efl_have_threads}" = "xno"; then
1009 CFOPT_WARNING="xyes"
1016 static __thread int a = 0;
1018 [have_thread_specifier="yes"],
1019 [have_thread_specifier="no"])
1020 AC_MSG_CHECKING([for __thread specifier])
1021 AC_MSG_RESULT([${have_thread_specifier}])
1022 if test "x${have_thread_specifier}" = "xyes" ; then
1023 AC_DEFINE([HAVE_THREAD_SPECIFIER], [1], [Have the __thread specifier])
1026 EFL_ADD_PUBLIC_LIBS([EINA], [${EFL_PTHREAD_LIBS}])
1027 EFL_ADD_CFLAGS([EINA], [${EFL_PTHREAD_CFLAGS}])
1029 EINA_CONFIG([HAVE_PTHREAD_BARRIER], [test "x${efl_have_pthread_barrier}" = "xyes"])
1030 EINA_CONFIG([HAVE_PTHREAD_AFFINITY], [test "x${efl_have_setaffinity}" = "xyes"])
1031 EINA_CONFIG([HAVE_PTHREAD_SETNAME], [test "x${efl_have_setname}" = "xyes"])
1032 EINA_CONFIG([HAVE_DEBUG_THREADS], [test "x${want_debug_threads}" = "xyes"])
1033 EINA_CONFIG([HAVE_POSIX_SPINLOCK], [test "x${efl_have_posix_threads_spinlock}" = "xyes"])
1034 EINA_CONFIG([HAVE_OSX_SPINLOCK], [test "x${efl_have_osx_spinlock}" = "xyes"])
1035 EINA_CONFIG([HAVE_OSX_SEMAPHORE], [test "x${have_darwin}" = "xyes"])
1039 EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
1040 EINA_CHECK_MODULE([pass-through], [static], [pass through])
1041 EINA_CHECK_MODULE([one-big], [static], [one big])
1043 EFL_ADD_FEATURE([EINA], [systemd-journal], [${want_systemd}])
1049 EFL_LIB_START([Eina_Cxx])
1051 EFL_CXX_COMPILE_STDCXX_11([ext])
1052 AC_ARG_ENABLE([cxx-bindings],
1053 [AS_HELP_STRING([--disable-cxx-bindings],[disable C++11 bindings. @<:@default=enabled@:>@])],
1054 [want_cxx11="${enableval}"], [want_cxx11="yes"])
1056 if test "x${HAVE_CXX11}" = "x1" -a "x${want_cxx11}" = "xyes"; then
1062 AM_CONDITIONAL([HAVE_CXX11], [test "x${have_cxx11}" = "xyes"])
1064 EFL_INTERNAL_DEPEND_PKG([EINA_CXX], [Eina])
1065 EFL_ADD_CFLAGS([EINA_CXX], [${EFL_PTHREAD_CFLAGS}])
1066 EFL_EVAL_PKGS([EINA_CXX])
1068 EFL_LIB_END([Eina_Cxx])
1069 #### End of Eina CXX
1072 [AS_HELP_STRING([--with-js=@<:@nodejs/libv8/libuv/none@:>@],[enable JavaScript bindings using nodejs or libv8/libuv as build dependencies. The libuv option implies libv8. @<:@default=none@:>@])],
1073 [want_js="${withval}"], [want_js="none"])
1079 AC_CHECK_HEADERS([node/v8.h nodejs/deps/v8/v8.h nodejs/deps/v8/include/v8.h nodejs/src/v8.h v8.h],
1082 v8_header_define=AS_TR_CPP([HAVE_]AC_header)
1083 EFLJS_CXXFLAGS="$EFLJS_CXXFLAGS -D$v8_header_define"
1086 [AC_MSG_ERROR([Could not find v8 include headers from nodejs.])])
1087 AC_CHECK_HEADERS([node/node.h nodejs/deps/node/node.h nodejs/deps/node/include/node.h nodejs/src/node.h node.h],
1089 node_header_define=AS_TR_CPP([HAVE_]AC_header)
1090 EFLJS_CXXFLAGS="$EFLJS_CXXFLAGS -D$node_header_define"
1093 [AC_MSG_ERROR([Could not find node include headers from nodejs.])])
1094 AC_CHECK_HEADERS([node/uv.h nodejs/deps/uv/uv.h nodejs/deps/uv/include/uv.h nodejs/src/uv.h uv.h],
1096 uv_header_define=AS_TR_CPP([HAVE_]AC_header)
1097 EFLJS_CXXFLAGS="$EFLJS_CXXFLAGS -D$uv_header_define"
1100 [AC_MSG_ERROR([Could not find uv include headers from nodejs.])])
1103 AC_CHECK_HEADERS([v8.h],
1108 [AC_MSG_ERROR([Could not find v8 include headers from libv8.])])
1111 AC_CHECK_HEADERS([v8.h],
1116 [AC_MSG_ERROR([Could not find v8 include headers from libv8.])])
1117 AC_CHECK_HEADERS([uv.h],
1119 [AC_MSG_ERROR([Could not find uv include headers from libuv.])])
1123 *) AC_MSG_ERROR([Invalid javascript dependency (${want_js}): must be none, nodejs, libv8 or libuv]) ;;
1127 have_v8_create_params="no"
1128 if test "$want_js" != "none" ; then
1132 #include "$v8_header"
1135 v8::Isolate::CreateParams create_params; create_params.array_buffer_allocator = nullptr;
1139 AC_DEFINE(HAVE_V8_CREATE_PARAMS, 1, [Define to 1 if you must pass create_params explicitly.])
1140 have_v8_create_params="yes"
1141 AC_MSG_NOTICE([checking for v8::Isolate::CreateParams... yes])
1144 AC_MSG_NOTICE([checking for v8::Isolate::CreateParams... no])
1149 #include "$v8_header"
1150 #include <type_traits>
1153 static_assert((std::is_same< ::v8::Global<void>, ::v8::UniquePersistent<void>>::value), "");
1157 AC_DEFINE(HAVE_V8_GLOBAL, 1, [Define to 1 if you must pass create_params explicitly.])
1158 have_v8_global="yes"
1159 AC_MSG_NOTICE([checking for v8::Global<T> class... yes])
1162 AC_MSG_NOTICE([checking for v8::Global<T> class... no])
1165 AM_CONDITIONAL([HAVE_V8_CREATE_PARAMS], [test "x${have_v8_create_params}" = "xyes"])
1166 AM_CONDITIONAL([HAVE_V8_GLOBAL], [test "x${have_v8_global}" = "xyes"])
1167 AC_SUBST([HAVE_V8_CREATE_PARAMS])
1168 AC_SUBST([HAVE_V8_GLOBAL])
1171 AM_CONDITIONAL([HAVE_NODEJS], [test "x${want_js}" = "xnodejs"])
1172 AC_DEFINE_IF([HAVE_NODEJS], [test "x${want_js}" = "xnodejs"],
1173 [1], [Using NodeJS])
1175 AC_SUBST([HAVE_NODEJS])
1178 if test "x${want_js}" != "xnone" ; then
1181 AM_CONDITIONAL([HAVE_JS], [test "x${have_js}" = "xyes"])
1182 AC_DEFINE_IF([HAVE_JS], [test "x${have_js}" = "xyes"], [1], [Compiling bindings for JavaScript])
1185 AM_CONDITIONAL([HAVE_LIBUV], [test "x${want_js}" = "xnodejs" -o "x${want_js}" = "xlibuv"])
1186 AC_DEFINE_IF([HAVE_LIBUV], [test "x${want_js}" = "xnodejs" -o "x${want_js}" = "xlibuv"],
1187 [1], [Compiling libuv event loop integration])
1188 AC_SUBST([HAVE_LIBUV])
1190 # For efljspack mime handling
1191 AM_CONDITIONAL([HAVE_XDG_DATA_HOME], [test "x${XDG_DATA_HOME}" != "x"])
1192 AM_COND_IF([HAVE_XDG_DATA_HOME], [AC_SUBST([XDG_DATA_HOME])], [AC_SUBST([XDG_DATA_HOME], "$HOME/.local/share")])
1195 EFL_LIB_START_OPTIONAL([Eina_Js], [test "x${have_js}" = "xyes"])
1196 EFL_INTERNAL_DEPEND_PKG([EINA_JS], [Eina])
1197 EFL_INTERNAL_DEPEND_PKG([EINA_JS], [Eo])
1198 EFL_ADD_CFLAGS([EINA_JS], [${EFL_PTHREAD_CFLAGS}])
1199 EFL_EVAL_PKGS([EINA_JS])
1201 EFL_LIB_END_OPTIONAL([Eina_Js])
1205 EFL_LIB_START_OPTIONAL([Ecore_Js], [test "x${have_js}" = "xyes"])
1207 EFL_INTERNAL_DEPEND_PKG([ECORE_JS], [ecore])
1208 EFL_INTERNAL_DEPEND_PKG([ECORE_JS], [ecore_file])
1209 EFL_ADD_CFLAGS([ECORE_JS], [${EFL_PTHREAD_CFLAGS}])
1210 EFL_EVAL_PKGS([ECORE_JS])
1212 EFL_LIB_END_OPTIONAL([Ecore_Js])
1213 #### End of Ecore JS
1216 EFL_LIB_START_OPTIONAL([Eio_Js], [test "x${have_js}" = "xyes"])
1218 EFL_INTERNAL_DEPEND_PKG([EIO_JS], [eio])
1219 EFL_ADD_CFLAGS([EIO_JS], [${EFL_PTHREAD_CFLAGS}])
1220 EFL_EVAL_PKGS([EIO_JS])
1222 EFL_LIB_END_OPTIONAL([Eio_Js])
1226 EFL_LIB_START_OPTIONAL([Ethumb_Js], [test "x${have_js}" = "xyes"])
1228 EFL_INTERNAL_DEPEND_PKG([ETHUMB_JS], [ethumb])
1229 EFL_INTERNAL_DEPEND_PKG([ETHUMB_JS], [ethumb_client])
1230 EFL_ADD_CFLAGS([ETHUMB_JS], [${EFL_PTHREAD_CFLAGS}])
1231 EFL_EVAL_PKGS([ETHUMB_JS])
1233 EFL_LIB_END_OPTIONAL([Ethumb_Js])
1234 #### End of Ethumb JS
1237 EFL_LIB_START_OPTIONAL([Eldbus_Js], [test "x${have_js}" = "xyes"])
1239 EFL_INTERNAL_DEPEND_PKG([ELDBUS_JS], [eldbus])
1240 EFL_ADD_CFLAGS([ELDBUS_JS], [${EFL_PTHREAD_CFLAGS}])
1241 EFL_EVAL_PKGS([ELDBUS_JS])
1243 EFL_LIB_END_OPTIONAL([Eldbus_Js])
1244 #### End of Eldbus JS
1247 EFL_LIB_START_OPTIONAL([Eo_Js], [test "x${have_js}" = "xyes"])
1249 EFL_INTERNAL_DEPEND_PKG([EO_JS], [eina])
1250 EFL_ADD_CFLAGS([EO_JS], [${EFL_PTHREAD_CFLAGS}])
1251 EFL_EVAL_PKGS([EO_JS])
1253 EFL_LIB_END_OPTIONAL([Eo_Js])
1262 ### Additional options to configure
1264 ### Checks for programs
1266 ## Compatibility layers
1267 EFL_PLATFORM_DEPEND([EO], [evil])
1269 ### Checks for libraries
1270 EFL_INTERNAL_DEPEND_PKG([EO], [eina])
1272 # Example (evas one)
1274 # TODO: add once elementary is merged
1275 #PKG_CHECK_MODULES([ELM], [elementary >= 1.7.0], [have_elm="yes"], [have_elm="no"])
1276 AM_CONDITIONAL([EO_BUILD_EXAMPLE_EVAS], [test "x${have_elm}" = "xyes"])
1278 ### Checks for header files
1280 ### Checks for types
1282 ### Checks for structures
1284 ### Checks for compiler characteristics
1286 ### Checks for linker characteristics
1288 ### Checks for library functions
1289 EFL_CHECK_FUNCS([EO], [dladdr])
1291 ### Check availability
1297 EFL_LIB_START([Eet_Cxx])
1299 EFL_INTERNAL_DEPEND_PKG([EET_CXX], [Eina_Cxx])
1300 EFL_INTERNAL_DEPEND_PKG([EET_CXX], [Eet])
1302 EFL_EVAL_PKGS([EET_CXX])
1304 EFL_LIB_END([Eet_Cxx])
1309 EFL_LIB_START([Emile])
1313 ### Additional options to configure
1315 ### Checks for programs
1317 ### Checks for libraries
1319 EFL_CHECK_LIBS([EMILE], [libjpeg])
1321 ## Compatibility layers
1322 EFL_PLATFORM_DEPEND([EMILE], [evil])
1324 EFL_ADD_LIBS([EMILE], [-lm])
1326 # Cryptography support
1327 if test "$build_crypto" != "none" ; then
1328 AC_DEFINE([HAVE_CIPHER], [1], [Have cipher support built in emile])
1329 AC_DEFINE([HAVE_SIGNATURE], [1], [Have signature support in emile])
1330 EFL_CRYPTO_DEPEND([EMILE])
1333 EFL_CHECK_LIBS([EMILE], [zlib])
1335 EFL_INTERNAL_DEPEND_PKG([EMILE], [eina])
1337 EFL_EVAL_PKGS([EMILE])
1339 ### Checks for header files
1341 ### Checks for types
1343 ### Checks for structures
1345 ### Checks for compiler characteristics
1347 ### Checks for linker characteristics
1349 ### Checks for library functions
1351 ### Check availability
1353 EFL_ADD_FEATURE([EMILE], [crypto], [${build_crypto}])
1355 EFL_LIB_END([Emile])
1361 EFL_LIB_START([Eet])
1365 ### Additional options to configure
1367 ### Checks for programs
1369 ### Checks for libraries
1371 EFL_CHECK_LIBS([EET], [libjpeg])
1373 ## Compatibility layers
1374 EFL_PLATFORM_DEPEND([EET], [evil])
1376 EFL_ADD_LIBS([EET], [-lm])
1378 # Cryptography support
1379 if test "$build_crypto" != "none" ; then
1380 AC_DEFINE([HAVE_CIPHER], [1], [Have cipher support built in eet])
1381 AC_DEFINE([HAVE_SIGNATURE], [1], [Have signature support for eet file])
1382 EFL_CRYPTO_DEPEND([EET])
1385 EFL_INTERNAL_DEPEND_PKG([EET], [eina])
1386 EFL_INTERNAL_DEPEND_PKG([EET], [emile])
1388 EFL_EVAL_PKGS([EET])
1390 ### Checks for header files
1392 ### Checks for types
1394 ### Checks for structures
1396 ### Checks for compiler characteristics
1398 ### Checks for linker characteristics
1400 ### Checks for library functions
1402 ### Check availability
1408 EFL_LIB_START([Eo_Cxx])
1410 EFL_EVAL_PKGS([EO_CXX])
1412 EFL_LIB_END([Eo_Cxx])
1417 EFL_LIB_START([Eolian])
1421 ### Additional options to configure
1422 EFL_ADD_FEATURE([EOLIAN], [cxx], [${have_cxx11}])
1424 ### Checks for programs
1426 ## Compatibility layers
1427 EFL_PLATFORM_DEPEND([EOLIAN], [evil])
1429 ### Checks for libraries
1430 EFL_INTERNAL_DEPEND_PKG([EOLIAN], [eina])
1432 ### Checks for header files
1434 ### Checks for types
1436 ### Checks for structures
1438 ### Checks for compiler characteristics
1440 ### Checks for linker characteristics
1442 ### Checks for library functions
1444 ### Check availability
1446 EFL_LIB_END([Eolian])
1449 EFL_LIB_START_OPTIONAL([Eolian_Js], [test "${have_js}" = "yes"])
1451 EFL_INTERNAL_DEPEND_PKG([EOLIAN_JS], [eina])
1452 EFL_INTERNAL_DEPEND_PKG([EOLIAN_JS], [eolian])
1454 EFL_LIB_END_OPTIONAL([Eolian_Js])
1458 EFL_LIB_START([Eolian_Cxx])
1461 ### Additional options to configure
1463 ### Checks for programs
1465 ## Compatibility layers
1467 ### Checks for libraries
1468 EFL_INTERNAL_DEPEND_PKG([EOLIAN_CXX], [eina])
1469 EFL_INTERNAL_DEPEND_PKG([EOLIAN_CXX], [eo])
1471 ### Checks for header files
1473 ### Checks for types
1475 ### Checks for structures
1477 ### Checks for compiler characteristics
1479 ### Checks for linker characteristics
1481 ### Checks for library functions
1483 ### Check availability
1484 EFL_LIB_END([Eolian_Cxx])
1488 EFL_LIB_START([Efl])
1490 EFL_PLATFORM_DEPEND([EFL], [evil])
1491 EFL_INTERNAL_DEPEND_PKG([EFL], [eina])
1492 EFL_INTERNAL_DEPEND_PKG([EFL], [eo])
1494 EFL_ADD_LIBS([EFL], [-lm])
1501 EFL_LIB_START([Ector])
1506 ### Additional options to configure
1508 ### Checks for programs
1510 ### Checks for libraries
1512 ## Compatibility layers
1514 EFL_PLATFORM_DEPEND([ECTOR], [evil])
1516 EFL_INTERNAL_DEPEND_PKG([ECTOR], [eina])
1517 EFL_INTERNAL_DEPEND_PKG([ECTOR], [emile])
1518 EFL_INTERNAL_DEPEND_PKG([ECTOR], [eet])
1519 EFL_INTERNAL_DEPEND_PKG([ECTOR], [eo])
1520 EFL_INTERNAL_DEPEND_PKG([ECTOR], [efl])
1522 EFL_ADD_LIBS([ECTOR], [-lm])
1524 EFL_EVAL_PKGS([ECTOR])
1526 ### Checks for header files
1528 ### Checks for types
1530 ### Checks for structures
1532 ### Checks for compiler characteristics
1534 ### Checks for linker characteristics
1536 ### Checks for library functions
1538 ### Check availability
1540 EFL_LIB_END([ECTOR])
1546 EFL_LIB_START([Evas])
1548 ### Additional options to configure
1552 [AS_HELP_STRING([--with-x11=xlib|xcb|none],[X11 method to use: xlib, xcb or none])])
1554 if test "x${have_windows}" = "xyes" || test "x${have_ps3}" = "xyes"; then
1556 elif test "x${with_x11}" = "x"; then
1564 case "${with_x11}" in
1572 CFOPT_WARNING="xyes"
1578 AC_MSG_ERROR([Unknown build x11 --with-x11=${with_x11}])
1583 AC_ARG_WITH([opengl],
1584 [AS_HELP_STRING([--with-opengl=full|es|none],[OpenGL method to use: full, es or none])])
1586 if test "x${have_windows}" = "xyes" || test "x${have_ps3}" = "xyes"; then
1588 elif test "x${with_opengl}" = "x"; then
1592 case "${with_opengl}" in
1596 AC_MSG_ERROR([Unknown build opengl --with-opengl=${with_opengl}])
1600 want_x11_xlib_opengl="no"
1601 want_x11_xcb_opengl="no"
1602 if test "${with_opengl}" != "none"; then
1603 want_x11_xlib_opengl="${want_x11_xlib}"
1604 want_x11_xcb_opengl="${want_x11_xcb}"
1605 want_x11_any_opengl="${want_x11_any}"
1609 AC_ARG_ENABLE([wayland],
1610 [AS_HELP_STRING([--enable-wayland],[enable wayland display server. @<:@default=disabled@:>@])],
1612 if test "x${enableval}" = "xyes" ; then
1618 [want_wayland="no"])
1620 if test "${want_wayland}" = "yes"; then
1621 EFL_PKG_CHECK_STRICT([wayland-client >= 1.8.0])
1625 AC_ARG_ENABLE([wayland-ivi-shell],
1626 [AS_HELP_STRING([--enable-wayland-ivi-shell],[enable ivi-shell support. @<:@default=disabled@:>@])],
1628 if test "x${enableval}" = "xyes" ; then
1629 want_wayland_ivi_shell="yes"
1631 want_wayland_ivi_shell="no"
1634 [want_wayland_ivi_shell="no"])
1638 [AS_HELP_STRING([--enable-fb],[enable raw Framebuffer access. @<:@default=disabled@:>@])],
1640 if test "x${enableval}" = "xyes" ; then
1649 AC_ARG_ENABLE([eglfs],
1650 [AS_HELP_STRING([--enable-eglfs],[enable hardware accelerated framebuffer access. @<:@default=disabled@:>@])],
1652 if test "x${enableval}" = "xyes" ; then
1662 AC_ARG_ENABLE([sdl],
1663 [AS_HELP_STRING([--enable-sdl],[enable SDL support. @<:@default=disabled@:>@])],
1665 if test "x${enableval}" = "xyes" ; then
1673 if test "${want_sdl}" = "yes"; then
1674 EFL_PKG_CHECK_STRICT([sdl2 >= 2.0.0])
1677 # We only enable SDL with opengl if it is the full version and not ES
1678 # This can be changed if we ported our SDL code over to SDL 2.0. For older
1679 # versions the SDL_opengles.h has never been released.
1681 if test "${want_sdl}" = "yes" && test "${with_opengl}" = "es"; then
1682 AC_MSG_ERROR([We currently do not support SDL with OpenGL ES. Please consider full OpenGL if you want to use it with SDL.])
1684 if test "${want_sdl}" = "yes" && test "${with_opengl}" = "full"; then
1689 AC_ARG_ENABLE([cocoa],
1690 [AS_HELP_STRING([--enable-cocoa],[enable MacOS X Cocoa . @<:@default=disabled@:>@])],
1692 if test "x${enableval}" = "xyes" ; then
1700 if test "${want_cocoa}" = "yes"; then
1701 #test cocoa requirements (objc and Cocoa/Cocoa.h)
1704 m4_ifdef([AC_PROG_OBJC],
1706 if test "x${have_gnu_objc}" = "xyes" ; then
1707 AC_LANG_PUSH([Objective C])
1709 LIBS="$LIBS -framework Cocoa"
1713 #include <Cocoa/Cocoa.h>
1717 window = [[NSWindow alloc]
1718 initWithContentRect:NSMakeRect(0, 0, 1, 1)
1719 styleMask:(NSTitledWindowMask)
1720 backing:NSBackingStoreBuffered
1727 cocoa_ldflags="-framework Cocoa"
1731 AC_MSG_CHECKING([whether Cocoa framework is supported])
1732 AC_MSG_RESULT([${have_cocoa}])
1733 AC_LANG_POP([Objective C])
1737 AC_SUBST(cocoa_ldflags)
1739 if test "x${want_cocoa}" = "xyes"; then
1740 #test cocoa requirements (objc and Cocoa/Cocoa.h)
1741 cocoa_coreservices_ldflags=""
1742 have_cocoa_coreservices="no"
1743 m4_ifdef([AC_PROG_OBJC],
1745 if test "x${have_gnu_objc}" = "xyes" ; then
1746 AC_LANG_PUSH([Objective C])
1748 LIBS="$LIBS -framework CoreServices"
1752 #include <CoreServices/CoreServices.h>
1755 //test function here
1758 have_cocoa_coreservices="yes"
1759 cocoa_coreservices_ldflags="-framework CoreServices"
1761 [have_cocoa_coreservices="no"])
1763 AC_MSG_CHECKING([whether Cocoa CoreServices framework is supported])
1764 AC_MSG_RESULT([${have_cocoa_coreservices}])
1765 AC_LANG_POP([Objective C])
1769 AC_SUBST(cocoa_coreservices_ldflags)
1772 AC_ARG_ENABLE([drm],
1773 [AS_HELP_STRING([--enable-drm],[enable drm engine. @<:@default=disabled@:>@])],
1775 if test "x${enableval}" = "xyes" ; then
1784 AC_ARG_ENABLE([gl-drm],
1785 [AC_HELP_STRING([--enable-gl-drm],
1786 [enable gl drm engine. @<:@default=disabled@:>@])],
1788 if test "x${enableval}" = "xyes" ; then
1796 AC_ARG_ENABLE([fontconfig],
1797 [AS_HELP_STRING([--disable-fontconfig],[disable fontconfig for finding fonts. @<:@default=enabled@:>@])],
1799 if test "x${enableval}" = "xyes" ; then
1800 want_fontconfig="yes"
1802 want_fontconfig="no"
1803 CFOPT_WARNING="xyes"
1806 [want_fontconfig="yes"])
1809 AC_ARG_ENABLE([fribidi],
1810 [AS_HELP_STRING([--disable-fribidi],[disable bidirectional text support. @<:@default=enabled@:>@])],
1812 if test "x${enableval}" = "xyes" ; then
1816 CFOPT_WARNING="xyes"
1819 [want_fribidi="yes"])
1822 AC_ARG_ENABLE([eo_id],
1823 [AS_HELP_STRING([--disable-eo-id],[disable Eo indirection. @<:@default=enabled@:>@])],
1825 if test "x${enableval}" = "xyes" ; then
1829 CFOPT_WARNING="xyes"
1835 AC_ARG_ENABLE([harfbuzz],
1836 [AS_HELP_STRING([--enable-harfbuzz],[enable complex text shaping and layouting support. @<:@default=disabled@:>@])],
1838 if test "x${enableval}" = "xyes" ; then
1844 [want_harfbuzz="no"])
1847 AC_ARG_ENABLE([hyphen],
1848 [AS_HELP_STRING([--enable-hyphen],[enable text hyphenation support. @<:@default=disabled@:>@])],
1850 if test "x${enableval}" = "xyes" ; then
1859 AC_ARG_ENABLE([egl],
1860 [AS_HELP_STRING([--enable-egl],[enable EGL rendering. @<:@default=disabled@:>@])],
1862 if test "x${enableval}" = "xyes" ; then
1870 # Verify OpenGL + EGL modes match (full+glx or es+egl)
1871 if test "x${want_egl}" = "xyes" && test "x${with_opengl}" != "xes" ; then
1872 AC_MSG_ERROR([Full OpenGL with EGL is not supported, please add --with-opengl=es to your configure options to switch to EGL + OpenGL ES.])
1874 if test "x${want_egl}" = "xno" && test "x${with_opengl}" = "xes" ; then
1875 AC_MSG_ERROR([OpenGL ES requires EGL, please add --enable-egl to your configure options to switch to EGL + OpenGL ES.])
1879 AC_ARG_ENABLE([pixman],
1880 [AS_HELP_STRING([--enable-pixman],[enable pixman for software rendering. @<:@default=disabled@:>@])],
1882 if test "x${enableval}" = "xyes" ; then
1884 CFOPT_WARNING="xyes"
1891 AC_ARG_ENABLE([pixman-font],
1892 [AS_HELP_STRING([--enable-pixman-font],[Allow pixman to render fonts. @<:@default=disabled@:>@])],
1894 if test "x${enableval}" = "xyes" ; then
1895 have_pixman_font="yes"
1897 have_pixman_font="no"
1900 [have_pixman_font="no"])
1902 AC_ARG_ENABLE([pixman-rect],
1903 [AS_HELP_STRING([--enable-pixman-rect],[Allow pixman to render rects. @<:@default=disabled@:>@])],
1905 if test "x${enableval}" = "xyes" ; then
1906 have_pixman_rect="yes"
1908 have_pixman_rect="no"
1911 [have_pixman_rect="no"])
1913 AC_ARG_ENABLE([pixman-line],
1914 [AS_HELP_STRING([--enable-pixman-line],[Allow pixman to render lines. @<:@default=disabled@:>@])],
1916 if test "x${enableval}" = "xyes" ; then
1917 have_pixman_line="yes"
1919 have_pixman_line="no"
1922 [have_pixman_line="no"])
1924 AC_ARG_ENABLE(pixman-poly,
1925 AS_HELP_STRING([--enable-pixman-poly],[Allow pixman to render polys. @<:@default=disabled@:>@]),
1927 if test "x${enableval}" = "xyes" ; then
1928 have_pixman_poly="yes"
1930 have_pixman_poly="no"
1933 [have_pixman_poly="no"])
1935 AC_ARG_ENABLE([pixman-image],
1936 [AS_HELP_STRING([--enable-pixman-image],[Allow pixman to render images. @<:@default=disabled@:>@])],
1938 if test "x${enableval}" = "xyes" ; then
1939 have_pixman_image="yes"
1941 have_pixman_image="no"
1944 [have_pixman_image="no"])
1946 AC_ARG_ENABLE([pixman-image-scale-sample],
1947 [AS_HELP_STRING([--enable-pixman-image-scale-sample],[Allow pixman to render sampled scaled images. @<:@default=disabled@:>@])],
1949 if test "x${enableval}" = "xyes" ; then
1950 have_pixman_image_scale_sample="yes"
1952 have_pixman_image_scale_sample="no"
1955 [have_pixman_image_scale_sample="no"])
1958 AC_ARG_ENABLE([tile-rotate],
1959 [AS_HELP_STRING([--enable-tile-rotate],[Enable tiled rotate algorithm. @<:@default=disabled@:>@])],
1961 if test "x${enableval}" = "xyes" ; then
1962 have_tile_rotate="yes"
1963 CFOPT_WARNING="xyes"
1965 have_tile_rotate="no"
1968 [have_tile_rotate="no"])
1971 AC_ARG_ENABLE([ecore-buffer],
1972 [AS_HELP_STRING([--enable-ecore-buffer],[enable ecore-buffer. @<:@default=disabled@:>@])],
1974 if test "x${enableval}" = "xyes" ; then
1975 want_ecore_buffer="yes"
1977 want_ecore_buffer="no"
1980 [want_ecore_buffer="no"])
1984 ARG_ENABLE_EVAS_IMAGE_LOADER(BMP, static)
1985 ARG_ENABLE_EVAS_IMAGE_LOADER(Eet, static)
1986 ARG_ENABLE_EVAS_IMAGE_LOADER(Generic, static)
1987 ARG_ENABLE_EVAS_IMAGE_LOADER(Gif, yes)
1988 ARG_ENABLE_EVAS_IMAGE_LOADER(ICO, static)
1989 ARG_ENABLE_EVAS_IMAGE_LOADER(JPEG, static)
1990 ARG_ENABLE_EVAS_IMAGE_LOADER(JP2K, auto)
1991 ARG_ENABLE_EVAS_IMAGE_LOADER(PMAPS, static)
1992 ARG_ENABLE_EVAS_IMAGE_LOADER(PNG, static)
1993 ARG_ENABLE_EVAS_IMAGE_LOADER(PSD, static)
1994 ARG_ENABLE_EVAS_IMAGE_LOADER(Tga, static)
1995 ARG_ENABLE_EVAS_IMAGE_LOADER(Tiff, yes)
1996 ARG_ENABLE_EVAS_IMAGE_LOADER(WBMP, static)
1997 ARG_ENABLE_EVAS_IMAGE_LOADER(WEBP, no)
1998 ARG_ENABLE_EVAS_IMAGE_LOADER(XPM, static)
1999 ARG_ENABLE_EVAS_IMAGE_LOADER(TGV, static)
2000 ARG_ENABLE_EVAS_IMAGE_LOADER(DDS, static)
2004 want_evas_engine_software_gdi="${have_win32}"
2005 want_evas_engine_software_ddraw="${have_win32}"
2006 want_evas_engine_gl_cocoa="${want_cocoa}"
2007 want_evas_engine_wayland_egl="no"
2008 if test "${want_wayland}" = "yes" && test "${want_egl}" = "yes" && test "${with_opengl}" = "es"; then
2009 want_evas_engine_wayland_egl="yes"
2012 if test "${want_lua_old}" = "yes"; then
2013 EFL_CHECK_LUA_OLD([EVAS])
2015 EFL_DEPEND_PKG([EVAS], [LUAJIT], [luajit >= 2.0.0])
2018 EFL_ADD_FEATURE([EVAS], [lua-old])
2020 EFL_CHECK_FUNC([EVAS], [dlsym])
2022 if test "x${efl_func_dlsym}" = "xno" && test "${with_opengl}" != "none"; then
2023 AC_MSG_ERROR([OpenGL cannot work without dlsym()])
2026 ### Checks for programs
2028 ### Checks for libraries
2030 ## Compatibility layers
2031 EFL_PLATFORM_DEPEND([EVAS], [all])
2032 EFL_INTERNAL_DEPEND_PKG([EVAS], [eo])
2033 EFL_INTERNAL_DEPEND_PKG([EVAS], [eet])
2034 EFL_INTERNAL_DEPEND_PKG([EVAS], [eina])
2035 EFL_INTERNAL_DEPEND_PKG([EVAS], [efl])
2036 EFL_INTERNAL_DEPEND_PKG([EVAS], [emile])
2037 EFL_INTERNAL_DEPEND_PKG([EVAS], [ector])
2039 EFL_ADD_LIBS([EVAS], [-lm])
2042 EFL_DEPEND_PKG([EVAS], [FREETYPE], [freetype2 >= 9.3.0])
2044 ## optional dependencies
2047 EFL_OPTIONAL_DEPEND_PKG([EVAS], [${want_fontconfig}],
2048 [FONTCONFIG], [fontconfig >= 2.5.0])
2051 EFL_OPTIONAL_DEPEND_PKG([EVAS], [${want_fribidi}],
2052 [FRIBIDI], [fribidi >= 0.19.2])
2055 have_harfbuzz_ft="no"
2056 EFL_OPTIONAL_DEPEND_PKG([EVAS], [${want_harfbuzz}],
2057 [HARFBUZZ], [harfbuzz >= 0.9.0])
2060 EFL_OPTIONAL_DEPEND_PKG([EVAS], [${want_pixman}], [PIXMAN], [pixman-1])
2062 if test "x${have_pixman}" = "xyes" ; then
2063 if test "x${have_pixman_font}" = "xyes" ; then
2064 AC_DEFINE(PIXMAN_FONT, 1, [Allow pixman to render fonts])
2066 EFL_ADD_FEATURE([EVAS_PIXMAN], [font], [${have_pixman_font}])
2068 if test "x${have_pixman_rect}" = "xyes" ; then
2069 AC_DEFINE(PIXMAN_RECT, 1, [Allow pixman to render rects])
2071 EFL_ADD_FEATURE([EVAS_PIXMAN], [rect], [${have_pixman_rect}])
2073 if test "x${have_pixman_line}" = "xyes" ; then
2074 AC_DEFINE(PIXMAN_LINE, 1, [Allow pixman to render lines])
2076 EFL_ADD_FEATURE([EVAS_PIXMAN], [line], [${have_pixman_line}])
2078 if test "x${have_pixman_poly}" = "xyes" ; then
2079 AC_DEFINE(PIXMAN_POLY, 1, [Allow pixman to render polys])
2081 EFL_ADD_FEATURE([EVAS_PIXMAN], [poly], [${have_pixman_poly}])
2083 if test "x${have_pixman_image}" = "xyes" ; then
2084 AC_DEFINE(PIXMAN_IMAGE, 1, [Allow pixman to render images])
2086 EFL_ADD_FEATURE([EVAS_PIXMAN], [image], [${have_pixman_image}])
2088 if test "x${have_pixman_image_scale_sample}" = "xyes" ; then
2089 AC_DEFINE(PIXMAN_IMAGE_SCALE_SAMPLE, 1, [Allow pixman to render image sampled scaling])
2091 EFL_ADD_FEATURE([EVAS_PIXMAN], [scale_sample], [${have_pixman_scale_sample}])
2096 define([EVAS_ENGINE_DEP_CHECK_FB], [
2097 AC_CHECK_HEADER([linux/fb.h], [:], [AC_MSG_ERROR([Missing linux/fb.h])])
2100 define([EVAS_ENGINE_DEP_CHECK_PSL1GHT], [
2101 AC_CHECK_HEADER([rsx/rsx.h], [:], [AC_MSG_ERROR([Missing rsx/rsx.h])])
2104 EVAS_ENGINE([buffer], [static])
2105 EVAS_ENGINE([fb], [${want_fb}], [EVAS_ENGINE_DEP_CHECK_FB])
2106 EVAS_ENGINE([psl1ght], [${have_ps3}], [EVAS_ENGINE_DEP_CHECK_PSL1GHT])
2109 EVAS_CHECK_ENGINE([gl-cocoa], [${want_evas_engine_gl_cocoa}], [no], [OpenGL Cocoa])
2110 EVAS_CHECK_ENGINE([gl-sdl], [${want_gl_sdl}], [no], [OpenGL SDL])
2111 EVAS_CHECK_ENGINE([software-gdi], [${want_evas_engine_software_gdi}], [no], [Software GDI])
2112 EVAS_CHECK_ENGINE([software-ddraw], [${want_evas_engine_software_ddraw}], [no], [Software DirectDraw])
2113 EVAS_CHECK_ENGINE([wayland-egl], [${want_evas_engine_wayland_egl}], [no], [Wayland Egl])
2114 EVAS_CHECK_ENGINE([wayland-shm], [${want_wayland}], [no], [Wayland Shm])
2115 EVAS_CHECK_ENGINE([drm], [${want_drm}], [no], [Drm])
2116 EVAS_CHECK_ENGINE([gl-drm], [${want_gl_drm}], [no], [OpenGL Drm])
2117 EVAS_CHECK_ENGINE([eglfs], [${want_eglfs}], [no], [OpenGL Fb])
2122 have_evas_engine_software_xcb="no"
2123 if test "${with_x11}" = "xcb" ; then
2124 EVAS_CHECK_ENGINE([software-xcb], [${want_x11_xcb}], [no], [Software XCB])
2126 AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XCB], [false])
2127 AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XCB], [false])
2130 AC_MSG_CHECKING([whether to build Software XCB Engine])
2131 AC_MSG_RESULT([${have_evas_engine_software_xcb}])
2133 # No Software XCB ? Then try Software Xlib
2135 have_evas_engine_software_xlib="no"
2136 if test "x${want_x11_xcb}" = "xno" ; then
2137 EVAS_CHECK_ENGINE([software-xlib], [${want_x11_xlib}], [no], [Software Xlib])
2139 AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XLIB], [false])
2140 AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XLIB], [false])
2143 AC_MSG_CHECKING([whether to build Software Xlib Engine])
2144 AC_MSG_RESULT([${have_evas_engine_software_xlib}])
2146 # If software_x11 is available, define everything needed for X11
2148 have_evas_engine_software_x11="no"
2149 if test "x${have_evas_engine_software_xlib}" = "xyes" || test "x${have_evas_engine_software_xlib}" = "xstatic" || test "x${have_evas_engine_software_xcb}" = "xyes" || test "x${have_evas_engine_software_xcb}" = "xstatic" ; then
2150 have_evas_engine_software_x11="yes"
2151 AC_DEFINE_UNQUOTED([BUILD_ENGINE_SOFTWARE_X11], [1], [Build software X11 engine])
2153 AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_X11], [test "x${have_evas_engine_software_x11}" = "xyes"])
2155 if test "x${have_evas_engine_software_xlib}" = "xstatic" || test "x${have_evas_engine_software_xcb}" = "xstatic"; then
2156 AC_DEFINE_UNQUOTED([EVAS_STATIC_BUILD_SOFTWARE_X11], [1], [Build software X11 engine as part of libevas])
2158 AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_X11], [test "x${have_evas_engine_software_xcb}" = "xstatic" || test "x${have_evas_engine_software_xlib}" = "xstatic"])
2160 # Needed for evas-software-x11.pc
2162 AC_SUBST([have_evas_engine_software_xlib])
2163 AC_SUBST([have_evas_engine_software_xcb])
2166 AC_DEFINE([EVAS_STATIC_BUILD_SOFTWARE_GENERIC], [1], [Build software generic engine as part of libevas])
2167 AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_GENERIC], [true])
2171 if test "${with_opengl}" = "es" ; then
2172 AC_DEFINE(GL_GLES, 1, [GLSL runtime shader GLES2 support])
2177 have_evas_engine_gl_xcb="no"
2178 if test "${want_x11_xcb_opengl}" = "yes"; then
2179 EVAS_CHECK_ENGINE([gl-xcb], [${want_x11_xcb_opengl}], [no], [OpenGL XCB])
2181 AM_CONDITIONAL([BUILD_ENGINE_GL_XCB], [false])
2182 AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XCB], [false])
2185 AC_MSG_CHECKING([whether to build OpenGL XCB Engine])
2186 AC_MSG_RESULT([${have_evas_engine_gl_xcb}])
2188 # No openGL XCB ? Then try OpenGL Xlib
2190 have_evas_engine_gl_xlib="no"
2191 if test "x${have_evas_engine_gl_xcb}" = "xno" ; then
2192 EVAS_CHECK_ENGINE([gl-xlib], [${want_x11_xlib_opengl}], [no], [OpenGL XLib])
2194 AM_CONDITIONAL([BUILD_ENGINE_GL_XLIB], [false])
2195 AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XLIB], [false])
2198 AC_MSG_CHECKING([whether to build OpenGL Xlib Engine])
2199 AC_MSG_RESULT([${have_evas_engine_gl_xlib}])
2201 # If opengl_x11 is available, define everything needed for X11
2203 have_evas_engine_gl_x11="no"
2204 if test "x${have_evas_engine_gl_xlib}" = "xyes" || test "x${have_evas_engine_gl_xlib}" = "xstatic" || test "x${have_evas_engine_gl_xcb}" = "xyes" || test "x${have_evas_engine_gl_xcb}" = "xstatic" ; then
2205 have_evas_engine_gl_x11="yes"
2206 AC_DEFINE_UNQUOTED([BUILD_ENGINE_GL_X11], [1], [Build OpenGL X11 engine])
2208 AM_CONDITIONAL([BUILD_ENGINE_GL_X11], [test "x${have_evas_engine_gl_x11}" = "xyes"])
2210 if test "x${have_evas_engine_gl_xlib}" = "xstatic" || test "x${have_evas_engine_gl_xcb}" = "xstatic"; then
2211 AC_DEFINE_UNQUOTED([EVAS_STATIC_BUILD_GL_X11], [1], [Build OpenGL X11 engine as part of libevas])
2213 AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_X11], [test "x${have_evas_engine_gl_xcb}" = "xstatic" || test "x${have_evas_engine_gl_xlib}" = "xstatic"])
2215 # Needed for evas-opengl-x11.pc
2217 AC_SUBST([have_evas_engine_gl_xlib])
2218 AC_SUBST([have_evas_engine_gl_xcb])
2222 if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then
2223 AC_CHECK_DECL([SDL_GL_CONTEXT_MAJOR_VERSION],
2224 [AC_DEFINE([HAVE_SDL_GL_CONTEXT_VERSION], [1], [SDL_GL version attributes present])],,
2225 [#include <SDL2/SDL_video.h>])
2228 if test "${with_opengl}" = "es"; then
2229 AC_CHECK_DECL([SDL_OPENGLES],
2230 [AC_DEFINE([HAVE_SDL_FLAG_OPENGLES], [1], [SDL_OPENGLES flag is present])],,
2231 [#include <SDL2/SDL_video.h>])
2235 evas_engine_gl_common_cflags=""
2236 if test "x${have_egl}" = "xyes"; then
2237 evas_engine_gl_common_libs="-lEGL"
2239 evas_engine_gl_common_libs="-lGL"
2242 # The lines below fix compiling/linking of gl_generic on OSX
2243 if test "x${have_darwin}" = "xyes"; then
2244 if test "x${have_evas_engine_gl_cocoa}" = "xyes"; then
2245 # If gl_cocoa is enabled, Apple's Core OpenGL (CGL) should be the default OpenGL.
2246 # CFLAGS and LIBS are determined by evas-gl_cocoa.
2247 evas_engine_gl_common_libs="${evas_engine_gl_cocoa_libs}"
2248 evas_engine_gl_common_cflags="${evas_engine_gl_cocoa_cflags}"
2250 # If evas-gl_cocoa is disabled, the only supported OpenGL engine on OSX (for now)
2251 # is evas-gl_x11. Without its CFLAGS and LIBS explicitely set, gl_generic
2252 # cannot compile (nor link).
2253 evas_engine_gl_common_libs=""
2254 evas_engine_gl_common_cflags=""
2256 if test "x${have_evas_engine_gl_xlib}" = "xyes"; then
2257 evas_engine_gl_common_libs="${evas_engine_gl_xlib_libs}"
2258 evas_engine_gl_common_cflags="${evas_engine_gl_xlib_cflags}"
2260 ### XXX Check for other supported engines supported on OSX (dec. 2014: NONE)
2264 AC_SUBST([evas_engine_gl_common_cflags])
2265 AC_SUBST([evas_engine_gl_common_libs])
2267 have_evas_engine_gl_common="no"
2268 have_static_evas_engine_gl_common="no"
2269 if test "x$have_evas_engine_gl_xlib" = "xyes" || \
2270 test "x$have_evas_engine_gl_xcb" = "xyes" || \
2271 test "x$have_evas_engine_gl_sdl" = "xyes" || \
2272 test "x$have_evas_engine_gl_cocoa" = "xyes" || \
2273 test "x$have_evas_engine_gl_drm" = "xyes" || \
2274 test "x$have_evas_engine_eglfs" = "xyes" || \
2275 test "x$have_evas_engine_wayland_egl" = "xyes"; then
2276 have_evas_engine_gl_common="yes"
2278 if test "x$have_evas_engine_gl_xlib" = "xstatic" || \
2279 test "x$have_evas_engine_gl_xcb" = "xstatic" || \
2280 test "x$have_evas_engine_gl_sdl" = "xstatic" || \
2281 test "x$have_evas_engine_gl_cocoa" = "xstatic" || \
2282 test "x$have_evas_engine_gl_drm" = "xstatic" || \
2283 test "x$have_evas_engine_eglfs" = "xstatic" || \
2284 test "x$have_evas_engine_wayland_egl" = "xstatic"; then
2285 have_evas_engine_gl_common="yes"
2286 have_static_evas_engine_gl_common="yes"
2289 if test "x${have_evas_engine_gl_common}" = "xyes"; then
2290 AC_DEFINE([BUILD_ENGINE_GL_COMMON], [1], [Generic OpenGL Rendering Support])
2293 AM_CONDITIONAL([BUILD_ENGINE_GL_COMMON], [test "x$have_evas_engine_gl_common" = "xyes"])
2295 if test "x${have_static_evas_engine_gl_common}" = "xyes"; then
2296 AC_DEFINE([EVAS_STATIC_BUILD_GL_COMMON], [1], [Build GL generic engine as part of libevas])
2299 AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_COMMON], [test "x${have_static_evas_engine_gl_common}" = "xyes"])
2304 EVAS_CHECK_IMAGE_LOADER([BMP], [${want_evas_image_loader_bmp}])
2305 EVAS_CHECK_IMAGE_LOADER([Eet], [${want_evas_image_loader_eet}])
2306 EVAS_CHECK_IMAGE_LOADER([Generic], [${want_evas_image_loader_generic}])
2307 EVAS_CHECK_IMAGE_LOADER([Gif], [${want_evas_image_loader_gif}])
2308 EVAS_CHECK_IMAGE_LOADER([ICO], [${want_evas_image_loader_ico}])
2309 EVAS_CHECK_IMAGE_LOADER([JPEG], [${want_evas_image_loader_jpeg}])
2310 EVAS_CHECK_IMAGE_LOADER([JP2K], [${want_evas_image_loader_jp2k}])
2311 EVAS_CHECK_IMAGE_LOADER([PMAPS], [${want_evas_image_loader_pmaps}])
2312 EVAS_CHECK_IMAGE_LOADER([PNG], [${want_evas_image_loader_png}])
2313 EVAS_CHECK_IMAGE_LOADER([PSD], [${want_evas_image_loader_psd}])
2314 EVAS_CHECK_IMAGE_LOADER([Tga], [${want_evas_image_loader_tga}])
2315 EVAS_CHECK_IMAGE_LOADER([Tiff], [${want_evas_image_loader_tiff}])
2316 EVAS_CHECK_IMAGE_LOADER([WBMP], [${want_evas_image_loader_wbmp}])
2317 EVAS_CHECK_IMAGE_LOADER([WEBP], [${want_evas_image_loader_webp}])
2318 EVAS_CHECK_IMAGE_LOADER([XPM], [${want_evas_image_loader_xpm}])
2319 EVAS_CHECK_IMAGE_LOADER([TGV], [${want_evas_image_loader_tgv}])
2320 EVAS_CHECK_IMAGE_LOADER([DDS], [${want_evas_image_loader_dds}])
2322 EFL_EVAL_PKGS([EVAS])
2324 ### Checks for header files
2326 if test "x$want_hyphen" = "xyes" ; then
2328 EFL_CHECK_LIB_CODE([EVAS], [-lhyphen], [have_fct], [[
2338 if test "${have_fct}" = "no"; then
2339 AC_MSG_ERROR([Cannot find the hyphen library.])
2341 AC_DEFINE([HAVE_HYPHEN], [1], [have hunspell hyphen support])
2345 if test "x$have_harfbuzz" = "xyes" ; then
2347 CPPFLAGS_SAVE="$CPPFLAGS"
2348 CPPFLAGS="$CPPFLAGS $EVAS_CFLAGS"
2349 # must have for usage with harfbuzz although harfbuzz may not have it.
2351 AC_CHECK_HEADER([hb-ft.h],
2353 have_harfbuzz_ft="yes"
2354 #Depend on harfbuzz ft for harfbuzz support
2355 AC_DEFINE([HAVE_HARFBUZZ], [1], [have harfbuzz support])
2357 [AC_MSG_ERROR([Harfbuzz-ft (hb-ft.h) not found])])
2359 CPPFLAGS="$CPPFLAGS_SAVE"
2362 ### Checks for types
2364 CPPFLAGS_SAVE="$CPPFLAGS"
2365 CPPFLAGS="$CPPFLAGS $EVAS_CFLAGS -Isrc/lib/eina"
2366 AC_CHECK_SIZEOF([Eina_Unicode], [], [#include <Eina.h>])
2367 CPPFLAGS="$CPPFLAGS_SAVE"
2370 if test "x$have_fribidi" = "xyes" ; then
2371 CPPFLAGS_SAVE="$CPPFLAGS"
2372 CPPFLAGS="$CPPFLAGS $EVAS_CFLAGS"
2373 AC_CHECK_SIZEOF([FriBidiChar], [], [#include <fribidi.h>])
2374 CPPFLAGS="$CPPFLAGS_SAVE"
2377 ### Checks for structures
2379 AC_CHECK_TYPES([struct sigaction], [], [],
2380 [[#include <signal.h>]])
2382 ### Checks for compiler characteristics
2384 ### Checks for linker characteristics
2386 ### Checks for library functions
2388 AC_CHECK_FUNCS([siglongjmp])
2390 AC_CHECK_LIB([m], [lround],
2391 [AC_DEFINE([HAVE_LROUND], [1], [C99 lround function exists])],
2392 [EFL_CHECK_GCC_BUILTIN([lround], [HAVE_LROUND])]
2398 AC_ARG_ENABLE([cserve],
2399 [AS_HELP_STRING([--enable-cserve],[enable shared cache server (cserve2). @<:@default=enabled@:>@])],
2401 if test "x${enableval}" = "xyes" ; then
2402 want_evas_cserve2="yes"
2404 want_evas_cserve2="no"
2405 CFOPT_WARNING="xyes"
2408 [want_evas_cserve2="yes"])
2410 if test "x${want_evas_image_loader_generic}" = "xyes" || test "x${want_evas_cserve2}" = "xyes" ; then
2411 EFL_ADD_LIBS([EVAS], [${requirements_libs_shm}])
2414 # cserve2 only works on Linux so far.
2416 if test "x${efl_func_shm_open}" = "xno" ; then
2417 want_evas_cserve2="no"
2420 if test "x${want_evas_cserve2}" = "xyes"; then
2421 if test "x${ac_cv_header_sys_epoll_h}" = "xno" || test "x${ac_cv_header_sys_inotify_h}" = "xno" || test "x${ac_cv_header_sys_signalfd_h}" = "xno"; then
2422 want_evas_cserve2="no"
2424 EVAS_CSERVE2_SLAVE_LIBS="${EFLALL_COV_LIBS} ${EFL_LIBS} ${requirements_libs_shm}"
2425 AC_SUBST([EVAS_CSERVE2_SLAVE_LIBS])
2429 AC_DEFINE_IF([EVAS_CSERVE2],
2430 [test "x${want_evas_cserve2}" = "xyes"],
2431 [1], [Shared cache server.])
2432 AM_CONDITIONAL([EVAS_CSERVE2], [test "x${want_evas_cserve2}" = "xyes"])
2438 if test "x${have_tile_rotate}" = "xyes" ; then
2439 AC_DEFINE(TILE_ROTATE, 1, [Enable tiled rotate algorithm])
2445 AC_ARG_WITH([evas-dither-mask],
2446 [AS_HELP_STRING([--with-evas-dither-mask=TYPE],[use the specified dither mask to convert bitdepths in Evas, one of: big, small, line or none.
2447 @<:@default=big@:>@])],
2448 [build_evas_dither_mask=${withval}],
2449 [build_evas_dither_mask=big])
2451 case "${build_evas_dither_mask}" in
2453 AC_DEFINE([BUILD_BIG_DITHER_MASK], [1], [Use biggest dither mask while converting in Evas])
2456 AC_DEFINE([BUILD_SMALL_DITHER_MASK], [1], [Use smaller dither mask while converting in Evas])
2459 AC_DEFINE([BUILD_LINE_DITHER_MASK], [1], [Use simpler line-only dither mask while converting in Evas])
2462 AC_DEFINE([BUILD_NO_DITHER_MASK], [1], [Do not use dither masks while converting in Evas])
2465 AC_MSG_ERROR([Unknown Evas dither mask --with-evas-dither-mask=${build_evas_dither_mask}])
2468 EFL_ADD_FEATURE([EVAS], [fontconfig])
2469 EFL_ADD_FEATURE([EVAS], [fribidi])
2470 EFL_ADD_FEATURE([EVAS], [harfbuzz])
2471 EFL_ADD_FEATURE([EVAS], [cserve], [${want_evas_cserve2}])
2472 EFL_ADD_FEATURE([EVAS], [tile-rotate])
2473 EFL_ADD_FEATURE([EVAS], [dither-mask], [${build_evas_dither_mask}])
2474 EFL_ADD_FEATURE([EVAS], [hyphen])
2480 EFL_LIB_START([Evas_Cxx])
2482 EFL_EVAL_PKGS([EVAS_CXX])
2484 EFL_LIB_END([Evas_Cxx])
2485 #### End of Edje CXX
2489 EFL_LIB_START([Embryo])
2493 ### Additional options to configure
2495 ### Checks for programs
2497 ### Checks for libraries
2498 EFL_PLATFORM_DEPEND([EMBRYO], [all])
2499 EFL_INTERNAL_DEPEND_PKG([EMBRYO], [eina])
2501 EFL_ADD_LIBS([EMBRYO], [-lm])
2503 ### Checks for header files
2505 ### Checks for types
2507 ### Checks for structures
2509 ### Checks for compiler characteristics
2511 ### Checks for linker characteristics
2513 ### Checks for library functions
2515 if ! test "x${efl_func_fnmatch}" = "xyes" ; then
2516 AC_MSG_ERROR([Cannot find fnmatch()])
2519 if ! test "x${efl_func_gettimeofday}" = "xyes" ; then
2520 AC_MSG_ERROR([Cannot find gettimeofday()])
2523 ### Check availability
2525 EFL_LIB_END([Embryo])
2531 EFL_LIB_START([Ecore])
2533 ### Additional options to configure
2538 [AS_HELP_STRING([--with-glib=yes|no|always],[add glib support. @<:@default=enabled@:>@])],
2540 if test "x${withval}" = "xyes" ; then
2543 if test "x${withval}" = "xalways" ; then
2552 AC_ARG_ENABLE([g-main-loop],
2553 [AS_HELP_STRING([--enable-g-main-loop],[enable ecore_main_loop based on g_main_loop. @<:@default=disabled@:>@])],
2555 if test "x${enableval}" = "xyes" ; then
2556 want_g_main_loop="yes"
2557 CFOPT_WARNING="xyes"
2559 want_g_main_loop="no"
2562 [want_g_main_loop="no"])
2563 AC_ARG_ENABLE([libuv],
2564 [AS_HELP_STRING([--enable-libuv],[enable ecore_main_loop based on libuv. @<:@default=disabled@:>@])],
2566 if test "x${enableval}" = "xyes" ; then
2568 CFOPT_WARNING="xyes"
2575 AC_ARG_ENABLE([gstreamer],
2576 [AS_HELP_STRING([--enable-gstreamer],[enable gstreamer 0.10 support. @<:@default=disabled@:>@])],
2578 if test "x${enableval}" = "xyes" ; then
2579 want_gstreamer="yes"
2580 CFOPT_WARNING="xyes"
2585 [want_gstreamer="no"])
2587 AC_ARG_ENABLE([gstreamer1],
2588 [AS_HELP_STRING([--disable-gstreamer1],[disable gstreamer 1.0 support. @<:@default=enabled@:>@])],
2590 if test "x${enableval}" = "xyes" ; then
2591 want_gstreamer1="yes"
2593 want_gstreamer1="no"
2594 CFOPT_WARNING="xyes"
2597 [want_gstreamer1="yes"])
2599 AC_ARG_ENABLE([tizen],
2600 [AS_HELP_STRING([--enable-tizen],[enable tizen support. @<:@default=disabled@:>@])],
2602 if test "x${enableval}" = "xyes" ; then
2610 if test "${want_tizen}" = "yes"; then
2611 PKG_CHECK_MODULES([TIZEN_CONFIGURATION_MANAGER],
2613 [have_tizen_vconf="yes"],
2614 [have_tizen_vconf="no"])
2615 PKG_CHECK_MODULES([TIZEN_CONFIGURATION_MANAGER], [vconf])
2618 AM_CONDITIONAL([HAVE_TIZEN_CONFIGURATION_MANAGER], [test "${have_tizen_vconf}" = "yes"])
2619 if test "${have_tizen_vconf}" = "yes"; then
2620 AC_DEFINE(HAVE_TIZEN_CONFIGURATION_MANAGER, 1, [Define to 1 if you have Tizen configuration manager(vconf).])
2625 if test "${have_windows}" = "yes"; then
2630 if test "x${with_glib}" = "xyes" || test "x${with_glib}" = "xalways" ; then
2634 want_ecore_timer_dump="no"
2635 if test "x${build_profile}" = "xdebug" && test "x${ac_cv_func_backtrace}" = "xyes"; then
2636 want_ecore_timer_dump="yes"
2637 AC_DEFINE([WANT_ECORE_TIMER_DUMP], [1], [Want Ecore_Timer dump infrastructure])
2640 ### Checks for programs
2642 ### Checks for libraries
2643 EFL_PLATFORM_DEPEND([ECORE], [all])
2644 EFL_INTERNAL_DEPEND_PKG([ECORE], [eo])
2645 EFL_INTERNAL_DEPEND_PKG([ECORE], [eina])
2646 EFL_INTERNAL_DEPEND_PKG([ECORE], [efl])
2648 EFL_ADD_LIBS([ECORE], [-lm])
2652 EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_glib}], [GLIB], [glib-2.0 gthread-2.0])
2653 if test "x${have_glib}" = "xno"; then
2654 want_g_main_loop="no"
2657 EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_systemd}], [SYSTEMD], [libsystemd])
2659 EFL_ADD_FEATURE([ECORE], [systemd-daemon], [${want_systemd}])
2660 EFL_ADD_FEATURE([ECORE], [glib])
2661 EFL_ADD_FEATURE([ECORE], [g-main-loop])
2662 EFL_ADD_FEATURE([ECORE], [libuv])
2664 want_glib_integration_always=no
2665 if test "x${with_glib}" = "xalways" ; then
2666 want_glib_integration_always="yes"
2667 AC_DEFINE([GLIB_INTEGRATION_ALWAYS], [1], [Always integrate glib if support compiled])
2670 if test "x${want_g_main_loop}" = "xyes" ; then
2671 AC_DEFINE([USE_G_MAIN_LOOP], [1], [Use g_main_loop in ecore])
2672 if test "x${want_js}" = "xnodejs" -o "x${want_js}" = "xlibuv" ; then
2673 AC_MSG_ERROR([Can't define glib and libuv integration together])
2677 # not EFL_OPTIONAL_DEPEND_PKG() because it's only used for ecore examples
2678 if test "${want_gstreamer1}" = "yes" -a "${want_gstreamer}" = "yes"; then
2679 AC_MSG_ERROR([You can only enable either GStreamer 1.0 or GStreamer 0.10 support])
2682 if test "${want_gstreamer1}" = "yes"; then
2683 PKG_CHECK_MODULES([GSTREAMER], [gstreamer-1.0])
2685 if test "${want_gstreamer}" = "yes"; then
2686 PKG_CHECK_MODULES([GSTREAMER], [gstreamer-0.10])
2688 AM_CONDITIONAL([HAVE_GSTREAMER], [test "${want_gstreamer}" = "yes" -o "${want_gstreamer1}" = "yes"])
2690 EFL_EVAL_PKGS([ECORE])
2692 ### Checks for header files
2696 AC_CHECK_HEADERS([sys/socket.h])
2698 AC_CHECK_HEADERS([ \
2710 #ifdef HAVE_SYS_SOCKET_H
2711 # include <sys/socket.h>
2715 AC_CHECK_HEADERS([net/if.h], [], [],
2718 # include <stdlib.h>
2719 # include <stddef.h>
2722 # include <stdlib.h>
2725 #if HAVE_SYS_SOCKET_H
2726 # include <sys/socket.h>
2730 ### Checks for types
2732 ### Checks for structures
2734 ### Checks for compiler characteristics
2736 ### Checks for linker characteristics
2738 ### Checks for library functions
2750 int i = isfinite(0);
2753 AC_DEFINE(HAVE_ISFINITE, 1, [Define to 1 if you have `isfinite', as a function or macro.])
2756 [have_isfinite="no"])
2758 AC_MSG_CHECKING([for isfinite])
2759 AC_MSG_RESULT([${have_isfinite}])
2761 # mallinfo, timerfd_create, clock_gettime
2763 AC_CHECK_FUNCS_ONCE([mallinfo timerfd_create clock_gettime malloc_info])
2765 if ! test "x${ac_cv_func_clock_gettime}" = "xyes" ; then
2766 AC_CHECK_LIB([rt], [clock_gettime],
2768 EFL_ADD_LIBS([ECORE], [-lrt])
2769 AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Have clock_gettime()])
2773 EFL_ADD_LIBS([ECORE], [${LTLIBINTL}])
2775 # coroutine function specific
2780 #include <ucontext.h>
2786 [have_ucontext="yes"],
2787 [have_ucontext="no"])
2789 AC_MSG_CHECKING([for ucontext])
2790 AC_MSG_RESULT([${have_ucontext}])
2801 [have_setjmp="yes"],
2804 AC_MSG_CHECKING([for setjmp])
2805 AC_MSG_RESULT([${have_setjmp}])
2807 if test "X${have_windows}" = "xyes"; then
2808 AC_DEFINE(USE_FIBER, 1, [Define to 1 if you have Windows Fiber support.])
2809 EFL_ADD_FEATURE([system], [coroutine], [fiber])
2810 elif test "x${have_ucontext}" = "xyes"; then
2811 AC_DEFINE(USE_UCONTEXT, 1, [Define to 1 if you have posix ucontext functions.])
2812 EFL_ADD_FEATURE([system], [coroutine], [ucontext])
2813 elif test "x${have_setjmp}" = "xyes"; then
2814 AC_DEFINE(USE_SETJMP, 1, [Define to 1 if you have setjmp/longjmp functions.])
2815 EFL_ADD_FEATURE([system], [coroutine], [setjmp])
2817 AC_MSG_ERROR([You don't have a working way to implement coroutine. Exiting...])
2820 ### Check availability
2822 EFL_LIB_END([Ecore])
2826 EFL_LIB_START([Ecore_Cxx])
2828 EFL_INTERNAL_DEPEND_PKG([ECORE_CXX], [Eina_Cxx])
2829 EFL_INTERNAL_DEPEND_PKG([ECORE_CXX], [Ecore])
2830 EFL_INTERNAL_DEPEND_PKG([ECORE_CXX], [Eina])
2831 EFL_INTERNAL_DEPEND_PKG([ECORE_CXX], [Eo])
2833 EFL_EVAL_PKGS([ECORE_CXX])
2835 EFL_LIB_END([Ecore_Cxx])
2836 #### End of Ecore CXX
2840 EFL_LIB_START([Ecore_Con])
2844 want_ecore_con_local_sockets="yes"
2845 want_ecore_con_abstract_sockets="yes"
2847 if test "${have_win32}" = "yes"; then
2849 want_ecore_con_abstract_sockets="no"
2850 elif test "${have_darwin}" = "yes"; then
2852 want_ecore_con_abstract_sockets="yes"
2853 elif test "${have_ps3}" = "yes"; then
2855 want_ecore_con_local_sockets="no"
2856 want_ecore_con_abstract_sockets="no"
2861 AC_DEFINE_IF([HAVE_LOCAL_SOCKETS],
2862 [test "x${want_ecore_con_local_sockets}" = "xyes"],
2863 [1], [Have local sockets support])
2864 AC_DEFINE_IF([HAVE_ABSTRACT_SOCKETS],
2865 [test "x${want_ecore_con_abstract_sockets}" = "xyes"],
2866 [1], [Have abstract sockets namespace])
2868 ### Checks for programs
2870 ### Checks for libraries
2871 EFL_PLATFORM_DEPEND([ECORE_CON], [all])
2872 if test "$build_crypto" != "none" ; then
2873 EFL_CRYPTO_DEPEND([ECORE_CON])
2875 EFL_INTERNAL_DEPEND_PKG([ECORE_CON], [eo])
2876 EFL_INTERNAL_DEPEND_PKG([ECORE_CON], [eet])
2877 EFL_INTERNAL_DEPEND_PKG([ECORE_CON], [eina])
2878 EFL_INTERNAL_DEPEND_PKG([ECORE_CON], [ecore])
2879 EFL_INTERNAL_DEPEND_PKG([ECORE_CON], [emile])
2881 EFL_ADD_LIBS([ECORE_CON], [-lm])
2883 EFL_OPTIONAL_DEPEND_PKG([ECORE_CON], [${want_cares}],
2884 [CARES], [libcares >= 1.6.1])
2885 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
2887 if test "x$have_cares" = "xyes" ; then
2888 ecore_con_resolver="cares"
2889 elif test "x$ac_cv_prog_cc_c99" != "xno" ; then
2890 ecore_con_resolver="dns.c"
2892 ecore_con_resolver="fork"
2895 EFL_OPTIONAL_DEPEND_PKG([ECORE_CON], [${want_systemd}], [SYSTEMD], [libsystemd])
2897 EFL_ADD_FEATURE([ECORE_CON], [cares])
2898 EFL_ADD_FEATURE([ECORE_CON], [local-sockets], [${want_ecore_con_local_sockets}])
2899 EFL_ADD_FEATURE([ECORE_CON], [abstract-sockets], [${want_ecore_con_abstract_sockets}])
2900 EFL_ADD_FEATURE([ECORE_CON], [resolver], [${ecore_con_resolver}])
2901 EFL_ADD_FEATURE([ECORE_CON], [systemd-daemon], [${want_systemd}])
2903 EFL_EVAL_PKGS([ECORE_CON])
2905 ### Checks for header files
2907 AC_CHECK_HEADERS([ws2tcpip.h netdb.h])
2909 if test "x${ac_cv_header_netdb_h}" = "xno" && test "x${have_windows}" = "xno"; then
2910 AC_MSG_ERROR([netdb.h is requested to have Ecore_Con. Exiting...])
2913 ### Checks for types
2916 AC_CHECK_TYPES([struct ipv6_mreq],
2920 #ifdef HAVE_NETINET_IN_H
2921 # include <netinet/in.h>
2923 #ifdef HAVE_WS2TCPIP_H
2924 # include <ws2tcpip.h>
2928 AC_DEFINE_IF([HAVE_IPV6],
2929 [test "x${have_ipv6}" = "xyes"],
2930 [1], [Define if IPV6 is supported])
2931 AM_CONDITIONAL([HAVE_IPV6], [test "x${have_ipv6}" = "xyes"])
2933 ### Checks for structures
2935 ### Checks for compiler characteristics
2937 ### Checks for linker characteristics
2939 ### Checks for library functions
2941 EFL_LIB_END([Ecore_Con])
2942 #### End of Ecore_Con
2947 EFL_LIB_START([Ecore_Ipc])
2951 ### Additional options to configure
2953 ### Checks for programs
2955 ## Compatibility layers
2956 EFL_PLATFORM_DEPEND([ECORE_IPC], [evil])
2958 ### Checks for libraries
2959 EFL_INTERNAL_DEPEND_PKG([ECORE_IPC], [ecore-con])
2960 EFL_INTERNAL_DEPEND_PKG([ECORE_IPC], [ecore])
2961 EFL_INTERNAL_DEPEND_PKG([ECORE_IPC], [eo])
2962 EFL_INTERNAL_DEPEND_PKG([ECORE_IPC], [eina])
2964 EFL_ADD_LIBS([ECORE_IPC], [-lm])
2966 ### Checks for header files
2968 AC_CHECK_HEADERS([winsock2.h])
2970 ### Checks for types
2972 ### Checks for structures
2974 ### Checks for compiler characteristics
2976 ### Checks for linker characteristics
2978 ### Checks for library functions
2980 EFL_LIB_END([Ecore_Ipc])
2981 #### End of Ecore_Ipc
2986 EFL_LIB_START([Ecore_File])
2988 ### Additional options to configure
2992 ### Checks for programs
2994 ## Compatibility layers
2995 EFL_PLATFORM_DEPEND([ECORE_FILE], [evil])
2997 ### Checks for libraries
2998 EFL_PLATFORM_DEPEND([ECORE_FILE], [escape])
2999 EFL_INTERNAL_DEPEND_PKG([ECORE_FILE], [ecore-con])
3000 EFL_INTERNAL_DEPEND_PKG([ECORE_FILE], [ecore])
3001 EFL_INTERNAL_DEPEND_PKG([ECORE_FILE], [eo])
3002 EFL_INTERNAL_DEPEND_PKG([ECORE_FILE], [eina])
3004 ### Checks for header files
3006 ### Checks for types
3008 ### Checks for structures
3010 ### Checks for compiler characteristics
3012 ### Checks for linker characteristics
3014 ### Checks for library functions
3016 EFL_LIB_END([Ecore_File])
3017 #### End of Ecore_File
3021 EFL_LIB_START([Ecore_Input])
3023 ### Additional options to configure
3027 ### Checks for programs
3029 ## Compatibility layers
3030 EFL_PLATFORM_DEPEND([ECORE_INPUT], [evil])
3032 ### Checks for libraries
3033 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [ecore])
3034 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [eo])
3035 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT], [eina])
3037 ### Checks for header files
3039 ### Checks for types
3041 ### Checks for structures
3043 ### Checks for compiler characteristics
3045 ### Checks for linker characteristics
3047 ### Checks for library functions
3049 EFL_LIB_END([Ecore_Input])
3050 #### End of Ecore_Input
3053 #### Ecore_Input_Evas
3054 EFL_LIB_START([Ecore_Input_Evas])
3056 ### Additional options to configure
3060 ### Checks for programs
3062 ## Compatibility layers
3063 EFL_PLATFORM_DEPEND([ECORE_INPUT_EVAS], [evil])
3065 ### Checks for libraries
3066 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT_EVAS], [ecore-input])
3067 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT_EVAS], [ecore])
3068 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT_EVAS], [evas])
3069 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT_EVAS], [efl])
3070 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT_EVAS], [eo])
3071 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT_EVAS], [eina])
3072 EFL_INTERNAL_DEPEND_PKG([ECORE_INPUT_EVAS], [emile])
3074 ### Checks for header files
3076 ### Checks for types
3078 ### Checks for structures
3080 ### Checks for compiler characteristics
3082 ### Checks for linker characteristics
3084 ### Checks for library functions
3086 EFL_LIB_END([Ecore_Input_Evas])
3087 #### End of Ecore_Input_Evas
3091 EFL_LIB_START_OPTIONAL([Ecore_Cocoa], [test "${want_cocoa}" = "yes"])
3093 ### Additional options to configure
3097 ### Checks for programs
3099 ### Checks for libraries
3100 EFL_INTERNAL_DEPEND_PKG([ECORE_COCOA], [ecore-input])
3101 EFL_INTERNAL_DEPEND_PKG([ECORE_COCOA], [ecore])
3102 EFL_INTERNAL_DEPEND_PKG([ECORE_COCOA], [eo])
3103 EFL_INTERNAL_DEPEND_PKG([ECORE_COCOA], [eina])
3104 EFL_INTERNAL_DEPEND_PKG([ECORE_COCOA], [evas])
3105 EFL_INTERNAL_DEPEND_PKG([ECORE_COCOA], [emile])
3107 ### Checks for header files
3109 EFL_ADD_LIBS([ECORE_COCOA], [-framework Cocoa])
3111 ### Checks for types
3113 ### Checks for structures
3115 ### Checks for compiler characteristics
3117 ### Checks for linker characteristics
3119 ### Checks for library functions
3121 EFL_LIB_END_OPTIONAL([Ecore_Cocoa])
3122 #### End of Ecore_Cocoa
3126 EFL_LIB_START_OPTIONAL([Ecore_FB], [test "${want_fb}" = "yes"])
3128 ### Additional options to configure
3129 AC_ARG_ENABLE([tslib],
3130 [AS_HELP_STRING([--disable-tslib],[disable tslib for touchscreen events.])],
3132 if test "x${enableval}" = "xyes" ; then
3137 ], [want_tslib="yes"])
3141 ### Checks for programs
3143 ### Checks for libraries
3144 EFL_INTERNAL_DEPEND_PKG([ECORE_FB], [ecore])
3145 EFL_INTERNAL_DEPEND_PKG([ECORE_FB], [ecore-input])
3146 EFL_INTERNAL_DEPEND_PKG([ECORE_FB], [eo])
3147 EFL_INTERNAL_DEPEND_PKG([ECORE_FB], [eina])
3149 EFL_OPTIONAL_DEPEND_PKG([ECORE_FB], [${want_tslib}], [TSLIB], [tslib])
3150 EFL_ADD_FEATURE([ECORE_FB], [tslib])
3152 EFL_EVAL_PKGS([ECORE_FB])
3154 ### Checks for header files
3157 AC_CHECK_HEADER([linux/fb.h],
3158 [AC_CHECK_HEADER([linux/input.h], [have_ecore_fb="yes"])])
3159 if test "${have_ecore_fb}" = "no"; then
3160 AC_MSG_ERROR([Missing linux/input.h or linux/fb.h])
3163 ### Checks for types
3165 ### Checks for structures
3167 ### Checks for compiler characteristics
3169 ### Checks for linker characteristics
3171 ### Checks for library functions
3173 EFL_LIB_END_OPTIONAL([Ecore_FB])
3174 #### End of Ecore_FB
3178 EFL_LIB_START_OPTIONAL([Ecore_Psl1ght], [test "${have_ps3}" = "yes"])
3180 ### Additional options to configure
3184 ### Checks for programs
3186 ### Checks for libraries
3187 EFL_PLATFORM_DEPEND([ECORE_PSL1GHT], [escape])
3189 EFL_INTERNAL_DEPEND_PKG([ECORE_PSL1GHT], [ecore-input])
3190 EFL_INTERNAL_DEPEND_PKG([ECORE_PSL1GHT], [ecore])
3191 EFL_INTERNAL_DEPEND_PKG([ECORE_PSL1GHT], [eo])
3192 EFL_INTERNAL_DEPEND_PKG([ECORE_PSL1GHT], [eina])
3194 EFL_ADD_LIBS([ECORE_PSL1GHT], [-lio -lsysutil -lgem -lcamera -lspurs])
3196 ### Checks for header files
3198 ### Checks for types
3200 ### Checks for structures
3202 ### Checks for compiler characteristics
3204 ### Checks for linker characteristics
3206 ### Checks for library functions
3208 EFL_LIB_END_OPTIONAL([Ecore_Psl1ght])
3209 #### End of Ecore_Psl1ght
3213 EFL_LIB_START_OPTIONAL([Ecore_SDL], [test "${want_sdl}" = "yes"])
3215 ### Additional options to configure
3219 ### Checks for programs
3221 ### Checks for libraries
3222 EFL_PLATFORM_DEPEND([ECORE_SDL], [all])
3223 EFL_INTERNAL_DEPEND_PKG([ECORE_SDL], [ecore-input])
3224 EFL_INTERNAL_DEPEND_PKG([ECORE_SDL], [ecore])
3225 EFL_INTERNAL_DEPEND_PKG([ECORE_SDL], [eo])
3226 EFL_INTERNAL_DEPEND_PKG([ECORE_SDL], [eina])
3228 EFL_DEPEND_PKG([ECORE_SDL], [SDL], [sdl2 >= 2.0.0])
3230 EFL_EVAL_PKGS([ECORE_SDL])
3232 ### Checks for header files
3234 ### Checks for types
3236 ### Checks for structures
3238 ### Checks for compiler characteristics
3240 ### Checks for linker characteristics
3242 ### Checks for library functions
3244 EFL_LIB_END_OPTIONAL([Ecore_SDL])
3245 #### End of Ecore_SDL
3249 EFL_LIB_START_OPTIONAL([Ecore_Wayland], [test "${want_wayland}" = "yes"])
3251 if test "x${want_wayland_ivi_shell}" = "xyes" ; then
3252 AC_DEFINE(USE_IVI_SHELL, 1, [Ecore_Wayland IVI-Shell Support])
3255 ### Additional options to configure
3259 ### Checks for programs
3261 ### Checks for libraries
3262 EFL_INTERNAL_DEPEND_PKG([ECORE_WAYLAND], [ecore-input])
3263 EFL_INTERNAL_DEPEND_PKG([ECORE_WAYLAND], [ecore])
3264 EFL_INTERNAL_DEPEND_PKG([ECORE_WAYLAND], [eo])
3265 EFL_INTERNAL_DEPEND_PKG([ECORE_WAYLAND], [eina])
3267 EFL_DEPEND_PKG([ECORE_WAYLAND], [WAYLAND],
3268 [wayland-client >= 1.8.0 wayland-cursor >= 1.8.0 xkbcommon >= 0.5.0 uuid])
3270 EFL_EVAL_PKGS([ECORE_WAYLAND])
3272 ### Checks for header files
3274 ### Checks for types
3276 ### Checks for structures
3278 ### Checks for compiler characteristics
3280 ### Checks for linker characteristics
3282 ### Checks for library functions
3284 EFL_LIB_END_OPTIONAL([Ecore_Wayland])
3285 #### End of Ecore_Wayland
3288 EFL_LIB_START_OPTIONAL([Ecore_Wl2], [test "${want_wayland}" = "yes"])
3290 if test "x${want_wayland_ivi_shell}" = "xyes" ; then
3291 AC_DEFINE(USE_IVI_SHELL, 1, [Ecore_Wl2 IVI-Shell Support])
3294 ### Additional options to configure
3298 ### Checks for programs
3300 ### Checks for libraries
3301 EFL_INTERNAL_DEPEND_PKG([ECORE_WL2], [ecore-input])
3302 EFL_INTERNAL_DEPEND_PKG([ECORE_WL2], [ecore])
3303 EFL_INTERNAL_DEPEND_PKG([ECORE_WL2], [eo])
3304 EFL_INTERNAL_DEPEND_PKG([ECORE_WL2], [eina])
3306 EFL_DEPEND_PKG([ECORE_WL2], [WAYLAND],
3307 [wayland-server >= 1.8.0 wayland-client >= 1.8.0 wayland-cursor >= 1.8.0 xkbcommon >= 0.5.0])
3309 EFL_EVAL_PKGS([ECORE_WL2])
3311 ### Checks for header files
3313 ### Checks for types
3315 ### Checks for structures
3317 ### Checks for compiler characteristics
3319 ### Checks for linker characteristics
3321 ### Checks for library functions
3323 EFL_LIB_END_OPTIONAL([Ecore_Wl2])
3324 #### End of Ecore_Wl2
3327 EFL_LIB_START([Eldbus])
3329 ### Additional options to configure
3333 ### Checks for programs
3335 ## Compatibility layers
3336 EFL_PLATFORM_DEPEND([ELDBUS], [evil])
3338 ### Checks for libraries
3339 EFL_INTERNAL_DEPEND_PKG([ELDBUS], [ecore])
3340 EFL_INTERNAL_DEPEND_PKG([ELDBUS], [efl])
3341 EFL_INTERNAL_DEPEND_PKG([ELDBUS], [eo])
3342 EFL_INTERNAL_DEPEND_PKG([ELDBUS], [eina])
3344 EFL_DEPEND_PKG([ELDBUS], [DBUS], [dbus-1])
3346 EFL_EVAL_PKGS([ELDBUS])
3348 ### Checks for header files
3350 ### Checks for types
3352 ### Checks for structures
3354 ### Checks for compiler characteristics
3356 ### Checks for linker characteristics
3358 ### Checks for library functions
3360 EFL_LIB_END([Eldbus])
3365 have_libmount_new="no"
3366 have_libmount_old="no"
3367 have_eeze_mount="no"
3369 EFL_LIB_START_OPTIONAL([Eeze], [test "x${build_libeeze}" = "xyes"])
3371 ### Additional options to configure
3372 AC_ARG_WITH([mount],
3373 [AS_HELP_STRING([--with-mount], [specify mount bin @<:@default=detect@:>@])],
3374 [with_eeze_mount=$withval], [with_eeze_mount="detect"])
3375 AC_ARG_WITH([umount],
3376 [AS_HELP_STRING([--with-umount], [specify umount bin @<:@default=detect@:>@])],
3377 [with_eeze_umount=$withval], [with_eeze_umount="detect"])
3378 AC_ARG_WITH([eject],
3379 [AS_HELP_STRING([--with-eject], [specify eject bin @<:@default=detect@:>@])],
3380 [with_eeze_eject=$withval], [with_eeze_eject="detect"])
3384 ### Checks for programs
3386 ### Checks for libraries
3387 EFL_INTERNAL_DEPEND_PKG([EEZE], [eina])
3388 EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore])
3389 EFL_INTERNAL_DEPEND_PKG([EEZE], [eo])
3390 EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-file])
3391 EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-con])
3392 EFL_INTERNAL_DEPEND_PKG([EEZE], [eet])
3393 EFL_INTERNAL_DEPEND_PKG([EEZE], [emile])
3395 EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148])
3397 AC_ARG_ENABLE([libmount],
3398 [AS_HELP_STRING([--disable-libmount],[disable libmount support. @<:@default=enabled@:>@])],
3400 if test "x${enableval}" = "xyes" ; then
3404 CFOPT_WARNING="xyes"
3407 [want_libmount="yes"])
3409 EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
3410 [EEZE_MOUNT], [mount >= 2.18.0])
3411 EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
3413 PKG_CHECK_EXISTS([libudev < 199],
3414 [have_libudev_old="yes"],
3415 [have_libudev_old="no"])
3416 AC_MSG_CHECKING([Use old libudev API (before 199)])
3417 AC_MSG_RESULT([${have_libudev_old}])
3419 PKG_CHECK_EXISTS([mount < 2.19.0],
3420 [have_libmount_old="yes"],
3421 [have_libmount_old="no"])
3422 AC_MSG_CHECKING([Use old libmount API (before 2.19.0)])
3423 AC_MSG_RESULT([${have_libmount_old}])
3425 PKG_CHECK_EXISTS([mount == 2.19.0],
3426 [have_libmount_219="yes"],
3427 [have_libmount_219="no"])
3428 AC_MSG_CHECKING([Use libmount 2.19.0 API])
3429 AC_MSG_RESULT([${have_libmount_219}])
3431 PKG_CHECK_EXISTS([mount > 2.19.0],
3432 [have_libmount_new="yes"],
3433 [have_libmount_new="no"])
3434 AC_MSG_CHECKING([Use new libmount API (newer than 2.19.0)])
3435 AC_MSG_RESULT([${have_libmount_new}])
3437 if test "x${have_libudev_old}" = "xyes"; then
3438 AC_DEFINE_UNQUOTED([OLD_LIBUDEV], [1], [using older version of libudev])
3441 if test "x${have_libmount_old}" = "xyes"; then
3442 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
3446 if test "${want_tizen}" = "yes"; then
3447 PKG_CHECK_MODULES([TIZEN_SENSOR], [capi-system-sensor >= 0.1.17])
3449 EFL_ADD_FEATURE([EEZE], [tizen])
3451 EFL_EVAL_PKGS([EEZE])
3453 ### Checks for header files
3455 ### Checks for types
3457 ### Checks for structures
3459 ### Checks for compiler characteristics
3461 ### Checks for linker characteristics
3463 ### Checks for library functions
3465 ### Checks for binaries
3466 if test "x$with_eeze_mount" = "xdetect"; then
3467 AC_PATH_PROG([with_eeze_mount], [mount], [])
3469 AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_eeze_mount"], [mount bin to use])
3471 if test "x$with_eeze_umount" = "xdetect";then
3472 AC_PATH_PROG([with_eeze_umount], [umount], [])
3474 AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_eeze_umount"], [umount bin to use])
3476 if test "x$with_eeze_eject" = "xdetect";then
3477 AC_PATH_PROG([with_eeze_eject], [eject], [])
3479 AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eeze_eject"], [eject bin to use])
3481 EFL_LIB_END_OPTIONAL([Eeze])
3483 AM_CONDITIONAL([EEZE_LIBMOUNT_AFTER_219],
3484 [test "x${have_libmount_new}" = "xyes"])
3485 AM_CONDITIONAL([EEZE_LIBMOUNT_BEFORE_219],
3486 [test "x${have_libmount_old}" = "xyes"])
3487 AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "x${have_eeze_mount}" = "xyes"])
3488 AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "x${want_tizen}" = "xyes"])
3493 have_libinput_new="no"
3494 EFL_LIB_START_OPTIONAL([Ecore_Drm], [test "${want_drm}" = "yes"])
3496 ### Additional options to configure
3499 AC_SUBST([SUID_CFLAGS])
3500 AC_SUBST([SUID_LDFLAGS])
3504 ### Checks for programs
3506 ### Checks for libraries
3507 EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [ecore])
3508 EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [ecore-input])
3509 EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eldbus])
3510 EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eeze])
3511 EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eo])
3512 EFL_INTERNAL_DEPEND_PKG([ECORE_DRM], [eina])
3514 EFL_DEPEND_PKG([ECORE_DRM], [DRM], [libdrm >= 2.4 xkbcommon >= 0.3.0 gbm])
3515 EFL_DEPEND_PKG([ECORE_DRM], [LIBINPUT], [libinput >= 0.6.0])
3517 EFL_ADD_LIBS([ECORE_DRM], [-lm])
3519 # API change from 0.7 to 0.8. So we define this to support both for now.
3520 PKG_CHECK_EXISTS([libinput >= 0.8.0],
3521 [have_libinput_new="yes"],
3522 [have_libinput_new="no"])
3523 AC_MSG_CHECKING([Use new libinput API (newer than 0.8.0)])
3524 AC_MSG_RESULT([${have_libinput_new}])
3525 if test "x${have_libinput_new}" = "xyes";then
3526 AC_DEFINE_UNQUOTED([LIBINPUT_HIGHER_08], [1], [libinput version >= 0.8])
3528 if test "x${have_libinput_new}" = "xno";then
3529 AC_DEFINE_UNQUOTED([LIBINPUT_HIGHER_08], [0], [libinput version >= 0.8])
3533 EFL_EVAL_PKGS([ECORE_DRM])
3535 ### Checks for header files
3537 ### Checks for types
3539 ### Checks for structures
3541 ### Checks for compiler characteristics
3543 ### Checks for linker characteristics
3545 ### Checks for library functions
3547 EFL_LIB_END_OPTIONAL([Ecore_Drm])
3548 #### End of Ecore_Drm
3553 AC_ARG_ENABLE([audio],
3554 [AS_HELP_STRING([--disable-audio],[disable audio support. @<:@default=enabled@:>@])],
3556 if test "x${enableval}" = "xyes" ; then
3560 CFOPT_WARNING="xyes"
3565 EFL_LIB_START_OPTIONAL([Ecore_Audio], [test "${want_audio}" = "yes"])
3567 ### Additional options to configure
3569 # ALSA support is still not there, thus no option for it yet.
3572 # sndfile is mandatory otherwise it won't read from/write to files.
3573 # TODO: if confirmed sndfile is mandatory, remove this variable
3574 # TODO: and the EFL_OPTIONAL_DEPEND_PKG(), use EFL_DEPEND_PKG()
3577 AC_ARG_ENABLE([pulseaudio],
3578 [AS_HELP_STRING([--disable-pulseaudio],[disable pulseaudio sound support. @<:@default=enabled@:>@])],
3580 if test "x${enableval}" = "xyes" ; then
3581 want_pulseaudio="yes"
3583 want_pulseaudio="no"
3584 CFOPT_WARNING="xyes"
3587 [want_pulseaudio="yes"])
3589 if test "x${have_darwin}" = "xyes"; then
3590 want_pulseaudio="no"
3592 want_coreaudio="yes"
3599 if test "x${want_coreaudio}" = "xyes"; then
3600 coreaudio_ldflags=""
3603 LIBS="$LIBS -framework CoreAudio"
3607 #include <CoreAudio/CoreAudio.h>
3611 AudioDeviceID dev_id;
3612 AudioObjectPropertyAddress prop = {
3613 kAudioHardwarePropertyDefaultOutputDevice,
3614 kAudioObjectPropertyScopeGlobal,
3615 kAudioObjectPropertyElementMaster
3617 size = sizeof(AudioDeviceID);
3618 AudioObjectGetPropertyData(kAudioObjectSystemObject, &prop, 0, NULL,
3622 have_coreaudio="yes"
3623 coreaudio_ldflags="-framework CoreAudio"
3625 [have_coreaudio="no"])
3627 AC_MSG_CHECKING([whether Apple CoreAudio framework is supported])
3628 AC_MSG_RESULT([${have_coreaudio}])
3630 AC_SUBST(coreaudio_ldflags)
3631 if test "x${have_coreaudio}" = "xyes"; then
3632 AC_DEFINE([HAVE_COREAUDIO], [1], [CoreAudio support enabled])
3634 AC_DEFINE([HAVE_COREAUDIO], [0], [CoreAudio support disabled])
3640 ### Checks for programs
3642 ## Compatibility layers
3643 EFL_PLATFORM_DEPEND([ECORE_AUDIO], [evil])
3645 ### Checks for libraries
3646 EFL_INTERNAL_DEPEND_PKG([ECORE_AUDIO], [ecore])
3647 EFL_INTERNAL_DEPEND_PKG([ECORE_AUDIO], [eet])
3648 EFL_INTERNAL_DEPEND_PKG([ECORE_AUDIO], [eo])
3649 EFL_INTERNAL_DEPEND_PKG([ECORE_AUDIO], [eina])
3650 EFL_INTERNAL_DEPEND_PKG([ECORE_AUDIO], [emile])
3652 EFL_ADD_LIBS([ECORE_AUDIO], [-lm])
3654 EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO], [${want_alsa}], [ALSA], [alsa])
3655 EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO], [${want_pulseaudio}], [PULSE], [libpulse])
3656 EFL_OPTIONAL_DEPEND_PKG([ECORE_AUDIO], [${want_sndfile}], [SNDFILE], [sndfile])
3658 EFL_EVAL_PKGS([ECORE_AUDIO])
3660 EFL_ADD_FEATURE([ECORE_AUDIO], [alsa])
3661 EFL_ADD_FEATURE([ECORE_AUDIO], [pulseaudio])
3662 EFL_ADD_FEATURE([ECORE_AUDIO], [sndfile])
3663 EFL_ADD_FEATURE([ECORE_AUDIO], [coreaudio])
3665 ### Checks for header files
3667 ### Checks for types
3669 ### Checks for structures
3671 ### Checks for compiler characteristics
3673 ### Checks for linker characteristics
3675 ### Checks for library functions
3677 EFL_LIB_END_OPTIONAL([Ecore_Audio])
3678 AM_CONDITIONAL([HAVE_ECORE_AUDIO_PULSE], [test "x${want_pulseaudio}" = "xyes"])
3679 AM_CONDITIONAL([HAVE_ECORE_AUDIO_SNDFILE], [test "x${want_sndfile}" = "xyes"])
3680 AM_CONDITIONAL([HAVE_ECORE_AUDIO_CORE_AUDIO], [test "x${want_coreaudio}" = "xyes"])
3682 #### End of Ecore_Audio
3684 #### Ecore Audio CXX
3685 EFL_LIB_START([Ecore_Audio_Cxx])
3687 EFL_EVAL_PKGS([ECORE_AUDIO_CXX])
3689 EFL_LIB_END([Ecore_Audio_Cxx])
3690 #### End of Ecore Audio CXX
3693 EFL_LIB_START_OPTIONAL([Ecore_Win32], [test "${have_win32}" = "yes"])
3695 ### Additional options to configure
3699 ### Checks for programs
3701 ### Checks for libraries
3702 EFL_PLATFORM_DEPEND([ECORE_WIN32], [evil])
3703 EFL_INTERNAL_DEPEND_PKG([ECORE_WIN32], [ecore-input])
3704 EFL_INTERNAL_DEPEND_PKG([ECORE_WIN32], [ecore])
3705 EFL_INTERNAL_DEPEND_PKG([ECORE_WIN32], [eo])
3706 EFL_INTERNAL_DEPEND_PKG([ECORE_WIN32], [eina])
3708 EFL_ADD_LIBS([ECORE_WIN32], [-lole32 -lgdi32])
3709 AC_SUBST([ECORE_WIN32_LIBS])
3711 ### Checks for header files
3713 ### Checks for types
3715 ### Checks for structures
3717 ### Checks for compiler characteristics
3719 ### Checks for linker characteristics
3721 ### Checks for library functions
3723 EFL_LIB_END_OPTIONAL([Ecore_Win32])
3724 #### End of Ecore_Win32
3728 EFL_LIB_START([Ecore_Avahi])
3732 ### Additional options to configure
3736 AC_ARG_ENABLE([avahi],
3737 [AS_HELP_STRING([--disable-avahi],[disable avahi support. @<:@default=enabled@:>@])],
3739 if test "x${enableval}" = "xyes" ; then
3748 ### Checks for programs
3750 ## Compatibility layers
3751 EFL_PLATFORM_DEPEND([ECORE_AVAHI], [evil])
3753 ### Checks for libraries
3754 EFL_INTERNAL_DEPEND_PKG([ECORE_AVAHI], [ecore])
3755 EFL_INTERNAL_DEPEND_PKG([ECORE_AVAHI], [eina])
3756 EFL_INTERNAL_DEPEND_PKG([ECORE_AVAHI], [eo])
3758 EFL_OPTIONAL_DEPEND_PKG([ECORE_AVAHI], [${want_avahi}], [AVAHI], [avahi-client], [have_avahi=yes], [have_avahi=no])
3760 EFL_ADD_FEATURE([ECORE_AVAHI], [avahi-client], [${have_avahi}])
3762 # Needed bu example as they use avahi directly in that case
3763 if test "x${have_avahi}" = "xyes"; then
3764 PKG_CHECK_MODULES([AVAHI_CLIENT], [avahi-client])
3767 EFL_EVAL_PKGS([ECORE_AVAHI])
3769 ### Checks for header files
3771 ### Checks for types
3773 ### Checks for structures
3775 ### Checks for compiler characteristics
3777 ### Checks for linker characteristics
3779 ### Checks for library functions
3781 EFL_LIB_END([Ecore_Avahi])
3783 #### End of Ecore_Avahi
3787 EFL_LIB_START_OPTIONAL([Ecore_X], [test "${want_x11_any}" = "yes"])
3789 ### Additional options to configure
3791 AC_ARG_ENABLE([gesture],
3792 [AS_HELP_STRING([--enable-gesture],[enable X11 Gesture extension support])],
3794 if test "x${enableval}" = "xyes" ; then
3800 [want_gesture="no"])
3802 AC_ARG_ENABLE([xpresent],
3803 [AS_HELP_STRING([--enable-xpresent],[enable X11 XPresent extension support])],
3805 if test "x${enableval}" = "xyes" ; then
3811 [want_xpresent="no"])
3813 AC_ARG_ENABLE([xinput2],
3814 [AS_HELP_STRING([--disable-xinput2],[disable X11 XInput v2.x support])],
3816 if test "x${enableval}" = "xyes" ; then
3820 CFOPT_WARNING="xyes"
3823 [want_xinput2="yes"])
3825 AC_ARG_ENABLE([xinput22],
3826 [AS_HELP_STRING([--enable-xinput22],[enable X11 XInput v2.2+ support])],
3828 if test "x${enableval}" = "xyes" ; then
3834 [want_xinput22="no"])
3836 AC_ARG_ENABLE([xim],
3837 [AS_HELP_STRING([--disable-xim],[disable X Input Method.])],
3839 if test "x${enableval}" = "xyes" ; then
3843 CFOPT_WARNING="xyes"
3848 AC_ARG_ENABLE([scim],
3849 [AS_HELP_STRING([--disable-scim],[disable SCIM.])],
3851 if test "x${enableval}" = "xyes" ; then
3855 CFOPT_WARNING="xyes"
3860 AC_ARG_ENABLE([ibus],
3861 [AS_HELP_STRING([--disable-ibus],[disable IBUS.])],
3863 if test "x${enableval}" = "xyes" ; then
3873 ### Checks for programs
3875 ### Checks for libraries
3876 EFL_INTERNAL_DEPEND_PKG([ECORE_X], [ecore-input])
3877 EFL_INTERNAL_DEPEND_PKG([ECORE_X], [ecore])
3878 EFL_INTERNAL_DEPEND_PKG([ECORE_X], [eo])
3879 EFL_INTERNAL_DEPEND_PKG([ECORE_X], [eina])
3885 ### Checks for header files
3887 AC_CHECK_DECL([MAXHOSTNAMELEN], [FOUND_MAXHOSTNAMELEN=yes])
3889 if test "x${FOUND_MAXHOSTNAMELEN}" != "xyes" ; then
3890 FOUND_MAXHOSTNAMELEN="not found"
3896 #include <sys/param.h>
3899 int h = MAXHOSTNAMELEN;
3903 FOUND_MAXHOSTNAMELEN="sys/param.h"
3904 AC_DEFINE([NEED_SYS_PARAM_H], [1], [Define to 1 if you need <sys/param.h> to define MAXHOSTNAMELEN])
3914 int h = MAXHOSTNAMELEN;
3918 FOUND_MAXHOSTNAMELEN="netdb.h"
3919 AC_DEFINE([NEED_NETDB_H], [1], [Define to 1 if you need <netdb.h> to define MAXHOSTNAMELEN])
3922 AC_MSG_CHECKING([for header that defines MAXHOSTNAMELEN])
3923 AC_MSG_RESULT([$FOUND_MAXHOSTNAMELEN])
3927 if test "x${want_x11_xcb}" = "xyes" ; then
3928 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
3929 FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
3931 if test -f "$KEYSYMDEFDIR/$i"; then
3932 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
3933 elif test "x$i" = "xkeysymdef.h"; then
3934 AC_MSG_ERROR([Cannot find keysymdef.h])
3937 AC_MSG_CHECKING([keysym definitions])
3938 AC_MSG_RESULT([$KEYSYMDEFS])
3939 AC_SUBST([KEYSYMDEFS])
3942 ### Checks for types
3944 ### Checks for structures
3946 ### Checks for compiler characteristics
3948 ### Checks for linker characteristics
3950 ### Checks for library functions
3953 if test "x${want_x11_xlib}" = "xyes"; then
3954 EFL_FIND_X(ECORE_X_XLIB,
3955 [X11/Xlib.h X11/Xcursor/Xcursor.h],
3956 [X11 XOpenDisplay Xcursor XcursorImageLoadCursor],
3959 AC_DEFINE([ECORE_XCURSOR], 1, [Build support for Xcursor])
3960 EFL_ADD_LIBS([ECORE_X], [$ECORE_X_XLIB_libs])
3961 EFL_ADD_CFLAGS([ECORE_X], [$ECORE_X_XLIB_cflags])
3963 AC_MSG_ERROR([Xcursor is missing])
3967 if test "x${want_x11_xlib}" = "xyes" ; then
3968 ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat])
3969 ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension])
3970 ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract])
3971 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension])
3972 ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion])
3973 ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens])
3974 ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent])
3975 ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat])
3976 ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent])
3977 ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput])
3979 PKG_CHECK_EXISTS([xrandr > 1.3.2], [AC_DEFINE([XRANDR_GOOD], [1], [good xrandr])], [])
3981 if test "${want_xpresent}" = "yes"; then
3982 ECORE_CHECK_X_EXTENSION([Xpresent], [Xpresent.h], [Xpresent], [XPresentQueryExtension])
3984 EFL_ADD_FEATURE([ECORE_X], [xpresent])
3986 if test "${want_gesture}" = "yes"; then
3987 ECORE_CHECK_X_EXTENSION([Xgesture], [gesture.h], [Xgesture], [XGestureQueryExtension])
3989 EFL_ADD_FEATURE([ECORE_X], [gesture])
3991 if test "${want_xinput2}" = "yes"; then
3992 ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice])
3994 EFL_ADD_FEATURE([ECORE_X], [xinput2])
3996 if test "${want_xinput22}" = "yes"; then
3997 ECORE_CHECK_X_EXTENSION([Xi2_2], [XInput2.h], [Xi],[XIGrabTouchBegin])
3999 EFL_ADD_FEATURE([ECORE_X], [xinput22])
4001 AC_DEFINE([HAVE_ECORE_X_XLIB], [1], [Defined to 1 if Xlib is enabled.])
4002 HAVE_ECORE_X_BACKEND="HAVE_ECORE_X_XLIB"
4004 EFL_EVAL_PKGS([ECORE_X])
4005 EFL_CHECK_FUNCS([ECORE_X], [dlopen dlsym])
4010 if test "${want_x11_xcb}" = "yes"; then
4011 dnl note: added pixman-1 as ecore_xcb_region uses that
4012 EFL_DEPEND_PKG([ECORE_X], [ECORE_X_XCB],
4013 [x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8 xcb-composite xcb-present xcb-damage xcb-dpms xcb-randr xcb-render xcb-screensaver xcb-shape xcb-sync xcb-xfixes xcb-xinerama xcb-xtest xcb-renderutil pixman-1])
4015 dnl TODO: remove these ifdefs from code!
4016 AC_DEFINE([ECORE_XCB_COMPOSITE], [1], [Build support for XCB composite])
4017 AC_DEFINE([ECORE_XCB_DAMAGE], [1], [Build support for XCB damage])
4018 AC_DEFINE([ECORE_XCB_DPMS], [1], [Build support for XCB dpms])
4019 AC_DEFINE([ECORE_XCB_RANDR], [1], [Build support for XCB randr])
4020 AC_DEFINE([ECORE_XCB_RENDER], [1], [Build support for XCB render])
4021 AC_DEFINE([ECORE_XCB_SCREENSAVER], [1], [Build support for XCB screensaver])
4022 AC_DEFINE([ECORE_XCB_SHAPE], [1], [Build support for XCB shape])
4023 AC_DEFINE([ECORE_XCB_SYNC], [1], [Build support for XCB sync])
4024 AC_DEFINE([ECORE_XCB_XFIXES], [1], [Build support for XCB xfixes])
4025 AC_DEFINE([ECORE_XCB_XINERAMA], [1], [Build support for XCB xinerama])
4026 AC_DEFINE([ECORE_XCB_XTEST], [1], [Build support for XCB xtest])
4027 AC_DEFINE([ECORE_XCB_CURSOR], [1], [Build support for XCB cursor])
4029 EFL_OPTIONAL_DEPEND_PKG([ECORE_X], [${want_xpresent}], [ECORE_XCB_XPRESENT],
4031 AC_DEFINE_IF([ECORE_XCB_XPRESENT], [test "${want_xpresent}" = "yes"],
4032 [1], [Build support for XCB Present])
4033 EFL_ADD_FEATURE([ECORE_X], [xpresent])
4035 EFL_OPTIONAL_DEPEND_PKG([ECORE_X], [${want_gesture}], [ECORE_XCB_GESTURE],
4037 AC_DEFINE_IF([ECORE_XCB_XGESTURE], [test "${want_gesture}" = "yes"],
4038 [1], [Build support for XCB xgesture])
4040 EFL_ADD_FEATURE([ECORE_X], [gesture])
4042 dnl input extension disabled currently in xcb as xcb-input has some issues
4043 dnl remember to add xcb-xinput to EFL_DEPEND_PKG()
4044 dnl AC_DEFINE([ECORE_XCB_XINPUT], [1], [Build support for XCB input])
4046 dnl dri extension disabled currently in xcb
4047 dnl remember to add xcb-dri2 to EFL_DEPEND_PKG()
4048 dnl AC_DEFINE([ECORE_XCB_DRI], [1], [Build support for XCB dri])
4050 EFL_EVAL_PKGS([ECORE_X])
4051 EFL_CHECK_FUNCS([ECORE_X], [dlopen iconv])
4053 HAVE_ECORE_X_BACKEND="HAVE_ECORE_X_XCB"
4056 EFL_ADD_LIBS([ECORE_X], [${ECORE_X_LIBS}])
4058 AC_SUBST([HAVE_ECORE_X_BACKEND])
4060 EFL_LIB_END_OPTIONAL([Ecore_X])
4062 AM_CONDITIONAL([HAVE_ECORE_X_XLIB], [test "${want_x11_xlib}" = "yes"])
4063 AM_CONDITIONAL([HAVE_ECORE_X_XCB], [test "${want_x11_xcb}" = "yes"])
4068 EFL_LIB_START([Ecore_Imf])
4070 ### Additional options to configure
4074 want_ecore_imf="yes"
4075 want_ecore_imf_xim="no"
4076 want_ecore_imf_scim="no"
4077 want_ecore_imf_ibus="no"
4078 want_ecore_imf_wayland="no"
4079 want_ecore_imf="yes"
4081 if test "${have_windows}" = "no" && test "${have_darwin}" = "no"; then
4082 want_ecore_imf="yes"
4083 want_ecore_imf_xim="yes"
4084 want_ecore_imf_scim="yes"
4085 want_ecore_imf_ibus="yes"
4086 if test "${want_wayland}" = "yes"; then
4087 want_ecore_imf_wayland="yes"
4091 ### Checks for programs
4093 ## Compatibility layers
4094 EFL_PLATFORM_DEPEND([ECORE_IMF], [evil])
4096 ### Checks for libraries
4097 EFL_PLATFORM_DEPEND([ECORE_IMF], [escape])
4098 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF], [ecore])
4099 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF], [ecore-input])
4100 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF], [eo])
4101 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF], [eina])
4103 if test "x${want_ecore_imf}" = "xyes" ; then
4104 AC_DEFINE([HAVE_ECORE_IMF], [1], [Ecore IMF Support])
4111 have_ecore_imf_ibus="no"
4112 if test "x${want_ibus}" = "xyes" && test "x${want_ecore_imf_ibus}" = "xyes" && test "x${have_glib}" = "xyes" ; then
4113 PKG_CHECK_MODULES([IBUS],
4114 [ibus-1.0 >= 1.4 glib-2.0],
4116 have_ecore_imf_ibus="yes"
4117 AC_DEFINE([BUILD_ECORE_IMF_IBUS], [1], [Ecore Imf IBUS Support])
4119 [have_ecore_imf_ibus="no"])
4122 AM_CONDITIONAL([BUILD_ECORE_IMF_IBUS], [test "x${have_ecore_imf_ibus}" = "xyes"])
4123 EFL_ADD_FEATURE([ECORE_IMF], [ibus], [${have_ecore_imf_ibus}])
4127 have_ecore_imf_scim="no"
4128 if test "x${want_scim}" = "xyes" && test "x${want_ecore_imf_scim}" = "xyes" ; then
4129 PKG_CHECK_MODULES([SCIM],
4132 have_ecore_imf_scim="yes"
4133 AC_DEFINE([BUILD_ECORE_IMF_SCIM], [1], [Ecore Imf SCIM Support])
4135 [have_ecore_imf_scim="no"])
4138 AM_CONDITIONAL([BUILD_ECORE_IMF_SCIM], [test "x${have_ecore_imf_scim}" = "xyes"])
4139 EFL_ADD_FEATURE([ECORE_IMF], [scim], [${have_ecore_imf_scim}])
4143 have_ecore_imf_xim="no"
4144 if test "x${want_xim}" = "xyes" && test "x${want_ecore_imf_xim}" = "xyes" ; then
4146 EFL_FIND_X(ecore_imf_xim,
4150 have_ecore_imf_xim=yes
4151 AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
4155 AM_CONDITIONAL([BUILD_ECORE_IMF_XIM], [test "x${have_ecore_imf_xim}" = "xyes"])
4156 EFL_ADD_FEATURE([ECORE_IMF], [xim])
4159 if test "x${want_ecore_imf_wayland}" = "xyes" ; then
4160 PKG_CHECK_MODULES([WAYLAND],
4161 [wayland-client >= 1.8.0],
4163 have_ecore_imf_wayland="yes"
4164 AC_DEFINE([BUILD_ECORE_IMF_WAYLAND], [1], [Ecore Imf Wayland Support])
4166 [have_ecore_imf_wayland="no"])
4169 AM_CONDITIONAL([BUILD_ECORE_IMF_WAYLAND], [test "x${have_ecore_imf_wayland}" = "xyes"])
4170 EFL_ADD_FEATURE([ECORE_IMF], [wayland], [${want_ecore_imf_wayland}])
4172 ### Checks for header files
4174 ### Checks for types
4176 ### Checks for structures
4178 ### Checks for compiler characteristics
4180 ### Checks for linker characteristics
4182 ### Checks for library functions
4184 EFL_LIB_END([Ecore_Imf])
4185 #### End of Ecore_Imf
4189 EFL_LIB_START([Ecore_Imf_Evas])
4191 ### Additional options to configure
4195 ### Checks for programs
4197 ## Compatibility layers
4198 EFL_PLATFORM_DEPEND([ECORE_IMF_EVAS], [evil])
4200 ### Checks for libraries
4201 EFL_PLATFORM_DEPEND([ECORE_IMF_EVAS], [escape])
4202 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF_EVAS], [ecore-imf])
4203 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF_EVAS], [ecore])
4204 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF_EVAS], [evas])
4205 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF_EVAS], [efl])
4206 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF_EVAS], [eo])
4207 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF_EVAS], [eina])
4208 EFL_INTERNAL_DEPEND_PKG([ECORE_IMF_EVAS], [emile])
4210 ### Checks for header files
4212 ### Checks for types
4214 ### Checks for structures
4216 ### Checks for compiler characteristics
4218 ### Checks for linker characteristics
4220 ### Checks for library functions
4222 EFL_LIB_END([Ecore_Imf_Evas])
4223 #### End of Ecore_Imf_Evas
4227 EFL_LIB_START([Ecore_Evas])
4229 ### Additional options to configure
4233 want_ecore_evas_software_gdi="${have_evas_engine_software_gdi}"
4234 want_ecore_evas_software_ddraw="${have_evas_engine_software_ddraw}"
4235 want_ecore_evas_gl_cocoa="${have_evas_engine_gl_cocoa}"
4236 want_ecore_evas_wayland_egl="${have_evas_engine_wayland_egl}"
4237 want_ecore_evas_extn="yes"
4238 want_ecore_evas_drm="${have_evas_engine_drm}"
4240 if test "x${have_ecore_ipc}" = "xno" || \
4241 test "x${efl_func_shm_open}" = "xno" || \
4242 test "x${have_windows}" = "xyes" ; then
4243 want_ecore_evas_extn="no"
4246 ### Checks for programs
4248 ## Compatibility layers
4249 EFL_PLATFORM_DEPEND([ECORE_EVAS], [evil])
4251 ### Checks for libraries
4252 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [ecore-input-evas])
4253 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [ecore-input])
4254 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [ecore])
4255 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [eet])
4256 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [evas])
4257 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [efl])
4258 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [eo])
4259 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [eina])
4260 EFL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [emile])
4263 ECORE_EVAS_MODULE([extn], [${want_ecore_evas_extn}])
4264 ECORE_EVAS_MODULE([ews], [yes])
4265 ECORE_EVAS_MODULE([fb], [${want_fb}])
4266 ECORE_EVAS_MODULE([drm], [${want_drm}],
4267 [EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [${want_drm}], [ecore-drm])])
4268 ECORE_EVAS_MODULE([gl-drm], [${want_gl_drm}],
4269 [EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ECORE_EVAS], [${want_gl_drm}], [ecore-drm])])
4270 ECORE_EVAS_MODULE([psl1ght], [${have_ps3}])
4272 ECORE_EVAS_MODULE([opengl-cocoa], [${want_ecore_evas_gl_cocoa}])
4274 ECORE_EVAS_MODULE([software-sdl], [${want_sdl}])
4275 ECORE_EVAS_MODULE([opengl-sdl], [${want_gl_sdl}])
4277 build_ecore_evas_sdl="no"
4278 if test "x${have_ecore_evas_software_sdl}" = "xyes" || \
4279 test "x${have_ecore_evas_opengl_sdl}" = "xyes" ; then
4280 build_ecore_evas_sdl="yes"
4281 AC_DEFINE(BUILD_ECORE_EVAS_SDL, 1, [Support for SDL Engine in Ecore_Evas])
4283 AM_CONDITIONAL([BUILD_ECORE_EVAS_SDL],
4284 [test "${build_ecore_evas_sdl}" = "yes"])
4286 ECORE_EVAS_MODULE([wayland-shm], [${want_wayland}])
4287 ECORE_EVAS_MODULE([wayland-egl], [${want_ecore_evas_wayland_egl}])
4289 build_ecore_evas_wayland="no"
4290 if test "x${have_ecore_evas_wayland_shm}" = "xyes" || \
4291 test "x${have_ecore_evas_wayland_egl}" = "xyes" ; then
4292 build_ecore_evas_wayland="yes"
4293 AC_DEFINE(BUILD_ECORE_EVAS_WAYLAND, 1, [Support for Wayland Engine in Ecore_Evas])
4295 AM_CONDITIONAL([BUILD_ECORE_EVAS_WAYLAND],
4296 [test "${build_ecore_evas_wayland}" = "yes"])
4298 ECORE_EVAS_MODULE([software-gdi], [${want_ecore_evas_software_gdi}])
4299 ECORE_EVAS_MODULE([software-ddraw], [${want_ecore_evas_software_ddraw}])
4301 build_ecore_evas_win32="no"
4302 if test "x${have_ecore_evas_software_gdi}" = "xyes" || \
4303 test "x${have_ecore_evas_software_ddraw}" = "xyes" ; then
4304 build_ecore_evas_win32="yes"
4305 AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
4307 AM_CONDITIONAL([BUILD_ECORE_EVAS_WIN32],
4308 [test "${build_ecore_evas_win32}" = "yes"])
4311 # XXX TODO: ecore_evas_x11
4313 ECORE_EVAS_MODULE([software-x11], [${want_x11_any}])
4315 have_ecore_evas_software_xlib="no"
4316 have_ecore_evas_software_xcb="no"
4317 if test "x$have_ecore_evas_software_x11" = "xyes" ; then
4318 have_ecore_evas_software_xlib=${have_evas_engine_software_xlib}
4319 if test "x${have_ecore_evas_software_xlib}" = "xstatic"; then
4320 have_ecore_evas_software_xlib="yes"
4322 if test "x${have_ecore_evas_software_xlib}" = "xyes"; then
4323 AC_DEFINE([BUILD_ECORE_EVAS_SOFTWARE_XLIB], [1], [Evas Software Xlib Engine Support])
4325 have_ecore_evas_software_xcb=${have_evas_engine_software_xcb}
4326 if test "x$have_ecore_evas_software_xcb" = "xstatic"; then
4327 have_ecore_evas_software_xcb="yes"
4329 if test "x$have_ecore_evas_software_xcb" = "xyes"; then
4330 AC_DEFINE([BUILD_ECORE_EVAS_SOFTWARE_XCB], [1], [Evas Software XCB Engine Support])
4334 # XXX TODO: ecore_evas_opengl_x11
4336 ECORE_EVAS_MODULE([opengl-x11], [${want_x11_any_opengl}])
4338 have_ecore_evas_opengl_xlib="no"
4339 have_ecore_evas_opengl_xcb="no"
4340 if test "x${have_ecore_evas_opengl_x11}" = "xyes" || test "x${have_ecore_evas_opengl_x11}" = "xstatic" ; then
4341 have_ecore_evas_opengl_xlib=${have_evas_engine_gl_xlib}
4342 if test "x${have_ecore_evas_opengl_xlib}" = "xyes" ; then
4343 AC_DEFINE([BUILD_ECORE_EVAS_OPENGL_XLIB], [1], [OpenGL Xlib rendering backend])
4346 # opengl does not work with xcb (yet)
4347 have_ecore_evas_opengl_xcb=${have_evas_engine_gl_xcb}
4348 if test "x${have_ecore_evas_opengl_xcb}" = "xstatic"; then
4349 have_ecore_evas_opengl_xcb="yes"
4351 if test "x${have_ecore_evas_opengl_xcb}" = "xyes"; then
4352 PKG_CHECK_MODULES([XCB_X11],
4355 have_ecore_x_opengl_xcb="yes"
4356 requirements_ecore_x="x11-xcb ${requirements_ecore_x}"
4357 AC_DEFINE([BUILD_ECORE_X_OPENGL_XCB], [1], [Build support for XCB-based OpenGL])
4358 AC_DEFINE([BUILD_ECORE_EVAS_OPENGL_XCB], [1], [OpenGL XCB rendering backend])
4360 [have_ecore_x_opengl_xcb="no"])
4362 have_ecore_x_opengl_xcb="no"
4363 AC_MSG_NOTICE([XCB-based OpenGL explicitly disabled])
4367 build_ecore_evas_x11="no"
4368 if test "x$have_ecore_evas_software_x11" = "xyes" || \
4369 test "x$have_ecore_evas_opengl_x11" = "xyes" || \
4370 test "x$have_ecore_evas_software_xcb" = "xyes"; then
4371 AC_DEFINE([BUILD_ECORE_EVAS_X11], [1], [Support for X Window Engines in Ecore_Evas])
4372 build_ecore_evas_x11="yes"
4374 AM_CONDITIONAL([BUILD_ECORE_EVAS_X11], [test "${build_ecore_evas_x11}" = "yes"])
4376 EFL_EVAL_PKGS([ECORE_EVAS])
4378 ### Checks for header files
4380 ### Checks for types
4382 ### Checks for structures
4384 ### Checks for compiler characteristics
4386 ### Checks for linker characteristics
4388 ### Checks for library functions
4389 if test "x${want_gl_drm}" = "xyes" ; then
4390 EFL_CHECK_FUNCS([ECORE_EVAS], [dlopen])
4393 EFL_LIB_END([Ecore_Evas])
4394 #### End of Ecore_Evas
4397 EFL_LIB_START([Eio])
4399 ### Additional options to configure
4403 ### Checks for programs
4405 ## Compatibility layers
4406 EFL_PLATFORM_DEPEND([EIO], [evil])
4408 ### Checks for libraries
4409 EFL_INTERNAL_DEPEND_PKG([EIO], [ecore])
4410 EFL_INTERNAL_DEPEND_PKG([EIO], [eet])
4411 EFL_INTERNAL_DEPEND_PKG([EIO], [eo])
4412 EFL_INTERNAL_DEPEND_PKG([EIO], [eina])
4413 EFL_INTERNAL_DEPEND_PKG([EIO], [efl])
4414 EFL_INTERNAL_DEPEND_PKG([EIO], [emile])
4416 EFL_ADD_LIBS([EIO], [-lm])
4418 ### Checks for header files
4420 ### Checks for types
4422 ### Checks for structures
4424 ### Checks for compiler characteristics
4426 ### Checks for linker characteristics
4428 ### Checks for library functions
4429 have_inotify="${ac_cv_header_sys_inotify_h}"
4430 AM_CONDITIONAL([HAVE_INOTIFY], [test "x${have_inotify}" = "xyes"])
4432 have_notify_win32="${have_win32}"
4433 AC_DEFINE_IF([HAVE_NOTIFY_WIN32],
4434 [test "x${have_notify_win32}" = "xyes"], [1],
4435 [File monitoring with Windows notification])
4436 AM_CONDITIONAL([HAVE_NOTIFY_WIN32], [test "x${have_notify_win32}" = "xyes"])
4438 AC_DEFINE_IF([HAVE_NOTIFY_COCOA],
4439 [test "x${have_darwin}" = "xyes"], [1],
4440 [File monitoring with fsevent notification])
4441 AM_CONDITIONAL([HAVE_NOTIFY_COCOA], [test "x${have_darwin}" = "xyes"])
4443 AC_CHECK_FUNC([kevent])
4444 have_notify_kevent="${ac_cv_func_kevent}"
4445 AC_DEFINE_IF([HAVE_NOTIFY_KEVENT],
4446 [test "x${have_notify_kevent}" = "xyes"], [1],
4447 [File monitoring with kqueue/kevent mechanism])
4448 AM_CONDITIONAL([HAVE_NOTIFY_KEVENT], [test "x${have_notify_kevent}" = "xyes"])
4452 dnl TODO: remove these ifdefs from code!
4453 AC_DEFINE([HAVE_EIO], [1], [Have eio library])
4457 if test "x${want_eo_id}" = "xyes" ; then
4458 AC_DEFINE([HAVE_EO_ID], [1], [Have eo id])
4463 EFL_LIB_START([Efreet])
4465 ### Additional options to configure
4469 AC_DEFINE([SLOPPY_SPEC], [1], [Sloppy Spec Compliance])
4471 ### Checks for programs
4473 ## Compatibility layers
4474 EFL_PLATFORM_DEPEND([EFREET], [evil])
4476 ### Checks for libraries
4477 EFL_INTERNAL_DEPEND_PKG([EFREET], [eet])
4478 EFL_INTERNAL_DEPEND_PKG([EFREET], [ecore])
4479 EFL_INTERNAL_DEPEND_PKG([EFREET], [ecore-file])
4480 EFL_INTERNAL_DEPEND_PKG([EFREET], [eo])
4481 EFL_INTERNAL_DEPEND_PKG([EFREET], [eina])
4482 EFL_INTERNAL_DEPEND_PKG([EFREET], [emile])
4483 EFL_INTERNAL_DEPEND_PKG([EFREET], [ecore-ipc])
4485 ### Checks for header files
4487 ### Checks for types
4489 ### Checks for structures
4491 ### Checks for compiler characteristics
4493 ### Checks for linker characteristics
4495 ### Checks for library functions
4497 EFL_LIB_END([Efreet])
4502 AC_ARG_ENABLE([physics],
4503 [AS_HELP_STRING([--disable-physics],[disable physics effects and support. @<:@default=enabled@:>@])],
4505 if test "x${enableval}" = "xyes" ; then
4508 CFOPT_WARNING="xyes"
4512 [want_physics="yes"])
4514 EFL_LIB_START_OPTIONAL([EPhysics], [test "${want_physics}" = "yes"])
4516 ### Additional options to configure
4520 ### Checks for programs
4522 ### Checks for libraries
4523 EFL_PLATFORM_DEPEND([EPHYSICS], [evil])
4525 EFL_INTERNAL_DEPEND_PKG([EPHYSICS], [eina])
4526 EFL_INTERNAL_DEPEND_PKG([EPHYSICS], [evas])
4527 EFL_INTERNAL_DEPEND_PKG([EPHYSICS], [efl])
4528 EFL_INTERNAL_DEPEND_PKG([EPHYSICS], [ecore])
4529 EFL_INTERNAL_DEPEND_PKG([EPHYSICS], [eo])
4530 EFL_INTERNAL_DEPEND_PKG([EPHYSICS], [emile])
4532 EFL_DEPEND_PKG([EPHYSICS], [BULLET], [bullet >= 2.80])
4534 EFL_EVAL_PKGS([EPHYSICS])
4536 ### Checks for header files
4538 ### Checks for types
4540 ### Checks for structures
4542 ### Checks for compiler characteristics
4544 ### Checks for linker characteristics
4546 ### Checks for library functions
4548 EFL_LIB_END_OPTIONAL([EPhysics])
4549 #### End of EPhysics
4553 EFL_LIB_START([Edje])
4555 ### Additional options to configure
4559 AC_ARG_ENABLE([multisense],
4560 [AS_HELP_STRING([--enable-multisense],[Enable multisense support. @<:@default=disabled@:>@])],
4562 if test "x${enableval}" = "xyes" ; then
4563 want_multisense="yes"
4565 want_multisense="no"
4566 CFOPT_WARNING="xyes"
4570 if test "x${want_pulseaudio}" = "xyes" -o "x${want_coreaudio}" = "xyes"; then
4571 want_multisense="yes"
4573 want_multisense="no"
4577 # TODO: should we keep or remove these?
4578 want_edje_program_cache="no"
4579 want_edje_calc_cache="yes"
4580 want_fixed_point="no"
4582 ### Checks for programs
4584 ### Checks for libraries
4585 EFL_PLATFORM_DEPEND([EDJE], [evil])
4587 EFL_INTERNAL_DEPEND_PKG([EDJE], [eina])
4588 EFL_INTERNAL_DEPEND_PKG([EDJE], [eo])
4589 EFL_INTERNAL_DEPEND_PKG([EDJE], [efl])
4590 EFL_INTERNAL_DEPEND_PKG([EDJE], [eet])
4591 EFL_INTERNAL_DEPEND_PKG([EDJE], [evas])
4592 EFL_INTERNAL_DEPEND_PKG([EDJE], [ecore])
4593 EFL_INTERNAL_DEPEND_PKG([EDJE], [ecore-evas])
4594 EFL_INTERNAL_DEPEND_PKG([EDJE], [ecore-file])
4595 EFL_INTERNAL_DEPEND_PKG([EDJE], [ecore-input])
4596 EFL_INTERNAL_DEPEND_PKG([EDJE], [ecore-imf])
4597 EFL_INTERNAL_DEPEND_PKG([EDJE], [ecore-imf-evas])
4598 EFL_INTERNAL_DEPEND_PKG([EDJE], [embryo])
4599 EFL_INTERNAL_DEPEND_PKG([EDJE], [eio])
4600 EFL_INTERNAL_DEPEND_PKG([EDJE], [emile])
4601 EFL_INTERNAL_DEPEND_PKG([EDJE], [efreet])
4603 EFL_OPTIONAL_INTERNAL_DEPEND_PKG([EDJE], [${want_physics}], [ephysics])
4604 EFL_OPTIONAL_INTERNAL_DEPEND_PKG([EDJE], [${want_multisense}], [ecore-audio])
4606 EFL_ADD_FEATURE([EDJE], [physics])
4607 EFL_ADD_FEATURE([EDJE], [multisense])
4608 EFL_ADD_FEATURE([EDJE], [lua-old])
4610 if test "${want_lua_old}" = "yes"; then
4611 EFL_CHECK_LUA_OLD([EDJE])
4613 EFL_DEPEND_PKG([EDJE], [LUAJIT], [luajit >= 2.0.0])
4616 EFL_ADD_LIBS([EDJE], [-lm])
4618 EFL_EVAL_PKGS([EDJE])
4620 AC_DEFINE_IF([EDJE_PROGRAM_CACHE], [test "${want_edje_program_cache}" = "yes"],
4621 [1], [Cache result of program glob matches])
4622 AC_DEFINE_IF([EDJE_CALC_CACHE], [test "${want_edje_calc_cache}" = "yes"],
4623 [1], [Cache result of calc glob matches])
4624 AC_DEFINE_IF([BUILD_EDJE_FP], [test "${want_fixed_point}" = "yes"],
4625 [1], [Use Fixed Point instead of FPU])
4627 AM_CONDITIONAL([ENABLE_MULTISENSE], [test "${want_multisense}" = "yes"])
4628 AC_DEFINE_IF([ENABLE_MULTISENSE], [test "${want_multisense}" = "yes"],
4629 [1], [Use Multisense])
4630 AC_SUBST([want_multisense])
4631 AC_SUBST([want_physics])
4633 ### Checks for header files
4635 AC_CHECK_HEADERS([ \
4639 ### Checks for types
4641 ### Checks for structures
4643 ### Checks for compiler characteristics
4645 ### Checks for linker characteristics
4647 ### Checks for library functions
4653 EFL_LIB_START([Edje_Cxx])
4655 EFL_EVAL_PKGS([EDJE_CXX])
4657 EFL_LIB_END([Edje_Cxx])
4658 #### End of Edje CXX
4661 EFL_LIB_START([Emotion])
4663 ## Compatibility layers
4664 EFL_PLATFORM_DEPEND([Emotion], [evil])
4667 if test "${efl_func_shm_open}" = "yes"; then
4668 want_emotion_generic="static"
4670 want_emotion_generic="no"
4673 ### Additional options to configure
4674 AC_ARG_ENABLE([xine],
4675 [AS_HELP_STRING([--enable-xine],[enable xine support. @<:@default=disabled@:>@])],
4677 if test "x${enableval}" = "xyes" ; then
4685 AC_ARG_ENABLE([v4l2],
4686 [AS_HELP_STRING([--enable-v4l2],[enable v4l2 support.])],
4688 if test "x${enableval}" = "xyes" ; then
4694 [want_v4l2="${efl_lib_optional_eeze}"])
4696 AC_ARG_ENABLE([libvlc],
4697 [AS_HELP_STRING([--enable-libvlc],[enable libvlc support. @<:@default=disabled@:>@])],
4699 if test "x${enableval}" = "xyes" ; then
4707 ### Checks for programs
4709 ### Checks for libraries
4710 EFL_INTERNAL_DEPEND_PKG([EMOTION], [eina])
4711 EFL_INTERNAL_DEPEND_PKG([EMOTION], [eo])
4712 EFL_INTERNAL_DEPEND_PKG([EMOTION], [ecore])
4713 EFL_INTERNAL_DEPEND_PKG([EMOTION], [eet])
4714 EFL_INTERNAL_DEPEND_PKG([EMOTION], [evas])
4715 EFL_INTERNAL_DEPEND_PKG([EMOTION], [efl])
4716 EFL_INTERNAL_DEPEND_PKG([EMOTION], [eio])
4717 EFL_INTERNAL_DEPEND_PKG([EMOTION], [emile])
4719 EFL_OPTIONAL_INTERNAL_DEPEND_PKG([EMOTION], [${efl_lib_optional_eeze}], [eeze])
4720 EFL_ADD_FEATURE([EMOTION], [v4l2])
4724 have_gst_xoverlay="no"
4726 EMOTION_MODULE([xine], [${want_xine}])
4727 EMOTION_MODULE([gstreamer], [${want_gstreamer}])
4728 EMOTION_MODULE([gstreamer1], [${want_gstreamer1}])
4729 EMOTION_MODULE([libvlc], [${want_libvlc}])
4730 EMOTION_MODULE([generic], [${want_emotion_generic}])
4732 EFL_ADD_FEATURE([EMOTION], [xine])
4733 EFL_ADD_FEATURE([EMOTION], [gstreamer])
4734 EFL_ADD_FEATURE([EMOTION], [gstreamer1])
4735 EFL_ADD_FEATURE([EMOTION], [libvlc])
4736 EFL_ADD_FEATURE([EMOTION], [generic], [${want_emotion_generic}])
4738 EFL_EVAL_PKGS([EMOTION])
4740 ### Checks for header files
4742 ### Checks for types
4744 ### Checks for structures
4746 ### Checks for compiler characteristics
4748 ### Checks for linker characteristics
4750 ### Checks for library functions
4752 if test "${want_v4l2}" = "yes"; then
4753 AC_CHECK_DECL([V4L2_CAP_VIDEO_CAPTURE],
4754 [AC_DEFINE([HAVE_V4L2], [1], [Define to 1 if you have Video4Linux 2 available])],
4755 [AC_MSG_ERROR([Video4Linux 2 desired but not found. See --disable-v4l2.])],
4756 [#include <linux/videodev2.h>])
4759 ### Check availability
4761 EFL_LIB_END([Emotion])
4766 EFL_LIB_START([Ethumb])
4770 ### Additional options to configure
4772 ### Checks for programs
4774 ## Compatibility layers
4775 EFL_PLATFORM_DEPEND([ETHUMB], [evil])
4777 ### Checks for libraries
4778 EFL_PLATFORM_DEPEND([EINA], [evil])
4780 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [eina])
4781 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [eet])
4782 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [evas])
4783 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [efl])
4784 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [eo])
4785 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [ecore])
4786 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [ecore-evas])
4787 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [ecore-file])
4788 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [ecore-imf])
4789 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [edje])
4790 EFL_INTERNAL_DEPEND_PKG([ETHUMB], [emile])
4794 EFL_EVAL_PKGS([ETHUMB])
4796 ### Checks for header files
4798 ### Checks for types
4800 ### Checks for structures
4802 ### Checks for compiler characteristics
4804 ### Checks for linker characteristics
4806 ### Checks for library functions
4808 ### Check availability
4810 EFL_LIB_END([Ethumb])
4814 EFL_LIB_START([Ethumb_Client])
4818 ### Additional options to configure
4820 ### Checks for programs
4822 ## Compatibility layers
4823 EFL_PLATFORM_DEPEND([ETHUMB_CLIENT], [evil])
4825 ### Checks for libraries
4826 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [eina])
4827 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [eo])
4828 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [efl])
4829 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [eet])
4830 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [ecore])
4831 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [ecore-imf])
4832 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [edje])
4833 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [eldbus])
4834 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [ethumb])
4835 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [evas])
4836 EFL_INTERNAL_DEPEND_PKG([ETHUMB_CLIENT], [emile])
4838 EFL_EVAL_PKGS([ETHUMB_CLIENT])
4840 ### Checks for header files
4842 ### Checks for types
4844 ### Checks for structures
4846 ### Checks for compiler characteristics
4848 ### Checks for linker characteristics
4850 ### Checks for library functions
4852 ### Check availability
4854 EFL_LIB_END([Ethumb_Client])
4855 #### End of Ethumb_Client
4860 if test "${want_lua_old}" = "yes"; then
4864 EFL_LIB_START_OPTIONAL([Elua], [test "${have_elua}" = "yes"])
4868 AM_CONDITIONAL([HAVE_ELUA], [test "x${have_elua}" = "xyes"])
4870 ### Additional options to configure
4872 ### Checks for programs
4874 ## Compatibility layers
4875 EFL_PLATFORM_DEPEND([ELUA], [evil])
4877 ### Checks for libraries
4878 EFL_INTERNAL_DEPEND_PKG([ELUA], [eina])
4879 EFL_INTERNAL_DEPEND_PKG([ELUA], [eo])
4880 EFL_INTERNAL_DEPEND_PKG([ELUA], [ecore])
4882 EFL_DEPEND_PKG([ELUA], [LUAJIT], [luajit >= 2.0.0])
4884 EFL_EVAL_PKGS([ELUA])
4886 ### Checks for header files
4888 ### Checks for types
4890 ### Checks for structures
4892 ### Checks for compiler characteristics
4894 ### Checks for linker characteristics
4896 ### Checks for library functions
4898 ### Check availability
4900 EFL_LIB_END_OPTIONAL([Elua])
4905 EFL_LIB_START([Elocation])
4909 ### Additional options to configure
4911 ### Checks for programs
4913 ### Checks for libraries
4914 EFL_PLATFORM_DEPEND([ELOCATION], [evil])
4915 EFL_INTERNAL_DEPEND_PKG([ELOCATION], [eina])
4916 EFL_INTERNAL_DEPEND_PKG([ELOCATION], [eo])
4917 EFL_INTERNAL_DEPEND_PKG([ELOCATION], [ecore])
4918 EFL_INTERNAL_DEPEND_PKG([ELOCATION], [eldbus])
4920 EFL_ADD_LIBS([ELOCATION], [-lm])
4922 ### Checks for header files
4924 ### Checks for types
4926 ### Checks for structures
4928 ### Checks for compiler characteristics
4930 ### Checks for linker characteristics
4932 ### Checks for library functions
4934 ### Check availability
4936 EFL_LIB_END([Elocation])
4937 #### End of Elocation
4942 EFL_LIB_START_OPTIONAL([Efl_Js], [test "x${have_js}" = "xyes"])
4946 ### Additional options to configure
4948 ### Checks for programs
4950 ### Checks for libraries
4951 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Eina])
4952 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Eo])
4953 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Ecore])
4954 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Eet])
4955 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Ecore_Evas])
4956 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Ecore_Con])
4957 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Ecore_Audio])
4958 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Efl])
4959 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Evas])
4960 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Edje])
4961 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Emotion])
4962 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Eldbus])
4963 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Emile])
4964 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Ethumb_Client])
4965 EFL_INTERNAL_DEPEND_PKG([EFL_JS], [Eio])
4967 AM_COND_IF([HAVE_NODEJS], [], [ EFL_ADD_LIBS([EFL_JS], [-lv8]) ])
4969 EFL_EVAL_PKGS([EFL_JS])
4971 AM_COND_IF([HAVE_NODEJS], [EFLJS_CXXFLAGS="$EFLJS_CXXFLAGS -DHAVE_NODEJS"], [])
4972 AM_COND_IF([HAVE_LIBUV], [EFLJS_CXXFLAGS="$EFLJS_CXXFLAGS -DHAVE_LIBUV"], [])
4973 AM_COND_IF([HAVE_JS], [EFLJS_CXXFLAGS="$EFLJS_CXXFLAGS -DHAVE_JS"], [])
4975 AM_COND_IF([HAVE_V8_CREATE_PARAMS], [EFLJS_CXXFLAGS="$EFLJS_CXXFLAGS -DHAVE_V8_CREATE_PARAMS"], [])
4976 AM_COND_IF([HAVE_V8_GLOBAL], [EFLJS_CXXFLAGS="$EFLJS_CXXFLAGS -DHAVE_V8_GLOBAL"], [])
4977 AC_SUBST([EFLJS_CXXFLAGS])
4979 ### Checks for header files
4981 ### Checks for types
4983 ### Checks for structures
4985 ### Checks for compiler characteristics
4987 ### Checks for linker characteristics
4989 ### Checks for library functions
4991 ### Check availability
4993 EFL_LIB_END_OPTIONAL([Efl_Js])
4996 ### Add Wayland server library if test is enabled
4997 if test "x${want_tests}" = "xyes" -a "x${want_wayland}" = "xyes"; then
4998 EFL_DEPEND_PKG([ECORE_WAYLAND_SRV], [WAYLAND], [wayland-server >= 1.8.0])
4999 EFL_EVAL_PKGS([ECORE_WAYLAND_SRV])
5002 AC_ARG_ENABLE([always-build-examples],
5003 [AS_HELP_STRING([--enable-always-build-examples],[always build examples. @<:@default=disabled@:>@])],
5005 if test "x${enableval}" = "xyes" ; then
5006 want_always_build_examples="yes"
5008 want_always_build_examples="no"
5011 [want_always_build_examples="no"])
5012 AM_CONDITIONAL([ALWAYS_BUILD_EXAMPLES], [test "${want_always_build_examples}" = "yes"])
5016 AC_ARG_ENABLE([i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb],
5017 [ You will be told when this is needed ],
5019 if test "x${enableval}" = "xyes" ; then
5028 build_ecore_buffer_x11_dri2="no"
5029 build_ecore_buffer_x11_dri3="no"
5030 EFL_LIB_START_OPTIONAL([Ecore_Buffer], [test "${want_ecore_buffer}" = "yes"])
5031 ### Checks for libraries
5032 EFL_INTERNAL_DEPEND_PKG([ECORE_BUFFER], [eina])
5033 EFL_INTERNAL_DEPEND_PKG([ECORE_BUFFER], [eo])
5034 EFL_INTERNAL_DEPEND_PKG([ECORE_BUFFER], [ecore])
5035 EFL_DEPEND_PKG([ECORE_BUFFER], [WAYLAND],
5036 [wayland-server >= 1.5.0 wayland-client >= 1.5.0])
5038 PKG_CHECK_MODULES([X11_DRI_COMMON],
5043 [have_x11_dri_common_pkgs="yes"],
5044 [have_x11_dri_common_pkgs="no"]
5047 if test "x$have_x11_dri_common_pkgs" = "xyes" ; then
5048 EFL_INTERNAL_DEPEND_PKG([ECORE_BUFFER], [ecore_x])
5050 PKG_CHECK_MODULES([X11_DRI2], [libdri2],
5051 [have_x11_dri2_pkgs="yes"],
5052 [have_x11_dri2_pkgs="no"])
5053 PKG_CHECK_MODULES([X11_DRI3],
5061 [have_x11_dri3_pkgs="yes"],
5062 [have_x11_dri3_pkgs="no"])
5065 if test "x${have_x11_dri2_pkgs}" = "xyes" ; then
5066 build_ecore_buffer_x11_dri2="yes"
5067 AC_DEFINE(BUILD_ECORE_BUFFER_X11_DRI2, 1, [Support for X11_DRI2 Backend in Ecore_Buffer])
5070 if test "x${have_x11_dri3_pkgs}" = "xyes" ; then
5071 build_ecore_buffer_x11_dri3="yes"
5072 AC_DEFINE(BUILD_ECORE_BUFFER_X11_DRI3, 1, [Support for X11_DRI3 Backend in Ecore_Buffer])
5074 EFL_EVAL_PKGS([ECORE_BUFFER])
5076 EFL_ADD_FEATURE([ECORE_BUFFER], [shm], ["yes"])
5077 EFL_ADD_FEATURE([ECORE_BUFFER], [x11_dri2], [${build_ecore_buffer_x11_dri2}])
5078 EFL_ADD_FEATURE([ECORE_BUFFER], [x11_dri3], [${build_ecore_buffer_x11_dri3}])
5080 EFL_LIB_END_OPTIONAL([Ecore_Buffer])
5082 AM_CONDITIONAL([BUILD_ECORE_BUFFER_X11_DRI2], [test "${build_ecore_buffer_x11_dri2}" = "xyes"])
5083 AM_CONDITIONAL([BUILD_ECORE_BUFFER_X11_DRI3], [test "${build_ecore_buffer_x11_dri3}" = "xyes"])
5085 #### End of Ecore_Buffer
5090 EFL_LIB_START([Elementary])
5094 ### Additional options to configure
5096 ## Elementary base dir
5098 AC_ARG_WITH([elementary-base-dir],
5099 [AS_HELP_STRING([--with-elementary-base-dir=PATH], [specify the subdirectory for all elementary data @<:@default=${elementary_base_dir}@:>@])],
5100 [elementary_base_dir=${withval}],
5101 [elementary_base_dir=".elementary"])
5103 AC_MSG_NOTICE([ELEMENTARY_BASE_DIR set to ${elementary_base_dir}])
5104 AC_DEFINE_UNQUOTED([ELEMENTARY_BASE_DIR], ["${elementary_base_dir}"], ["subdirectory for all elementary data"])
5108 AC_ARG_ENABLE([debug],
5109 [AS_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
5110 [want_elementary_debug=$enableval],
5111 [want_elementary_debug="no"])
5113 ELM_DEBUG_DEF="#undef"
5114 if test "x$want_elementary_debug" = "xyes"; then
5115 AC_DEFINE([HAVE_ELEMENTARY_DEBUG], [1], [Elementary debug.])
5116 ELM_DEBUG_DEF="#define"
5118 AC_SUBST([ELM_DEBUG_DEF])
5120 ## quicklaunch support
5122 AC_ARG_ENABLE([quick-launch],
5123 [AS_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
5124 [want_quicklaunch=$enableval],
5125 [want_quicklaunch="auto"])
5127 ### Checks for programs
5129 ### Checks for libraries
5131 ## Compatibility layers
5133 EFL_PLATFORM_DEPEND([ELEMENTARY], [evil])
5135 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [eina])
5136 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [emile])
5137 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [eet])
5138 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [eo])
5139 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [efl])
5140 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [evas])
5141 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [ecore])
5142 EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${build_ecore_evas_x11}], [ecore_x])
5143 EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${want_drm}], [ecore_drm])
5144 EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${build_ecore_evas_wayland}], [ecore_wl2])
5145 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [ecore-evas])
5146 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [ecore-file])
5147 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [ecore-input])
5148 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [edje])
5149 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [ethumb])
5150 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [ethumb_client])
5151 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [emotion])
5152 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [ecore-imf])
5153 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [ecore-con])
5154 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [eio])
5155 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [eldbus])
5156 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [efreet])
5157 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [efreet-mime])
5158 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [efreet-trash])
5159 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY], [elocation])
5161 EFL_ADD_LIBS([ELEMENTARY], [-lm])
5163 ELM_CHECK_BACKEND([X], [${want_x11_any}])
5164 ELM_CHECK_BACKEND([FB], [${want_fb}])
5165 ELM_CHECK_BACKEND([PSL1GHT], [${have_ps3}])
5166 ELM_CHECK_BACKEND([SDL], [${want_sdl}])
5167 ELM_CHECK_BACKEND([Cocoa], [${want_ecore_evas_gl_cocoa}])
5168 ELM_CHECK_BACKEND([Win32], [${build_ecore_evas_win32}])
5169 ELM_CHECK_BACKEND([Wl2], [${build_ecore_evas_wayland}])
5170 ELM_CHECK_BACKEND([DRM], [${want_drm}])
5172 EFL_EVAL_PKGS([ELEMENTARY])
5174 ### Checks for header files
5176 ELM_ALLOCA_H_DEF="#undef"
5177 AC_CHECK_HEADER([alloca.h], [ELM_ALLOCA_H_DEF="#define"])
5178 AC_SUBST([ELM_ALLOCA_H_DEF])
5180 ELM_LIBINTL_H_DEF="#undef"
5181 AC_CHECK_HEADER([libintl.h], [ELM_LIBINTL_H_DEF="#define"])
5182 AC_SUBST([ELM_LIBINTL_H_DEF])
5184 ELM_DIRENT_H_DEF="#undef"
5185 AC_CHECK_HEADER([dirent.h], [ELM_DIRENT_H_DEF="#define"])
5186 AC_SUBST([ELM_DIRENT_H_DEF])
5188 AC_CHECK_HEADER([sys/mman.h], [have_mman="yes"], [have_mman="no"])
5189 if test "x${have_mman}" = "xyes"; then
5190 AC_DEFINE([HAVE_MMAN_H], [1], [Have sys/mman.h header file])
5193 AC_CHECK_HEADERS([locale.h langinfo.h sys/times.h])
5197 AC_CHECK_HEADERS([crt_externs.h])
5201 ### Checks for types
5203 ### Checks for structures
5205 ### Checks for compiler characteristics
5207 ### Checks for linker characteristics
5216 AC_CHECK_LIB([socket], [connect],
5219 requirement_elm_libs="-lsocket ${requirement_elm_libs}"
5231 AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
5233 # Check if we can build binary with quicklaunch support
5236 ### Checks for library functions
5238 EFL_CHECK_FUNCS([ELEMENTARY], [dlopen])
5242 AC_CHECK_FUNCS([geteuid getuid getpwent])
5244 if test "x${want_quicklaunch}" != "xno"; then
5245 AC_CHECK_FUNCS([fork clearenv])
5248 build_quicklaunch="no"
5249 if test "x${ac_cv_func_fork}" = "xyes" -a "x${efl_func_dlopen}" = "xyes"; then
5250 build_quicklaunch="yes"
5252 echo ${build_quicklaunch}
5254 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x${build_quicklaunch}" = "xyes"])
5255 EFL_ADD_FEATURE([ELEMENTARY], [quicklaunch], [${build_quicklaunch}])
5262 # define _GNU_SOURCE 1
5266 extern char **environ;
5269 [AC_DEFINE([HAVE_ENVIRON], [1], [extern environ exists])])
5273 AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
5277 ### Check availability
5279 EFL_LIB_END([Elementary])
5281 #### End of Elementary
5285 EFL_LIB_START([Elementary_Cxx])
5287 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_CXX], [Eina_Cxx])
5288 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_CXX], [Eet_Cxx])
5289 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_CXX], [Ecore_Cxx])
5290 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_CXX], [Ecore])
5291 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_CXX], [Eina])
5292 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_CXX], [Eo])
5293 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_CXX], [Efl])
5294 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_CXX], [Elementary])
5296 EFL_EVAL_PKGS([ELEMENTARY_CXX])
5298 EFL_LIB_END([Elementary_Cxx])
5299 #### End of Ecore CXX
5303 EFL_LIB_START_OPTIONAL([Elementary_Js], [test "x${have_js}" = "xyes"])
5307 ### Additional options to configure
5309 ### Checks for programs
5311 ### Checks for libraries
5312 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Eina])
5313 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Eo])
5314 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Ecore])
5315 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Eet])
5316 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Ecore_Evas])
5317 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Ecore_Con])
5318 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Ecore_Audio])
5319 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Efl])
5320 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Evas])
5321 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Edje])
5322 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Emotion])
5323 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Eldbus])
5324 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Emile])
5325 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Ethumb_Client])
5326 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Eio])
5327 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Elementary])
5328 EFL_INTERNAL_DEPEND_PKG([ELEMENTARY_JS], [Efl_Js])
5330 AM_COND_IF([HAVE_NODEJS], [], [ EFL_ADD_LIBS([ELEMENTARY_JS], [-lv8]) ])
5332 EFL_EVAL_PKGS([ELEMENTARY_JS])
5334 AM_COND_IF([HAVE_NODEJS], [ELEMENTARYJS_CXXFLAGS="$ELEMENTARYJS_CXXFLAGS -DHAVE_NODEJS"], [])
5335 AM_COND_IF([HAVE_LIBUV], [ELEMENTARYJS_CXXFLAGS="$ELEMENTARYJS_CXXFLAGS -DHAVE_LIBUV"], [])
5336 AM_COND_IF([HAVE_JS], [ELEMENTARYJS_CXXFLAGS="$ELEMENTARYJS_CXXFLAGS -DHAVE_JS"], [])
5338 AM_COND_IF([HAVE_V8_CREATE_PARAMS], [ELEMENTARYJS_CXXFLAGS="$ELEMENTARYJS_CXXFLAGS -DHAVE_V8_CREATE_PARAMS"], [])
5339 AM_COND_IF([HAVE_V8_GLOBAL], [ELEMENTARYJS_CXXFLAGS="$ELEMENTARYJS_CXXFLAGS -DHAVE_V8_GLOBAL"], [])
5340 AC_SUBST([ELEMENTARYJS_CXXFLAGS])
5342 ### Checks for header files
5344 ### Checks for types
5346 ### Checks for structures
5348 ### Checks for compiler characteristics
5350 ### Checks for linker characteristics
5352 ### Checks for library functions
5354 ### Check availability
5356 EFL_LIB_END_OPTIONAL([ELEMENTARY_JS])
5364 doc/previews/Makefile
5366 src/benchmarks/eina/Makefile
5367 src/benchmarks/eo/Makefile
5368 src/benchmarks/evas/Makefile
5369 src/examples/eina/Makefile
5370 src/examples/eina_cxx/Makefile
5371 src/examples/eet/Makefile
5372 src/examples/evas/Makefile
5373 src/examples/ecore/Makefile
5374 src/examples/ecore_avahi/Makefile
5375 src/examples/eio/Makefile
5376 src/examples/eldbus/Makefile
5377 src/examples/ephysics/Makefile
5378 src/examples/edje/Makefile
5379 src/examples/emotion/Makefile
5380 src/examples/emile/Makefile
5381 src/examples/ethumb_client/Makefile
5382 src/examples/elua/Makefile
5383 src/examples/eolian_cxx/Makefile
5384 src/examples/elocation/Makefile
5385 src/lib/eina/eina_config.h
5386 src/lib/ecore_x/ecore_x_version.h
5387 src/lib/efl/Efl_Config.h
5388 src/lib/elementary/Elementary.h
5410 pc/evas-opengl-x11.pc
5411 pc/evas-opengl-sdl.pc
5412 pc/evas-opengl-cocoa.pc
5414 pc/evas-software-buffer.pc
5415 pc/evas-software-x11.pc
5416 pc/evas-software-gdi.pc
5417 pc/evas-software-ddraw.pc
5418 pc/evas-software-sdl.pc
5419 pc/evas-wayland-shm.pc
5420 pc/evas-wayland-egl.pc
5430 pc/ecore-input-evas.pc
5442 pc/ecore-imf-evas.pc
5444 pc/ecore-audio-cxx.pc
5464 dbus-services/org.enlightenment.Ethumb.service
5465 systemd-services/ethumb.service
5467 cmakeconfig/EflConfig.cmake
5468 cmakeconfig/EflConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5469 cmakeconfig/EinaConfig.cmake
5470 cmakeconfig/EinaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5471 cmakeconfig/EioConfig.cmake
5472 cmakeconfig/EioConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5473 cmakeconfig/EezeConfig.cmake
5474 cmakeconfig/EezeConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5475 cmakeconfig/EoConfig.cmake
5476 cmakeconfig/EoConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5477 cmakeconfig/EolianConfig.cmake
5478 cmakeconfig/EolianConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5479 cmakeconfig/EolianHelper.cmake
5480 cmakeconfig/EolianCxxConfig.cmake
5481 cmakeconfig/EolianCxxConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5482 cmakeconfig/EinaCxxConfig.cmake
5483 cmakeconfig/EinaCxxConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5484 cmakeconfig/EoCxxConfig.cmake
5485 cmakeconfig/EoCxxConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5486 cmakeconfig/EcoreCxxConfig.cmake
5487 cmakeconfig/EcoreCxxConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5488 cmakeconfig/EvasCxxConfig.cmake
5489 cmakeconfig/EvasCxxConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5490 cmakeconfig/EetCxxConfig.cmake
5491 cmakeconfig/EetCxxConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5492 cmakeconfig/EetConfig.cmake
5493 cmakeconfig/EetConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5494 cmakeconfig/EvasConfig.cmake
5495 cmakeconfig/EvasConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5496 cmakeconfig/EcoreConfig.cmake
5497 cmakeconfig/EcoreConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5498 cmakeconfig/EdjeConfig.cmake
5499 cmakeconfig/EdjeConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5500 cmakeconfig/EldbusConfig.cmake
5501 cmakeconfig/EldbusConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5502 cmakeconfig/EfreetConfig.cmake
5503 cmakeconfig/EfreetConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5504 cmakeconfig/EthumbConfig.cmake
5505 cmakeconfig/EthumbConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5506 cmakeconfig/EthumbClientConfig.cmake
5507 cmakeconfig/EthumbClientConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5508 cmakeconfig/EmotionConfig.cmake
5509 cmakeconfig/EmotionConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5510 cmakeconfig/EluaConfig.cmake
5511 cmakeconfig/EluaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5512 cmakeconfig/EmileConfig.cmake
5513 cmakeconfig/EmileConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
5518 #### Work around bug in automake check macro
5519 ## yes it is hugly, but no choice here for now.
5520 $SED -i "s/am__is_gnu_make = test -n '\$(MAKEFILE_LIST)' && test -n '\$(MAKELEVEL)'/ifdef MAKEFILE_LIST\nifdef MAKELEVEL\nam__is_gnu_make = true\nelse\nam__is_gnu_make = false\nendif\nelse\nam__is_gnu_make = false\nendif/" src/Makefile
5522 if test -f $srcdir/config.status; then
5523 TO="$SED -i \"s/am__is_gnu_make = test -n '\\\\\$(MAKEFILE_LIST)' \&\& test -n '\\\\\$(MAKELEVEL)'/ifdef MAKEFILE_LIST\\\nifdef MAKELEVEL\\\nam__is_gnu_make = true\\\nelse\\\nam__is_gnu_make = false\\\nendif\\\nelse\\\nam__is_gnu_make = false\\\nendif/\" src/Makefile\nas_fn_exit 0"
5524 $SED -i "s|as_fn_exit 0|$TO|" $srcdir/config.status
5529 EFL_ADD_FEATURE([EO], [eo-id], [${want_eo_id}])
5533 EFL_ADD_FEATURE([cpu], [mmx], [${build_cpu_mmx}])
5534 EFL_ADD_FEATURE([cpu], [sse3], [${build_cpu_sse3}])
5537 EFL_ADD_FEATURE([cpu], [altivec], [${build_cpu_altivec}])
5540 EFL_ADD_FEATURE([cpu], [neon], [${build_cpu_neon}])
5543 EFL_ADD_FEATURE([cpu], [neon], [${build_cpu_neon}])
5547 if test "${have_linux}" = "yes"; then
5548 EFL_ADD_FEATURE([system], [inotify])
5549 EFL_ADD_FEATURE([system], [atfile_source])
5550 elif test "${have_windows}" = "yes"; then
5551 EFL_ADD_FEATURE([system], [notify_win32])
5553 EFL_ADD_FEATURE([system], [ipv6])
5555 if test "x${efl_have_posix_threads_spinlock}" = "xyes" || test "x${efl_have_osx_spinlock}" = "xyes"; then
5556 efl_have_spinlock="yes"
5558 efl_have_spinlock="no"
5560 EFL_ADD_FEATURE([thread], [spinlocks], [${efl_have_spinlock}])
5561 EFL_ADD_FEATURE([thread], [barrier], [${efl_have_pthread_barrier}])
5562 EFL_ADD_FEATURE([thread], [affinity], [${efl_have_setaffinity}])
5563 EFL_ADD_FEATURE([thread], [setname], [${efl_have_setname}])
5564 EFL_ADD_FEATURE([thread], [__thread], [${have_thread_specifier}])
5569 echo "------------------------------------------------------------------------"
5570 echo "$PACKAGE_NAME $PACKAGE_VERSION"
5571 echo "------------------------------------------------------------------------"
5574 if test "x${have_windows}" = "xyes" ; then
5575 osname="${host_os}(${_efl_windows_version})"
5580 if test "x${want_egl}" = "xyes" ; then
5586 echo "Configuration...: ${COLOR_OTHER}profile=${build_profile} os=${osname}${COLOR_RESET}"
5587 echo " EFL API Set...: ${efl_api}"
5588 echo " CPU Extensions: ${host_cpu} (${features_cpu})"
5589 echo " System Feature: ${features_system}"
5590 echo " Threads.......: ${efl_have_threads} (${features_thread})"
5591 echo " Cryptography..: ${build_crypto}"
5592 echo " X11...........: ${with_x11}"
5593 echo " OpenGL........: ${with_opengl} ${opengl_egl}"
5594 echo " C++11.........: ${have_cxx11}"
5595 echo " JavaScript....: ${want_js}"
5596 echo " JavaScript flg: $EINA_JS_LIBS"
5597 echo "Eina............: yes (${features_eina} unwind=$have_unwind)"
5598 echo "Eo..............: yes (${features_eo})"
5599 echo "Eolian..........: yes (${features_eolian})"
5600 echo "Emile...........: yes (${features_emile})"
5601 echo "Eet.............: yes"
5602 echo "Evas............: yes (${features_evas})"
5603 echo " Engines.......: ${features_evas_engine}"
5604 echo " Image Loaders.: ${features_evas_loader}"
5605 if test "x${have_pixman}" = "xyes" ; then
5606 echo " Pixman........: ${features_evas_pixman}"
5608 echo "Ecore...........: yes (${features_ecore})"
5609 echo "Ecore_Con.......: yes (${features_ecore_con})"
5610 echo "Ecore_File......: yes"
5611 echo "Ecore_IMF.......: yes (${features_ecore_imf})"
5612 echo "Ecore_X.........: ${with_x11} (${features_ecore_x})"
5613 echo "Ecore_SDL.......: $want_sdl"
5614 echo "Ecore_Wayland...: $want_wayland"
5615 echo "Ecore_Wl2.......: $want_wayland"
5616 echo "IVI-Shell.......: $want_wayland_ivi_shell"
5617 echo "Ecore_Buffer....: $want_ecore_buffer (${features_ecore_buffer})"
5618 if test "${have_linux}" = "yes"; then
5619 echo "Ecore_FB........: $want_fb (${features_ecore_fb})"
5620 elif test "${have_ps3}" = "yes"; then
5621 echo "Ecore_PSL1GHT...: $have_ps3"
5622 elif test "${have_darwin}" = "yes"; then
5623 echo "Ecore_Cocoa.....: $efl_lib_optional_ecore_cocoa"
5624 elif test "${have_windows}" = "yes"; then
5625 echo "Ecore_Win32.....: $have_win32"
5627 echo "Ecore_Audio.....: ${efl_lib_optional_ecore_audio} (${features_ecore_audio})"
5628 echo "Ecore_Avahi.....: yes (${features_ecore_avahi})"
5629 echo "Ecore_Evas......: yes (${features_ecore_evas})"
5630 echo "Ector...........: yes"
5631 echo "Eeze............: ${efl_lib_optional_eeze} (${features_eeze})"
5632 echo "EPhysics........: ${efl_lib_optional_ephysics}"
5633 echo "Edje............: yes (${features_edje})"
5634 echo "Emotion.........: yes (${features_emotion})"
5635 echo "Ethumb..........: yes"
5636 echo "Ethumb_Client...: yes"
5637 echo "Elua............: $have_elua"
5638 echo "Elementary......: yes (${features_elementary})"
5643 if test "${build_tests}" = "none"; then
5644 echo "Tests...........: no"
5645 elif test "${build_tests}" = "auto"; then
5646 echo "Tests...........: make check (inexplicitly enabled)"
5647 elif test "${build_tests}" = "regular"; then
5648 echo "Tests...........: make check"
5649 elif test "${build_tests}" = "coverage"; then
5650 echo "Tests...........: make lcov-check"
5652 echo "Examples........: make examples (make install-examples)"
5653 if test "x${build_doc}" = "xyes"; then
5654 echo "Documentation...: make doc"
5656 echo "Documentation...: no"
5658 echo "Compilation.....: make (or gmake)"
5659 echo " CPPFLAGS......: $CPPFLAGS"
5660 echo " CFLAGS........: $CFLAGS"
5661 echo " CXXFLAGS......: $CXXFLAGS"
5662 echo " LDFLAGS.......: $LDFLAGS"
5663 echo " EFLJS_CXXFLAGS: $EFLJS_CXXFLAGS"
5665 if test "x${with_binary_edje_cc}" != "x"; then
5666 echo " edje_cc.......: ${with_binary_edje_cc}"
5669 if test "x${with_binary_eolian_gen}" != "x"; then
5670 echo " eolian_gen....: ${with_binary_eolian_gen}"
5673 if test "x${with_binary_eolian_cxx}" != "x"; then
5674 echo " eolian_cxx....: ${with_binary_eolian_cxx}"
5677 if test "x${with_binary_elua_bin}" != "x"; then
5678 echo " elua..........: ${with_binary_elua_bin}"
5682 echo "Installation....: make install (as root if needed, with 'su' or 'sudo')"
5683 echo " prefix........: $prefix"
5684 echo " dbus units....: $dbusservicedir"
5685 if test "${have_systemd_user_session}" = "yes"; then
5686 echo " systemd units.: $USER_SESSION_DIR"
5690 if test "x${have_systemd_pkg}" = "xyes" -a "x${want_systemd}" = "xno"; then
5691 echo " _________________________________________"
5692 echo "/ Systemd dependency is available on your \\"
5693 echo "| system, but you are building without |"
5694 echo "| systemd support. Don't forget to |"
5695 echo "| --enable-systemd if you want systemd |"
5696 echo "\\ integration for EFL. /"
5697 echo " -----------------------------------------"
5699 echo " \\ (oo)\\_______"
5700 echo " (__)\\ )\\/\\"
5705 if test -n "$CFOPT_WARNING"; then
5706 echo "_____________________________________________________________________"
5708 echo "==-- WARNING --=="
5710 echo "_____________________________________________________________________"
5711 if test "x${with_x11}" = "xxcb"; then
5712 echo "_____________________________________________________________________"
5713 echo "You have chosen to use XCB instead of Xlib. It is a myth that XCB"
5714 echo "is amazingly faster than Xlib (when used sensibly). It can be"
5715 echo "faster in a few corner cases on startup of an app, but it comes"
5716 echo "with many downsides. One of those is more complex code inside"
5717 echo "ecore_x, which is far less tested in XCB mode than Xlib. Also"
5718 echo "the big catch is that OpenGL support basically requires Xlib anyway"
5719 echo "so if you want OpenGL in X11, you need Xlib regardless and so you"
5720 echo "gain nothing really in terms of speed and no savings in memory"
5721 echo "because Xlib is still linked, loaded and used, BUT instead you"
5722 echo "have OpenGL drivers working with an hybrid XCB/Xlib (mostly XCB)"
5723 echo "toolkit and this is basically never tested by anyone working on"
5724 echo "the OpenGL drivers, so you will have bugs. Do not enable XCB"
5725 echo "and use OpenGL. XCB is only useful if you wish to shave a few Kb"
5726 echo "off the memory footprint of a whole system and live with less"
5727 echo "tested code, and possibly unimplemented features in ecore_x. To"
5728 echo "remove the XCB setup, remove the --with-x11=xcb option to"
5730 echo "_____________________________________________________________________"
5732 if test "x${want_physics}" = "xno"; then
5733 echo "_____________________________________________________________________"
5734 echo "You have chosen to disable physics support. This disables lots of"
5735 echo "core functionality and is effectively never tested. You are going"
5736 echo "to find features that suddenly don't work and as a result cause"
5737 echo "a series of breakages. This is simply not tested so you are on"
5738 echo "your own in terms of ensuring everything works if you do this"
5739 echo "_____________________________________________________________________"
5741 if test "x${efl_have_threads}" = "xno"; then
5742 echo "_____________________________________________________________________"
5743 echo "You have disabled threading support. A lot of code is literally"
5744 echo "written to need threading. We never test or even build with"
5745 echo "threading disabled, so doing this is entering uncharted territory."
5746 echo "There is a very good chance things may not compile at all, or if"
5747 echo "the do, they will break at runtime in weird and wonderful ways."
5748 echo "Highly reconsider what you are doing here, or be prepared to deal"
5749 echo "with the fallout yourself."
5750 echo "_____________________________________________________________________"
5752 if test "x${want_fontconfig}" = "xno"; then
5753 echo "_____________________________________________________________________"
5754 echo "You have disabled fontconfig. This is going to make general font"
5755 echo "searching not work, and only some very direct 'load /path/file.ttf'"
5756 echo "will work alongside some old-school ttf file path searching. This"
5757 echo "is very likely not what you want, so highly reconsider turning"
5758 echo "fontconfig off. Having it off will lead to visual problems like"
5759 echo "missing text in many UI areas etc."
5760 echo "_____________________________________________________________________"
5762 if test "x${want_fribidi}" = "xno"; then
5763 echo "_____________________________________________________________________"
5764 echo "Fribidi is used for handling right-to-left text (like Arabic,"
5765 echo "Hebrew, Farsi, Persian etc.) and is very likely not a feature"
5766 echo "you want to disable unless you know for absolute certain you"
5767 echo "will never encounter and have to display such scripts. Also"
5768 echo "note that we don't test with fribidi disabled so you may also"
5769 echo "trigger code paths with bugs that are never normally used."
5770 echo "_____________________________________________________________________"
5772 if test "x${want_pixman}" = "xyes"; then
5773 echo "_____________________________________________________________________"
5774 echo "Pixman allows you to replace some rendering paths in Evas with"
5775 echo "Pixman. Pixman may or may not be faster (probably slower), and"
5776 echo "the rendering paths with Pixman enabled are not tested often so"
5777 echo "this may introduce rendering bugs. Do not turn Pixman on unless"
5778 echo "you wish to deal with these bugs."
5779 echo "_____________________________________________________________________"
5781 if test "x${have_tile_rotate}" = "xyes"; then
5782 echo "_____________________________________________________________________"
5783 echo "Tiled rotation code is not tested much, so be aware that you"
5784 echo "may introduce bugs by enabling this."
5785 echo "_____________________________________________________________________"
5787 if test "x${want_g_main_loop}" = "xyes"; then
5788 echo "_____________________________________________________________________"
5789 echo "Using the Glib mainloop as the mainloop in Ecore is not tested"
5790 echo "regularly, but the glib mainloop integration (on by default) is."
5791 echo "You can use apps that use glib mainloop constructs by default"
5792 echo "this way, but the Ecore mainloop is not built on top of glib."
5793 echo "You have enabled ecore to be built on top of glib and thus you"
5794 echo "may experience bugs that normally would not be there. Be prepared"
5795 echo "to fix these if they arise."
5796 echo "_____________________________________________________________________"
5798 if test "x${want_gstreamer}" = "xyes"; then
5799 echo "_____________________________________________________________________"
5800 echo "Gstreamer 0.10 is no longer supported, and EFL has moved to use"
5801 echo "Gstreamer 1.x. The old Gstremaer code is not tested or maintained"
5802 echo "and will eventually be removed entirely. Don't enable the old"
5803 echo "Gstreamer support unless you want to deal with the issues yourself."
5804 echo "_____________________________________________________________________"
5806 if test "x${want_gstreamer1}" = "xno"; then
5807 echo "_____________________________________________________________________"
5808 echo "You disabled Gstreamer 1.x support. You likely don't want to do"
5809 echo "this as it will heavily limit your media support options and render"
5810 echo "some functionality as useless, leading to visible application bugs."
5811 echo "_____________________________________________________________________"
5813 if test "x${want_eo_id}" = "xno"; then
5814 echo "_____________________________________________________________________"
5815 echo "Eo's ID abstraction interface is a major safety system that"
5816 echo "protects code from crashing or misbehaving in many cases. It does"
5817 echo "come at a slight cost, but the safety and protection is worth it."
5818 echo "Also by disabling this, you may also introduce security holes in"
5819 echo "EFL as well as cause all sorts of previously non-existant crashes."
5820 echo "Seriously reconsider disabling EO ID."
5821 echo "_____________________________________________________________________"
5823 if test "x${want_evas_cserve2}" = "xno"; then
5824 echo "_____________________________________________________________________"
5825 echo "Evas Cserve is built and on by default and no testing is done"
5826 echo "for the old non-cserve2 code paths, so by disabling this you"
5827 echo "may be introducing bugs. Be aware of this and be prepared to"
5828 echo "deal with the bugs as a result of this."
5829 echo "_____________________________________________________________________"
5831 if test "x${want_audio}" = "xno"; then
5832 echo "_____________________________________________________________________"
5833 echo "You disabled audio support in Ecore. This is not tested and may"
5834 echo "Create bugs for you due to it creating untested code paths."
5835 echo "Reconsider disabling audio."
5836 echo "_____________________________________________________________________"
5838 if test "x${have_darwin}" = "xno" -a "x${want_pulseaudio}" = "xno"; then
5839 echo "_____________________________________________________________________"
5840 echo "The only audio output method supported by Ecore right now on your"
5841 echo "system is via Pulseaudio. You have disabled that and likely have"
5842 echo "broken a whole bunch of things in the process. Reconsider your"
5843 echo "configure options."
5844 echo "_____________________________________________________________________"
5846 if test "x${want_xinput2}" = "xno"; then
5847 echo "_____________________________________________________________________"
5848 echo "You have disabled xinput2 support. This means a whole lot of input"
5849 echo "devices in X11 will not work correctly. You likely do not want to"
5851 echo "_____________________________________________________________________"
5853 if test "x${want_xim}" = "xno"; then
5854 echo "_____________________________________________________________________"
5855 echo "You disabled XIM input method support. This is the most basic and"
5856 echo "core input method protocol supported in X11 and you almost certainly"
5857 echo "want the support for it. Input methods allow for complex text input"
5858 echo "like for Chinese, Japanese and Korean as well as virtual keyboards"
5859 echo "on touch/mobile devices."
5860 echo "_____________________________________________________________________"
5862 if test "x${want_scim}" = "xno"; then
5863 echo "_____________________________________________________________________"
5864 echo "SCIM is a modern and very common input method framework and you"
5865 echo "disabled support for it. You very likely want the support for"
5866 echo "complex language input, so please reconsider this. Input methods"
5867 echo "allow for complex text input like for Chinese, Japanese and Korean"
5868 echo "as well as virtual keyboards on touch/mobile devices."
5869 echo "_____________________________________________________________________"
5871 if test "x${want_libmount}" = "xno"; then
5872 echo "_____________________________________________________________________"
5873 echo "Libmount has been disabled, and it is used heavily inside Eeze"
5874 echo "for support of removable devices etc. and disabling this will"
5875 echo "hurt support for Enlightenment and its filemanager."
5876 echo "_____________________________________________________________________"
5878 if test "x${want_multisense}" = "xno"; then
5879 echo "_____________________________________________________________________"
5880 echo "Multisense has been disabled. This causes Edje audio suport to"
5881 echo "Simply not work, and will break applications and libraries"
5882 echo "that rely on it with users then reporting bugs."
5883 echo "If you want to mute audio, there are APIs and policies to do"
5884 echo "that, as opposed to compiling it out."
5885 echo "_____________________________________________________________________"
5887 if test "x${efl_api}" = "xeo"; then
5888 echo "_____________________________________________________________________"
5889 echo "Using the EO based EFL API only does not work at the moment. We still"
5890 echo "have a lot code that depends on the legacy interfaces. We provide"
5891 echo "this option for testing once we are able to migrate to the EO based"
5893 echo "If you are not working on this migration please leave the option set"
5894 echo "to both as it will break your build if set to eo."
5895 echo "_____________________________________________________________________"
5897 if test "x${want_libeeze}" = "xno"; then
5898 echo "_____________________________________________________________________"
5899 echo "Libeeze has been disabled, and it is used heavily for support of"
5900 echo "removable devices etc. and disabling this will hurt support for"
5901 echo "Enlightenment and its filemanager."
5902 echo "_____________________________________________________________________"
5904 echo "_____________________________________________________________________"
5906 echo "==-- WARNING --=="
5908 echo "_____________________________________________________________________"
5909 if test -n "$BARF_OK"; then
5910 echo "Please add the following option to acknowledge this:"
5911 echo " --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb"
5912 echo "_____________________________________________________________________"
5919 if test "x$prefix" != "x/usr"; then
5921 path=$dbusservicedir
5922 while test "x$old" != "x$path"; do
5924 eval path="\"$path\""
5926 resolved_dbusservicedir=$path
5929 path=$USER_SESSION_DIR
5930 while test "x$old" != "x$path"; do
5932 eval path="\"$path\""
5934 resolved_USER_SESSION_DIR=$path
5935 base_USER_SESSION_DIR=`echo "$resolved_USER_SESSION_DIR" | sed -e 's:^\(.*\)/systemd/user/*$:\1:g'`
5939 while test "x$old" != "x$path"; do
5941 eval path="\"$path\""
5943 resolved_datadir=$path
5946 if test "$resolved_dbusservicedir" = "${HOME}/.local/share/dbus-1/services"; then
5947 AC_MSG_NOTICE([installing DBus services in user local "$resolved_dbusservicedir". Only accessible to user $USER])
5948 elif echo "$resolved_dbusservicedir" | grep -e '^/usr/s' >/dev/null 2>/dev/null; then
5949 AC_MSG_NOTICE([installing DBus serivces in $resolved_dbusservicedir])
5954 needs_alert_systemd=0
5955 if test "$have_systemd_user_session" = "yes"; then
5956 if test "$resolved_USER_SESSION_DIR" = "${HOME}/.config/systemd/user"; then
5957 AC_MSG_NOTICE([installing systemd services in user local "$resolved_USER_SESSION_DIR". Only accessible to user $USER])
5958 elif echo "$resolved_USER_SESSION_DIR" | grep -e '^/usr/s' >/dev/null 2>/dev/null; then
5959 AC_MSG_NOTICE([installing systemd serivces in $resolved_USER_SESSION_DIR])
5961 needs_alert_systemd=1
5965 if test $needs_alert_dbus -eq 1 -o $needs_alert_systemd -eq 1; then
5966 if test $needs_alert_dbus -eq 1 -a $needs_alert_systemd -eq 1; then
5967 what_alert="dbus and systemd"
5968 elif test $needs_alert_dbus -eq 1; then
5971 what_alert="systemd"
5975 echo "#-------------------------------------------------------------------#"
5976 echo "##==-- ALERT --==##"
5977 echo "#-------------------------------------------------------------------#"
5979 echo " Your installation prefix is *NOT* /usr so this means you need"
5980 echo "to ensure some files are visible to $what_alert otherwise services cannot"
5981 echo "be started when needed. You will need to do the following:"
5982 if test $needs_alert_dbus -eq 1; then
5984 echo "System-wide installation:"
5985 echo " ln -s ${resolved_dbusservicedir}/org.enlightenment.Ethumb.service /usr/share/dbus-1/services/org.enlightenment.Ethumb.service"
5987 echo " or add \"${resolved_datadir}\" to \$XDG_DATA_DIRS"
5989 echo "User installation:"
5990 echo " ln -s ${resolved_dbusservicedir}/org.enlightenment.Ethumb.service ~/.local/share/dbus-1/services/org.enlightenment.Ethumb.service"
5992 if test $needs_alert_systemd -eq 1; then
5994 echo "System-wide installation:"
5995 echo " ln -s ${resolved_USER_SESSION_DIR}/ethumb.service /usr/lib/systemd/user/ethumb.service"
5997 echo " or add \"${base_USER_SESSION_DIR}\" to \$XDG_DATA_DIRS or \$XDG_CONFIG_DIRS"
5999 echo "User installation:"
6000 echo " ln -s ${resolved_USER_SESSION_DIR}/ethumb.service ~/.config/systemd/user/ethumb.service"
6003 echo "#-------------------------------------------------------------------#"
6007 if test "x${efl_deprecated_option}" = "xyes"; then
6009 echo "#-------------------------------------------------------------------#"
6010 echo "##==-- ALERT --==##"
6011 echo "#-------------------------------------------------------------------#"
6013 echo " Your build script is using a deprecated option. It will get b0rken"
6014 echo "with the next release of EFL. You better update it now than later."
6016 echo "#-------------------------------------------------------------------#"