1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [0])
5 m4_define([v_mic], [999])
6 m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7 m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
8 ##-- When released, remove the dnl on the below line
9 dnl m4_undefine([v_rev])
10 ##-- When doing snapshots - change soname. remove dnl on below line
11 dnl m4_define([relname], [ver-pre-svn-07])
12 dnl m4_define([v_rel], [-release relname])
13 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
15 m4_define([lt_cur], m4_eval(v_maj + v_min))
16 m4_define([lt_rev], v_mic)
17 m4_define([lt_age], v_min)
18 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
21 AC_INIT([ecore], [v_ver], [enlightenment-devel@lists.sourceforge.net])
23 AC_CONFIG_SRCDIR([configure.ac])
24 AC_CONFIG_MACRO_DIR([m4])
26 AC_CONFIG_HEADERS([config.h])
28 #ifndef EFL_CONFIG_H__
29 #define EFL_CONFIG_H__
32 #endif /* EFL_CONFIG_H__ */
35 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
41 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
44 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
45 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
46 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
47 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
48 AC_DEFINE_UNQUOTED(VERS_MAJ, [v_maj], [Major version])
49 AC_DEFINE_UNQUOTED(VERS_MIN, [v_min], [Minor version])
50 AC_DEFINE_UNQUOTED(VERS_MIC, [v_mic], [Micro version])
51 AC_DEFINE_UNQUOTED(VERS_REV, [v_rev], [Revison])
52 version_info="lt_cur:lt_rev:lt_age"
54 AC_SUBST(version_info)
55 AC_SUBST(release_info)
56 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
57 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
61 m4_ifdef([AM_GNU_GETTEXT_VERSION], [
62 AM_GNU_GETTEXT_VERSION([0.14])
65 m4_ifdef([AM_GNU_GETTEXT], [
66 AM_GNU_GETTEXT([external])
67 po_makefile_in=po/Makefile.in
68 AM_CONDITIONAL([HAVE_PO], [true])
70 AM_CONDITIONAL([HAVE_PO], [false])
74 with_max_log_level="<unset>"
75 AC_ARG_WITH(internal-maximum-log-level,
76 [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER],
77 [limit ecore internal log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
79 if test "x${withval}" != "xno"; then
80 if echo "${withval}" | grep '^[[0-9]]\+$' >/dev/null 2>/dev/null; then
81 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
82 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.])
83 with_max_log_level="${withval}"
85 AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.])
91 ### Default options with respect to host
96 # dependencies and options
98 want_abstract_sockets="no"
106 want_notify_win32="no"
113 want_ecore_file="yes"
114 #want_ecore_config="no"
116 want_ecore_input="yes"
118 # graphic system modules
119 want_evas_simple_x11="no"
120 want_ecore_x_xcb="no"
122 want_ecore_win32="no"
123 want_ecore_cocoa="no"
126 want_ecore_directfb="no"
127 want_ecore_wince="no"
129 # ecore_x options (both xlib and xcb)
130 want_ecore_x_composite="yes"
131 want_ecore_x_damage="yes"
132 want_ecore_x_dpms="yes"
133 want_ecore_x_randr="yes"
134 want_ecore_x_render="yes"
135 want_ecore_x_screensaver="yes"
136 want_ecore_x_shape="yes"
137 want_ecore_x_sync="yes"
138 want_ecore_x_xfixes="yes"
139 want_ecore_x_xinerama="yes"
140 want_ecore_x_xprint="yes"
141 want_ecore_x_xtest="yes"
142 want_ecore_x_cursor="yes"
143 want_ecore_x_input="yes"
144 want_ecore_x_dri="yes"
147 want_ecore_evas="yes"
148 want_ecore_evas_software_buffer="yes"
149 want_ecore_evas_software_x11="no"
150 want_ecore_evas_opengl_x11="no"
151 want_ecore_evas_software_16_x11="no"
152 want_ecore_evas_software_8_x11="no"
153 want_ecore_evas_software_xcb="no"
154 want_ecore_evas_software_gdi="no"
155 want_ecore_evas_software_ddraw="no"
156 want_ecore_evas_direct3d="no"
157 want_ecore_evas_opengl_glew="no"
158 want_ecore_evas_software_16_ddraw="no"
159 want_ecore_evas_software_sdl="no"
160 want_ecore_evas_gl_sdl="no"
161 want_ecore_evas_directfb="no"
162 want_ecore_evas_fb="no"
163 want_ecore_evas_software_16_wince="no"
166 want_ecore_imf_xim="no"
172 want_ecore_wince="yes"
173 want_ecore_evas_software_16_wince="yes"
176 want_notify_win32="yes"
180 want_ecore_win32="yes"
181 want_ecore_evas_software_gdi="yes"
182 want_ecore_evas_software_ddraw="yes"
183 want_ecore_evas_direct3d="yes"
184 want_ecore_evas_opengl_glew="yes"
185 want_ecore_evas_software_16_ddraw="auto"
186 want_ecore_evas_software_sdl="yes"
187 want_ecore_evas_gl_sdl="yes"
195 want_ecore_cocoa="yes"
196 want_ecore_evas_software_sdl="yes"
197 want_ecore_evas_gl_sdl="yes"
202 want_abstract_sockets="yes"
212 want_ecore_evas_software_x11="yes"
213 want_ecore_evas_opengl_x11="yes"
214 want_ecore_evas_software_16_x11="yes"
215 want_ecore_evas_software_8_x11="yes"
216 want_ecore_evas_software_xcb="no"
217 want_ecore_evas_software_sdl="yes"
218 want_ecore_evas_gl_sdl="yes"
219 want_ecore_evas_directfb="yes"
220 want_ecore_evas_fb="yes"
221 want_ecore_imf_xim="yes"
225 requirements_ecore=""
226 requirements_ecore_con=""
227 #requirements_ecore_config=""
228 requirements_ecore_directfb=""
229 requirements_ecore_evas=""
230 requirements_ecore_fb=""
231 requirements_ecore_file=""
232 requirements_ecore_imf=""
233 requirements_ecore_imf_evas=""
234 requirements_ecore_input=""
235 requirements_ecore_input_evas=""
236 requirements_ecore_ipc=""
237 requirements_ecore_cocoa=""
238 requirements_ecore_sdl=""
239 requirements_ecore_x=""
240 requirements_ecore_win32=""
241 requirements_ecore_wince=""
242 requirements_ecore_imf_xim=""
244 AC_CHECK_DECL([MAXHOSTNAMELEN],[FOUND_MAXHOSTNAMELEN=yes])
246 if test x$FOUND_MAXHOSTNAMELEN != xyes ; then
247 AC_MSG_CHECKING([for header that defines MAXHOSTNAMELEN])
249 FOUND_MAXHOSTNAMELEN='not found'
252 AC_LANG_PROGRAM([#include <sys/param.h>],
253 [int h = MAXHOSTNAMELEN;]),
254 [FOUND_MAXHOSTNAMELEN='sys/param.h'
255 AC_DEFINE(NEED_SYS_PARAM_H,1,
256 [Define to 1 if you need <sys/param.h> to define MAXHOSTNAMELEN])])
259 AC_LANG_PROGRAM([#include <netdb.h>],
260 [int h = MAXHOSTNAMELEN;]),
261 [FOUND_MAXHOSTNAMELEN='netdb.h'
262 AC_DEFINE(NEED_NETDB_H,1,
263 [Define to 1 if you need <netdb.h> to define MAXHOSTNAMELEN])])
265 AC_MSG_RESULT([$FOUND_MAXHOSTNAMELEN])
268 ### Additional options to configure
270 want_glib_integration_always=no
271 AC_ARG_ENABLE(glib-integration-always,
272 AC_HELP_STRING([--enable-glib-integration-always], [enable glib integration when ecore_init() is called always]),
273 [want_glib_integration_always=$enableval])
275 if test "x${want_glib_integration_always}" = "xyes" ; then
276 AC_DEFINE([GLIB_INTEGRATION_ALWAYS], [1], [Always integrate glib if support compiled])
281 AC_ARG_ENABLE(g-main-loop,
282 AC_HELP_STRING([--enable-g-main-loop], [ecore_main_loop based on g_main_loop]),
283 [want_g_main_loop=$enableval])
285 if test "x${want_g_main_loop}" = "xyes" ; then
286 AC_DEFINE([USE_G_MAIN_LOOP], [1], [Use g_main_loop in ecore])
290 if test "x${want_glib_integration_always}" = "xyes" -a "x${want_g_main_loop}" = "xyes"; then
291 AC_MSG_ERROR([--enable-glib-integration-always and --enable-glib-main-loop are mutually exclusive])
294 # abstract sockets (ecore_con.c)
295 AC_ARG_ENABLE([abstract-sockets],
296 [AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])],
298 if test "x${enableval}" = "xyes" ; then
299 want_ecore_con_abstract_sockets="yes"
301 want_ecore_con_abstract_sockets="no"
304 [want_ecore_con_abstract_sockets=${want_abstract_sockets}])
306 if test "x${want_ecore_con_abstract_sockets}" = "xyes" ; then
307 AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace])
310 # Simple X11 build/link
312 AC_ARG_ENABLE(simple-x11,
313 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
314 [want_evas_simple_x11=$enableval])
318 [AC_HELP_STRING([--disable-xim], [disable X Input Method.])],
320 if test "x${enableval}" = "xyes" ; then
328 if test "x${want_xim}" = "xyes" ; then
329 AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
334 EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
336 ### Checks for programs
338 m4_ifdef([AC_PROG_OBJC],
341 _AM_DEPENDENCIES(OBJC)
344 AC_CHECK_TOOL([OBJC], [gcc])
346 AC_SUBST([OBJCFLAGS])
348 m4_ifndef([am__fastdepOBJC], [
349 AM_CONDITIONAL([am__fastdepOBJC], [false])
350 AC_SUBST([cocoa_ldflags])
356 have_gnu_objc=${ac_cv_objc_compiler_gnu}
358 # doxygen program for documentation building
360 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
364 EFL_COMPILER_FLAG([-Wall])
365 EFL_COMPILER_FLAG([-W])
368 # The first call to PKG_CHECK_MODULES is done conditionally,
369 # so we should include this here:
372 # Check whether pkg-config supports Requires.private
373 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
374 pkgconfig_requires_private="Requires.private"
376 pkgconfig_requires_private="Requires"
378 AC_SUBST(pkgconfig_requires_private)
380 ### Checks for some build time option
382 AC_CHECK_FUNCS([backtrace], [have_backtrace="yes"], [])
384 want_ecore_timer_dump="yes"
386 AC_ARG_ENABLE([ecore-timer-dump],
387 [AC_HELP_STRING([--disable-ecore-timer-dump], [disable tracking of timer allocation. @<:@default=enable@:>@])],
388 [want_ecore_timer_dump=$enableval], [])
390 if test "x$want_ecore_timer_dump" = "xyes" -a "x$have_backtrace" = "xyes"; then
391 AC_DEFINE(WANT_ECORE_TIMER_DUMP, [1], [Want Ecore_Timer dump infrastructure])
394 ### Checks for libraries
396 # Evil library for compilation on Windows
400 PKG_CHECK_MODULES([EVIL], [evil])
401 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
402 requirements_ecore="evil ${requirements_ecore}"
403 requirements_ecore_evas="evil ${requirements_ecore_evas}"
404 requirements_ecore_file="evil ${requirements_ecore_file}"
405 requirements_ecore_imf="evil ${requirements_ecore_imf}"
406 requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}"
407 EFL_ECORE_BUILD="-DEFL_ECORE_BUILD"
408 EFL_ECORE_CON_BUILD="-DEFL_ECORE_CON_BUILD"
409 EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD"
410 EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD"
411 EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD"
412 EFL_ECORE_IMF_EVAS_BUILD="-DEFL_ECORE_IMF_EVAS_BUILD"
413 EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD"
414 EFL_ECORE_INPUT_EVAS_BUILD="-DEFL_ECORE_INPUT_EVAS_BUILD"
415 EFL_ECORE_IPC_BUILD="-DEFL_ECORE_IPC_BUILD"
423 EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD"
424 requirements_ecore_wince="evil ${requirements_ecore_wince}"
428 EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD"
429 EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD"
430 requirements_ecore_win32="evil ${requirements_ecore_win32}"
431 requirements_ecore_sdl="evil ${requirements_ecore_sdl}"
436 AC_SUBST(EFL_ECORE_BUILD)
437 AC_SUBST(EFL_ECORE_CON_BUILD)
438 AC_SUBST(EFL_ECORE_EVAS_BUILD)
439 AC_SUBST(EFL_ECORE_FILE_BUILD)
440 AC_SUBST(EFL_ECORE_IMF_BUILD)
441 AC_SUBST(EFL_ECORE_IMF_EVAS_BUILD)
442 AC_SUBST(EFL_ECORE_INPUT_BUILD)
443 AC_SUBST(EFL_ECORE_INPUT_EVAS_BUILD)
444 AC_SUBST(EFL_ECORE_IPC_BUILD)
445 AC_SUBST(EFL_ECORE_WINCE_BUILD)
446 AC_SUBST(EFL_ECORE_WIN32_BUILD)
447 AC_SUBST(EFL_ECORE_SDL_BUILD)
449 AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes")
450 AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes")
459 WIN32_LIBS="-lws2_32"
463 AC_CHECK_LIB([c], [dlopen],
465 [AC_CHECK_LIB([dl], [dlopen],
468 AC_CHECK_LIB([c], [clock_gettime],
469 [AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])],
470 [AC_CHECK_LIB([rt], [clock_gettime],
473 AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])
479 AC_SUBST(dlopen_libs)
484 PKG_CHECK_MODULES(EINA, [eina >= 1.0.0])
485 #FIXME check all the requirements when the eina move will be finished
486 requirements_ecore="eina >= 1.0.0 ${requirements_ecore}"
487 requirements_ecore_con="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_con}"
488 #requirements_ecore_config="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_config}"
489 requirements_ecore_directfb="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_directfb}"
490 requirements_ecore_evas="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_evas}"
491 requirements_ecore_fb="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_fb}"
492 requirements_ecore_file="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_file}"
493 requirements_ecore_imf="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_imf}"
494 requirements_ecore_imf_evas="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_imf_evas}"
495 requirements_ecore_input="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_input}"
496 requirements_ecore_input_evas="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_input_evas}"
497 requirements_ecore_ipc="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_ipc}"
498 requirements_ecore_cocoa="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_cocoa}"
499 requirements_ecore_sdl="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_sdl}"
500 requirements_ecore_win32="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_win32}"
501 requirements_ecore_wince="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_wince}"
502 requirements_ecore_x="ecore >= 1.0.0 eina >= 1.0.0 ${requirements_ecore_x}"
505 # glib support (main loop integration)
506 AC_ARG_ENABLE([glib],
507 [AC_HELP_STRING([--disable-glib], [disable glib support. @<:@default=detect@:>@])],
508 [want_glib=$enableval], [])
510 if test "x$want_glib" != "xno"; then
511 PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"])
515 if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then
516 AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.])
517 elif test "x$have_glib" = "xyes"; then
518 AC_DEFINE(HAVE_GLIB, [1], [Have GLib])
519 requirements_ecore="glib-2.0 ${requirements_ecore}"
523 # SDL library (ecore_sdl)
526 SDL_CONFIG="sdl-config"
527 AC_ARG_WITH([sdl-config],
528 [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
531 AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
534 AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
536 if test -n "$SDL_CONFIG" ; then
537 SDL_CFLAGS=`$SDL_CONFIG --cflags`
538 SDL_LIBS=`$SDL_CONFIG --libs`
543 PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
546 if test "x${have_sdl}" = "xyes" ; then
547 PKG_CHECK_EXISTS([sdl >= 1.3.0],
548 [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
552 # DirectFB library (ecore_directfb)
554 PKG_CHECK_MODULES([DIRECTFB],
555 [directfb >= 0.9.16],
556 [have_directfb="yes"],
557 [have_directfb="no"])
560 # Eet library (ecore_config)
562 #PKG_CHECK_MODULES([EET],
568 # Xlib and XCB (ecore_x)
572 have_ecore_x_xlib="no"
573 have_ecore_x_xcb="no"
580 ecore_x_libs_private=""
582 AC_ARG_ENABLE(ecore-x-composite,
583 [AC_HELP_STRING([--disable-ecore-x-composite],
584 [disable the ecore_x support for Xcomposite extension.
585 @<:@default=detect@:>@])],
586 [want_ecore_x_composite=$enableval])
588 AC_ARG_ENABLE(ecore-x-damage,
589 [AC_HELP_STRING([--disable-ecore-x-damage],
590 [disable the ecore_x support for Xdamage extension.
591 @<:@default=detect@:>@])],
592 [want_ecore_x_damage=$enableval])
594 AC_ARG_ENABLE(ecore-x-dpms,
595 [AC_HELP_STRING([--disable-ecore-x-dpms],
596 [disable the ecore_x support for Xdpms extension.
597 @<:@default=detect@:>@])],
598 [want_ecore_x_dpms=$enableval])
600 AC_ARG_ENABLE(ecore-x-randr,
601 [AC_HELP_STRING([--disable-ecore-x-randr],
602 [disable the ecore_x support for Xrandr extension.
603 @<:@default=detect@:>@])],
604 [want_ecore_x_randr=$enableval])
606 AC_ARG_ENABLE(ecore-x-render,
607 [AC_HELP_STRING([--disable-ecore-x-render],
608 [disable the ecore_x support for Xrender extension.
609 @<:@default=detect@:>@])],
610 [want_ecore_x_render=$enableval])
612 AC_ARG_ENABLE(ecore-x-screensaver,
613 [AC_HELP_STRING([--disable-ecore-x-screensaver],
614 [disable the ecore_x support for Xscreensaver extension.
615 @<:@default=detect@:>@])],
616 [want_ecore_x_screensaver=$enableval])
618 AC_ARG_ENABLE(ecore-x-shape,
619 [AC_HELP_STRING([--disable-ecore-x-shape],
620 [disable the ecore_x support for Xshape extension.
621 @<:@default=detect@:>@])],
622 [want_ecore_x_shape=$enableval])
624 AC_ARG_ENABLE(ecore-x-sync,
625 [AC_HELP_STRING([--disable-ecore-x-sync],
626 [disable the ecore_x support for Xsync extension.
627 @<:@default=detect@:>@])],
628 [want_ecore_x_sync=$enableval])
630 AC_ARG_ENABLE(ecore-x-xfixes,
631 [AC_HELP_STRING([--disable-ecore-x-xfixes],
632 [disable the ecore_x support for Xfixes extension.
633 @<:@default=detect@:>@])],
634 [want_ecore_x_xfixes=$enableval])
636 AC_ARG_ENABLE(ecore-x-xinerama,
637 [AC_HELP_STRING([--disable-ecore-x-xinerama],
638 [disable the ecore_x support for Xinerama extension.
639 @<:@default=detect@:>@])],
640 [want_ecore_x_xinerama=$enableval])
642 AC_ARG_ENABLE(ecore-x-xprint,
643 [AC_HELP_STRING([--disable-ecore-x-xprint],
644 [disable the ecore_x support for Xprint extension.
645 @<:@default=detect@:>@])],
646 [want_ecore_x_xprint=$enableval])
648 AC_ARG_ENABLE(ecore-x-xtest,
649 [AC_HELP_STRING([--disable-ecore-x-xtest],
650 [disable the ecore_x support for Xtest extension.
651 @<:@default=detect@:>@])],
652 [want_ecore_x_xtest=$enableval])
654 AC_ARG_ENABLE(ecore-x-cursor,
655 [AC_HELP_STRING([--disable-ecore-x-cursor],
656 [disable the ecore_x support for Xcursor extension.
657 @<:@default=detect@:>@])],
658 [want_ecore_x_cursor=$enableval])
660 AC_ARG_ENABLE(ecore-x-input,
661 [AC_HELP_STRING([--disable-ecore-x-input],
662 [disable the ecore_x support for Xinput/Xinput2 extension.
663 @<:@default=detect@:>@])],
664 [want_ecore_x_input=$enableval])
666 AC_ARG_ENABLE(ecore-x-dri,
667 [AC_HELP_STRING([--disable-ecore-x-dri],
668 [disable the ecore_x support for DRI extension.
669 @<:@default=detect@:>@])],
670 [want_ecore_x_dri=$enableval])
672 AC_ARG_ENABLE(ecore-x-xcb,
673 [AC_HELP_STRING([--enable-ecore-x-xcb],
674 [enable the ecore_x module with XCB backend. @<:@default=disabled@:>@])],
675 [want_ecore_x_xcb=$enableval])
677 AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
678 AC_MSG_RESULT($want_ecore_x_xcb)
680 if test "x$want_ecore_x_xcb" = "xyes" ; then
682 AC_MSG_CHECKING([keysym definitions])
683 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
684 FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
686 if test -f "$KEYSYMDEFDIR/$i"; then
687 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
688 elif test "x$i" = "xkeysymdef.h"; then
689 AC_MSG_ERROR([Cannot find keysymdef.h])
692 AC_MSG_RESULT([$KEYSYMDEFS])
696 AC_ARG_WITH([iconv-link],
697 AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
699 LIBS="$withval $LIBS"
703 AC_MSG_CHECKING(for explicit iconv link options)
704 if test "x${iconv_libs}" = "x" ; then
705 AC_MSG_RESULT([no explicit iconv link option])
707 AC_MSG_RESULT([$iconv_libs])
710 if test "x${have_iconv}" = "xno" ; then
711 AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"])
713 if test "x${have_iconv}" = "xyes" ; then
714 AC_MSG_CHECKING([whether iconv() is in libc])
724 size_t count = iconv(ic, NULL, NULL, NULL, NULL);
729 AC_MSG_RESULT([${have_iconv}])
732 if test "x${have_iconv}" = "xno" ; then
733 AC_MSG_CHECKING([whether iconv() is in libiconv.a])
746 count = iconv(ic, NULL, NULL, NULL, NULL);
754 AC_MSG_RESULT([${have_iconv}])
757 if test "x${have_iconv}" = "xno" ; then
758 AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a])
761 LIBS="-liconv_plug $LIBS"
770 size_t count = iconv(ic, NULL, NULL, NULL, NULL);
778 AC_MSG_RESULT([${have_iconv}])
781 if test "x${have_iconv}" = "xyes" ; then
782 AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed])
787 PKG_CHECK_MODULES(XCB, x11-xcb xcb xcb-shm xcb-icccm xcb-image xcb-keysyms,
788 [ have_ecore_x_xcb="yes"
789 requirements_ecore_x="x11-xcb xcb xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" ],
790 [ have_ecore_x_xcb="no" ])
792 if test "x$have_ecore_x_xcb" = "xyes" ; then
794 PKG_CHECK_MODULES([PIXMAN],
798 AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering])
799 requirements_ecore_x="pixman-1 ${requirements_ecore_x}"
802 if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then
803 AC_MSG_ERROR([Pixman not found (strict dependencies checking)])
807 if test "x$want_ecore_x_composite" != "xno"; then
808 PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite,
809 [ have_ecore_x_xcb_composite="yes"
810 requirements_ecore_x="xcb-composite ${requirements_ecore_x}"
811 AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ],
812 [ have_ecore_x_xcb_composite="no" ])
814 have_ecore_x_xcb_composite="no"
815 AC_MSG_NOTICE("composite extension explicitly disabled")
818 if test "x$want_ecore_x_damage" != "xno"; then
819 PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage,
820 [ have_ecore_x_xcb_damage="yes"
821 requirements_ecore_x="xcb-damage ${requirements_ecore_x}"
822 AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ],
823 [ have_ecore_x_xcb_damage="no" ])
825 have_ecore_x_xcb_damage="no"
826 AC_MSG_NOTICE("damage extension explicitly disabled")
829 if test "x$want_ecore_x_dpms" != "xno"; then
830 PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms,
831 [ have_ecore_x_xcb_dpms="yes"
832 requirements_ecore_x="xcb-dpms ${requirements_ecore_x}"
833 AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ],
834 [ have_ecore_x_xcb_dpms="no" ])
836 have_ecore_x_xcb_dpms="no"
837 AC_MSG_NOTICE("dpms extension explicitly disabled")
840 if test "x$want_ecore_x_randr" != "xno"; then
841 PKG_CHECK_MODULES(XCB_RANDR, xcb-randr,
842 [ have_ecore_x_xcb_randr="yes"
843 requirements_ecore_x="xcb-randr ${requirements_ecore_x}"
844 AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ],
845 [ have_ecore_x_xcb_randr="no" ])
847 have_ecore_x_xcb_randr="no"
848 AC_MSG_NOTICE("randr extension explicitly disabled")
851 if test "x$want_ecore_x_render" != "xno"; then
852 PKG_CHECK_MODULES(XCB_RENDER, xcb-render xcb-renderutil,
853 [ have_ecore_x_xcb_render="yes"
854 requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}"
855 AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ],
856 [ have_ecore_x_xcb_render="no" ])
858 have_ecore_x_xcb_render="no"
859 AC_MSG_NOTICE("render extension explicitly disabled")
862 if test "x$want_ecore_x_screensaver" != "xno"; then
863 PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver,
864 [ have_ecore_x_xcb_screensaver="yes"
865 requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}"
866 AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ],
867 [ have_ecore_x_xcb_screensaver="no" ])
869 have_ecore_x_xcb_screensaver="no"
870 AC_MSG_NOTICE("screensaver extension explicitly disabled")
873 if test "x$want_ecore_x_shape" != "xno"; then
874 PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape,
875 [ have_ecore_x_xcb_shape="yes"
876 requirements_ecore_x="xcb-shape ${requirements_ecore_x}"
877 AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ],
878 [ have_ecore_x_xcb_shape="no" ])
880 have_ecore_x_xcb_shape="no"
881 AC_MSG_NOTICE("shape extension explicitly disabled")
884 if test "x$want_ecore_x_sync" != "xno"; then
885 PKG_CHECK_MODULES(XCB_SYNC, xcb-sync,
886 [ have_ecore_x_xcb_sync="yes"
887 requirements_ecore_x="xcb-sync ${requirements_ecore_x}"
888 AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ],
889 [ have_ecore_x_xcb_sync="no" ])
891 have_ecore_x_xcb_sync="no"
892 AC_MSG_NOTICE("sync extension explicitly disabled")
895 if test "x$want_ecore_x_xfixes" != "xno"; then
896 PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes,
897 [ have_ecore_x_xcb_xfixes="yes"
898 requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}"
899 AC_DEFINE(ECORE_XCB_XFIXES, 1, [Build support for XCB xfixes]) ],
900 [ have_ecore_x_xcb_xfixes="no" ])
902 have_ecore_x_xcb_xfixes="no"
903 AC_MSG_NOTICE("xfixes extension explicitly disabled")
906 if test "x$want_ecore_x_xinerama" != "xno"; then
907 PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama,
908 [ have_ecore_x_xcb_xinerama="yes"
909 requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}"
910 AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ],
911 [ have_ecore_x_xcb_xinerama="no" ])
913 have_ecore_x_xcb_xinerama="no"
914 AC_MSG_NOTICE("xinerama extension explicitly disabled")
917 if test "x$want_ecore_x_xprint" != "xno"; then
918 PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint,
919 [ have_ecore_x_xcb_xprint="yes"
920 requirements_ecore_x="xcb-xprint ${requirements_ecore_x}"
921 AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ],
922 [ have_ecore_x_xcb_xprint="no" ])
924 have_ecore_x_xcb_xprint="no"
925 AC_MSG_NOTICE("xprint extension explicitly disabled")
928 if test "x$want_ecore_x_xtest" != "xno"; then
929 PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest,
930 [ have_ecore_x_xcb_xtest="yes"
931 requirements_ecore_x="xcb-xtest ${requirements_ecore_x}"
932 AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ],
933 [ have_ecore_x_xcb_xtest="no" ])
935 have_ecore_x_xcb_xtest="no"
936 AC_MSG_NOTICE("xtest extension explicitly disabled")
939 # input extension disabled currently in xcb as xcb-input has some issues
940 want_ecore_x_input="no"
941 if test "x$want_ecore_x_input" != "xno"; then
942 PKG_CHECK_MODULES(XCB_XINPUT, xcb-xinput,
943 [ have_ecore_x_xcb_xinput="yes"
944 requirements_ecore_x="xcb-xinput ${requirements_ecore_x}"
945 AC_DEFINE(ECORE_XCB_XINPUT, 1, [Build support for XCB xinput]) ],
946 [ have_ecore_x_xcb_xinput="no" ])
948 have_ecore_x_xcb_xinput="no"
949 AC_MSG_NOTICE("xinput extension explicitly disabled")
952 if test "x$want_ecore_x_cursor" != "xno"; then
953 PKG_CHECK_MODULES(XCB_CURSOR, xcb-render xcb-renderutil,
954 [ have_ecore_x_xcb_cursor="yes"
955 requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}"
956 AC_DEFINE(ECORE_XCB_CURSOR, 1, [Build support for XCB cursor]) ],
957 [ have_ecore_x_xcb_cursor="no" ])
959 have_ecore_x_xcb_cursor="no"
960 AC_MSG_NOTICE("cursor extension explicitly disabled")
963 if test "x$want_ecore_x_dri" != "xno"; then
964 PKG_CHECK_MODULES(XCB_DRI, xcb-dri2,
965 [ have_ecore_x_xcb_dri="yes"
966 requirements_ecore_x="xcb-dri2 ${requirements_ecore_x}"
967 AC_DEFINE(ECORE_XCB_DRI, 1, [Build support for XCB dri/dri2]) ],
968 [ have_ecore_x_xcb_dri="no" ])
970 have_ecore_x_xcb_dri="no"
971 AC_MSG_NOTICE("dri extension explicitly disabled")
974 AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.])
980 have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
981 AC_SUBST(have_ecore_x_xcb_define)
985 if ! test "x$have_ecore_x_xcb" = "xyes" ; then
987 AC_CHECK_HEADER(X11/X.h,
989 if test "x$want_evas_simple_x11" = "xyes"; then
990 x_libs="${x_libs} -lX11 -lXext"
992 x_dir=${x_dir:-/usr/X11R6}
993 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
994 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
996 have_ecore_x_xlib="yes"
1000 if test "x$have_ecore_x_xlib" = "xyes"; then
1005 CFLAGS="$x_cflags $x_includes"
1007 if test "x$want_ecore_x_cursor" = "xyes"; then
1008 AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
1010 AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
1012 AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
1014 Xcursor_libs="-lXcursor"
1029 #include <X11/Xlib.h>
1037 AC_MSG_NOTICE("Xcursor explicitly disabled")
1040 AC_SUBST(Xcursor_cflags)
1041 AC_SUBST(Xcursor_libs)
1043 ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat], [$want_ecore_x_xkb])
1044 ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension], [$want_ecore_x_composite])
1045 ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract], [$want_ecore_x_damage])
1046 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension], [$want_ecore_x_dpms])
1047 if test "x$use_xdpms" = "xno" ; then
1048 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension], [$want_ecore_x_dpms])
1050 ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion], [$want_ecore_x_xfixes])
1051 ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens], [$want_ecore_x_xinerama])
1052 ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens], [$want_ecore_x_xprint])
1053 ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent], [$want_ecore_x_randr])
1054 ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat], [$want_ecore_x_render])
1055 ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent], [$want_ecore_x_xtest])
1056 ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput], [$want_ecore_x_screensaver])
1057 ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice], [$want_ecore_x_input])
1059 ecore_x_libs_private="${Xcursor_libs} ${XKB_LIBS} ${XCOMPOSITE_LIBS} ${XDAMAGE_LIBS} ${XDPMS_LIBS} ${XFIXES_LIBS} ${XINERAMA_LIBS} ${XPRINT_LIBS} ${XRANDR_LIBS} ${XRENDER_LIBS} ${XTEST_LIBS} ${XSS_LIBS} ${XI2_LIBS}"
1061 AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.])
1064 have_ecore_x_xlib="yes"
1069 AC_SUBST(x_includes)
1071 AC_SUBST(ecore_x_libs_private)
1073 AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes)
1074 AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes)
1077 # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas)
1079 PKG_CHECK_MODULES([EVAS], [evas >= 1.0.0],
1084 ### Checks for header files
1094 AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.])
1095 AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.])
1096 AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.])
1100 AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h])
1106 AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h sys/socket.h sys/un.h ws2tcpip.h netdb.h])
1108 if test "x${ac_cv_header_netdb_h}" = "xyes" ; then
1112 # Framebuffer (ecore_fb)
1114 AC_CHECK_HEADER([linux/fb.h],
1115 [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])])
1117 # Cocoa header files (ecore_cocoa)
1121 m4_ifdef([AC_PROG_OBJC], [
1122 if test "x${have_gnu_objc}" = "xyes" ; then
1123 AC_LANG_PUSH([Objective C])
1124 AC_CHECK_HEADER([Cocoa/Cocoa.h],
1127 cocoa_ldflags="-framework Cocoa"
1129 AC_LANG_POP([Objective C])
1132 AC_SUBST(cocoa_ldflags)
1135 AC_ARG_ENABLE(epoll,
1136 AC_HELP_STRING([--enable-epoll], [enable or disable epoll support]),
1137 [want_epoll=$enableval])
1139 if test "x${want_epoll}" = "xyes" ; then
1140 # check for epoll support
1141 AC_CHECK_HEADERS([sys/epoll.h])
1145 AC_CHECK_HEADERS([sys/timerfd.h])
1146 AC_CHECK_FUNCS(timerfd_create)
1152 if test "x${_efl_have_posix_threads}" = "xyes" ; then
1153 have_threads="POSIX"
1155 if test "x${_efl_have_win32_threads}" = "xyes" ; then
1156 have_threads="Win32"
1162 [have_threads="no"])
1164 ### Checks for types
1165 AC_CHECK_SIZEOF(int, 4)
1166 AC_CHECK_SIZEOF(long, 4)
1169 ### Checks for structures
1172 ### Checks for compiler characteristics
1183 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
1186 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
1187 WIN32_CFLAGS="-mwin32"
1190 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0501"
1193 AC_SUBST(WIN32_CPPFLAGS)
1194 AC_SUBST(WIN32_CFLAGS)
1197 ### Checks for linker characteristics
1199 # use --enable-auto-import on Windows
1201 lt_enable_auto_import=""
1204 lt_enable_auto_import="-Wl,--enable-auto-import"
1207 AC_SUBST(lt_enable_auto_import)
1209 ### Checks for library functions
1212 AC_CHECK_FUNCS(gettimeofday strlcpy)
1220 int i = isfinite(0);
1223 AC_DEFINE(HAVE_ISFINITE, 1, [Define to 1 if you have `isfinite', as a function or macro.])
1226 [have_isfinite="no"])
1228 AC_MSG_CHECKING([for isfinite])
1229 AC_MSG_RESULT([${have_isfinite}])
1231 have_atfile_source=auto
1232 AC_ARG_ENABLE([atfile-source],
1233 [AC_HELP_STRING([--disable-atfile-source],
1234 [disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@])],
1236 if test "x${enableval}" = "xyes" ; then
1237 have_atfile_source="yes"
1239 have_atfile_source="no"
1241 [have_atfile_source=auto])
1243 if ! test "x${have_atfile_source}" = "xno" ; then
1244 AC_CHECK_FUNCS(mkdirat,
1246 have_atfile_source="yes"
1247 AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists])
1250 if test "x${have_atfile_source}" = "xyes" ; then
1251 AC_MSG_ERROR([required atfile-source but no mkdirat()])
1253 have_atfile_source="no"
1257 ### Checks for optionnal feature
1258 AC_CHECK_FUNC([mallinfo],
1261 AC_DEFINE(HAVE_MALLINFO, 1, [Gather memory statistic])
1263 [have_mallinfo="no"])
1270 ECORE_CHECK_MODULE([con], [${want_ecore_con}], [Con], [${have_addrinfo}])
1276 if test "x${have_ecore_con}" = "xyes" ; then
1278 ECORE_CHECK_CURL([${want_curl}],
1281 requirements_ecore_con="libcurl ${requirements_ecore_con}"
1285 ECORE_CHECK_GNUTLS([${want_gnutls}],
1286 [have_gnutls="yes"],
1289 ECORE_CHECK_OPENSSL([${want_openssl}],
1290 [have_openssl="yes"],
1291 [have_openssl="no"])
1293 if test "x${have_gnutls}" = "xyes" ; then
1294 requirements_ecore_con="gnutls ${requirements_ecore_con}"
1295 # no need to add it to req_ecore_ipc, since they
1296 # depends on ecore_con anyway.
1298 if test "x${have_openssl}" = "xyes" ; then
1299 requirements_ecore_con="openssl ${requirements_ecore_con}"
1300 # no need to add it to req_ecore_ipc, since they
1301 # depends on ecore_con anyway.
1305 ECORE_CHECK_CARES([${want_cares}],
1308 requirements_ecore_con="libcares ${requirements_ecore_con}"
1314 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
1317 ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}],
1318 [requirements_ecore_ipc="ecore-con >= 1.0.0 ${requirements_ecore_ipc}"])
1321 ECORE_CHECK_MODULE([file], [${want_ecore_file}], [File])
1325 have_notify_win32="no"
1326 if test "x${have_ecore_file}" = "xyes" ; then
1327 ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"])
1328 ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"])
1329 ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"])
1331 if test "x${have_ecore_con}" = "xyes" ; then
1332 requirements_ecore_file="ecore-con >= 1.0.0 ${requirements_ecore_file}"
1337 #ecore_config_deps="no"
1338 #if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then
1339 # ecore_config_deps="yes"
1342 #ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}],
1343 # [requirements_ecore_config="ecore-ipc >= 1.0.0 evas >= 1.0.0 eet >= 1.4.0 ${requirements_ecore_config}"])
1345 AM_CONDITIONAL(BUILD_ECORE_CONFIG, false)
1349 ECORE_CHECK_MODULE([imf], [${want_ecore_imf}], [Imf])
1353 ecore_imf_evas_deps="no"
1354 if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then
1355 ecore_imf_evas_deps="yes"
1358 ECORE_CHECK_MODULE([imf-evas], [${want_ecore_imf}], [Imf_Evas], [${ecore_imf_evas_deps}],
1359 [requirements_ecore_imf_evas="ecore-imf >= 1.0.0 evas >= 1.0.0 ${requirements_ecore_imf_evas}"])
1361 # ecore_input{_evas}
1362 ECORE_CHECK_MODULE([input], [${want_ecore_input}], [Input])
1363 ECORE_CHECK_MODULE([input-evas], [${want_ecore_input}], [Input_Evas], [${have_evas}],
1364 [requirements_ecore_input_evas="ecore-input >= 1.0.0 evas >= 1.0.0 ${requirements_ecore_input}"])
1367 AM_CONDITIONAL(BUILD_ECORE_IMF_XIM, false)
1368 ecore_imf_xim_deps="no"
1369 echo "have_ecore_x_xlib: ${have_ecore_x_xlib}"
1370 if test "x${have_ecore_imf}" = "xyes" \
1371 -a "x${have_ecore_x_xlib}" = "xyes" \
1372 -a "x${have_ecore_input}" = "xyes" ; then
1373 ecore_imf_xim_deps="yes"
1374 AC_DEFINE(BUILD_ECORE_IMF_XIM, 1, [Ecore Imf XIM Support])
1377 ECORE_CHECK_MODULE([imf-xim], [${want_ecore_imf}], [Imf_XIM], [${ecore_imf_xim_deps}],
1378 [requirements_ecore_imf_xim="ecore-imf >= 1.0.0 ecore-x >= 1.0.0 ecore-input >= 1.0.0 ${requirements_ecore_imf_xim}"])
1385 if test "x${have_x}" = "xyes" -a \
1386 "x${have_ecore_input}" = "xyes" ; then
1390 ECORE_CHECK_MODULE([x], [${want_ecore_x}], [X], [${ecore_x_deps}],
1392 ecore_x_libs="$ecore_x_libs $x_libs"
1393 requirements_ecore_x="ecore-input >= 1.0.0 ${requirements_ecore_x}"
1398 ECORE_CHECK_MODULE([win32], [${want_ecore_win32}], [Win32], [${have_ecore_input}],
1400 ecore_win32_libs="-lole32 -lgdi32"
1401 requirements_ecore_win32="ecore-input >= 1.0.0 ${requirements_ecore_win32}"
1403 AC_SUBST(ecore_win32_libs)
1407 ecore_cocoa_deps="no"
1408 if test "x${have_ecore_input}" = "xyes" -a "x${have_cocoa}" = "xyes" ; then
1409 ecore_cocoa_deps="yes"
1412 ECORE_CHECK_MODULE([cocoa], [${want_ecore_cocoa}], [Cocoa], [${ecore_cocoa_deps}],
1413 [requirements_ecore_cocoa="ecore-input >= 1.0.0 ${requirements_ecore_cocoa}"])
1418 if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then
1419 ecore_sdl_deps="yes"
1422 ECORE_CHECK_MODULE([sdl], [${want_ecore_sdl}], [Sdl], [${ecore_sdl_deps}],
1423 [requirements_ecore_sdl="ecore-input >= 1.0.0 ${requirements_ecore_sdl}"])
1426 ECORE_CHECK_MODULE([fb], [${want_ecore_fb}], [FB], [$have_fb])
1428 if test "x${have_ecore_fb}" = "xyes" ; then
1429 ECORE_CHECK_TSLIB([${want_tslib}],
1432 requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}"
1439 ECORE_CHECK_MODULE([directfb], [${want_ecore_directfb}], [DirectFB], [${have_directfb}],
1440 [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"])
1444 ECORE_CHECK_MODULE([wince], [${want_ecore_wince}], [WinCE], [${have_ecore_input}],
1445 [requirements_ecore_win32="ecore-input >= 1.0.0 ${requirements_ecore_win32}"])
1451 ecore_evas_deps="no"
1452 if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then
1453 ecore_evas_deps="yes"
1456 ECORE_CHECK_MODULE([evas], [${want_ecore_evas}], [Evas], [${ecore_evas_deps}],
1457 [requirements_ecore_evas="ecore-input >= 1.0.0 ecore-input-evas >= 1.0.0 evas >= 1.0.0 ${requirements_ecore_evas}"])
1461 ECORE_EVAS_CHECK_MODULE([software-buffer],
1462 [${want_ecore_evas_software_buffer}],
1468 # ecore_evas_software_x11
1470 ECORE_EVAS_CHECK_MODULE([software-x11],
1471 [${want_ecore_evas_software_x11}],
1475 have_ecore_evas_software_xlib="no"
1476 have_ecore_evas_software_xcb="no"
1477 if test "x$have_ecore_evas_software_x11" = "xyes" ; then
1478 have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11`
1479 if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then
1480 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support])
1482 have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11`
1483 if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
1484 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support])
1488 # ecore_evas_opengl_x11
1490 ECORE_EVAS_CHECK_MODULE([opengl-x11],
1491 [${want_ecore_evas_opengl_x11}],
1495 have_ecore_evas_opengl_xlib="no"
1496 have_ecore_evas_opengl_xcb="no"
1497 if test "x${have_ecore_evas_opengl_x11}" = "xyes" -o "x${have_ecore_evas_opengl_x11}" = "xstatic" ; then
1498 have_ecore_evas_opengl_xlib=`${PKG_CONFIG} --variable=Xlib evas-opengl-x11`
1499 if test "x${have_ecore_evas_opengl_xlib}" = "xyes" ; then
1500 AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XLIB, 1, [OpenGL Xlib rendering backend])
1503 # opengl does not work with xcb (yet)
1504 have_ecore_evas_opengl_xcb=`${PKG_CONFIG} --variable=XCB evas-opengl-x11`
1505 if test "x${have_ecore_evas_opengl_xcb}" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
1506 PKG_CHECK_MODULES(XCB_X11, x11-xcb,
1507 [ have_ecore_x_opengl_xcb="yes"
1508 requirements_ecore_x="x11-xcb ${requirements_ecore_x}"
1509 AC_DEFINE(BUILD_ECORE_X_OPENGL_XCB, 1, [Build support for XCB-based OpenGL])
1510 AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XCB, 1, [OpenGL XCB rendering backend])
1512 [ have_ecore_x_opengl_xcb="no" ])
1514 have_ecore_x_opengl_xcb="no"
1515 AC_MSG_NOTICE("XCB-based OpenGL explicitly disabled")
1519 # ecore_evas_software_x11 16 bits
1521 ECORE_EVAS_CHECK_MODULE([software-16-x11],
1522 [${want_ecore_evas_software_16_x11}],
1523 [Software Xlib 16 bits],
1524 [${have_ecore_x_xlib}])
1526 ECORE_EVAS_CHECK_MODULE([software-8-x11],
1527 [$want_ecore_evas_software_8_x11],
1528 [Software 8bit X11],
1532 if test "x$have_ecore_evas_software_x11" = "xyes" -o \
1533 "x$have_ecore_evas_opengl_x11" = "xyes" -o \
1534 "x$have_ecore_evas_software_8_x11" = "xyes" -o \
1535 "x$have_ecore_evas_software_16_x11" = "xyes" -o \
1536 "x$have_ecore_evas_software_xcb" = "xyes"; then
1537 AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas])
1538 requirements_ecore_evas="ecore-x >= 1.0.0 ${requirements_ecore_evas}"
1543 ECORE_EVAS_CHECK_MODULE([software-gdi],
1544 [${want_ecore_evas_software_gdi}],
1546 [${have_ecore_win32}])
1548 ECORE_EVAS_CHECK_MODULE([software-ddraw],
1549 [${want_ecore_evas_software_ddraw}],
1550 [Software DirectDraw],
1551 [${have_ecore_win32}])
1553 ECORE_EVAS_CHECK_MODULE([direct3d],
1554 [${want_ecore_evas_direct3d}],
1556 [${have_ecore_win32}])
1558 ECORE_EVAS_CHECK_MODULE([opengl-glew],
1559 [${want_ecore_evas_opengl_glew}],
1561 [${have_ecore_win32}])
1563 ECORE_EVAS_CHECK_MODULE([software-16-ddraw],
1564 [${want_ecore_evas_software_16_ddraw}],
1565 [16 bpp Software DirectDraw],
1566 [${have_ecore_win32}])
1568 if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \
1569 "x${have_ecore_evas_software_ddraw}" = "xyes" -o \
1570 "x${have_ecore_evas_direct3d}" = "xyes" -o \
1571 "x${have_ecore_evas_opengl_glew}" = "xyes" -o \
1572 "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then
1573 AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
1574 requirements_ecore_evas="ecore-win32 >= 1.0.0 ${requirements_ecore_evas}"
1577 # ecore_evas_software_sdl
1579 ECORE_EVAS_CHECK_MODULE([software-sdl],
1580 [${want_ecore_evas_software_sdl}],
1582 [${have_ecore_sdl}],
1583 [requirements_ecore_evas="ecore-sdl >= 1.0.0 ${requirements_ecore_evas}"])
1587 ECORE_EVAS_CHECK_MODULE([opengl-sdl],
1588 [${want_ecore_evas_gl_sdl}],
1590 [${have_ecore_sdl}],
1591 [requirements_ecore_evas="ecore-sdl >= 1.0.0 ${requirements_ecore_evas}"])
1593 # ecore_evas_directfb
1595 ECORE_EVAS_CHECK_MODULE([directfb],
1596 [${want_ecore_evas_directfb}],
1598 [${have_ecore_directfb}],
1599 [requirements_ecore_evas="ecore-directfb >= 1.0.0 ${requirements_ecore_evas}"])
1603 ECORE_EVAS_CHECK_MODULE([fb],
1604 [${want_ecore_evas_fb}],
1605 [Linux Framebuffer],
1607 [requirements_ecore_evas="ecore-fb >= 1.0.0 ${requirements_ecore_evas}"])
1611 ECORE_EVAS_CHECK_MODULE([software-16-wince],
1612 [${want_ecore_evas_software_16_wince}],
1613 [16 bpp Software Windows CE],
1614 [${have_ecore_wince}],
1615 [requirements_ecore_evas="ecore-wince >= 1.0.0 ${requirements_ecore_evas}"])
1617 ### install and build examples
1619 EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
1620 EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
1624 AC_SUBST(requirements_ecore)
1625 AC_SUBST(requirements_ecore_con)
1626 #AC_SUBST(requirements_ecore_config)
1627 AC_SUBST(requirements_ecore_directfb)
1628 AC_SUBST(requirements_ecore_evas)
1629 AC_SUBST(requirements_ecore_fb)
1630 AC_SUBST(requirements_ecore_file)
1631 AC_SUBST(requirements_ecore_imf)
1632 AC_SUBST(requirements_ecore_imf_evas)
1633 AC_SUBST(requirements_ecore_input)
1634 AC_SUBST(requirements_ecore_input_evas)
1635 AC_SUBST(requirements_ecore_ipc)
1636 AC_SUBST(requirements_ecore_cocoa)
1637 AC_SUBST(requirements_ecore_sdl)
1638 AC_SUBST(requirements_ecore_x)
1639 AC_SUBST(requirements_ecore_win32)
1640 AC_SUBST(requirements_ecore_wince)
1641 AC_SUBST(requirements_ecore_imf_xim)
1669 src/lib/ecore/Makefile
1670 src/lib/ecore_con/Makefile
1671 src/lib/ecore_config/Makefile
1672 src/lib/ecore_directfb/Makefile
1673 src/lib/ecore_evas/Makefile
1674 src/lib/ecore_fb/Makefile
1675 src/lib/ecore_file/Makefile
1676 src/lib/ecore_cocoa/Makefile
1677 src/lib/ecore_sdl/Makefile
1678 src/lib/ecore_imf/Makefile
1679 src/lib/ecore_imf_evas/Makefile
1680 src/lib/ecore_input/Makefile
1681 src/lib/ecore_input_evas/Makefile
1682 src/lib/ecore_ipc/Makefile
1683 src/lib/ecore_win32/Makefile
1684 src/lib/ecore_wince/Makefile
1685 src/lib/ecore_x/Makefile
1686 src/lib/ecore_x/xlib/Makefile
1687 src/lib/ecore_x/xcb/Makefile
1688 src/examples/Makefile
1690 src/modules/Makefile
1691 src/modules/immodules/Makefile
1692 src/modules/immodules/xim/Makefile
1701 echo "$PACKAGE $VERSION"
1703 echo "Optional Modules:"
1707 echo " Ecore........................: always"
1708 echo " Thread support.............: $have_threads"
1709 echo " GLib support...............: $have_glib"
1710 echo " Always integrate GLib......: $want_glib_integration_always"
1711 echo " Use g_main_loop............: $want_g_main_loop"
1712 echo " Gathering memory statistic.: $have_mallinfo"
1713 echo " Gathering timer allocation.: $want_ecore_timer_dump"
1714 echo " Ecore_Con....................: $have_ecore_con"
1715 if test "x$have_ecore_con" = "xyes" ; then
1716 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1717 if test "x$have_gnutls" = "xyes" ; then
1722 echo " GnuTLS.....................: $have_gnutls"
1723 echo " CURL.......................: $have_curl"
1724 echo " Abstract Sockets...........: $want_abstract_sockets"
1725 echo " c-ares.....................: $have_cares"
1727 echo " Ecore_Ipc....................: $have_ecore_ipc"
1728 if test "x$have_ecore_ipc" = "xyes" ; then
1729 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1730 if test "x$have_gnutls" = "xyes" ; then
1735 echo " GnuTLS.....................: $have_gnutls"
1737 echo " Ecore_File...................: $have_ecore_file"
1738 if test "x$have_ecore_file" = "xyes" ; then
1739 echo " Inotify....................: $have_inotify"
1740 echo " Windows notification.......: $have_notify_win32"
1741 echo " Poll.......................: $have_poll"
1742 echo " CURL.......................: $have_curl"
1744 #echo " Ecore_Config.................: $have_ecore_config (deprecated)"
1745 echo " Ecore_IMF....................: $have_ecore_imf"
1746 echo " XIM........................: $have_ecore_imf_xim"
1747 echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas"
1748 echo " Ecore_Input..................: $have_ecore_input"
1749 echo " Ecore_Input_Evas.............: $have_ecore_input_evas"
1752 echo " Graphic systems:"
1755 if test "x$have_ecore_x" = "xyes" ; then
1756 if test "x$have_ecore_x_xcb" = "xyes" ; then
1757 echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb"
1758 echo " Xprint.....................: $have_ecore_x_xcb_xprint"
1759 echo " Xinerama...................: $have_ecore_x_xcb_xinerama"
1760 echo " Xrandr.....................: $have_ecore_x_xcb_randr"
1761 echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver"
1762 echo " Xshape.....................: $have_ecore_x_xcb_shape"
1763 echo " Xsync......................: $have_ecore_x_xcb_sync"
1764 echo " Xrender....................: $have_ecore_x_xcb_render"
1765 echo " Xcomposite.................: $have_ecore_x_xcb_composite"
1766 echo " Xfixes.....................: $have_ecore_x_xcb_xfixes"
1767 echo " Xdamage....................: $have_ecore_x_xcb_damage"
1768 echo " Xdpms......................: $have_ecore_x_xcb_dpms"
1769 echo " Xtest......................: $have_ecore_x_xcb_xtest"
1771 echo " Ecore_X (Xlib backend).......: $have_ecore_x"
1772 echo " Xcursor....................: $use_Xcursor"
1773 echo " Xkb........................: $use_xkb"
1774 echo " Xprint.....................: $use_xprint"
1775 echo " Xinerama...................: $use_xinerama"
1776 echo " Xrandr.....................: $use_xrandr"
1777 echo " Xscreensaver...............: $use_xss"
1778 echo " Xrender....................: $use_xrender"
1779 echo " Xcomposite.................: $use_xcomposite"
1780 echo " Xfixes.....................: $use_xfixes"
1781 echo " Xdamage....................: $use_xdamage"
1782 echo " Xdpms......................: $use_xdpms"
1783 echo " Xtest......................: $use_xtest"
1784 echo " XIM........................: $want_xim"
1785 echo " Xi2........................: $use_xi2"
1788 echo " Ecore_X......................: $have_ecore_x"
1790 echo " Ecore_Win32..................: $have_ecore_win32"
1791 echo " Ecore_Cocoa..................: $have_ecore_cocoa"
1792 echo " Ecore_SDL....................: $have_ecore_sdl"
1793 echo " Ecore_FB.....................: $have_ecore_fb"
1794 if test "x${have_ecore_fb}" = "xyes" ; then
1795 echo " Touchscreen................: $have_tslib"
1797 echo " Ecore_DirectFB...............: $have_ecore_directfb"
1798 echo " Ecore_WinCE..................: $have_ecore_wince"
1804 echo " Ecore_Evas...................: $have_ecore_evas"
1805 if test "x${have_ecore_evas}" = "xyes" ; then
1806 echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer"
1807 if test "x${have_ecore_evas_software_x11}" = "xyes" ; then
1808 echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})"
1810 echo " Software X11...............: $have_ecore_evas_software_x11"
1812 if test "x${have_ecore_evas_opengl_x11}" = "xyes" ; then
1813 echo " OpenGL X11.................: $have_ecore_evas_opengl_x11 (Xlib=${have_ecore_evas_opengl_xlib}) (XCB=${have_ecore_evas_opengl_xcb})"
1815 echo " OpenGL X11.................: $have_ecore_evas_opengl_x11"
1817 echo " Software GDI...............: $have_ecore_evas_software_gdi"
1818 echo " Software DirectDraw........: $have_ecore_evas_software_ddraw"
1819 echo " Direct3D...................: $have_ecore_evas_direct3d"
1820 echo " OpenGL Glew................: $have_ecore_evas_opengl_glew"
1821 echo " Software SDL...............: $have_ecore_evas_software_sdl"
1822 echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl"
1823 echo " DirectFB...................: $have_ecore_evas_directfb"
1824 echo " Software Framebuffer.......: $have_ecore_evas_fb"
1825 echo " Software 8bit grayscale XCB: $have_ecore_evas_software_8_x11"
1826 echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11"
1827 echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw"
1828 echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince"
1831 echo " Tests................: ${enable_tests}"
1832 echo " Maximum log level....: ${with_max_log_level}"
1833 echo "Documentation..........: ${build_doc}"
1835 echo "Compilation............: make (or gmake)"
1836 echo " CPPFLAGS.............: $CPPFLAGS"
1837 echo " CFLAGS...............: $CFLAGS"
1838 echo " CXXFLAGS.............: $CXXFLAGS"
1839 echo " LDFLAGS..............: $LDFLAGS"
1841 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
1842 echo " prefix...............: $prefix"