1 # get rid of that stupid cache mechanism
4 AC_INIT([ecore], [0.9.9.063], [enlightenment-devel@lists.sourceforge.net])
5 release="ver-pre-svn-05"
7 AC_CONFIG_SRCDIR([configure.ac])
8 AC_CONFIG_MACRO_DIR([m4])
13 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
14 AM_CONFIG_HEADER([config.h])
15 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
20 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
23 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
24 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
25 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
26 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
27 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
28 AC_SUBST(version_info)
30 AM_GNU_GETTEXT_VERSION([0.12.1])
31 AM_GNU_GETTEXT([external])
39 ecore_config_release_info="-release $release"
40 ecore_con_release_info="-release $release"
41 ecore_directfb_release_info="-release $release"
42 ecore_evas_release_info="-release $release"
43 ecore_fb_release_info="-release $release"
44 ecore_file_release_info="-release $release"
45 ecore_imf_evas_release_info="-release $release"
46 ecore_imf_release_info="-release $release"
47 ecore_input_release_info="-release $release"
48 ecore_input_evas_release_info="-release $release"
49 ecore_ipc_release_info="-release $release"
50 ecore_quartz_release_info="-release $release"
51 ecore_release_info="-release $release"
52 ecore_sdl_release_info="-release $release"
53 ecore_txt_release_info="-release $release"
54 ecore_win32_release_info="-release $release"
55 ecore_x_release_info="-release $release"
58 AC_SUBST(ecore_config_release_info)
59 AC_SUBST(ecore_con_release_info)
60 AC_SUBST(ecore_directfb_release_info)
61 AC_SUBST(ecore_evas_release_info)
62 AC_SUBST(ecore_fb_release_info)
63 AC_SUBST(ecore_file_release_info)
64 AC_SUBST(ecore_imf_evas_release_info)
65 AC_SUBST(ecore_imf_release_info)
66 AC_SUBST(ecore_input_release_info)
67 AC_SUBST(ecore_input_evas_release_info)
68 AC_SUBST(ecore_ipc_release_info)
69 AC_SUBST(ecore_quartz_release_info)
70 AC_SUBST(ecore_release_info)
71 AC_SUBST(ecore_sdl_release_info)
72 AC_SUBST(ecore_txt_release_info)
73 AC_SUBST(ecore_win32_release_info)
74 AC_SUBST(ecore_wince_release_info)
75 AC_SUBST(ecore_x_release_info)
77 AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for shared objects])
80 ### Default options with respect to host
82 # dependencies and options
84 want_abstract_sockets="no"
92 want_notify_win32="no"
100 want_ecore_file="yes"
101 want_ecore_config="no"
103 want_ecore_input="yes"
105 # graphic system modules
106 want_evas_simple_x11="no"
107 want_ecore_x_xcb="no"
109 want_ecore_win32="no"
110 want_ecore_quartz="no"
113 want_ecore_directfb="no"
114 want_ecore_wince="no"
117 want_ecore_evas="yes"
118 want_ecore_evas_software_buffer="yes"
119 want_ecore_evas_software_x11="no"
120 want_ecore_evas_xrender_x11="no"
121 want_ecore_evas_opengl_x11="no"
122 want_ecore_evas_software_16_x11="no"
123 want_ecore_evas_software_xcb="no"
124 want_ecore_evas_xrender_xcb="no"
125 want_ecore_evas_software_gdi="no"
126 want_ecore_evas_software_ddraw="no"
127 want_ecore_evas_direct3d="no"
128 want_ecore_evas_opengl_glew="no"
129 want_ecore_evas_software_16_ddraw="no"
130 want_ecore_evas_quartz="no"
131 want_ecore_evas_software_sdl="no"
132 want_ecore_evas_gl_sdl="no"
133 want_ecore_evas_directfb="no"
134 want_ecore_evas_fb="no"
135 want_ecore_evas_software_16_wince="no"
139 want_ecore_wince="yes"
140 want_ecore_evas_software_16_wince="yes"
143 want_notify_win32="yes"
147 want_ecore_win32="yes"
148 want_ecore_evas_software_gdi="yes"
149 want_ecore_evas_software_ddraw="yes"
150 want_ecore_evas_direct3d="yes"
151 want_ecore_evas_opengl_glew="yes"
152 want_ecore_evas_software_16_ddraw="auto"
153 want_ecore_evas_software_sdl="yes"
154 want_ecore_evas_gl_sdl="yes"
163 want_ecore_config="yes"
165 want_ecore_quartz="yes"
166 want_ecore_evas_quartz="yes"
167 want_ecore_evas_software_sdl="yes"
168 want_ecore_evas_gl_sdl="yes"
173 want_abstract_sockets="yes"
182 want_ecore_config="yes"
185 want_ecore_evas_software_x11="yes"
186 want_ecore_evas_xrender_x11="yes"
187 want_ecore_evas_opengl_x11="yes"
188 want_ecore_evas_software_16_x11="yes"
189 want_ecore_evas_software_xcb="yes"
190 want_ecore_evas_xrender_xcb="yes"
191 want_ecore_evas_software_sdl="yes"
192 want_ecore_evas_gl_sdl="yes"
193 want_ecore_evas_directfb="yes"
194 want_ecore_evas_fb="yes"
198 requirements_ecore=""
199 requirements_ecore_con=""
200 requirements_ecore_config=""
201 requirements_ecore_directfb=""
202 requirements_ecore_evas=""
203 requirements_ecore_fb=""
204 requirements_ecore_file=""
205 requirements_ecore_imf=""
206 requirements_ecore_imf_evas=""
207 requirements_ecore_input=""
208 requirements_ecore_input_evas=""
209 requirements_ecore_ipc=""
210 requirements_ecore_quartz=""
211 requirements_ecore_sdl=""
212 requirements_ecore_txt=""
213 requirements_ecore_x=""
214 requirements_ecore_win32=""
215 requirements_ecore_wince=""
217 ### Additional options to configure
219 # abstract sockets (ecore_con.c)
220 AC_ARG_ENABLE([abstract-sockets],
221 [AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])],
223 if test "x${enableval}" = "xyes" ; then
224 want_abstract_sockets="yes"
226 want_abstract_sockets="no"
229 [want_abstract_sockets="yes"])
231 if test "x${want_abstract_sockets}" = "xyes" ; then
232 AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace])
235 # Simple X11 build/link
237 AC_ARG_ENABLE(simple-x11,
238 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
239 [want_evas_simple_x11=$enableval])
243 [AC_HELP_STRING([--enable-xim], [enable X Input Method.])],
245 if test "x${enableval}" = "xyes" ; then
253 if test "x${want_xim}" = "xyes" ; then
254 AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
258 ### Checks for programs
260 m4_ifdef([AC_PROG_OBJC],
263 _AM_DEPENDENCIES(OBJC)
266 AC_CHECK_TOOL([OBJC], [gcc])
268 AC_SUBST([OBJCFLAGS])
273 have_gnu_objc=${ac_cv_objc_compiler_gnu}
275 # doxygen program for documentation building
277 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
279 # The first call to PKG_CHECK_MODULES is done conditionally,
280 # so we should include this here:
283 # Check whether pkg-config supports Requires.private
284 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
285 pkgconfig_requires_private="Requires.private"
287 pkgconfig_requires_private="Requires"
289 AC_SUBST(pkgconfig_requires_private)
292 ### Checks for libraries
294 # Evil library for compilation on Windows
298 PKG_CHECK_MODULES([EVIL], [evil])
299 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
300 requirements_ecore="evil ${requirements_ecore}"
301 requirements_ecore_evas="evil ${requirements_ecore_evas}"
302 requirements_ecore_file="evil ${requirements_ecore_file}"
303 requirements_ecore_imf="evil ${requirements_ecore_imf}"
304 requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}"
305 requirements_ecore_txt="evil ${requirements_ecore_txt}"
306 EFL_ECORE_BUILD="-DEFL_ECORE_BUILD"
307 EFL_ECORE_TXT_BUILD="-DEFL_ECORE_TXT_BUILD"
308 EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD"
309 EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD"
310 EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD"
311 EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD"
319 EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD"
320 requirements_ecore_wince="evil ${requirements_ecore_wince}"
324 EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD"
325 EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD"
326 requirements_ecore_win32="evil ${requirements_ecore_win32}"
327 requirements_ecore_sdl="evil ${requirements_ecore_sdl}"
332 AC_SUBST(EFL_ECORE_BUILD)
333 AC_SUBST(EFL_ECORE_TXT_BUILD)
334 AC_SUBST(EFL_ECORE_FILE_BUILD)
335 AC_SUBST(EFL_ECORE_EVAS_BUILD)
336 AC_SUBST(EFL_ECORE_IMF_BUILD)
337 AC_SUBST(EFL_ECORE_INPUT_BUILD)
338 AC_SUBST(EFL_ECORE_WINCE_BUILD)
339 AC_SUBST(EFL_ECORE_WIN32_BUILD)
340 AC_SUBST(EFL_ECORE_SDL_BUILD)
342 AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes")
343 AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes")
352 WIN32_LIBS="-lws2_32"
356 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
360 AC_SUBST(dlopen_libs)
364 PKG_CHECK_MODULES(EINA, [eina-0])
365 #FIXME check all the requirements when the eina move will be finished
366 requirements_ecore="eina-0 ${requirements_ecore}"
367 requirements_ecore_con="ecore eina-0 ${requirements_ecore_con}"
368 requirements_ecore_config="ecore eina-0 ${requirements_ecore_config}"
369 requirements_ecore_directfb="ecore eina-0 ${requirements_ecore_directfb}"
370 requirements_ecore_evas="ecore eina-0 ${requirements_ecore_evas}"
371 requirements_ecore_fb="ecore eina-0 ${requirements_ecore_fb}"
372 requirements_ecore_file="ecore eina-0 ${requirements_ecore_file}"
373 requirements_ecore_imf="ecore eina-0 ${requirements_ecore_imf}"
374 requirements_ecore_imf_evas="ecore eina-0 ${requirements_ecore_imf_evas}"
375 requirements_ecore_input="ecore eina-0 ${requirements_ecore_input}"
376 requirements_ecore_input_evas="ecore eina-0 ${requirements_ecore_input_evas}"
377 requirements_ecore_ipc="ecore eina-0 ${requirements_ecore_ipc}"
378 requirements_ecore_quartz="ecore eina-0 ${requirements_ecore_quartz}"
379 requirements_ecore_sdl="ecore eina-0 ${requirements_ecore_sdl}"
380 requirements_ecore_win32="ecore eina-0 ${requirements_ecore_win32}"
381 requirements_ecore_wince="ecore eina-0 ${requirements_ecore_wince}"
382 requirements_ecore_x="ecore eina-0 ${requirements_ecore_x}"
385 # glib support (main loop integration)
386 AC_ARG_ENABLE([glib],
387 [AC_HELP_STRING([--disable-glib], [enable glib support. @<:@default=detect@:>@])],
388 [want_glib=$enableval], [])
390 if test "x$want_glib" != "xno"; then
391 PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"])
395 if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then
396 AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.])
397 elif test "x$have_glib" = "xyes"; then
398 AC_DEFINE(HAVE_GLIB, [1], [Have GLib])
399 requirements_ecore="glib-2.0 ${requirements_ecore}"
403 # iconv library (ecore_txt)
408 AC_ARG_WITH([iconv-link],
409 AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
415 AC_MSG_CHECKING(for explicit iconv link options)
416 if test "x${iconv_libs}" = "x" ; then
417 AC_MSG_RESULT([no explicit iconv link option])
419 AC_MSG_RESULT([$iconv_libs])
424 if test "x${have_iconv}" = "xno" && test "x${am_cv_func_iconv}" = "xyes" ; then
425 iconv_cflags=${LIBICONV}
426 iconv_libs=${LTLIBICONV}
430 AC_SUBST(iconv_cflags)
434 # SDL library (ecore_sdl)
437 SDL_CONFIG="sdl-config"
438 AC_ARG_WITH([sdl-config],
439 [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
442 AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
445 AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
447 if test -z "$SDL_CONFIG" ; then
448 SDL_CFLAGS=`$SDL_CONFIG --cflags`
449 SDL_LIBS=`$SDL_CONFIG --libs`
454 PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
457 if test "x${have_sdl}" = "xyes" ; then
458 PKG_CHECK_EXISTS([sdl >= 1.3.0],
459 [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
463 # DirectFB library (ecore_directfb)
465 PKG_CHECK_MODULES([DIRECTFB],
466 [directfb >= 0.9.16],
467 [have_directfb="yes"],
468 [have_directfb="no"])
471 # Eet library (ecore_config)
473 PKG_CHECK_MODULES([EET],
479 # Xlib and XCB (ecore_x)
483 have_ecore_x_xlib="no"
484 have_ecore_x_xcb="no"
491 ecore_x_libs_private=""
493 AC_ARG_ENABLE(ecore-x-xcb,
494 [AC_HELP_STRING([--enable-ecore-x-xcb],
495 [enable the ecore_x module with XCB backend. [[default=disabled]]])],
496 [want_ecore_x_xcb=$enableval],
497 [want_ecore_x_xcb="no"])
499 AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
500 AC_MSG_RESULT($want_ecore_x_xcb)
502 if test "x$want_ecore_x_xcb" = "xyes" ; then
503 PKG_CHECK_MODULES(XCB, xcb xcb-icccm xcb-image xcb-keysyms pixman-1,
504 [ have_ecore_x_xcb="yes"
505 requirements_ecore_x="xcb xcb-icccm xcb-image xcb-keysyms pixman-1 ${requirements_ecore_x}" ],
506 [ have_ecore_x_xcb="no" ])
508 if test "x$have_ecore_x_xcb" = "xyes" ; then
509 PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite,
510 [ have_ecore_x_xcb_composite="yes"
511 requirements_ecore_x="xcb-composite ${requirements_ecore_x}"
512 AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ],
513 [ have_ecore_x_xcb_composite="no" ])
515 PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage,
516 [ have_ecore_x_xcb_damage="yes"
517 requirements_ecore_x="xcb-damage ${requirements_ecore_x}"
518 AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ],
519 [ have_ecore_x_xcb_damage="no" ])
521 PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms,
522 [ have_ecore_x_xcb_dpms="yes"
523 requirements_ecore_x="xcb-dpms ${requirements_ecore_x}"
524 AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ],
525 [ have_ecore_x_xcb_dpms="no" ])
527 PKG_CHECK_MODULES(XCB_RANDR, xcb-randr,
528 [ have_ecore_x_xcb_randr="yes"
529 requirements_ecore_x="xcb-randr ${requirements_ecore_x}"
530 AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ],
531 [ have_ecore_x_xcb_randr="no" ])
533 PKG_CHECK_MODULES(XCB_RENDER, xcb-render,
534 [ have_ecore_x_xcb_render="yes"
535 requirements_ecore_x="xcb-render ${requirements_ecore_x}"
536 AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ],
537 [ have_ecore_x_xcb_render="no" ])
539 PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver,
540 [ have_ecore_x_xcb_screensaver="yes"
541 requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}"
542 AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ],
543 [ have_ecore_x_xcb_screensaver="no" ])
545 PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape,
546 [ have_ecore_x_xcb_shape="yes"
547 requirements_ecore_x="xcb-shape ${requirements_ecore_x}"
548 AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ],
549 [ have_ecore_x_xcb_shape="no" ])
551 PKG_CHECK_MODULES(XCB_SYNC, xcb-sync,
552 [ have_ecore_x_xcb_sync="yes"
553 requirements_ecore_x="xcb-sync ${requirements_ecore_x}"
554 AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ],
555 [ have_ecore_x_xcb_sync="no" ])
557 PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes,
558 [ have_ecore_x_xcb_xfixes="yes"
559 requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}"
560 AC_DEFINE(ECORE_XCB_FIXES, 1, [Build support for XCB xfixes]) ],
561 [ have_ecore_x_xcb_xfixes="no" ])
563 PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama,
564 [ have_ecore_x_xcb_xinerama="yes"
565 requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}"
566 AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ],
567 [ have_ecore_x_xcb_xinerama="no" ])
569 PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint,
570 [ have_ecore_x_xcb_xprint="yes"
571 requirements_ecore_x="xcb-xprint ${requirements_ecore_x}"
572 AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ],
573 [ have_ecore_x_xcb_xprint="no" ])
575 PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest,
576 [ have_ecore_x_xcb_xtest="yes"
577 requirements_ecore_x="xcb-xtest ${requirements_ecore_x}"
578 AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ],
579 [ have_ecore_x_xcb_xtest="no" ])
581 AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.])
587 have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
588 AC_SUBST(have_ecore_x_xcb_define)
592 if ! test "x$have_ecore_x_xcb" = "xyes" ; then
594 AC_CHECK_HEADER(X11/X.h,
596 if test "x$want_evas_simple_x11" = "xyes"; then
597 x_libs="${x_libs} -lX11 -lXext"
599 x_dir=${x_dir:-/usr/X11R6}
600 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
601 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
603 have_ecore_x_xlib="yes"
607 if test "x$have_ecore_x_xlib" = "xyes"; then
612 CFLAGS="$x_cflags $x_includes"
613 AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
615 AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
617 AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
619 Xcursor_libs="-lXcursor"
634 #include <X11/Xlib.h>
639 AC_SUBST(Xcursor_cflags)
640 AC_SUBST(Xcursor_libs)
642 ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat])
643 ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension])
644 ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract])
645 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension])
646 if test "x$use_xdpms" = "xno" ; then
647 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension])
649 ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion])
650 ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens])
651 ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens])
652 ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent])
653 ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat])
654 ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent])
655 ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput])
656 ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice])
658 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}"
660 AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.])
663 have_ecore_x_xlib="yes"
670 AC_SUBST(ecore_x_libs_private)
672 AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes)
673 AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes)
676 # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas)
678 PKG_CHECK_MODULES([EVAS], [evas >= 0.9.9],
683 ### Checks for header files
689 AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.])
690 AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.])
691 AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.])
694 AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h netdb.h netinet/in.h sys/time.h sys/mman.h signal.h sys/resource.h])
698 # Framebuffer (ecore_fb)
700 AC_CHECK_HEADER([linux/fb.h],
701 [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])])
703 # Quartz header files (ecore_quartz)
708 if test "x${have_gnu_objc}" = "xyes" ; then
709 AC_LANG_PUSH([Objective C])
710 AC_CHECK_HEADER([Cocoa/Cocoa.h],
713 quartz_ldflags="-framework Cocoa"
716 AC_LANG_POP([Objective C])
719 AC_SUBST(quartz_ldflags)
721 # basic pthread support
723 EFL_CHECK_PTHREAD([have_pthread="yes"], [have_pthread="no"])
726 AC_CHECK_SIZEOF(int, 4)
727 AC_CHECK_SIZEOF(long, 4)
730 ### Checks for structures
733 ### Checks for compiler characteristics
744 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
747 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
748 WIN32_CFLAGS="-mwin32"
751 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500"
754 AC_SUBST(WIN32_CPPFLAGS)
755 AC_SUBST(WIN32_CFLAGS)
758 ### Checks for linker characteristics
760 # use --enable-auto-import on Windows
762 lt_enable_auto_import=""
765 lt_enable_auto_import="-Wl,--enable-auto-import"
768 AC_SUBST(lt_enable_auto_import)
770 ### Checks for library functions
772 AC_CHECK_FUNCS(gettimeofday strlcpy)
774 have_atfile_source=auto
775 AC_ARG_ENABLE(atfile-source,
776 AC_HELP_STRING([--disable-atfile-source],
777 [disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@]),
778 [have_atfile_source=$enableval], [have_atfile_source=auto])
780 if test "x$have_atfile_source" != "xno"; then
781 AC_CHECK_FUNCS(mkdirat,
783 have_atfile_source=yes
784 AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists])
787 if test "x$have_atfile_source" = "xyes"; then
788 AC_MSG_ERROR([required atfile-source but no mkdirat()])
790 have_atfile_source=no
799 ECORE_CHECK_MODULE([txt], [${want_ecore_txt}], [Txt], [$have_iconv])
802 ECORE_CHECK_MODULE([con], [${want_ecore_con}], [Con])
808 if test "x${have_ecore_con}" = "xyes" ; then
810 ECORE_CHECK_CURL([${want_curl}],
813 requirements_ecore_con="libcurl ${requirements_ecore_con}"
817 ECORE_CHECK_GNUTLS([${want_gnutls}],
821 ECORE_CHECK_OPENSSL([${want_openssl}],
822 [have_openssl="yes"],
825 if test "x${have_gnutls}" = "xyes" ; then
826 requirements_ecore_con="gnutls ${requirements_ecore_con}"
827 # no need to add it to req_ecore_ipc, since they
828 # depends on ecore_con anyway.
830 if test "x${have_openssl}" = "xyes" ; then
831 requirements_ecore_con="openssl ${requirements_ecore_con}"
832 # no need to add it to req_ecore_ipc, since they
833 # depends on ecore_con anyway.
837 ECORE_CHECK_CARES([${want_cares}],
840 requirements_ecore_con="libcares ${requirements_ecore_con}"
846 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
849 ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}],
850 [requirements_ecore_ipc="ecore-con ${requirements_ecore_ipc}"])
853 ECORE_CHECK_MODULE([file], [${want_ecore_file}], [File])
857 have_notify_win32="no"
858 if test "x${have_ecore_file}" = "xyes" ; then
859 ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"])
860 ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"])
861 ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"])
863 if test "x${have_ecore_con}" = "xyes" ; then
864 requirements_ecore_file="ecore-con ${requirements_ecore_file}"
869 ecore_config_deps="no"
870 if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then
871 ecore_config_deps="yes"
874 ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}],
875 [requirements_ecore_config="ecore-ipc evas eet ${requirements_ecore_config}"])
879 ECORE_CHECK_MODULE([imf], [${want_ecore_imf}], [Imf])
883 ecore_imf_evas_deps="no"
884 if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then
885 ecore_imf_evas_deps="yes"
888 ECORE_CHECK_MODULE([imf-evas], [${want_ecore_imf}], [Imf_Evas], [${ecore_imf_evas_deps}],
889 [requirements_ecore_imf_evas="ecore-imf evas ${requirements_ecore_imf_evas}"])
892 ECORE_CHECK_MODULE([input], [${want_ecore_input}], [Input])
893 ECORE_CHECK_MODULE([input-evas], [${want_ecore_input}], [Input_Evas], [${have_evas}],
894 [requirements_ecore_input_evas="ecore-input evas ${requirements_ecore_input}"])
901 if test "x${have_x}" = "xyes" -a \
902 "x${have_ecore_input}" = "xyes" -a \
903 "x${have_ecore_txt}" = "xyes" ; then
907 ECORE_CHECK_MODULE([x], [${want_ecore_x}], [X], [${ecore_x_deps}],
909 ecore_x_libs="$ecore_x_libs $x_libs"
910 requirements_ecore_x="ecore-input ecore-txt ${requirements_ecore_x}"
915 ECORE_CHECK_MODULE([win32], [${want_ecore_win32}], [Win32], [${have_ecore_input}],
917 ecore_win32_libs="-lole32 -lgdi32"
918 requirements_ecore_win32="ecore-input ${requirements_ecore_win32}"
920 AC_SUBST(ecore_win32_libs)
924 ecore_quartz_deps="no"
925 if test "x${have_ecore_input}" = "xyes" -a "x${have_quartz}" = "xyes" ; then
926 ecore_quartz_deps="yes"
929 ECORE_CHECK_MODULE([quartz], [${want_ecore_quartz}], [Quartz], [${ecore_quartz_deps}],
930 [requirements_ecore_quartz="ecore-input ${requirements_ecore_quartz}"])
935 if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then
939 ECORE_CHECK_MODULE([sdl], [${want_ecore_sdl}], [Sdl], [${ecore_sdl_deps}],
940 [requirements_ecore_sdl="ecore-input ${requirements_ecore_sdl}"])
943 ECORE_CHECK_MODULE([fb], [${want_ecore_fb}], [FB], [$have_fb])
945 if test "x${have_ecore_fb}" = "xyes" ; then
946 ECORE_CHECK_TSLIB([${want_tslib}],
949 requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}"
956 ECORE_CHECK_MODULE([directfb], [${want_ecore_directfb}], [DirectFB], [${have_directfb}],
957 [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"])
961 ECORE_CHECK_MODULE([wince], [${want_ecore_wince}], [WinCE], [${have_ecore_input}],
962 [requirements_ecore_win32="ecore-input ${requirements_ecore_win32}"])
969 if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then
970 ecore_evas_deps="yes"
973 ECORE_CHECK_MODULE([evas], [${want_ecore_evas}], [Evas], [${ecore_evas_deps}],
974 [requirements_ecore_evas="ecore-input ecore-input-evas evas ${requirements_ecore_evas}"])
978 ECORE_EVAS_CHECK_MODULE([software-buffer],
979 [${want_ecore_evas_software_buffer}],
985 # ecore_evas_software_x11
987 ECORE_EVAS_CHECK_MODULE([software-x11],
988 [${want_ecore_evas_software_x11}],
992 have_ecore_evas_software_xlib=no"
993 have_ecore_evas_software_xcb=no"
994 if test "x$have_ecore_evas_software_x11" = "xyes" ; then
995 have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11`
996 if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then
997 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support])
999 have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11`
1000 if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
1001 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support])
1005 # ecore_evas_xrender_x11
1007 ECORE_EVAS_CHECK_MODULE([xrender-x11],
1008 [${want_ecore_evas_xrender_x11}],
1010 [${have_ecore_x_xlib}])
1012 # ecore_evas_opengl_x11
1014 ECORE_EVAS_CHECK_MODULE([opengl-x11],
1015 [${want_ecore_evas_opengl_x11}],
1017 [${have_ecore_x_xlib}])
1019 # ecore_evas_software_x11 16 bits
1021 ECORE_EVAS_CHECK_MODULE([software-16-x11],
1022 [${want_ecore_evas_software_16_x11}],
1023 [Software Xlib 16 bits],
1024 [${have_ecore_x_xlib}])
1026 # ecore_evas_xrender_xcb
1028 ECORE_EVAS_CHECK_MODULE([xrender-xcb],
1029 [${want_ecore_evas_xrender_xcb}],
1031 [${ecore_evas_xcb_deps}])
1033 if test "x$have_ecore_evas_software_x11" = "xyes" -o \
1034 "x$have_ecore_evas_xrender_x11" = "xyes" -o \
1035 "x$have_ecore_evas_opengl_x11" = "xyes" -o \
1036 "x$have_ecore_evas_software_16_x11" = "xyes" -o \
1037 "x$have_ecore_evas_software_xcb" = "xyes" -o \
1038 "x$have_ecore_evas_xrender_xcb" = "xyes"; then
1039 AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas])
1040 requirements_ecore_evas="ecore-x ${requirements_ecore_evas}"
1045 ECORE_EVAS_CHECK_MODULE([software-gdi],
1046 [${want_ecore_evas_software_gdi}],
1048 [${have_ecore_win32}])
1050 ECORE_EVAS_CHECK_MODULE([software-ddraw],
1051 [${want_ecore_evas_software_ddraw}],
1052 [Software DirectDraw],
1053 [${have_ecore_win32}])
1055 ECORE_EVAS_CHECK_MODULE([direct3d],
1056 [${want_ecore_evas_direct3d}],
1058 [${have_ecore_win32}])
1060 ECORE_EVAS_CHECK_MODULE([opengl-glew],
1061 [${want_ecore_evas_opengl_glew}],
1063 [${have_ecore_win32}])
1065 ECORE_EVAS_CHECK_MODULE([software-16-ddraw],
1066 [${want_ecore_evas_software_16_ddraw}],
1067 [16 bpp Software DirectDraw],
1068 [${have_ecore_win32}])
1070 if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \
1071 "x${have_ecore_evas_software_ddraw}" = "xyes" -o \
1072 "x${have_ecore_evas_direct3d}" = "xyes" -o \
1073 "x${have_ecore_evas_opengl_glew}" = "xyes" -o \
1074 "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then
1075 AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
1076 requirements_ecore_evas="ecore-win32 ${requirements_ecore_evas}"
1081 ECORE_EVAS_CHECK_MODULE([quartz],
1082 [${want_ecore_evas_quartz}],
1084 [${have_ecore_quartz}],
1085 [requirements_ecore_evas="ecore-quartz ${requirements_ecore_evas}"])
1087 # ecore_evas_software_sdl
1089 ECORE_EVAS_CHECK_MODULE([software-sdl],
1090 [${want_ecore_evas_software_sdl}],
1092 [${have_ecore_sdl}],
1093 [requirements_ecore_evas="ecore-sdl ${requirements_ecore_evas}"])
1097 ECORE_EVAS_CHECK_MODULE([opengl-sdl],
1098 [${want_ecore_evas_gl_sdl}],
1100 [${have_ecore_sdl}],
1101 [requirements_ecore_evas="ecore-sdl ${requirements_ecore_evas}"])
1103 # ecore_evas_directfb
1105 ECORE_EVAS_CHECK_MODULE([directfb],
1106 [${want_ecore_evas_directfb}],
1108 [${have_ecore_directfb}],
1109 [requirements_ecore_evas="ecore-directfb ${requirements_ecore_evas}"])
1113 ECORE_EVAS_CHECK_MODULE([fb],
1114 [${want_ecore_evas_fb}],
1115 [Linux Framebuffer],
1117 [requirements_ecore_evas="ecore-fb ${requirements_ecore_evas}"])
1121 ECORE_EVAS_CHECK_MODULE([software-16-wince],
1122 [${want_ecore_evas_software_16_wince}],
1123 [16 bpp Software Windows CE],
1124 [${have_ecore_wince}],
1125 [requirements_ecore_evas="ecore-wince ${requirements_ecore_evas}"])
1131 AC_SUBST(requirements_ecore)
1132 AC_SUBST(requirements_ecore_con)
1133 AC_SUBST(requirements_ecore_config)
1134 AC_SUBST(requirements_ecore_directfb)
1135 AC_SUBST(requirements_ecore_evas)
1136 AC_SUBST(requirements_ecore_fb)
1137 AC_SUBST(requirements_ecore_file)
1138 AC_SUBST(requirements_ecore_imf)
1139 AC_SUBST(requirements_ecore_imf_evas)
1140 AC_SUBST(requirements_ecore_input)
1141 AC_SUBST(requirements_ecore_input_evas)
1142 AC_SUBST(requirements_ecore_ipc)
1143 AC_SUBST(requirements_ecore_quartz)
1144 AC_SUBST(requirements_ecore_sdl)
1145 AC_SUBST(requirements_ecore_txt)
1146 AC_SUBST(requirements_ecore_x)
1147 AC_SUBST(requirements_ecore_win32)
1148 AC_SUBST(requirements_ecore_wince)
1176 src/lib/ecore/Makefile
1177 src/lib/ecore_x/Makefile
1178 src/lib/ecore_x/xlib/Makefile
1179 src/lib/ecore_x/xcb/Makefile
1180 src/lib/ecore_fb/Makefile
1181 src/lib/ecore_sdl/Makefile
1182 src/lib/ecore_quartz/Makefile
1183 src/lib/ecore_evas/Makefile
1184 src/lib/ecore_con/Makefile
1185 src/lib/ecore_imf/Makefile
1186 src/lib/ecore_imf_evas/Makefile
1187 src/lib/ecore_input/Makefile
1188 src/lib/ecore_input_evas/Makefile
1189 src/lib/ecore_ipc/Makefile
1190 src/lib/ecore_txt/Makefile
1191 src/lib/ecore_config/Makefile
1192 src/lib/ecore_file/Makefile
1193 src/lib/ecore_directfb/Makefile
1194 src/lib/ecore_win32/Makefile
1195 src/lib/ecore_wince/Makefile
1196 src/lib/ecore_data/Makefile
1203 echo "$PACKAGE $VERSION"
1205 echo "Optional Modules:"
1209 echo " Ecore........................: always"
1210 echo " Thread support.............: $have_pthread"
1211 echo " GLib support...............: $have_glib"
1212 echo " Ecore_Txt....................: $have_ecore_txt"
1213 echo " Ecore_Con....................: $have_ecore_con"
1214 if test "x$have_ecore_con" = "xyes" ; then
1215 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1216 if test "x$have_gnutls" = "xyes" ; then
1221 echo " GnuTLS.....................: $have_gnutls"
1222 echo " CURL.......................: $have_curl"
1223 echo " Abstract Sockets...........: $want_abstract_sockets"
1224 echo " c-ares.....................: $have_cares"
1226 echo " Ecore_Ipc....................: $have_ecore_ipc"
1227 if test "x$have_ecore_ipc" = "xyes" ; then
1228 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1229 if test "x$have_gnutls" = "xyes" ; then
1234 echo " GnuTLS.....................: $have_gnutls"
1236 echo " Ecore_File...................: $have_ecore_file"
1237 if test "x$have_ecore_file" = "xyes" ; then
1238 echo " Inotify....................: $have_inotify"
1239 echo " Windows notification.......: $have_notify_win32"
1240 echo " Poll.......................: $have_poll"
1241 echo " CURL.......................: $have_curl"
1243 echo " Ecore_Config.................: $have_ecore_config"
1244 echo " Ecore_IMF....................: $have_ecore_imf"
1245 echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas"
1246 echo " Ecore_Input..................: $have_ecore_input"
1247 echo " Ecore_Input_Evas.............: $have_ecore_input_evas"
1250 echo " Graphic systems:"
1253 if test "x$have_ecore_x" = "xyes" ; then
1254 if test "x$have_ecore_x_xcb" = "xyes" ; then
1255 echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb"
1256 echo " Xprint.....................: $have_ecore_x_xcb_xprint"
1257 echo " Xinerama...................: $have_ecore_x_xcb_xinerama"
1258 echo " Xrandr.....................: $have_ecore_x_xcb_randr"
1259 echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver"
1260 echo " Xshape.....................: $have_ecore_x_xcb_shape"
1261 echo " Xsync......................: $have_ecore_x_xcb_sync"
1262 echo " Xrender....................: $have_ecore_x_xcb_render"
1263 echo " Xcomposite.................: $have_ecore_x_xcb_composite"
1264 echo " Xfixes.....................: $have_ecore_x_xcb_xfixes"
1265 echo " Xdamage....................: $have_ecore_x_xcb_damage"
1266 echo " Xdpms......................: $have_ecore_x_xcb_dpms"
1267 echo " Xtest......................: $have_ecore_x_xcb_xtest"
1269 echo " Ecore_X (Xlib backend).......: $have_ecore_x"
1270 echo " Xcursor....................: $use_Xcursor"
1271 echo " Xkb........................: $use_xkb"
1272 echo " Xprint.....................: $use_xprint"
1273 echo " Xinerama...................: $use_xinerama"
1274 echo " Xrandr.....................: $use_xrandr"
1275 echo " Xscreensaver...............: $use_xss"
1276 echo " Xrender....................: $use_xrender"
1277 echo " Xcomposite.................: $use_xcomposite"
1278 echo " Xfixes.....................: $use_xfixes"
1279 echo " Xdamage....................: $use_xdamage"
1280 echo " Xdpms......................: $use_xdpms"
1281 echo " Xtest......................: $use_xtest"
1282 echo " XIM........................: $want_xim"
1283 echo " Xi2........................: $use_xi2"
1286 echo " Ecore_X......................: $have_ecore_x"
1288 echo " Ecore_Win32..................: $have_ecore_win32"
1289 echo " Ecore_Quartz.................: $have_ecore_quartz"
1290 echo " Ecore_SDL....................: $have_ecore_sdl"
1291 echo " Ecore_FB.....................: $have_ecore_fb"
1292 if test "x${have_ecore_fb}" = "xyes" ; then
1293 echo " Touchscreen................: $have_tslib"
1295 echo " Ecore_DirectFB...............: $have_ecore_directfb"
1296 echo " Ecore_WinCE..................: $have_ecore_wince"
1302 echo " Ecore_Evas...................: $have_ecore_evas"
1303 if test "x${have_ecore_evas}" = "xyes" ; then
1304 echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer"
1305 if test "x${have_ecore_evas_software_x11}" = "xyes" ; then
1306 echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})"
1308 echo " Software X11...............: $have_ecore_evas_software_x11"
1310 echo " XRender X11................: $have_ecore_evas_xrender_x11"
1311 echo " OpenGL X11.................: $have_ecore_evas_opengl_x11"
1312 echo " XRender XCB................: $have_ecore_evas_xrender_xcb"
1313 echo " Software GDI...............: $have_ecore_evas_software_gdi"
1314 echo " Software DirectDraw........: $have_ecore_evas_software_ddraw"
1315 echo " Direct3D...................: $have_ecore_evas_direct3d"
1316 echo " OpenGL Glew................: $have_ecore_evas_opengl_glew"
1317 echo " Quartz.....................: $have_ecore_evas_quartz"
1318 echo " Software SDL...............: $have_ecore_evas_software_sdl"
1319 echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl"
1320 echo " DirectFB...................: $have_ecore_evas_directfb"
1321 echo " Software Framebuffer.......: $have_ecore_evas_fb"
1322 echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11"
1323 echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw"
1324 echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince"
1327 echo " Documentation.................: ${build_doc}"
1329 echo " Compilation...................: make (or gmake)"
1330 if test "x${build_doc}" = "xyes" ; then
1331 echo " Build of the documentation....: make doc"
1334 echo " Installation..................: make install"
1336 echo " prefix.....................: $prefix"
1340 echo "Compilation............: make (or gmake)"
1341 echo " CPPFLAGS.............: $CPPFLAGS"
1342 echo " CFLAGS...............: $CFLAGS"
1343 echo " CXXFLAGS.............: $CXXFLAGS"
1344 echo " LDFLAGS..............: $LDFLAGS"
1346 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
1347 echo " prefix...............: $prefix"