More ecore_data to separate lib
[profile/ivi/ecore.git] / configure.ac
1 # get rid of that stupid cache mechanism
2 rm -f config.cache
3
4 AC_INIT([ecore], [0.9.9.063], [enlightenment-devel@lists.sourceforge.net])
5 release="ver-pre-svn-05"
6 AC_PREREQ([2.52])
7 AC_CONFIG_SRCDIR([configure.ac])
8 AC_CONFIG_MACRO_DIR([m4])
9 AC_CANONICAL_BUILD
10 AC_CANONICAL_HOST
11 AC_ISC_POSIX
12
13 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
14 AM_CONFIG_HEADER([config.h])
15 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
16
17 AC_GNU_SOURCE
18
19 AC_LIBTOOL_WIN32_DLL
20 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
21 AC_PROG_LIBTOOL
22
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)
29
30 AM_GNU_GETTEXT_VERSION([0.12.1])
31 AM_GNU_GETTEXT([external])
32
33 EFL_CHECK_PATH_MAX
34
35 case "$host_os" in
36    mingw32ce* | cegcc*)
37       ;;
38    *)
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"
56       ;;
57 esac
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)
76
77 AC_DEFINE_UNQUOTED(SHARED_LIB_SUFFIX, "$shrext_cmds", [Suffix for shared objects])
78
79
80 ### Default options with respect to host
81
82 # dependencies and options
83 want_curl="no"
84 want_abstract_sockets="no"
85 want_gnutls="no"
86 want_openssl="no"
87 want_cares="no"
88 want_cipher="no"
89 want_signature="no"
90 want_poll="yes"
91 want_inotify="no"
92 want_notify_win32="no"
93 want_tslib="no"
94 want_glib="no"
95
96 # core modules
97 want_ecore_txt="yes"
98 want_ecore_con="no"
99 want_ecore_ipc="no"
100 want_ecore_file="yes"
101 want_ecore_config="no"
102 want_ecore_imf="no"
103 want_ecore_input="yes"
104
105 # graphic system modules
106 want_evas_simple_x11="no"
107 want_ecore_x_xcb="no"
108 want_ecore_x="no"
109 want_ecore_win32="no"
110 want_ecore_quartz="no"
111 want_ecore_sdl="no"
112 want_ecore_fb="no"
113 want_ecore_directfb="no"
114 want_ecore_wince="no"
115
116 # ecore_evas modules
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"
136
137 case "$host_os" in
138    mingw32ce* | cegcc*)
139       want_ecore_wince="yes"
140       want_ecore_evas_software_16_wince="yes"
141       ;;
142    mingw*)
143       want_notify_win32="yes"
144       want_curl="yes"
145       want_glib="auto"
146       want_ecore_imf="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"
155       ;;
156    darwin*)
157       want_curl="yes"
158       want_glib="auto"
159       want_gnutls="auto"
160       want_openssl="auto"
161       want_ecore_con="yes"
162       want_ecore_ipc="yes"
163       want_ecore_config="yes"
164       want_ecore_imf="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"
169       ;;
170    *)
171       want_curl="yes"
172       want_glib="auto"
173       want_abstract_sockets="yes"
174       want_gnutls="auto"
175       want_openssl="auto"
176       want_cipher="yes"
177       want_signature="yes"
178       want_inotify="yes"
179       want_tslib="yes"
180       want_ecore_con="yes"
181       want_ecore_ipc="yes"
182       want_ecore_config="yes"
183       want_ecore_imf="yes"
184       want_ecore_x="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"
195       ;;
196 esac
197
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=""
216
217 ### Additional options to configure
218
219 # abstract sockets (ecore_con.c)
220 AC_ARG_ENABLE([abstract-sockets],
221    [AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])],
222    [
223     if test "x${enableval}" = "xyes" ; then
224        want_abstract_sockets="yes"
225     else
226        want_abstract_sockets="no"
227     fi
228    ],
229    [want_abstract_sockets="yes"])
230
231 if test "x${want_abstract_sockets}" = "xyes" ; then
232    AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace])
233 fi
234
235 # Simple X11 build/link
236
237 AC_ARG_ENABLE(simple-x11,
238   AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
239   [want_evas_simple_x11=$enableval])
240
241 # XIM
242 AC_ARG_ENABLE([xim],
243    [AC_HELP_STRING([--enable-xim], [enable X Input Method.])],
244    [
245     if test "x${enableval}" = "xyes" ; then
246        want_xim="yes"
247     else
248        want_xim="no"
249     fi
250    ],
251    [want_xim="no"])
252
253 if test "x${want_xim}" = "xyes" ; then
254    AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
255 fi
256
257
258 ### Checks for programs
259
260 m4_ifdef([AC_PROG_OBJC],
261    [
262     AC_PROG_OBJC
263     _AM_DEPENDENCIES(OBJC)
264    ],
265    [
266     AC_CHECK_TOOL([OBJC], [gcc])
267     AC_SUBST([OBJC])
268     AC_SUBST([OBJCFLAGS])
269    ])
270 AC_PROG_CXX
271 AC_PROG_CC
272
273 have_gnu_objc=${ac_cv_objc_compiler_gnu}
274
275 # doxygen program for documentation building
276
277 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
278
279 # The first call to PKG_CHECK_MODULES is done conditionally,
280 # so we should include this here:
281 PKG_PROG_PKG_CONFIG
282
283 # Check whether pkg-config supports Requires.private
284 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
285    pkgconfig_requires_private="Requires.private"
286 else
287    pkgconfig_requires_private="Requires"
288 fi
289 AC_SUBST(pkgconfig_requires_private)
290
291
292 ### Checks for libraries
293
294 # Evil library for compilation on Windows
295
296 case "$host_os" in
297    mingw* | cegcc*)
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"
312       ;;
313 esac
314
315 have_win32=""
316 have_wince=""
317 case "$host_os" in
318    mingw32ce* | cegcc*)
319       EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD"
320       requirements_ecore_wince="evil ${requirements_ecore_wince}"
321       have_wince="yes"
322       ;;
323    mingw*)
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}"
328       have_win32="yes"
329       ;;
330 esac
331
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)
341
342 AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes")
343 AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes")
344
345 WIN32_LIBS=""
346 case "$host_os" in
347    mingw32ce* | cegcc*)
348       WIN32_LIBS="-lws2"
349       dlopen_libs="-ldl"
350       ;;
351    mingw*)
352       WIN32_LIBS="-lws2_32"
353       dlopen_libs="-ldl"
354       ;;
355    *)
356       AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
357       ;;
358 esac
359 AC_SUBST(WIN32_LIBS)
360 AC_SUBST(dlopen_libs)
361
362 # Eina library
363
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}"
383
384
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], [])
389
390 if test "x$want_glib" != "xno"; then
391    PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"])
392 else
393    have_glib="no"
394 fi
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}"
400 fi
401
402
403 # iconv library (ecore_txt)
404
405 iconv_cflags=""
406 iconv_libs=""
407 have_iconv="no"
408 AC_ARG_WITH([iconv-link],
409    AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
410    [
411     iconv_libs=$withval
412     have_iconv="yes"
413    ])
414
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])
418 else
419    AC_MSG_RESULT([$iconv_libs])
420 fi
421
422 AM_ICONV
423
424 if test "x${have_iconv}" = "xno" && test "x${am_cv_func_iconv}" = "xyes" ; then
425    iconv_cflags=${LIBICONV}
426    iconv_libs=${LTLIBICONV}
427    have_iconv="yes"
428 fi
429
430 AC_SUBST(iconv_cflags)
431 AC_SUBST(iconv_libs)
432
433
434 # SDL library (ecore_sdl)
435
436 have_sdl="no"
437 SDL_CONFIG="sdl-config"
438 AC_ARG_WITH([sdl-config],
439    [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
440    [
441     SDL_CONFIG=$withval
442     AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
443    ])
444
445 AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
446
447 if test -z "$SDL_CONFIG" ; then
448    SDL_CFLAGS=`$SDL_CONFIG --cflags`
449    SDL_LIBS=`$SDL_CONFIG --libs`
450    AC_SUBST(SDL_CFLAGS)
451    AC_SUBST(SDL_LIBS)
452    have_sdl="no"
453 else
454    PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
455 fi
456
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])])
460 fi
461
462
463 # DirectFB library (ecore_directfb)
464
465 PKG_CHECK_MODULES([DIRECTFB],
466    [directfb >= 0.9.16],
467    [have_directfb="yes"],
468    [have_directfb="no"])
469
470
471 # Eet library (ecore_config)
472
473 PKG_CHECK_MODULES([EET],
474    [eet >= 1.0.0],
475    [have_eet="yes"],
476    [have_eet="no"])
477
478
479 # Xlib and XCB (ecore_x)
480
481 have_x="no"
482 have_ecore_x="no"
483 have_ecore_x_xlib="no"
484 have_ecore_x_xcb="no"
485
486 x_dir="";
487 x_includes="";
488 x_cflags="";
489 x_libs="";
490
491 ecore_x_libs_private=""
492
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"])
498
499 AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
500 AC_MSG_RESULT($want_ecore_x_xcb)
501
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" ])
507
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" ])
514
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" ])
520
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" ])
526
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" ])
532
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" ])
538
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" ])
544
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" ])
550
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" ])
556
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" ])
562
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" ])
568
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" ])
574
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" ])
580
581     AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.])
582
583     x_cflags=$XCB_CFLAGS
584     x_libs=$XCB_LIBS
585     have_x="yes"
586
587     have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
588     AC_SUBST(have_ecore_x_xcb_define)
589   fi
590 fi
591
592 if ! test "x$have_ecore_x_xcb" = "xyes" ; then
593   AC_PATH_XTRA
594   AC_CHECK_HEADER(X11/X.h,
595     [
596      if test "x$want_evas_simple_x11" = "xyes"; then
597        x_libs="${x_libs} -lX11 -lXext"
598      else
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"
602      fi
603      have_ecore_x_xlib="yes"
604     ]
605   )
606
607   if test "x$have_ecore_x_xlib" = "xyes"; then
608     Xcursor_libs=""
609     Xcursor_cflags=""
610     use_Xcursor="no"
611     PCFLAGS=$CFLAGS
612     CFLAGS="$x_cflags $x_includes"
613     AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
614       [
615         AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
616           [
617             AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
618             Xcursor_cflags=""
619             Xcursor_libs="-lXcursor"
620             use_Xcursor="yes"
621           ], [
622             Xcursor_cflags=""
623             Xcursor_libs=""
624             use_Xcursor="no"
625           ], [
626             $x_libs -lXrender
627           ]
628         )
629       ], [
630         Xcursor_cflags=""
631         Xcursor_libs=""
632         use_Xcursor="no"
633       ], [
634         #include <X11/Xlib.h>
635       ]
636     )
637     CFLAGS=$PCFLAGS
638
639     AC_SUBST(Xcursor_cflags)
640     AC_SUBST(Xcursor_libs)
641
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])
648     fi
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])
657
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}"
659
660     AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.])
661     have_x="yes"
662
663     have_ecore_x_xlib="yes"
664   fi
665 fi
666
667 AC_SUBST(x_cflags)
668 AC_SUBST(x_includes)
669 AC_SUBST(x_libs)
670 AC_SUBST(ecore_x_libs_private)
671
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)
674
675
676 # Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas)
677
678 PKG_CHECK_MODULES([EVAS], [evas >= 0.9.9],
679    [have_evas="yes"],
680    [have_evas="no"])
681
682
683 ### Checks for header files
684
685 AC_HEADER_SYS_WAIT
686
687 case "$host_os" in
688    mingw* | cegcc*)
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.])
692       ;;
693    *)
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])
695       ;;
696 esac
697
698 # Framebuffer (ecore_fb)
699 have_fb="no"
700 AC_CHECK_HEADER([linux/fb.h],
701    [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])])
702
703 # Quartz header files (ecore_quartz)
704
705 quartz_ldflags="";
706 have_quartz="no"
707
708 if test "x${have_gnu_objc}" = "xyes" ; then
709    AC_LANG_PUSH([Objective C])
710    AC_CHECK_HEADER([Cocoa/Cocoa.h],
711       [
712        have_quartz="yes"
713        quartz_ldflags="-framework Cocoa"
714       ],
715       [have_quartz="no"])
716    AC_LANG_POP([Objective C])
717 fi
718
719 AC_SUBST(quartz_ldflags)
720
721 # basic pthread support
722
723 EFL_CHECK_PTHREAD([have_pthread="yes"], [have_pthread="no"])
724
725 ### Checks for types
726 AC_CHECK_SIZEOF(int, 4)
727 AC_CHECK_SIZEOF(long, 4)
728
729
730 ### Checks for structures
731
732
733 ### Checks for compiler characteristics
734 AM_PROG_CC_STDC
735 AC_C_CONST
736 AC_C_BIGENDIAN
737 AC_HEADER_STDC
738 AC_C___ATTRIBUTE__
739
740 WIN32_CPPFLAGS=""
741 WIN32_CFLAGS=""
742 case "$host_os" in
743    mingw32ce*)
744       WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
745       ;;
746    cegcc*)
747       WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
748       WIN32_CFLAGS="-mwin32"
749       ;;
750    mingw*)
751       WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500"
752       ;;
753 esac
754 AC_SUBST(WIN32_CPPFLAGS)
755 AC_SUBST(WIN32_CFLAGS)
756
757
758 ### Checks for linker characteristics
759
760 # use --enable-auto-import on Windows
761
762 lt_enable_auto_import=""
763 case "$host_os" in
764    mingw* | cegcc*)
765       lt_enable_auto_import="-Wl,--enable-auto-import"
766       ;;
767 esac
768 AC_SUBST(lt_enable_auto_import)
769
770 ### Checks for library functions
771 AC_FUNC_ALLOCA
772 AC_CHECK_FUNCS(gettimeofday strlcpy)
773
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])
779
780 if test "x$have_atfile_source" != "xno"; then
781         AC_CHECK_FUNCS(mkdirat,
782                 [
783                 have_atfile_source=yes
784                 AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists])
785                 ],
786                 [
787                 if test "x$have_atfile_source" = "xyes"; then
788                         AC_MSG_ERROR([required atfile-source but no mkdirat()])
789                 fi
790                 have_atfile_source=no
791                 ])
792 fi
793
794 ### Ecore modules
795
796 ## Core modules
797
798 # ecore_txt
799 ECORE_CHECK_MODULE([txt], [${want_ecore_txt}], [Txt], [$have_iconv])
800
801 # ecore_con
802 ECORE_CHECK_MODULE([con], [${want_ecore_con}], [Con])
803
804 have_curl="no"
805 have_gnutls="no"
806 have_openssl="no"
807 have_cares="no"
808 if test "x${have_ecore_con}" = "xyes" ; then
809
810    ECORE_CHECK_CURL([${want_curl}],
811       [
812        have_curl="yes"
813        requirements_ecore_con="libcurl ${requirements_ecore_con}"
814       ],
815       [have_curl="no"])
816
817    ECORE_CHECK_GNUTLS([${want_gnutls}],
818       [have_gnutls="yes"],
819       [have_gnutls="no"])
820
821    ECORE_CHECK_OPENSSL([${want_openssl}],
822       [have_openssl="yes"],
823       [have_openssl="no"])
824
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.
829    else
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.
834       fi
835    fi
836
837    ECORE_CHECK_CARES([${want_cares}],
838       [
839        have_cares="yes"
840        requirements_ecore_con="libcares ${requirements_ecore_con}"
841       ],
842       [have_cares="no"])
843
844 fi
845
846 AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
847
848 # ecore_ipc
849 ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}],
850    [requirements_ecore_ipc="ecore-con ${requirements_ecore_ipc}"])
851
852 # ecore_file
853 ECORE_CHECK_MODULE([file], [${want_ecore_file}], [File])
854
855 have_poll="no"
856 have_inotify="no"
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"])
862
863    if test "x${have_ecore_con}" = "xyes" ; then
864       requirements_ecore_file="ecore-con ${requirements_ecore_file}"
865    fi
866 fi
867
868 # ecore_config
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"
872 fi
873
874 ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}],
875    [requirements_ecore_config="ecore-ipc evas eet ${requirements_ecore_config}"])
876
877 # ecore_imf
878
879 ECORE_CHECK_MODULE([imf], [${want_ecore_imf}], [Imf])
880
881 # ecore_imf_evas
882
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"
886 fi
887
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}"])
890
891 # ecore_input{_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}"])
895
896 ## Graphic systems
897
898 # ecore_x{cb}
899
900 ecore_x_deps="no"
901 if test "x${have_x}" = "xyes" -a \
902         "x${have_ecore_input}" = "xyes" -a \
903         "x${have_ecore_txt}" = "xyes" ; then
904    ecore_x_deps="yes"
905 fi
906
907 ECORE_CHECK_MODULE([x], [${want_ecore_x}], [X], [${ecore_x_deps}],
908   [
909    ecore_x_libs="$ecore_x_libs $x_libs"
910    requirements_ecore_x="ecore-input ecore-txt ${requirements_ecore_x}"
911   ])
912
913 # ecore_win32
914
915 ECORE_CHECK_MODULE([win32], [${want_ecore_win32}], [Win32], [${have_ecore_input}],
916    [
917     ecore_win32_libs="-lole32 -lgdi32"
918     requirements_ecore_win32="ecore-input ${requirements_ecore_win32}"
919    ])
920 AC_SUBST(ecore_win32_libs)
921
922 # ecore_quartz
923
924 ecore_quartz_deps="no"
925 if test "x${have_ecore_input}" = "xyes" -a "x${have_quartz}" = "xyes" ; then
926    ecore_quartz_deps="yes"
927 fi
928
929 ECORE_CHECK_MODULE([quartz], [${want_ecore_quartz}], [Quartz], [${ecore_quartz_deps}],
930    [requirements_ecore_quartz="ecore-input ${requirements_ecore_quartz}"])
931
932 # ecore_sdl
933
934 ecore_sdl_deps="no"
935 if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then
936    ecore_sdl_deps="yes"
937 fi
938
939 ECORE_CHECK_MODULE([sdl], [${want_ecore_sdl}], [Sdl], [${ecore_sdl_deps}],
940    [requirements_ecore_sdl="ecore-input ${requirements_ecore_sdl}"])
941
942 # ecore_fb
943 ECORE_CHECK_MODULE([fb], [${want_ecore_fb}], [FB], [$have_fb])
944
945 if test "x${have_ecore_fb}" = "xyes" ; then
946    ECORE_CHECK_TSLIB([${want_tslib}],
947       [
948        have_tslib="yes"
949        requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}"
950       ],
951       [have_tslib="no"])
952 fi
953
954 # ecore_directfb
955
956 ECORE_CHECK_MODULE([directfb], [${want_ecore_directfb}], [DirectFB], [${have_directfb}],
957    [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"])
958
959 # ecore_wince
960
961 ECORE_CHECK_MODULE([wince], [${want_ecore_wince}], [WinCE], [${have_ecore_input}],
962    [requirements_ecore_win32="ecore-input ${requirements_ecore_win32}"])
963
964 ## Ecore Evas
965
966 # ecore_evas
967
968 ecore_evas_deps="no"
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"
971 fi
972
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}"])
975
976 # ecore_evas_buffer
977
978 ECORE_EVAS_CHECK_MODULE([software-buffer],
979    [${want_ecore_evas_software_buffer}],
980    [Software Buffer],
981    [yes])
982
983 # ecore_evas_x11
984
985 # ecore_evas_software_x11
986
987 ECORE_EVAS_CHECK_MODULE([software-x11],
988    [${want_ecore_evas_software_x11}],
989    [Software X11],
990    [${have_ecore_x}])
991
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])
998    fi
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])
1002    fi
1003 fi
1004
1005 # ecore_evas_xrender_x11
1006
1007 ECORE_EVAS_CHECK_MODULE([xrender-x11],
1008    [${want_ecore_evas_xrender_x11}],
1009    [XRender Xlib],
1010    [${have_ecore_x_xlib}])
1011
1012 # ecore_evas_opengl_x11
1013
1014 ECORE_EVAS_CHECK_MODULE([opengl-x11],
1015    [${want_ecore_evas_opengl_x11}],
1016    [OpenGL Xlib],
1017    [${have_ecore_x_xlib}])
1018
1019 # ecore_evas_software_x11 16 bits
1020
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}])
1025
1026 # ecore_evas_xrender_xcb
1027
1028 ECORE_EVAS_CHECK_MODULE([xrender-xcb],
1029    [${want_ecore_evas_xrender_xcb}],
1030    [XRender XCB],
1031    [${ecore_evas_xcb_deps}])
1032
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}"
1041 fi
1042
1043 # ecore_evas_win32
1044
1045 ECORE_EVAS_CHECK_MODULE([software-gdi],
1046    [${want_ecore_evas_software_gdi}],
1047    [Software GDI],
1048    [${have_ecore_win32}])
1049
1050 ECORE_EVAS_CHECK_MODULE([software-ddraw],
1051    [${want_ecore_evas_software_ddraw}],
1052    [Software DirectDraw],
1053    [${have_ecore_win32}])
1054
1055 ECORE_EVAS_CHECK_MODULE([direct3d],
1056    [${want_ecore_evas_direct3d}],
1057    [Direct3d],
1058    [${have_ecore_win32}])
1059
1060 ECORE_EVAS_CHECK_MODULE([opengl-glew],
1061    [${want_ecore_evas_opengl_glew}],
1062    [Glew OpenGL],
1063    [${have_ecore_win32}])
1064
1065 ECORE_EVAS_CHECK_MODULE([software-16-ddraw],
1066    [${want_ecore_evas_software_16_ddraw}],
1067    [16 bpp Software DirectDraw],
1068    [${have_ecore_win32}])
1069
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}"
1077 fi
1078
1079 # ecore_evas_quartz
1080
1081 ECORE_EVAS_CHECK_MODULE([quartz],
1082    [${want_ecore_evas_quartz}],
1083    [Quartz],
1084    [${have_ecore_quartz}],
1085    [requirements_ecore_evas="ecore-quartz ${requirements_ecore_evas}"])
1086
1087 # ecore_evas_software_sdl
1088
1089 ECORE_EVAS_CHECK_MODULE([software-sdl],
1090    [${want_ecore_evas_software_sdl}],
1091    [Software SDL],
1092    [${have_ecore_sdl}],
1093    [requirements_ecore_evas="ecore-sdl ${requirements_ecore_evas}"])
1094
1095 # ecore_evas_gl_sdl
1096
1097 ECORE_EVAS_CHECK_MODULE([opengl-sdl],
1098    [${want_ecore_evas_gl_sdl}],
1099    [OpenGL SDL],
1100    [${have_ecore_sdl}],
1101    [requirements_ecore_evas="ecore-sdl ${requirements_ecore_evas}"])
1102
1103 # ecore_evas_directfb
1104
1105 ECORE_EVAS_CHECK_MODULE([directfb],
1106    [${want_ecore_evas_directfb}],
1107    [DirectFB],
1108    [${have_ecore_directfb}],
1109    [requirements_ecore_evas="ecore-directfb ${requirements_ecore_evas}"])
1110
1111 # ecore_evas_fb
1112
1113 ECORE_EVAS_CHECK_MODULE([fb],
1114    [${want_ecore_evas_fb}],
1115    [Linux Framebuffer],
1116    [${have_ecore_fb}],
1117    [requirements_ecore_evas="ecore-fb ${requirements_ecore_evas}"])
1118
1119 # ecore_evas_wince
1120
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}"])
1126
1127
1128
1129 ### requirements
1130
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)
1149
1150 AC_OUTPUT([
1151 Makefile
1152 ecore-con.pc
1153 ecore-config.pc
1154 ecore-directfb.pc
1155 ecore-evas.pc
1156 ecore-fb.pc
1157 ecore-file.pc
1158 ecore-imf.pc
1159 ecore-imf-evas.pc
1160 ecore-ipc.pc
1161 ecore-txt.pc
1162 ecore-x.pc
1163 ecore-input.pc
1164 ecore-input-evas.pc
1165 ecore-win32.pc
1166 ecore-sdl.pc
1167 ecore-quartz.pc
1168 ecore-wince.pc
1169 ecore.pc
1170 ecore-data.pc
1171 doc/ecore.dox
1172 doc/Makefile
1173 src/Makefile
1174 src/bin/Makefile
1175 src/lib/Makefile
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
1197 README
1198 ecore.spec
1199 po/Makefile.in
1200 ])
1201
1202 echo
1203 echo "$PACKAGE $VERSION"
1204 echo
1205 echo "Optional Modules:"
1206 echo
1207 echo " Core:"
1208 echo
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
1217   echo " (disabled)"
1218 else
1219   echo
1220 fi
1221   echo "    GnuTLS.....................: $have_gnutls"
1222   echo "    CURL.......................: $have_curl"
1223   echo "    Abstract Sockets...........: $want_abstract_sockets"
1224   echo "    c-ares.....................: $have_cares"
1225 fi
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
1230   echo " (disabled)"
1231 else
1232   echo
1233 fi
1234   echo "    GnuTLS.....................: $have_gnutls"
1235 fi
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"
1242 fi
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"
1248
1249 echo
1250 echo " Graphic systems:"
1251 echo
1252
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"
1268   else
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"
1284   fi
1285 else
1286   echo "  Ecore_X......................: $have_ecore_x"
1287 fi
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"
1294 fi
1295 echo "  Ecore_DirectFB...............: $have_ecore_directfb"
1296 echo "  Ecore_WinCE..................: $have_ecore_wince"
1297
1298 echo
1299 echo " Ecore Evas:"
1300 echo
1301
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})"
1307   else
1308     echo "    Software X11...............: $have_ecore_evas_software_x11"
1309   fi
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"
1325 fi
1326 echo
1327 echo " Documentation.................: ${build_doc}"
1328 echo
1329 echo " Compilation...................: make (or gmake)"
1330 if test "x${build_doc}" = "xyes" ; then
1331    echo " Build of the documentation....: make doc"
1332 fi
1333 echo
1334 echo " Installation..................: make install"
1335 echo
1336 echo "    prefix.....................: $prefix"
1337 echo
1338
1339 echo
1340 echo "Compilation............: make (or gmake)"
1341 echo "  CPPFLAGS.............: $CPPFLAGS"
1342 echo "  CFLAGS...............: $CFLAGS"
1343 echo "  CXXFLAGS.............: $CXXFLAGS"
1344 echo "  LDFLAGS..............: $LDFLAGS"
1345 echo
1346 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
1347 echo "  prefix...............: $prefix"
1348 echo