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_job_release_info="-release $release"
51 ecore_quartz_release_info="-release $release"
52 ecore_release_info="-release $release"
53 ecore_sdl_release_info="-release $release"
54 ecore_txt_release_info="-release $release"
55 ecore_win32_release_info="-release $release"
56 ecore_x_release_info="-release $release"
59 AC_SUBST(ecore_config_release_info)
60 AC_SUBST(ecore_con_release_info)
61 AC_SUBST(ecore_directfb_release_info)
62 AC_SUBST(ecore_evas_release_info)
63 AC_SUBST(ecore_fb_release_info)
64 AC_SUBST(ecore_file_release_info)
65 AC_SUBST(ecore_imf_evas_release_info)
66 AC_SUBST(ecore_imf_release_info)
67 AC_SUBST(ecore_input_release_info)
68 AC_SUBST(ecore_input_evas_release_info)
69 AC_SUBST(ecore_ipc_release_info)
70 AC_SUBST(ecore_job_release_info)
71 AC_SUBST(ecore_quartz_release_info)
72 AC_SUBST(ecore_release_info)
73 AC_SUBST(ecore_sdl_release_info)
74 AC_SUBST(ecore_txt_release_info)
75 AC_SUBST(ecore_win32_release_info)
76 AC_SUBST(ecore_wince_release_info)
77 AC_SUBST(ecore_x_release_info)
79 AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for shared objects])
82 ### Default options with respect to host
84 # dependencies and options
86 want_abstract_sockets="no"
94 want_notify_win32="no"
103 want_ecore_file="yes"
104 want_ecore_config="no"
106 want_ecore_input="yes"
108 # graphic system modules
109 want_evas_simple_x11="no"
110 want_ecore_x_xcb="no"
112 want_ecore_win32="no"
113 want_ecore_quartz="no"
116 want_ecore_directfb="no"
117 want_ecore_wince="no"
120 want_ecore_evas="yes"
121 want_ecore_evas_software_buffer="yes"
122 want_ecore_evas_software_x11="no"
123 want_ecore_evas_xrender_x11="no"
124 want_ecore_evas_opengl_x11="no"
125 want_ecore_evas_software_16_x11="no"
126 want_ecore_evas_software_xcb="no"
127 want_ecore_evas_xrender_xcb="no"
128 want_ecore_evas_software_gdi="no"
129 want_ecore_evas_software_ddraw="no"
130 want_ecore_evas_direct3d="no"
131 want_ecore_evas_opengl_glew="no"
132 want_ecore_evas_software_16_ddraw="no"
133 want_ecore_evas_quartz="no"
134 want_ecore_evas_software_sdl="no"
135 want_ecore_evas_directfb="no"
136 want_ecore_evas_fb="no"
137 want_ecore_evas_software_16_wince="no"
141 want_ecore_wince="yes"
142 want_ecore_evas_software_16_wince="yes"
145 want_notify_win32="yes"
149 want_ecore_win32="yes"
150 want_ecore_evas_software_gdi="yes"
151 want_ecore_evas_software_ddraw="yes"
152 want_ecore_evas_direct3d="yes"
153 want_ecore_evas_opengl_glew="yes"
154 want_ecore_evas_software_16_ddraw="auto"
155 want_ecore_evas_software_sdl="yes"
164 want_ecore_config="yes"
166 want_ecore_quartz="yes"
167 want_ecore_evas_quartz="yes"
168 want_ecore_evas_software_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_directfb="yes"
193 want_ecore_evas_fb="yes"
197 requirements_ecore=""
198 requirements_ecore_con=""
199 requirements_ecore_config=""
200 requirements_ecore_directfb=""
201 requirements_ecore_evas=""
202 requirements_ecore_fb=""
203 requirements_ecore_file=""
204 requirements_ecore_imf=""
205 requirements_ecore_imf_evas=""
206 requirements_ecore_input=""
207 requirements_ecore_input_evas=""
208 requirements_ecore_ipc=""
209 requirements_ecore_job=""
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_job="evil ${requirements_ecore_job}"
306 requirements_ecore_txt="evil ${requirements_ecore_txt}"
307 EFL_ECORE_BUILD="-DEFL_ECORE_BUILD"
308 EFL_ECORE_JOB_BUILD="-DEFL_ECORE_JOB_BUILD"
309 EFL_ECORE_TXT_BUILD="-DEFL_ECORE_TXT_BUILD"
310 EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD"
311 EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD"
312 EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD"
313 EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD"
321 EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD"
322 requirements_ecore_wince="evil ${requirements_ecore_wince}"
326 EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD"
327 EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD"
328 requirements_ecore_win32="evil ${requirements_ecore_win32}"
329 requirements_ecore_sdl="evil ${requirements_ecore_sdl}"
334 AC_SUBST(EFL_ECORE_BUILD)
335 AC_SUBST(EFL_ECORE_JOB_BUILD)
336 AC_SUBST(EFL_ECORE_TXT_BUILD)
337 AC_SUBST(EFL_ECORE_FILE_BUILD)
338 AC_SUBST(EFL_ECORE_EVAS_BUILD)
339 AC_SUBST(EFL_ECORE_IMF_BUILD)
340 AC_SUBST(EFL_ECORE_INPUT_BUILD)
341 AC_SUBST(EFL_ECORE_WINCE_BUILD)
342 AC_SUBST(EFL_ECORE_WIN32_BUILD)
343 AC_SUBST(EFL_ECORE_SDL_BUILD)
345 AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes")
346 AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes")
355 WIN32_LIBS="-lws2_32"
359 AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
363 AC_SUBST(dlopen_libs)
367 PKG_CHECK_MODULES(EINA, [eina-0])
368 #FIXME check all the requirements when the eina move will be finished
369 requirements_ecore="eina-0 ${requirements_ecore}"
370 requirements_ecore_con="ecore eina-0 ${requirements_ecore_con}"
371 requirements_ecore_config="ecore eina-0 ${requirements_ecore_config}"
372 requirements_ecore_directfb="ecore eina-0 ${requirements_ecore_directfb}"
373 requirements_ecore_evas="ecore eina-0 ${requirements_ecore_evas}"
374 requirements_ecore_fb="ecore eina-0 ${requirements_ecore_fb}"
375 requirements_ecore_file="ecore eina-0 ${requirements_ecore_file}"
376 requirements_ecore_imf="ecore eina-0 ${requirements_ecore_imf}"
377 requirements_ecore_imf_evas="ecore eina-0 ${requirements_ecore_imf_evas}"
378 requirements_ecore_input="ecore eina-0 ${requirements_ecore_input}"
379 requirements_ecore_input_evas="ecore eina-0 ${requirements_ecore_input_evas}"
380 requirements_ecore_ipc="ecore eina-0 ${requirements_ecore_ipc}"
381 requirements_ecore_job="ecore eina-0 ${requirements_ecore_job}"
382 requirements_ecore_quartz="ecore eina-0 ${requirements_ecore_quartz}"
383 requirements_ecore_sdl="ecore eina-0 ${requirements_ecore_sdl}"
384 requirements_ecore_win32="ecore eina-0 ${requirements_ecore_win32}"
385 requirements_ecore_wince="ecore eina-0 ${requirements_ecore_wince}"
386 requirements_ecore_x="ecore eina-0 ${requirements_ecore_x}"
389 # glib support (main loop integration)
390 AC_ARG_ENABLE([glib],
391 [AC_HELP_STRING([--disable-glib], [enable glib support. @<:@default=detect@:>@])],
392 [want_glib=$enableval], [])
394 if test "x$want_glib" != "xno"; then
395 PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"])
399 if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then
400 AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.])
401 elif test "x$have_glib" = "xyes"; then
402 AC_DEFINE(HAVE_GLIB, [1], [Have GLib])
403 requirements_ecore="glib-2.0 ${requirements_ecore}"
407 # iconv library (ecore_txt)
412 AC_ARG_WITH([iconv-link],
413 AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
419 AC_MSG_CHECKING(for explicit iconv link options)
420 if test "x${iconv_libs}" = "x" ; then
421 AC_MSG_RESULT([no explicit iconv link option])
423 AC_MSG_RESULT([$iconv_libs])
428 if test "x${have_iconv}" = "xno" && test "x${am_cv_func_iconv}" = "xyes" ; then
429 iconv_cflags=${LIBICONV}
430 iconv_libs=${LTLIBICONV}
434 AC_SUBST(iconv_cflags)
438 # SDL library (ecore_sdl)
441 SDL_CONFIG="sdl-config"
442 AC_ARG_WITH([sdl-config],
443 [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
446 AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
449 AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
451 if test -z "$SDL_CONFIG" ; then
452 SDL_CFLAGS=`$SDL_CONFIG --cflags`
453 SDL_LIBS=`$SDL_CONFIG --libs`
458 PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
461 if test "x${have_sdl}" = "xyes" ; then
462 PKG_CHECK_EXISTS([sdl >= 1.3.0],
463 [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
467 # DirectFB library (ecore_directfb)
469 PKG_CHECK_MODULES([DIRECTFB],
470 [directfb >= 0.9.16],
471 [have_directfb="yes"],
472 [have_directfb="no"])
475 # Eet library (ecore_config)
477 PKG_CHECK_MODULES([EET],
483 # Xlib and XCB (ecore_x)
487 have_ecore_x_xlib="no"
488 have_ecore_x_xcb="no"
495 ecore_x_libs_private=""
497 AC_ARG_ENABLE(ecore-x-xcb,
498 [AC_HELP_STRING([--enable-ecore-x-xcb],
499 [enable the ecore_x module with XCB backend. [[default=disabled]]])],
500 [want_ecore_x_xcb=$enableval],
501 [want_ecore_x_xcb="no"])
503 AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
504 AC_MSG_RESULT($want_ecore_x_xcb)
506 if test "x$want_ecore_x_xcb" = "xyes" ; then
507 PKG_CHECK_MODULES(XCB, xcb xcb-icccm xcb-image xcb-keysyms pixman-1,
508 [ have_ecore_x_xcb="yes"
509 requirements_ecore_x="xcb xcb-icccm xcb-image xcb-keysyms pixman-1 ${requirements_ecore_x}" ],
510 [ have_ecore_x_xcb="no" ])
512 if test "x$have_ecore_x_xcb" = "xyes" ; then
513 PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite,
514 [ have_ecore_x_xcb_composite="yes"
515 requirements_ecore_x="xcb-composite ${requirements_ecore_x}"
516 AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ],
517 [ have_ecore_x_xcb_composite="no" ])
519 PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage,
520 [ have_ecore_x_xcb_damage="yes"
521 requirements_ecore_x="xcb-damage ${requirements_ecore_x}"
522 AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ],
523 [ have_ecore_x_xcb_damage="no" ])
525 PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms,
526 [ have_ecore_x_xcb_dpms="yes"
527 requirements_ecore_x="xcb-dpms ${requirements_ecore_x}"
528 AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ],
529 [ have_ecore_x_xcb_dpms="no" ])
531 PKG_CHECK_MODULES(XCB_RANDR, xcb-randr,
532 [ have_ecore_x_xcb_randr="yes"
533 requirements_ecore_x="xcb-randr ${requirements_ecore_x}"
534 AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ],
535 [ have_ecore_x_xcb_randr="no" ])
537 PKG_CHECK_MODULES(XCB_RENDER, xcb-render,
538 [ have_ecore_x_xcb_render="yes"
539 requirements_ecore_x="xcb-render ${requirements_ecore_x}"
540 AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ],
541 [ have_ecore_x_xcb_render="no" ])
543 PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver,
544 [ have_ecore_x_xcb_screensaver="yes"
545 requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}"
546 AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ],
547 [ have_ecore_x_xcb_screensaver="no" ])
549 PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape,
550 [ have_ecore_x_xcb_shape="yes"
551 requirements_ecore_x="xcb-shape ${requirements_ecore_x}"
552 AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ],
553 [ have_ecore_x_xcb_shape="no" ])
555 PKG_CHECK_MODULES(XCB_SYNC, xcb-sync,
556 [ have_ecore_x_xcb_sync="yes"
557 requirements_ecore_x="xcb-sync ${requirements_ecore_x}"
558 AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ],
559 [ have_ecore_x_xcb_sync="no" ])
561 PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes,
562 [ have_ecore_x_xcb_xfixes="yes"
563 requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}"
564 AC_DEFINE(ECORE_XCB_FIXES, 1, [Build support for XCB xfixes]) ],
565 [ have_ecore_x_xcb_xfixes="no" ])
567 PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama,
568 [ have_ecore_x_xcb_xinerama="yes"
569 requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}"
570 AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ],
571 [ have_ecore_x_xcb_xinerama="no" ])
573 PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint,
574 [ have_ecore_x_xcb_xprint="yes"
575 requirements_ecore_x="xcb-xprint ${requirements_ecore_x}"
576 AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ],
577 [ have_ecore_x_xcb_xprint="no" ])
579 PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest,
580 [ have_ecore_x_xcb_xtest="yes"
581 requirements_ecore_x="xcb-xtest ${requirements_ecore_x}"
582 AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ],
583 [ have_ecore_x_xcb_xtest="no" ])
585 AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.])
591 have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
592 AC_SUBST(have_ecore_x_xcb_define)
596 if ! test "x$have_ecore_x_xcb" = "xyes" ; then
598 AC_CHECK_HEADER(X11/X.h,
600 if test "x$want_evas_simple_x11" = "xyes"; then
601 x_libs="${x_libs} -lX11 -lXext"
603 x_dir=${x_dir:-/usr/X11R6}
604 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
605 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
607 have_ecore_x_xlib="yes"
611 if test "x$have_ecore_x_xlib" = "xyes"; then
616 CFLAGS="$x_cflags $x_includes"
617 AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
619 AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
621 AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
623 Xcursor_libs="-lXcursor"
638 #include <X11/Xlib.h>
643 AC_SUBST(Xcursor_cflags)
644 AC_SUBST(Xcursor_libs)
646 ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat])
647 ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension])
648 ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract])
649 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension])
650 if test "x$use_xdpms" = "xno" ; then
651 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension])
653 ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion])
654 ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens])
655 ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens])
656 ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent])
657 ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat])
658 ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent])
659 ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput])
661 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} "
663 AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.])
666 have_ecore_x_xlib="yes"
673 AC_SUBST(ecore_x_libs_private)
675 AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes)
676 AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes)
679 # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas)
681 PKG_CHECK_MODULES([EVAS], [evas >= 0.9.9],
686 ### Checks for header files
692 AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.])
693 AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.])
694 AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.])
697 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])
701 # Framebuffer (ecore_fb)
703 AC_CHECK_HEADER([linux/fb.h],
704 [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])])
706 # Quartz header files (ecore_quartz)
711 if test "x${have_gnu_objc}" = "xyes" ; then
712 AC_LANG_PUSH([Objective C])
713 AC_CHECK_HEADER([Cocoa/Cocoa.h],
716 quartz_ldflags="-framework Cocoa"
719 AC_LANG_POP([Objective C])
722 AC_SUBST(quartz_ldflags)
724 # basic pthread support
726 EFL_CHECK_PTHREAD([have_pthread="yes"], [have_pthread="no"])
729 AC_CHECK_SIZEOF(int, 4)
730 AC_CHECK_SIZEOF(long, 4)
733 ### Checks for structures
736 ### Checks for compiler characteristics
747 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
750 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
751 WIN32_CFLAGS="-mwin32"
754 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500"
757 AC_SUBST(WIN32_CPPFLAGS)
758 AC_SUBST(WIN32_CFLAGS)
761 ### Checks for linker characteristics
763 # use --enable-auto-import on Windows
765 lt_enable_auto_import=""
768 lt_enable_auto_import="-Wl,--enable-auto-import"
771 AC_SUBST(lt_enable_auto_import)
773 ### Checks for library functions
775 AC_CHECK_FUNCS(gettimeofday strlcpy)
777 have_atfile_source=auto
778 AC_ARG_ENABLE(atfile-source,
779 AC_HELP_STRING([--disable-atfile-source],
780 [disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@]),
781 [have_atfile_source=$enableval], [have_atfile_source=auto])
783 if test "x$have_atfile_source" != "xno"; then
784 AC_CHECK_FUNCS(mkdirat,
786 have_atfile_source=yes
787 AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists])
790 if test "x$have_atfile_source" = "xyes"; then
791 AC_MSG_ERROR([required atfile-source but no mkdirat()])
793 have_atfile_source=no
802 ECORE_CHECK_MODULE([Job], [${want_ecore_job}])
805 ECORE_CHECK_MODULE([Txt], [${want_ecore_txt}], [$have_iconv])
808 ECORE_CHECK_MODULE([Con], [${want_ecore_con}])
814 if test "x${have_ecore_con}" = "xyes" ; then
816 ECORE_CHECK_CURL([${want_curl}],
819 requirements_ecore_con="libcurl ${requirements_ecore_con}"
823 ECORE_CHECK_GNUTLS([${want_gnutls}],
827 ECORE_CHECK_OPENSSL([${want_openssl}],
828 [have_openssl="yes"],
831 if test "x${have_gnutls}" = "xyes" ; then
832 requirements_ecore_con="gnutls ${requirements_ecore_con}"
833 # no need to add it to req_ecore_ipc, since they
834 # depends on ecore_con anyway.
836 if test "x${have_openssl}" = "xyes" ; then
837 requirements_ecore_con="openssl ${requirements_ecore_con}"
838 # no need to add it to req_ecore_ipc, since they
839 # depends on ecore_con anyway.
843 ECORE_CHECK_CARES([${want_cares}],
846 requirements_ecore_con="libcares ${requirements_ecore_con}"
852 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
855 ECORE_CHECK_MODULE([Ipc], [${want_ecore_ipc}], [${have_ecore_con}],
856 [requirements_ecore_ipc="ecore-con ${requirements_ecore_ipc}"])
859 ECORE_CHECK_MODULE([File], [${want_ecore_file}])
863 have_notify_win32="no"
864 if test "x${have_ecore_file}" = "xyes" ; then
865 ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"])
866 ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"])
867 ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"])
869 if test "x${have_ecore_con}" = "xyes" ; then
870 requirements_ecore_file="ecore-con ${requirements_ecore_file}"
875 ecore_config_deps="no"
876 if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then
877 ecore_config_deps="yes"
880 ECORE_CHECK_MODULE([Config], [${want_ecore_config}], [${ecore_config_deps}],
881 [requirements_ecore_config="ecore-ipc evas eet ${requirements_ecore_config}"])
885 ECORE_CHECK_MODULE([IMF], [${want_ecore_imf}])
889 ecore_imf_evas_deps="no"
890 if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then
891 ecore_imf_evas_deps="yes"
894 ECORE_CHECK_MODULE([IMF_EVAS], [${want_ecore_imf}], [${ecore_imf_evas_deps}],
895 [requirements_ecore_imf_evas="ecore-imf evas ${requirements_ecore_imf_evas}"])
898 ECORE_CHECK_MODULE([Input], [${want_ecore_input}])
899 ECORE_CHECK_MODULE([Input_Evas], [${want_ecore_input}], [${have_evas}],
900 [requirements_ecore_input_evas="ecore-input evas ${requirements_ecore_input}"])
907 if test "x${have_x}" = "xyes" -a \
908 "x${have_ecore_input}" = "xyes" -a \
909 "x${have_ecore_txt}" = "xyes" ; then
913 ECORE_CHECK_MODULE([X], [${want_ecore_x}], [${ecore_x_deps}],
915 ecore_x_libs="$ecore_x_libs $x_libs"
916 requirements_ecore_x="ecore-input ecore-txt ${requirements_ecore_x}"
921 ECORE_CHECK_MODULE([Win32], [${want_ecore_win32}], [${have_ecore_input}],
923 ecore_win32_libs="-lole32 -lgdi32"
924 requirements_ecore_win32="ecore-input ${requirements_ecore_win32}"
926 AC_SUBST(ecore_win32_libs)
930 ecore_quartz_deps="no"
931 if test "x${have_ecore_input}" = "xyes" -a "x${have_quartz}" = "xyes" ; then
932 ecore_quartz_deps="yes"
935 ECORE_CHECK_MODULE([QUARTZ], [${want_ecore_quartz}], [${ecore_quartz_deps}],
936 [requirements_ecore_quartz="ecore-input ${requirements_ecore_quartz}"])
941 if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then
945 ECORE_CHECK_MODULE([SDL], [${want_ecore_sdl}], [${ecore_sdl_deps}],
946 [requirements_ecore_sdl="ecore-input ${requirements_ecore_sdl}"])
949 ECORE_CHECK_MODULE([FB], [${want_ecore_fb}], [$have_fb])
951 if test "x${have_ecore_fb}" = "xyes" ; then
952 ECORE_CHECK_TSLIB([${want_tslib}],
955 requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}"
962 ECORE_CHECK_MODULE([DirectFB], [${want_ecore_directfb}], [${have_directfb}],
963 [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"])
967 ECORE_CHECK_MODULE([WinCE], [${want_ecore_wince}], [${have_ecore_input}],
968 [requirements_ecore_win32="ecore-input ${requirements_ecore_win32}"])
975 if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then
976 ecore_evas_deps="yes"
979 ECORE_CHECK_MODULE([Evas], [${want_ecore_evas}], [${ecore_evas_deps}],
980 [requirements_ecore_evas="ecore-input ecore-input-evas evas ${requirements_ecore_evas}"])
984 ECORE_EVAS_CHECK_MODULE([software-buffer],
985 [${want_ecore_evas_software_buffer}],
991 # ecore_evas_software_x11
993 ECORE_EVAS_CHECK_MODULE([software-x11],
994 [${want_ecore_evas_software_x11}],
998 have_ecore_evas_software_xlib=no"
999 have_ecore_evas_software_xcb=no"
1000 if test "x$have_ecore_evas_software_x11" = "xyes" ; then
1001 have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11`
1002 if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then
1003 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support])
1005 have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11`
1006 if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
1007 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support])
1011 # ecore_evas_xrender_x11
1013 ECORE_EVAS_CHECK_MODULE([xrender-x11],
1014 [${want_ecore_evas_xrender_x11}],
1016 [${have_ecore_x_xlib}])
1018 # ecore_evas_opengl_x11
1020 ECORE_EVAS_CHECK_MODULE([opengl-x11],
1021 [${want_ecore_evas_opengl_x11}],
1023 [${have_ecore_x_xlib}])
1025 # ecore_evas_software_x11 16 bits
1027 ECORE_EVAS_CHECK_MODULE([software-16-x11],
1028 [${want_ecore_evas_software_16_x11}],
1029 [Software Xlib 16 bits],
1030 [${have_ecore_x_xlib}])
1032 # ecore_evas_xrender_xcb
1034 ECORE_EVAS_CHECK_MODULE([xrender-xcb],
1035 [${want_ecore_evas_xrender_xcb}],
1037 [${ecore_evas_xcb_deps}])
1039 if test "x$have_ecore_evas_software_x11" = "xyes" -o \
1040 "x$have_ecore_evas_xrender_x11" = "xyes" -o \
1041 "x$have_ecore_evas_opengl_x11" = "xyes" -o \
1042 "x$have_ecore_evas_software_16_x11" = "xyes" -o \
1043 "x$have_ecore_evas_software_xcb" = "xyes" -o \
1044 "x$have_ecore_evas_xrender_xcb" = "xyes"; then
1045 AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas])
1046 requirements_ecore_evas="ecore-x ${requirements_ecore_evas}"
1051 ECORE_EVAS_CHECK_MODULE([software-gdi],
1052 [${want_ecore_evas_software_gdi}],
1054 [${have_ecore_win32}])
1056 ECORE_EVAS_CHECK_MODULE([software-ddraw],
1057 [${want_ecore_evas_software_ddraw}],
1058 [Software DirectDraw],
1059 [${have_ecore_win32}])
1061 ECORE_EVAS_CHECK_MODULE([direct3d],
1062 [${want_ecore_evas_direct3d}],
1064 [${have_ecore_win32}])
1066 ECORE_EVAS_CHECK_MODULE([opengl-glew],
1067 [${want_ecore_evas_opengl_glew}],
1069 [${have_ecore_win32}])
1071 ECORE_EVAS_CHECK_MODULE([software-16-ddraw],
1072 [${want_ecore_evas_software_16_ddraw}],
1073 [16 bpp Software DirectDraw],
1074 [${have_ecore_win32}])
1076 if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \
1077 "x${have_ecore_evas_software_ddraw}" = "xyes" -o \
1078 "x${have_ecore_evas_direct3d}" = "xyes" -o \
1079 "x${have_ecore_evas_opengl_glew}" = "xyes" -o \
1080 "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then
1081 AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
1082 requirements_ecore_evas="ecore-win32 ${requirements_ecore_evas}"
1087 ECORE_EVAS_CHECK_MODULE([quartz],
1088 [${want_ecore_evas_quartz}],
1090 [${have_ecore_quartz}],
1091 [requirements_ecore_evas="ecore-quartz ${requirements_ecore_evas}"])
1093 # ecore_evas_software_sdl
1095 ECORE_EVAS_CHECK_MODULE([software-sdl],
1096 [${want_ecore_evas_software_sdl}],
1098 [${have_ecore_sdl}],
1099 [requirements_ecore_evas="ecore-sdl ${requirements_ecore_evas}"])
1101 # ecore_evas_directfb
1103 ECORE_EVAS_CHECK_MODULE([directfb],
1104 [${want_ecore_evas_directfb}],
1106 [${have_ecore_directfb}],
1107 [requirements_ecore_evas="ecore-directfb ${requirements_ecore_evas}"])
1111 ECORE_EVAS_CHECK_MODULE([fb],
1112 [${want_ecore_evas_fb}],
1113 [Linux Framebuffer],
1115 [requirements_ecore_evas="ecore-fb ${requirements_ecore_evas}"])
1119 ECORE_EVAS_CHECK_MODULE([software-16-wince],
1120 [${want_ecore_evas_software_16_wince}],
1121 [16 bpp Software Windows CE],
1122 [${have_ecore_wince}],
1123 [requirements_ecore_evas="ecore-wince ${requirements_ecore_evas}"])
1129 AC_SUBST(requirements_ecore)
1130 AC_SUBST(requirements_ecore_con)
1131 AC_SUBST(requirements_ecore_config)
1132 AC_SUBST(requirements_ecore_directfb)
1133 AC_SUBST(requirements_ecore_evas)
1134 AC_SUBST(requirements_ecore_fb)
1135 AC_SUBST(requirements_ecore_file)
1136 AC_SUBST(requirements_ecore_imf)
1137 AC_SUBST(requirements_ecore_imf_evas)
1138 AC_SUBST(requirements_ecore_input)
1139 AC_SUBST(requirements_ecore_input_evas)
1140 AC_SUBST(requirements_ecore_ipc)
1141 AC_SUBST(requirements_ecore_job)
1142 AC_SUBST(requirements_ecore_quartz)
1143 AC_SUBST(requirements_ecore_sdl)
1144 AC_SUBST(requirements_ecore_txt)
1145 AC_SUBST(requirements_ecore_x)
1146 AC_SUBST(requirements_ecore_win32)
1147 AC_SUBST(requirements_ecore_wince)
1175 src/lib/ecore/Makefile
1176 src/lib/ecore_job/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
1202 echo "$PACKAGE $VERSION"
1204 echo "Optional Modules:"
1208 echo " Ecore........................: always"
1209 echo " Thread support.............: $have_pthread"
1210 echo " GLib support...............: $have_glib"
1211 echo " Ecore_Job....................: $have_ecore_job"
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"
1285 echo " Ecore_X......................: $have_ecore_x"
1287 echo " Ecore_Win32..................: $have_ecore_win32"
1288 echo " Ecore_Quartz.................: $have_ecore_quartz"
1289 echo " Ecore_SDL....................: $have_ecore_sdl"
1290 echo " Ecore_FB.....................: $have_ecore_fb"
1291 if test "x${have_ecore_fb}" = "xyes" ; then
1292 echo " Touchscreen................: $have_tslib"
1294 echo " Ecore_DirectFB...............: $have_ecore_directfb"
1295 echo " Ecore_WinCE..................: $have_ecore_wince"
1301 echo " Ecore_Evas...................: $have_ecore_evas"
1302 if test "x${have_ecore_evas}" = "xyes" ; then
1303 echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer"
1304 if test "x${have_ecore_evas_software_x11}" = "xyes" ; then
1305 if test "x${have_ecore_evas_software_xlib}" = "xyes" ; then
1306 echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib)"
1308 if test "x${have_ecore_evas_software_xcb}" = "xyes" ; then
1309 echo " Software X11...............: $have_ecore_evas_software_x11 (XCB)"
1312 echo " Software X11...............: $have_ecore_evas_software_x11"
1314 echo " XRender X11................: $have_ecore_evas_xrender_x11"
1315 echo " OpenGL X11.................: $have_ecore_evas_opengl_x11"
1316 echo " XRender XCB................: $have_ecore_evas_xrender_xcb"
1317 echo " Software GDI...............: $have_ecore_evas_software_gdi"
1318 echo " Software DirectDraw........: $have_ecore_evas_software_ddraw"
1319 echo " Direct3D...................: $have_ecore_evas_direct3d"
1320 echo " OpenGL Glew................: $have_ecore_evas_opengl_glew"
1321 echo " Quartz.....................: $have_ecore_evas_quartz"
1322 echo " Software SDL...............: $have_ecore_evas_software_sdl"
1323 echo " DirectFB...................: $have_ecore_evas_directfb"
1324 echo " Software Framebuffer.......: $have_ecore_evas_fb"
1325 echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11"
1326 echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw"
1327 echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince"
1330 echo " Documentation.................: ${build_doc}"
1332 echo " Compilation...................: make (or gmake)"
1333 if test "x${build_doc}" = "xyes" ; then
1334 echo " Build of the documentation....: make doc"
1337 echo " Installation..................: make install"
1339 echo " prefix.....................: $prefix"
1343 echo "Compilation............: make (or gmake)"
1344 echo " CPPFLAGS.............: $CPPFLAGS"
1345 echo " CFLAGS...............: $CFLAGS"
1346 echo " CXXFLAGS.............: $CXXFLAGS"
1347 echo " LDFLAGS..............: $LDFLAGS"
1349 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
1350 echo " prefix...............: $prefix"