aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ecore/configure.ac')
-rw-r--r--libraries/ecore/configure.ac2058
1 files changed, 2058 insertions, 0 deletions
diff --git a/libraries/ecore/configure.ac b/libraries/ecore/configure.ac
new file mode 100644
index 0000000..78806c1
--- /dev/null
+++ b/libraries/ecore/configure.ac
@@ -0,0 +1,2058 @@
1##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3m4_define([v_maj], [1])
4m4_define([v_min], [1])
5m4_define([v_mic], [0])
6m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
8##-- When released, remove the dnl on the below line
9m4_undefine([v_rev])
10##-- When doing snapshots - change soname. remove dnl on below line
11dnl m4_define([relname], [ver-pre-svn-07])
12dnl m4_define([v_rel], [-release relname])
13##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
15m4_define([lt_cur], m4_eval(v_maj + v_min))
16m4_define([lt_rev], v_mic)
17m4_define([lt_age], v_min)
18##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20
21AC_INIT([ecore], [v_ver], [enlightenment-devel@lists.sourceforge.net])
22AC_PREREQ([2.52])
23AC_CONFIG_SRCDIR([configure.ac])
24AC_CONFIG_MACRO_DIR([m4])
25
26AC_CONFIG_HEADERS([config.h])
27AH_TOP([
28#ifndef EFL_CONFIG_H__
29#define EFL_CONFIG_H__
30])
31AH_BOTTOM([
32#endif /* EFL_CONFIG_H__ */
33])
34
35AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
37
38AC_GNU_SOURCE
39
40AC_LIBTOOL_WIN32_DLL
41define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
42AC_PROG_LIBTOOL
43
44##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
45##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
46m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
47m4_ifdef([v_rel], , [m4_define([v_rel], [])])
48AC_DEFINE_UNQUOTED(VERS_MAJ, [v_maj], [Major version])
49AC_DEFINE_UNQUOTED(VERS_MIN, [v_min], [Minor version])
50AC_DEFINE_UNQUOTED(VERS_MIC, [v_mic], [Micro version])
51AC_DEFINE_UNQUOTED(VERS_REV, [v_rev], [Revison])
52version_info="lt_cur:lt_rev:lt_age"
53release_info="v_rel"
54AC_SUBST(version_info)
55AC_SUBST(release_info)
56##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
57##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
58VMAJ=v_maj
59AC_SUBST(VMAJ)
60
61m4_ifdef([AM_GNU_GETTEXT_VERSION], [
62AM_GNU_GETTEXT_VERSION([0.17])
63])
64
65m4_ifdef([AM_GNU_GETTEXT], [
66AM_GNU_GETTEXT([external])
67po_makefile_in=po/Makefile.in
68have_po="yes"
69],[
70have_po="no"
71])
72AC_SUBST(LTLIBINTL)
73
74if test "x${POSUB}" = "x" ; then
75 have_po="no"
76fi
77
78AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
79
80with_max_log_level="<unset>"
81AC_ARG_WITH(internal-maximum-log-level,
82 [AC_HELP_STRING([--with-internal-maximum-log-level=NUMBER],
83 [limit ecore internal log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
84 [
85 if test "x${withval}" != "xno"; then
86 if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then
87 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
88 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.])
89 with_max_log_level="${withval}"
90 else
91 AC_MSG_ERROR([--with-internal-maximum-log-level takes a decimal number, got "${withval}" instead.])
92 fi
93 fi
94 ], [:])
95
96
97### Default options with respect to host
98
99AC_CANONICAL_BUILD
100AC_CANONICAL_HOST
101
102# dependencies and options
103want_curl="no"
104want_local_sockets="yes"
105want_abstract_sockets="no"
106want_gnutls="no"
107want_openssl="no"
108want_cares="no"
109want_cipher="no"
110want_signature="no"
111want_poll="yes"
112want_inotify="no"
113want_notify_win32="no"
114want_tslib="no"
115want_glib="no"
116
117# core modules
118want_ecore_con="yes"
119want_ecore_ipc="yes"
120want_ecore_file="yes"
121#want_ecore_config="no"
122want_ecore_imf="no"
123want_ecore_input="yes"
124
125# graphic system modules
126want_evas_simple_x11="no"
127want_ecore_x_xcb="no"
128want_ecore_x="no"
129want_ecore_win32="no"
130want_ecore_cocoa="no"
131want_ecore_sdl="no"
132want_ecore_psl1ght="no"
133want_ecore_fb="no"
134want_ecore_directfb="no"
135want_ecore_wince="no"
136
137# ecore_x options (both xlib and xcb)
138want_ecore_x_composite="yes"
139want_ecore_x_damage="yes"
140want_ecore_x_dpms="yes"
141want_ecore_x_randr="yes"
142want_ecore_x_render="yes"
143want_ecore_x_screensaver="yes"
144want_ecore_x_shape="yes"
145want_ecore_x_gesture="no"
146want_ecore_x_sync="yes"
147want_ecore_x_xfixes="yes"
148want_ecore_x_xinerama="yes"
149want_ecore_x_xprint="yes"
150want_ecore_x_xtest="yes"
151want_ecore_x_cursor="yes"
152want_ecore_x_input="yes"
153want_ecore_x_dri="yes"
154
155# ecore_evas modules
156want_ecore_evas="yes"
157want_ecore_evas_software_buffer="yes"
158want_ecore_evas_software_x11="no"
159want_ecore_evas_opengl_x11="no"
160want_ecore_evas_software_16_x11="no"
161want_ecore_evas_software_8_x11="no"
162want_ecore_evas_software_xcb="no"
163want_ecore_evas_software_gdi="no"
164want_ecore_evas_software_ddraw="no"
165want_ecore_evas_direct3d="no"
166want_ecore_evas_opengl_glew="no"
167want_ecore_evas_software_16_ddraw="no"
168want_ecore_evas_software_sdl="no"
169want_ecore_evas_gl_sdl="no"
170want_ecore_evas_gl_cocoa="no"
171want_ecore_evas_psl1ght="no"
172want_ecore_evas_directfb="no"
173want_ecore_evas_fb="no"
174want_ecore_evas_software_16_wince="no"
175want_ecore_evas_ews="yes"
176
177# ecore_imf modules
178want_ecore_imf_xim="no"
179
180case "$host_os" in
181 mingw32ce* | cegcc*)
182 want_ecore_con="no"
183 want_ecore_ipc="no"
184 want_ecore_wince="yes"
185 want_ecore_evas_software_16_wince="yes"
186 ;;
187 mingw*)
188 want_notify_win32="yes"
189 want_curl="yes"
190 want_glib="auto"
191 want_gnutls="auto"
192 want_openssl="auto"
193 want_ecore_imf="yes"
194 want_ecore_win32="yes"
195 want_ecore_evas_software_gdi="yes"
196 want_ecore_evas_software_ddraw="yes"
197 want_ecore_evas_direct3d="yes"
198 want_ecore_evas_opengl_glew="yes"
199 want_ecore_evas_software_16_ddraw="auto"
200 want_ecore_evas_software_sdl="yes"
201 want_ecore_evas_gl_sdl="yes"
202 ;;
203 darwin*)
204 want_curl="yes"
205 want_glib="auto"
206 want_gnutls="auto"
207 want_openssl="auto"
208 want_ecore_imf="yes"
209 want_ecore_cocoa="yes"
210 want_ecore_evas_software_sdl="yes"
211 want_ecore_evas_gl_sdl="yes"
212 want_ecore_evas_gl_cocoa="yes"
213 ;;
214 *)
215 want_curl="yes"
216 want_glib="auto"
217 want_abstract_sockets="yes"
218 want_gnutls="auto"
219 want_openssl="auto"
220 want_cipher="yes"
221 want_signature="yes"
222 want_inotify="yes"
223 want_tslib="yes"
224 want_ecore_fb="yes"
225 want_ecore_imf="yes"
226 want_ecore_x="yes"
227 want_ecore_evas_software_x11="yes"
228 want_ecore_evas_opengl_x11="yes"
229 want_ecore_evas_software_16_x11="yes"
230 want_ecore_evas_software_8_x11="yes"
231 want_ecore_evas_software_xcb="no"
232 want_ecore_evas_software_sdl="yes"
233 want_ecore_evas_gl_sdl="yes"
234 want_ecore_evas_gl_cocoa="no"
235 want_ecore_evas_directfb="yes"
236 want_ecore_evas_fb="yes"
237 want_ecore_imf_xim="yes"
238 ;;
239esac
240
241case "$host_vendor" in
242 ps3*)
243 want_local_sockets="no"
244 ;;
245esac
246requirements_ecore=""
247requirements_ecore_con=""
248#requirements_ecore_config=""
249requirements_ecore_directfb=""
250requirements_ecore_evas=""
251requirements_ecore_fb=""
252requirements_ecore_file=""
253requirements_ecore_imf=""
254requirements_ecore_imf_evas=""
255requirements_ecore_input=""
256requirements_ecore_input_evas=""
257requirements_ecore_ipc=""
258requirements_ecore_cocoa=""
259requirements_ecore_sdl=""
260requirements_ecore_psl1ght=""
261requirements_ecore_x=""
262requirements_ecore_win32=""
263requirements_ecore_wince=""
264requirements_ecore_imf_xim=""
265
266AC_CHECK_DECL([MAXHOSTNAMELEN],[FOUND_MAXHOSTNAMELEN=yes])
267
268if test x$FOUND_MAXHOSTNAMELEN != xyes ; then
269 AC_MSG_CHECKING([for header that defines MAXHOSTNAMELEN])
270
271 FOUND_MAXHOSTNAMELEN='not found'
272
273 AC_COMPILE_IFELSE(
274 AC_LANG_PROGRAM([#include <sys/param.h>],
275 [int h = MAXHOSTNAMELEN;]),
276 [FOUND_MAXHOSTNAMELEN='sys/param.h'
277 AC_DEFINE(NEED_SYS_PARAM_H,1,
278 [Define to 1 if you need <sys/param.h> to define MAXHOSTNAMELEN])])
279
280 AC_COMPILE_IFELSE(
281 AC_LANG_PROGRAM([#include <netdb.h>],
282 [int h = MAXHOSTNAMELEN;]),
283 [FOUND_MAXHOSTNAMELEN='netdb.h'
284 AC_DEFINE(NEED_NETDB_H,1,
285 [Define to 1 if you need <netdb.h> to define MAXHOSTNAMELEN])])
286
287 AC_MSG_RESULT([$FOUND_MAXHOSTNAMELEN])
288fi
289
290### Additional options to configure
291
292want_glib_integration_always=no
293AC_ARG_ENABLE(glib-integration-always,
294 AC_HELP_STRING([--enable-glib-integration-always], [enable glib integration when ecore_init() is called always]),
295 [want_glib_integration_always=$enableval])
296
297if test "x${want_glib_integration_always}" = "xyes" ; then
298 AC_DEFINE([GLIB_INTEGRATION_ALWAYS], [1], [Always integrate glib if support compiled])
299 want_glib=yes
300fi
301
302want_g_main_loop=no
303AC_ARG_ENABLE(g-main-loop,
304 AC_HELP_STRING([--enable-g-main-loop], [ecore_main_loop based on g_main_loop]),
305 [want_g_main_loop=$enableval])
306
307if test "x${want_g_main_loop}" = "xyes" ; then
308 AC_DEFINE([USE_G_MAIN_LOOP], [1], [Use g_main_loop in ecore])
309 want_glib=yes
310fi
311
312if test "x${want_glib_integration_always}" = "xyes" -a "x${want_g_main_loop}" = "xyes"; then
313 AC_MSG_ERROR([--enable-glib-integration-always and --enable-glib-main-loop are mutually exclusive])
314fi
315
316# local sockets (ecore_con.c)
317AC_ARG_ENABLE([local-sockets],
318 [AC_HELP_STRING([--disable-local-sockets], [disable local sockets.])],
319 [
320 if test "x${enableval}" = "xyes" ; then
321 want_ecore_con_local_sockets="yes"
322 else
323 want_ecore_con_local_sockets="no"
324 fi
325 ],
326 [want_ecore_con_local_sockets=${want_local_sockets}])
327
328if test "x${want_ecore_con_local_sockets}" = "xyes" ; then
329 AC_DEFINE([HAVE_LOCAL_SOCKETS], [1], [Have local sockets support])
330fi
331
332# abstract sockets (ecore_con.c)
333AC_ARG_ENABLE([abstract-sockets],
334 [AC_HELP_STRING([--disable-abstract-sockets], [disable abstract sockets.])],
335 [
336 if test "x${enableval}" = "xyes" ; then
337 want_ecore_con_abstract_sockets="yes"
338 else
339 want_ecore_con_abstract_sockets="no"
340 fi
341 ],
342 [want_ecore_con_abstract_sockets=${want_abstract_sockets}])
343
344if test "x${want_ecore_con_abstract_sockets}" = "xyes" ; then
345 AC_DEFINE([HAVE_ABSTRACT_SOCKETS], [1], [Have abstract sockets namespace])
346fi
347
348# Simple X11 build/link
349
350AC_ARG_ENABLE(simple-x11,
351 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
352 [want_evas_simple_x11=$enableval])
353
354# XIM
355AC_ARG_ENABLE([xim],
356 [AC_HELP_STRING([--disable-xim], [disable X Input Method.])],
357 [
358 if test "x${enableval}" = "xyes" ; then
359 want_xim="yes"
360 else
361 want_xim="no"
362 fi
363 ],
364 [want_xim="yes"])
365
366if test "x${want_xim}" = "xyes" ; then
367 AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
368fi
369
370# Unit tests
371
372EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
373
374### Checks for programs
375
376m4_ifdef([AC_PROG_OBJC],
377 [
378 AC_PROG_OBJC
379 _AM_DEPENDENCIES(OBJC)
380 ],
381 [
382 AC_CHECK_TOOL([OBJC], [gcc])
383 AC_SUBST([OBJC])
384 AC_SUBST([OBJCFLAGS])
385 ])
386m4_ifndef([am__fastdepOBJC], [
387 AM_CONDITIONAL([am__fastdepOBJC], [false])
388])
389
390AC_PROG_CXX
391AC_PROG_CC
392
393have_gnu_objc=${ac_cv_objc_compiler_gnu}
394
395# doxygen program for documentation building
396
397EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
398
399m4_ifdef([v_mic],
400 [
401 EFL_COMPILER_FLAG([-Wall])
402 EFL_COMPILER_FLAG([-W])
403 ])
404
405# The first call to PKG_CHECK_MODULES is done conditionally,
406# so we should include this here:
407PKG_PROG_PKG_CONFIG
408
409# Check whether pkg-config supports Requires.private
410if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
411 pkgconfig_requires_private="Requires.private"
412else
413 pkgconfig_requires_private="Requires"
414fi
415AC_SUBST(pkgconfig_requires_private)
416
417### Checks for some build time option
418have_backtrace="no"
419AC_CHECK_FUNCS([backtrace], [have_backtrace="yes"], [])
420
421want_ecore_timer_dump="yes"
422
423AC_ARG_ENABLE([ecore-timer-dump],
424 [AC_HELP_STRING([--disable-ecore-timer-dump], [disable tracking of timer allocation. @<:@default=enable@:>@])],
425 [want_ecore_timer_dump=$enableval], [])
426
427if test "x$want_ecore_timer_dump" = "xyes" -a "x$have_backtrace" = "xyes"; then
428 AC_DEFINE(WANT_ECORE_TIMER_DUMP, [1], [Want Ecore_Timer dump infrastructure])
429fi
430
431### Checks for libraries
432
433# Evil library for compilation on Windows
434
435case "$host_os" in
436 mingw*)
437 PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0])
438 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
439 requirements_ecore="evil ${requirements_ecore}"
440 requirements_ecore_evas="evil ${requirements_ecore_evas}"
441 requirements_ecore_file="evil ${requirements_ecore_file}"
442 requirements_ecore_imf="evil ${requirements_ecore_imf}"
443 requirements_ecore_imf_evas="evil ${requirements_ecore_imf_evas}"
444 EFL_ECORE_BUILD="-DEFL_ECORE_BUILD"
445 EFL_ECORE_CON_BUILD="-DEFL_ECORE_CON_BUILD"
446 EFL_ECORE_EVAS_BUILD="-DEFL_ECORE_EVAS_BUILD"
447 EFL_ECORE_FILE_BUILD="-DEFL_ECORE_FILE_BUILD"
448 EFL_ECORE_IMF_BUILD="-DEFL_ECORE_IMF_BUILD"
449 EFL_ECORE_IMF_EVAS_BUILD="-DEFL_ECORE_IMF_EVAS_BUILD"
450 EFL_ECORE_INPUT_BUILD="-DEFL_ECORE_INPUT_BUILD"
451 EFL_ECORE_INPUT_EVAS_BUILD="-DEFL_ECORE_INPUT_EVAS_BUILD"
452 EFL_ECORE_IPC_BUILD="-DEFL_ECORE_IPC_BUILD"
453 ;;
454esac
455
456have_win32=""
457have_wince=""
458case "$host_os" in
459 mingw32ce* | cegcc*)
460 EFL_ECORE_WINCE_BUILD="-DEFL_ECORE_WINCE_BUILD"
461 requirements_ecore_wince="evil ${requirements_ecore_wince}"
462 have_wince="yes"
463 ;;
464 mingw*)
465 EFL_ECORE_WIN32_BUILD="-DEFL_ECORE_WIN32_BUILD"
466 EFL_ECORE_SDL_BUILD="-DEFL_ECORE_SDL_BUILD"
467 requirements_ecore_win32="evil ${requirements_ecore_win32}"
468 requirements_ecore_sdl="evil ${requirements_ecore_sdl}"
469 have_win32="yes"
470 ;;
471esac
472
473have_ps3=""
474case "$host_vendor" in
475 ps3*)
476 have_ps3="yes"
477 PKG_CHECK_MODULES([ESCAPE], [escape])
478 CFLAGS="$CFLAGS $ESCAPE_CFLAGS"
479 AC_DEFINE(HAVE_ESCAPE, 1, [Set to 1 if Escape library is installed])
480 EFL_ECORE_PSL1GHT_BUILD="-DEFL_ECORE_PSL1GHT_BUILD"
481 requirements_ecore="escape ${requirements_ecore}"
482 requirements_ecore_evas="escape ${requirements_ecore_evas}"
483 requirements_ecore_file="escape ${requirements_ecore_file}"
484 requirements_ecore_imf="escape ${requirements_ecore_imf}"
485 requirements_ecore_imf_evas="escape ${requirements_ecore_imf_evas}"
486 requirements_ecore_sdl="escape ${requirements_ecore_sdl}"
487 want_ecore_psl1ght="yes"
488 want_ecore_evas_psl1ght="yes"
489 ;;
490esac
491
492AC_SUBST(EFL_ECORE_BUILD)
493AC_SUBST(EFL_ECORE_CON_BUILD)
494AC_SUBST(EFL_ECORE_EVAS_BUILD)
495AC_SUBST(EFL_ECORE_FILE_BUILD)
496AC_SUBST(EFL_ECORE_IMF_BUILD)
497AC_SUBST(EFL_ECORE_IMF_EVAS_BUILD)
498AC_SUBST(EFL_ECORE_INPUT_BUILD)
499AC_SUBST(EFL_ECORE_INPUT_EVAS_BUILD)
500AC_SUBST(EFL_ECORE_IPC_BUILD)
501AC_SUBST(EFL_ECORE_WINCE_BUILD)
502AC_SUBST(EFL_ECORE_WIN32_BUILD)
503AC_SUBST(EFL_ECORE_SDL_BUILD)
504AC_SUBST(EFL_ECORE_PSL1GHT_BUILD)
505
506AM_CONDITIONAL(ECORE_HAVE_WINCE, test "x${have_wince}" = "xyes")
507AM_CONDITIONAL(ECORE_HAVE_WIN32, test "x${have_win32}" = "xyes")
508AM_CONDITIONAL(ECORE_HAVE_PS3, test "x${have_ps3}" = "xyes")
509
510WIN32_LIBS=""
511case "$host_os" in
512 mingw32ce* | cegcc*)
513 WIN32_LIBS="-lws2"
514 dlopen_libs="-ldl"
515 ;;
516 mingw*)
517 WIN32_LIBS="-lws2_32"
518 dlopen_libs="-ldl"
519 ;;
520 *)
521 AC_CHECK_LIB([c], [dlopen],
522 [],
523 [AC_CHECK_LIB([dl], [dlopen],
524 [dlopen_libs=-ldl])
525 ])
526 AC_CHECK_LIB([c], [clock_gettime],
527 [AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])],
528 [AC_CHECK_LIB([rt], [clock_gettime],
529 [
530 rt_libs=-lrt
531 AC_DEFINE(HAVE_CLOCK_GETTIME, [1], [Have clock_gettime()])
532 ])
533 ])
534 ;;
535esac
536AC_SUBST(WIN32_LIBS)
537AC_SUBST(dlopen_libs)
538AC_SUBST(rt_libs)
539
540# Eina library
541
542PKG_CHECK_MODULES(EINA, [eina >= 1.1.0])
543#FIXME check all the requirements when the eina move will be finished
544requirements_ecore="eina >= 1.1.0 ${requirements_ecore}"
545requirements_ecore_con="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_con}"
546#requirements_ecore_config="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_config}"
547requirements_ecore_directfb="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_directfb}"
548requirements_ecore_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_evas}"
549requirements_ecore_fb="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_fb}"
550requirements_ecore_file="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_file}"
551requirements_ecore_imf="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_imf}"
552requirements_ecore_imf_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_imf_evas}"
553requirements_ecore_input="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_input}"
554requirements_ecore_input_evas="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_input_evas}"
555requirements_ecore_ipc="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_ipc}"
556requirements_ecore_cocoa="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_cocoa}"
557requirements_ecore_sdl="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_sdl}"
558requirements_ecore_psl1ght="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_sdl}"
559requirements_ecore_win32="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_win32}"
560requirements_ecore_wince="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_wince}"
561requirements_ecore_x="ecore >= 1.1.0 eina >= 1.1.0 ${requirements_ecore_x}"
562
563
564# glib support (main loop integration)
565AC_ARG_ENABLE([glib],
566 [AC_HELP_STRING([--disable-glib], [disable glib support. @<:@default=detect@:>@])],
567 [want_glib=$enableval], [])
568
569if test "x$want_glib" != "xno"; then
570 PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib="yes"], [have_glib="no"])
571else
572 have_glib="no"
573fi
574if test "x$want_glib" = "xyes" -a "x$have_glib" = "xno"; then
575 AC_MSG_ERROR([GLib support requested, but no GLib found by pkg-config.])
576elif test "x$have_glib" = "xyes"; then
577 AC_DEFINE(HAVE_GLIB, [1], [Have GLib])
578 requirements_ecore="glib-2.0 ${requirements_ecore}"
579fi
580
581
582# SDL library (ecore_sdl)
583
584have_sdl="no"
585PKG_CHECK_MODULES([SDL], [sdl >= 1.2.0], [have_sdl="yes"], [have_sdl="no"])
586if test "x${have_sdl}" != "xyes" ; then
587 SDL_CONFIG="sdl-config"
588 AC_ARG_WITH([sdl-config],
589 [AC_HELP_STRING([--with-sdl-config=PATH], [use sdl-config specified])],
590 [
591 SDL_CONFIG=$withval
592 AC_MSG_NOTICE([using ${SDL_CONFIG} for sdl-config])
593 ])
594
595 AC_PATH_PROG([SDL_CONFIG], ["sdl-config"], [""], [$PATH])
596
597 if test -n "$SDL_CONFIG" ; then
598 SDL_CFLAGS=`$SDL_CONFIG --cflags`
599 SDL_LIBS=`$SDL_CONFIG --libs`
600 AC_SUBST(SDL_CFLAGS)
601 AC_SUBST(SDL_LIBS)
602 have_sdl="yes"
603 fi
604fi
605
606if test "x${have_sdl}" = "xyes" ; then
607 PKG_CHECK_EXISTS([sdl >= 1.3.0],
608 [AC_DEFINE(BUILD_ECORE_EVAS_SDL_130, 1, [Support for SVN SDL])])
609fi
610
611
612# DirectFB library (ecore_directfb)
613
614PKG_CHECK_MODULES([DIRECTFB],
615 [directfb >= 0.9.16],
616 [have_directfb="yes"],
617 [have_directfb="no"])
618
619
620# Eet library (ecore_config)
621
622#PKG_CHECK_MODULES([EET],
623# [eet >= 1.4.0],
624# [have_eet="yes"],
625# [have_eet="no"])
626
627
628# Xlib and XCB (ecore_x)
629
630have_x="no"
631have_ecore_x="no"
632have_ecore_x_xlib="no"
633have_ecore_x_xcb="no"
634
635x_dir="";
636x_includes="";
637x_cflags="";
638x_libs="";
639
640ecore_x_libs_private=""
641
642AC_ARG_ENABLE(ecore-x-composite,
643 [AC_HELP_STRING([--disable-ecore-x-composite],
644 [disable the ecore_x support for Xcomposite extension.
645 @<:@default=detect@:>@])],
646 [want_ecore_x_composite=$enableval])
647
648AC_ARG_ENABLE(ecore-x-damage,
649 [AC_HELP_STRING([--disable-ecore-x-damage],
650 [disable the ecore_x support for Xdamage extension.
651 @<:@default=detect@:>@])],
652 [want_ecore_x_damage=$enableval])
653
654AC_ARG_ENABLE(ecore-x-dpms,
655 [AC_HELP_STRING([--disable-ecore-x-dpms],
656 [disable the ecore_x support for Xdpms extension.
657 @<:@default=detect@:>@])],
658 [want_ecore_x_dpms=$enableval])
659
660AC_ARG_ENABLE(ecore-x-randr,
661 [AC_HELP_STRING([--disable-ecore-x-randr],
662 [disable the ecore_x support for Xrandr extension.
663 @<:@default=detect@:>@])],
664 [want_ecore_x_randr=$enableval])
665
666AC_ARG_ENABLE(ecore-x-render,
667 [AC_HELP_STRING([--disable-ecore-x-render],
668 [disable the ecore_x support for Xrender extension.
669 @<:@default=detect@:>@])],
670 [want_ecore_x_render=$enableval])
671
672AC_ARG_ENABLE(ecore-x-screensaver,
673 [AC_HELP_STRING([--disable-ecore-x-screensaver],
674 [disable the ecore_x support for Xscreensaver extension.
675 @<:@default=detect@:>@])],
676 [want_ecore_x_screensaver=$enableval])
677
678AC_ARG_ENABLE(ecore-x-shape,
679 [AC_HELP_STRING([--disable-ecore-x-shape],
680 [disable the ecore_x support for Xshape extension.
681 @<:@default=detect@:>@])],
682 [want_ecore_x_shape=$enableval])
683
684AC_ARG_ENABLE(ecore-x-gesture,
685 [AC_HELP_STRING([--enable-ecore-x-gesture],
686 [enable the ecore_x support for Xgesture extension.
687 @<:@default=detect@:>@])],
688 [want_ecore_x_gesture=$enableval])
689
690AC_ARG_ENABLE(ecore-x-sync,
691 [AC_HELP_STRING([--disable-ecore-x-sync],
692 [disable the ecore_x support for Xsync extension.
693 @<:@default=detect@:>@])],
694 [want_ecore_x_sync=$enableval])
695
696AC_ARG_ENABLE(ecore-x-xfixes,
697 [AC_HELP_STRING([--disable-ecore-x-xfixes],
698 [disable the ecore_x support for Xfixes extension.
699 @<:@default=detect@:>@])],
700 [want_ecore_x_xfixes=$enableval])
701
702AC_ARG_ENABLE(ecore-x-xinerama,
703 [AC_HELP_STRING([--disable-ecore-x-xinerama],
704 [disable the ecore_x support for Xinerama extension.
705 @<:@default=detect@:>@])],
706 [want_ecore_x_xinerama=$enableval])
707
708AC_ARG_ENABLE(ecore-x-xprint,
709 [AC_HELP_STRING([--disable-ecore-x-xprint],
710 [disable the ecore_x support for Xprint extension.
711 @<:@default=detect@:>@])],
712 [want_ecore_x_xprint=$enableval])
713
714AC_ARG_ENABLE(ecore-x-xtest,
715 [AC_HELP_STRING([--disable-ecore-x-xtest],
716 [disable the ecore_x support for Xtest extension.
717 @<:@default=detect@:>@])],
718 [want_ecore_x_xtest=$enableval])
719
720AC_ARG_ENABLE(ecore-x-cursor,
721 [AC_HELP_STRING([--disable-ecore-x-cursor],
722 [disable the ecore_x support for Xcursor extension.
723 @<:@default=detect@:>@])],
724 [want_ecore_x_cursor=$enableval])
725
726AC_ARG_ENABLE(ecore-x-input,
727 [AC_HELP_STRING([--disable-ecore-x-input],
728 [disable the ecore_x support for Xinput/Xinput2 extension.
729 @<:@default=detect@:>@])],
730 [want_ecore_x_input=$enableval])
731
732AC_ARG_ENABLE(ecore-x-dri,
733 [AC_HELP_STRING([--disable-ecore-x-dri],
734 [disable the ecore_x support for DRI extension.
735 @<:@default=detect@:>@])],
736 [want_ecore_x_dri=$enableval])
737
738AC_ARG_ENABLE(ecore-x-xcb,
739 [AC_HELP_STRING([--enable-ecore-x-xcb],
740 [enable the ecore_x module with XCB backend. @<:@default=disabled@:>@])],
741 [want_ecore_x_xcb=$enableval])
742
743AC_MSG_CHECKING(whether ecore_x with XCB backend is to be built)
744AC_MSG_RESULT($want_ecore_x_xcb)
745
746if test "x$want_ecore_x_xcb" = "xyes" ; then
747
748 AC_MSG_CHECKING([keysym definitions])
749 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
750 FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
751 for i in $FILES; do
752 if test -f "$KEYSYMDEFDIR/$i"; then
753 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
754 elif test "x$i" = "xkeysymdef.h"; then
755 AC_MSG_ERROR([Cannot find keysymdef.h])
756 fi
757 done
758 AC_MSG_RESULT([$KEYSYMDEFS])
759 AC_SUBST(KEYSYMDEFS)
760
761 have_iconv="no"
762 AC_ARG_WITH([iconv-link],
763 AC_HELP_STRING([--with-iconv-link=ICONV_LINK], [explicitly specify an iconv link option]),
764 [
765 LIBS="$withval $LIBS"
766 have_iconv="yes"
767 ])
768
769 AC_MSG_CHECKING(for explicit iconv link options)
770 if test "x${iconv_libs}" = "x" ; then
771 AC_MSG_RESULT([no explicit iconv link option])
772 else
773 AC_MSG_RESULT([$iconv_libs])
774 fi
775
776 if test "x${have_iconv}" = "xno" ; then
777 AC_CHECK_HEADERS([iconv.h], [have_iconv="yes"])
778
779 if test "x${have_iconv}" = "xyes" ; then
780 AC_MSG_CHECKING([whether iconv() is in libc])
781
782 AC_LINK_IFELSE(
783 [AC_LANG_PROGRAM(
784 [[
785 #include <stdlib.h>
786 #include <iconv.h>
787 ]],
788 [[
789 iconv_t ic;
790 size_t count = iconv(ic, NULL, NULL, NULL, NULL);
791 ]])],
792 [have_iconv="yes"],
793 [have_iconv="no"])
794
795 AC_MSG_RESULT([${have_iconv}])
796 fi
797
798 if test "x${have_iconv}" = "xno" ; then
799 AC_MSG_CHECKING([whether iconv() is in libiconv.a])
800
801 LIBS_save="${LIBS}"
802 LIBS="-liconv $LIBS"
803 AC_LINK_IFELSE(
804 [AC_LANG_PROGRAM(
805 [[
806 #include <stdlib.h>
807 #include <iconv.h>
808 ]],
809 [[
810 iconv_t ic;
811 size_t count;
812 count = iconv(ic, NULL, NULL, NULL, NULL);
813 ]])],
814 [have_iconv="yes"],
815 [
816 have_iconv="no"
817 LIBS=${LIBS_save}
818 ])
819
820 AC_MSG_RESULT([${have_iconv}])
821 fi
822
823 if test "x${have_iconv}" = "xno" ; then
824 AC_MSG_CHECKING([whether iconv() is in libiconv_plug.a])
825
826 LIBS_save="${LIBS}"
827 LIBS="-liconv_plug $LIBS"
828 AC_LINK_IFELSE(
829 [AC_LANG_PROGRAM(
830 [[
831 #include <stdlib.h>
832 #include <iconv.h>
833 ]],
834 [[
835 iconv_t ic;
836 size_t count = iconv(ic, NULL, NULL, NULL, NULL);
837 ]])],
838 [have_iconv="yes"],
839 [
840 have_iconv="no"
841 LIBS=${LIBS_save}
842 ])
843
844 AC_MSG_RESULT([${have_iconv}])
845 fi
846
847 if test "x${have_iconv}" = "xyes" ; then
848 AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed])
849 fi
850 fi
851
852 PKG_CHECK_MODULES(ECORE_XCB, x11-xcb xcb xcb-shm xcb-event xcb-icccm >= 0.3.8 xcb-util >= 0.3.8 xcb-image xcb-keysyms >= 0.3.8,
853 [ have_ecore_x_xcb="yes"
854 requirements_ecore_x="x11-xcb xcb xcb-shm xcb-event xcb-icccm xcb-util xcb-image xcb-keysyms ${requirements_ecore_x}"
855 ],
856 [
857 PKG_CHECK_MODULES(ECORE_XCB, x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms,
858 [ have_ecore_x_xcb="yes"
859 AC_DEFINE(OLD_XCB_VERSION, 1, [xcb version])
860 requirements_ecore_x="x11-xcb xcb xcb-event xcb-shm xcb-icccm xcb-image xcb-keysyms ${requirements_ecore_x}" ],
861 [ have_ecore_x_xcb="no" ])
862 ],
863 [have_ecore_x_xcb="no" ])
864
865 if test "x$have_ecore_x_xcb" = "xyes" ; then
866
867 PKG_CHECK_MODULES([PIXMAN],
868 [pixman-1],
869 [
870 have_pixman="yes"
871 AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering])
872 requirements_ecore_x="pixman-1 ${requirements_ecore_x}"
873 ],
874 [
875 if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then
876 AC_MSG_ERROR([Pixman not found (strict dependencies checking)])
877 fi
878 ])
879
880 if test "x$want_ecore_x_composite" != "xno"; then
881 PKG_CHECK_MODULES(XCB_COMPOSITE, xcb-composite,
882 [ have_ecore_x_xcb_composite="yes"
883 requirements_ecore_x="xcb-composite ${requirements_ecore_x}"
884 AC_DEFINE(ECORE_XCB_COMPOSITE, 1, [Build support for XCB composite]) ],
885 [ have_ecore_x_xcb_composite="no" ])
886 else
887 have_ecore_x_xcb_composite="no"
888 AC_MSG_NOTICE("composite extension explicitly disabled")
889 fi
890
891 if test "x$want_ecore_x_damage" != "xno"; then
892 PKG_CHECK_MODULES(XCB_DAMAGE, xcb-damage,
893 [ have_ecore_x_xcb_damage="yes"
894 requirements_ecore_x="xcb-damage ${requirements_ecore_x}"
895 AC_DEFINE(ECORE_XCB_DAMAGE, 1, [Build support for XCB damage]) ],
896 [ have_ecore_x_xcb_damage="no" ])
897 else
898 have_ecore_x_xcb_damage="no"
899 AC_MSG_NOTICE("damage extension explicitly disabled")
900 fi
901
902 if test "x$want_ecore_x_dpms" != "xno"; then
903 PKG_CHECK_MODULES(XCB_DPMS, xcb-dpms,
904 [ have_ecore_x_xcb_dpms="yes"
905 requirements_ecore_x="xcb-dpms ${requirements_ecore_x}"
906 AC_DEFINE(ECORE_XCB_DPMS, 1, [Build support for XCB dpms]) ],
907 [ have_ecore_x_xcb_dpms="no" ])
908 else
909 have_ecore_x_xcb_dpms="no"
910 AC_MSG_NOTICE("dpms extension explicitly disabled")
911 fi
912
913 if test "x$want_ecore_x_randr" != "xno"; then
914 PKG_CHECK_MODULES(XCB_RANDR, xcb-randr,
915 [ have_ecore_x_xcb_randr="yes"
916 requirements_ecore_x="xcb-randr ${requirements_ecore_x}"
917 AC_DEFINE(ECORE_XCB_RANDR, 1, [Build support for XCB randr]) ],
918 [ have_ecore_x_xcb_randr="no" ])
919 else
920 have_ecore_x_xcb_randr="no"
921 AC_MSG_NOTICE("randr extension explicitly disabled")
922 fi
923
924 if test "x$want_ecore_x_render" != "xno"; then
925 PKG_CHECK_MODULES(XCB_RENDER, xcb-render xcb-renderutil,
926 [ have_ecore_x_xcb_render="yes"
927 requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}"
928 AC_DEFINE(ECORE_XCB_RENDER, 1, [Build support for XCB render]) ],
929 [ have_ecore_x_xcb_render="no" ])
930 else
931 have_ecore_x_xcb_render="no"
932 AC_MSG_NOTICE("render extension explicitly disabled")
933 fi
934
935 if test "x$want_ecore_x_screensaver" != "xno"; then
936 PKG_CHECK_MODULES(XCB_SCREENSAVER, xcb-screensaver,
937 [ have_ecore_x_xcb_screensaver="yes"
938 requirements_ecore_x="xcb-screensaver ${requirements_ecore_x}"
939 AC_DEFINE(ECORE_XCB_SCREENSAVER, 1, [Build support for XCB screensaver]) ],
940 [ have_ecore_x_xcb_screensaver="no" ])
941 else
942 have_ecore_x_xcb_screensaver="no"
943 AC_MSG_NOTICE("screensaver extension explicitly disabled")
944 fi
945
946 if test "x$want_ecore_x_shape" != "xno"; then
947 PKG_CHECK_MODULES(XCB_SHAPE, xcb-shape,
948 [ have_ecore_x_xcb_shape="yes"
949 requirements_ecore_x="xcb-shape ${requirements_ecore_x}"
950 AC_DEFINE(ECORE_XCB_SHAPE, 1, [Build support for XCB shape]) ],
951 [ have_ecore_x_xcb_shape="no" ])
952 else
953 have_ecore_x_xcb_shape="no"
954 AC_MSG_NOTICE("shape extension explicitly disabled")
955 fi
956
957 if test "x$want_ecore_x_gesture" != "xno"; then
958 PKG_CHECK_MODULES(XCB_XGESTURE, xcb-gesture,
959 [ have_ecore_x_xcb_gesture="yes"
960 requirements_ecore_x="xcb-gesture ${requirements_ecore_x}"
961 AC_DEFINE(ECORE_XCB_XGESTURE, 1, [Build support for XCB gesture]) ],
962 [ have_ecore_x_xcb_gesture="no" ])
963 else
964 have_ecore_x_xcb_gesture="no"
965 AC_MSG_NOTICE("gesture extension explicitly disabled")
966 fi
967
968 if test "x$want_ecore_x_sync" != "xno"; then
969 PKG_CHECK_MODULES(XCB_SYNC, xcb-sync,
970 [ have_ecore_x_xcb_sync="yes"
971 requirements_ecore_x="xcb-sync ${requirements_ecore_x}"
972 AC_DEFINE(ECORE_XCB_SYNC, 1, [Build support for XCB sync]) ],
973 [ have_ecore_x_xcb_sync="no" ])
974 else
975 have_ecore_x_xcb_sync="no"
976 AC_MSG_NOTICE("sync extension explicitly disabled")
977 fi
978
979 if test "x$want_ecore_x_xfixes" != "xno"; then
980 PKG_CHECK_MODULES(XCB_XFIXES, xcb-xfixes,
981 [ have_ecore_x_xcb_xfixes="yes"
982 requirements_ecore_x="xcb-xfixes ${requirements_ecore_x}"
983 AC_DEFINE(ECORE_XCB_XFIXES, 1, [Build support for XCB xfixes]) ],
984 [ have_ecore_x_xcb_xfixes="no" ])
985 else
986 have_ecore_x_xcb_xfixes="no"
987 AC_MSG_NOTICE("xfixes extension explicitly disabled")
988 fi
989
990 if test "x$want_ecore_x_xinerama" != "xno"; then
991 PKG_CHECK_MODULES(XCB_XINERAMA, xcb-xinerama,
992 [ have_ecore_x_xcb_xinerama="yes"
993 requirements_ecore_x="xcb-xinerama ${requirements_ecore_x}"
994 AC_DEFINE(ECORE_XCB_XINERAMA, 1, [Build support for XCB xinerama]) ],
995 [ have_ecore_x_xcb_xinerama="no" ])
996 else
997 have_ecore_x_xcb_xinerama="no"
998 AC_MSG_NOTICE("xinerama extension explicitly disabled")
999 fi
1000
1001 if test "x$want_ecore_x_xprint" != "xno"; then
1002 PKG_CHECK_MODULES(XCB_XPRINT, xcb-xprint,
1003 [ have_ecore_x_xcb_xprint="yes"
1004 requirements_ecore_x="xcb-xprint ${requirements_ecore_x}"
1005 AC_DEFINE(ECORE_XCB_XPRINT, 1, [Build support for XCB xprint]) ],
1006 [ have_ecore_x_xcb_xprint="no" ])
1007 else
1008 have_ecore_x_xcb_xprint="no"
1009 AC_MSG_NOTICE("xprint extension explicitly disabled")
1010 fi
1011
1012 if test "x$want_ecore_x_xtest" != "xno"; then
1013 PKG_CHECK_MODULES(XCB_XTEST, xcb-xtest,
1014 [ have_ecore_x_xcb_xtest="yes"
1015 requirements_ecore_x="xcb-xtest ${requirements_ecore_x}"
1016 AC_DEFINE(ECORE_XCB_XTEST, 1, [Build support for XCB xtest]) ],
1017 [ have_ecore_x_xcb_xtest="no" ])
1018 else
1019 have_ecore_x_xcb_xtest="no"
1020 AC_MSG_NOTICE("xtest extension explicitly disabled")
1021 fi
1022
1023# input extension disabled currently in xcb as xcb-input has some issues
1024 want_ecore_x_input="no"
1025 if test "x$want_ecore_x_input" != "xno"; then
1026 PKG_CHECK_MODULES(XCB_XINPUT, xcb-xinput,
1027 [ have_ecore_x_xcb_xinput="yes"
1028 requirements_ecore_x="xcb-xinput ${requirements_ecore_x}"
1029 AC_DEFINE(ECORE_XCB_XINPUT, 1, [Build support for XCB xinput]) ],
1030 [ have_ecore_x_xcb_xinput="no" ])
1031 else
1032 have_ecore_x_xcb_xinput="no"
1033 AC_MSG_NOTICE("xinput extension explicitly disabled")
1034 fi
1035
1036 if test "x$want_ecore_x_cursor" != "xno"; then
1037 PKG_CHECK_MODULES(XCB_CURSOR, xcb-render xcb-renderutil,
1038 [ have_ecore_x_xcb_cursor="yes"
1039 requirements_ecore_x="xcb-render xcb-renderutil ${requirements_ecore_x}"
1040 AC_DEFINE(ECORE_XCB_CURSOR, 1, [Build support for XCB cursor]) ],
1041 [ have_ecore_x_xcb_cursor="no" ])
1042 else
1043 have_ecore_x_xcb_cursor="no"
1044 AC_MSG_NOTICE("cursor extension explicitly disabled")
1045 fi
1046
1047# if test "x$want_ecore_x_dri" != "xno"; then
1048# PKG_CHECK_MODULES(XCB_DRI, xcb-dri2,
1049# [ have_ecore_x_xcb_dri="yes"
1050# requirements_ecore_x="xcb-dri2 ${requirements_ecore_x}"
1051# AC_DEFINE(ECORE_XCB_DRI, 1, [Build support for XCB dri/dri2]) ],
1052# [ have_ecore_x_xcb_dri="no" ])
1053# else
1054# have_ecore_x_xcb_dri="no"
1055# AC_MSG_NOTICE("dri extension explicitly disabled")
1056# fi
1057
1058 AC_DEFINE(HAVE_ECORE_X_XCB, 1, [Defined to 1 if XCB is enabled.])
1059
1060 x_cflags=$ECORE_XCB_CFLAGS
1061 x_libs=$ECORE_XCB_LIBS
1062 have_x="yes"
1063
1064 have_ecore_x_xcb_define="-DHAVE_ECORE_X_XCB"
1065 AC_SUBST(have_ecore_x_xcb_define)
1066 fi
1067fi
1068
1069if ! test "x$have_ecore_x_xcb" = "xyes" ; then
1070 AC_PATH_XTRA
1071 AC_CHECK_HEADER(X11/X.h,
1072 [
1073 if test "x$want_evas_simple_x11" = "xyes"; then
1074 x_libs="${x_libs} -lX11 -lXext"
1075 else
1076 x_dir=${x_dir:-/usr/X11R6}
1077 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
1078 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
1079 fi
1080 have_ecore_x_xlib="yes"
1081 ]
1082 )
1083
1084 if test "x$have_ecore_x_xlib" = "xyes"; then
1085 Xcursor_libs=""
1086 Xcursor_cflags=""
1087 use_Xcursor="no"
1088 PCFLAGS=$CFLAGS
1089 CFLAGS="$x_cflags $x_includes"
1090
1091 if test "x$want_ecore_x_cursor" = "xyes"; then
1092 AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,
1093 [
1094 AC_CHECK_LIB(Xcursor, XcursorImageLoadCursor,
1095 [
1096 AC_DEFINE(ECORE_XCURSOR, 1, [Build support for Xcursor])
1097 Xcursor_cflags=""
1098 Xcursor_libs="-lXcursor"
1099 use_Xcursor="yes"
1100 ], [
1101 Xcursor_cflags=""
1102 Xcursor_libs=""
1103 use_Xcursor="no"
1104 ], [
1105 $x_libs -lXrender
1106 ]
1107 )
1108 ], [
1109 Xcursor_cflags=""
1110 Xcursor_libs=""
1111 use_Xcursor="no"
1112 ], [
1113 #include <X11/Xlib.h>
1114 ]
1115 )
1116 CFLAGS=$PCFLAGS
1117 else
1118 Xcursor_cflags=""
1119 Xcursor_libs=""
1120 use_Xcursor="no"
1121 AC_MSG_NOTICE("Xcursor explicitly disabled")
1122 fi
1123
1124 AC_SUBST(Xcursor_cflags)
1125 AC_SUBST(Xcursor_libs)
1126
1127 ECORE_CHECK_X_EXTENSION([Xkb], [XKB.h], [X11], [XkbSetDetectableAutoRepeat], [$want_ecore_x_xkb])
1128 ECORE_CHECK_X_EXTENSION([Xcomposite], [Xcomposite.h], [Xcomposite], [XCompositeQueryExtension], [$want_ecore_x_composite])
1129 ECORE_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract], [$want_ecore_x_damage])
1130 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension], [$want_ecore_x_dpms])
1131 if test "x$use_xdpms" = "xno" ; then
1132 ECORE_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension], [$want_ecore_x_dpms])
1133 fi
1134 ECORE_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion], [$want_ecore_x_xfixes])
1135 ECORE_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens], [$want_ecore_x_xinerama])
1136 ECORE_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens], [$want_ecore_x_xprint])
1137 ECORE_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRGetScreenResourcesCurrent], [$want_ecore_x_randr])
1138 ECORE_CHECK_X_EXTENSION([Xgesture], [gesture.h], [Xgesture], [XGestureQueryExtension], [$want_ecore_x_gesture])
1139 ECORE_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat], [$want_ecore_x_render])
1140 ECORE_CHECK_X_EXTENSION([Xtest], [XTest.h], [Xtst], [XTestFakeKeyEvent], [$want_ecore_x_xtest])
1141 ECORE_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput], [$want_ecore_x_screensaver])
1142 ECORE_CHECK_X_EXTENSION([Xi2], [XInput2.h], [Xi], [XIQueryDevice], [$want_ecore_x_input])
1143
1144 ecore_x_libs_private="${Xcursor_libs} ${XKB_LIBS} ${XCOMPOSITE_LIBS} ${XGESTURE_LIBS} ${XDAMAGE_LIBS} ${XDPMS_LIBS} ${XFIXES_LIBS} ${XINERAMA_LIBS} ${XPRINT_LIBS} ${XRANDR_LIBS} ${XRENDER_LIBS} ${XTEST_LIBS} ${XSS_LIBS} ${XI2_LIBS}"
1145
1146 AC_DEFINE(HAVE_ECORE_X_XLIB, 1, [Defined to 1 if Xlib is enabled.])
1147 have_x="yes"
1148
1149 have_ecore_x_xlib="yes"
1150 fi
1151fi
1152
1153AC_SUBST(x_cflags)
1154AC_SUBST(x_includes)
1155AC_SUBST(x_libs)
1156AC_SUBST(ecore_x_libs_private)
1157
1158AM_CONDITIONAL(BUILD_ECORE_X_XLIB, test $have_ecore_x_xlib = yes)
1159AM_CONDITIONAL(BUILD_ECORE_X_XCB, test $have_ecore_x_xcb = yes)
1160
1161
1162# Evas library (ecore_config, ecore_input_evas, ecore_imf_evas and ecore_evas)
1163
1164PKG_CHECK_MODULES([EVAS], [evas >= 1.1.0],
1165 [have_evas="yes"],
1166 [have_evas="no"])
1167
1168
1169### Checks for header files
1170
1171AC_CHECK_HEADERS([sys/select.h sys/prctl.h])
1172
1173EFL_CHECK_PATH_MAX
1174
1175AC_HEADER_SYS_WAIT
1176AC_SYS_LARGEFILE
1177
1178have_addrinfo="no"
1179case "$host_os" in
1180 mingw* | cegcc*)
1181 AC_DEFINE(HAVE_DLFCN_H, 1, [Define to 1 if you have the <dlfcn.h> header file.])
1182 AC_DEFINE(HAVE_SYS_MMAN_H, 1, [Define to 1 if you have the <sys/mman.h> header file.])
1183 AC_DEFINE(HAVE_SYS_TIME_H, 1, [Define to 1 if you have the <sys/time.h> header file.])
1184 have_addrinfo="yes"
1185 ;;
1186 *)
1187 AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h])
1188 ;;
1189esac
1190
1191# ecore_con
1192
1193AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h sys/socket.h sys/un.h ws2tcpip.h netdb.h])
1194
1195if test "x${ac_cv_header_netdb_h}" = "xyes" ; then
1196 have_addrinfo="yes"
1197fi
1198
1199# Framebuffer (ecore_fb)
1200have_fb="no"
1201AC_CHECK_HEADER([linux/fb.h],
1202 [AC_CHECK_HEADER([linux/input.h], [have_fb="yes"])])
1203
1204# Cocoa header files (ecore_cocoa)
1205
1206if test "x${want_ecore_cocoa}" = "xyes" ; then
1207 cocoa_ldflags=""
1208 have_cocoa="no"
1209 m4_ifdef([AC_PROG_OBJC],
1210 [
1211 if test "x${have_gnu_objc}" = "xyes" ; then
1212 AC_LANG_PUSH([Objective C])
1213 LIBS_save="$LIBS"
1214 LIBS="$LIBS -framework Cocoa"
1215 AC_LINK_IFELSE(
1216 [AC_LANG_PROGRAM(
1217 [[
1218#include <Cocoa/Cocoa.h>
1219 ]],
1220 [[
1221NSWindow *window;
1222window = [[NSWindow alloc]
1223 initWithContentRect:NSMakeRect(0, 0, 1, 1)
1224 styleMask:(NSTitledWindowMask)
1225 backing:NSBackingStoreBuffered
1226 defer:NO
1227 screen:nil
1228 ];
1229 ]])],
1230 [
1231 have_cocoa="yes"
1232 cocoa_ldflags="-framework Cocoa"
1233 ],
1234 [have_cocoa="no"])
1235 LIBS="$LIBS_save"
1236 AC_MSG_CHECKING([whether Cocoa framework is supported])
1237 AC_MSG_RESULT([${have_cocoa}])
1238 AC_LANG_POP([Objective C])
1239 fi
1240 ])
1241fi
1242AC_SUBST(cocoa_ldflags)
1243
1244want_epoll=yes
1245AC_ARG_ENABLE(epoll,
1246 AC_HELP_STRING([--enable-epoll], [enable or disable epoll support]),
1247 [want_epoll=$enableval])
1248
1249if test "x${want_epoll}" = "xyes" ; then
1250 # check for epoll support
1251 AC_CHECK_HEADERS([sys/epoll.h])
1252fi
1253
1254# timerfd_create
1255AC_CHECK_HEADERS([sys/timerfd.h])
1256AC_CHECK_FUNCS(timerfd_create)
1257
1258# thread support
1259
1260EFL_CHECK_THREADS(
1261 [
1262 if test "x${_efl_have_posix_threads}" = "xyes" ; then
1263 have_threads="POSIX"
1264 else
1265 if test "x${_efl_have_win32_threads}" = "xyes" ; then
1266 have_threads="Win32"
1267 else
1268 have_threads="no"
1269 fi
1270 fi
1271 ],
1272 [have_threads="no"])
1273
1274### enable thread safety if we have threads, unless specifically asked not to
1275if test "x${have_threads}" = "xno"
1276then
1277 want_thread_safety="no"
1278else
1279 want_thread_safety="no" # to be changed to yes when ready
1280 AC_ARG_ENABLE(thread-safety,
1281 AC_HELP_STRING([--enable-thread-safety], [enable or disable thread safety]),
1282 [want_thread_safety=$enableval])
1283fi
1284
1285if test "x${want_thread_safety}" = "xyes"
1286then
1287 AC_DEFINE([HAVE_THREAD_SAFETY], [1], [Define to enable thread safety])
1288fi
1289
1290### Checks for types
1291AC_CHECK_SIZEOF(int, 4)
1292AC_CHECK_SIZEOF(long, 4)
1293
1294
1295### Checks for structures
1296
1297
1298### Checks for compiler characteristics
1299AC_PROG_CC_STDC
1300AC_C_CONST
1301AC_C_BIGENDIAN
1302AC_HEADER_STDC
1303AC_C___ATTRIBUTE__
1304
1305WIN32_CPPFLAGS=""
1306WIN32_CFLAGS=""
1307case "$host_os" in
1308 mingw32ce*)
1309 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
1310 ;;
1311 cegcc*)
1312 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
1313 WIN32_CFLAGS="-mwin32"
1314 ;;
1315 mingw*)
1316 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0501"
1317 ;;
1318esac
1319AC_SUBST(WIN32_CPPFLAGS)
1320AC_SUBST(WIN32_CFLAGS)
1321
1322
1323### Checks for linker characteristics
1324
1325# use --enable-auto-import on Windows
1326
1327lt_enable_auto_import=""
1328case "$host_os" in
1329 mingw* | cegcc*)
1330 lt_enable_auto_import="-Wl,--enable-auto-import"
1331 ;;
1332esac
1333AC_SUBST(lt_enable_auto_import)
1334
1335### Checks for library functions
1336AC_ISC_POSIX
1337AC_FUNC_ALLOCA
1338AC_CHECK_FUNCS([gettimeofday strlcpy execvp])
1339
1340AC_COMPILE_IFELSE(
1341 [AC_LANG_PROGRAM(
1342 [[
1343#include <math.h>
1344 ]],
1345 [[
1346int i = isfinite(0);
1347 ]])],
1348 [
1349 AC_DEFINE(HAVE_ISFINITE, 1, [Define to 1 if you have `isfinite', as a function or macro.])
1350 have_isfinite="yes"
1351 ],
1352 [have_isfinite="no"])
1353
1354AC_MSG_CHECKING([for isfinite])
1355AC_MSG_RESULT([${have_isfinite}])
1356
1357have_atfile_source=auto
1358AC_ARG_ENABLE([atfile-source],
1359 [AC_HELP_STRING([--disable-atfile-source],
1360 [disable use of atfile source functions as openat and mkdirat @<:@default=detect@:>@])],
1361 [
1362 if test "x${enableval}" = "xyes" ; then
1363 have_atfile_source="yes"
1364 else
1365 have_atfile_source="no"
1366 fi],
1367 [have_atfile_source=auto])
1368
1369if ! test "x${have_atfile_source}" = "xno" ; then
1370 AC_CHECK_FUNCS(mkdirat,
1371 [
1372 have_atfile_source="yes"
1373 AC_DEFINE(HAVE_ATFILE_SOURCE, 1, [mkdirat exists])
1374 ],
1375 [
1376 if test "x${have_atfile_source}" = "xyes" ; then
1377 AC_MSG_ERROR([required atfile-source but no mkdirat()])
1378 fi
1379 have_atfile_source="no"
1380 ])
1381fi
1382
1383### Checks for optionnal feature
1384AC_CHECK_FUNC([mallinfo],
1385 [
1386 have_mallinfo="yes"
1387 AC_DEFINE(HAVE_MALLINFO, 1, [Gather memory statistic])
1388 ],
1389 [have_mallinfo="no"])
1390
1391### Ecore modules
1392
1393## Core modules
1394
1395# ecore_con
1396ECORE_CHECK_MODULE([con], [${want_ecore_con}], [Con], [${have_addrinfo}])
1397
1398have_curl="no"
1399have_gnutls="no"
1400have_openssl="no"
1401have_cares="no"
1402want_ipv6="yes"
1403have_ipv6="no"
1404
1405AC_ARG_ENABLE([ipv6],
1406 [AC_HELP_STRING([--disable-ipv6],
1407 [disable ipv6 functionality @<:@default=detect@:>@])],
1408 [
1409 if test "x${enableval}" = "xyes" ; then
1410 want_ipv6="yes"
1411 else
1412 want_ipv6="no"
1413 fi],
1414 [want_ipv6="auto"])
1415
1416if test "x${have_ecore_con}" = "xyes" ; then
1417
1418 # Verify IPV6 availability in headers
1419 if test "x${want_ipv6}" != "xno" ; then
1420 AC_CHECK_TYPES([struct ipv6_mreq],
1421 [have_ipv6="yes"],
1422 [have_ipv6="no"],
1423 [[
1424#ifdef HAVE_NETINET_IN_H
1425# include <netinet/in.h>
1426#endif
1427#ifdef HAVE_WS2TCPIP_H
1428# include <ws2tcpip.h>
1429#endif
1430 ]])
1431 fi
1432
1433 if test "x${have_ipv6}" = "xyes" ; then
1434 AC_DEFINE(HAVE_IPV6, 1, [Define if IPV6 is supported])
1435 fi
1436
1437 ECORE_CHECK_CURL([${want_curl}],
1438 [
1439 have_curl="yes"
1440 requirements_ecore_con="libcurl ${requirements_ecore_con}"
1441 ],
1442 [have_curl="no"])
1443
1444 ECORE_CHECK_GNUTLS([${want_gnutls}],
1445 [have_gnutls="yes"],
1446 [have_gnutls="no"])
1447
1448 ECORE_CHECK_OPENSSL([${want_openssl}],
1449 [have_openssl="yes"],
1450 [have_openssl="no"])
1451
1452 if test "x${have_gnutls}" = "xyes" ; then
1453 requirements_ecore_con="gnutls ${requirements_ecore_con}"
1454 # no need to add it to req_ecore_ipc, since they
1455 # depends on ecore_con anyway.
1456 else
1457 if test "x${have_openssl}" = "xyes" ; then
1458 requirements_ecore_con="openssl ${requirements_ecore_con}"
1459 # no need to add it to req_ecore_ipc, since they
1460 # depends on ecore_con anyway.
1461 fi
1462 fi
1463
1464 ECORE_CHECK_CARES([${want_cares}],
1465 [
1466 have_cares="yes"
1467 requirements_ecore_con="libcares ${requirements_ecore_con}"
1468 ],
1469 [have_cares="no"])
1470
1471fi
1472
1473AM_CONDITIONAL([HAVE_CARES], [test "x${have_cares}" = "xyes"])
1474
1475# ecore_ipc
1476ECORE_CHECK_MODULE([ipc], [${want_ecore_ipc}], [Ipc], [${have_ecore_con}],
1477 [requirements_ecore_ipc="ecore-con >= 1.1.0 ${requirements_ecore_ipc}"])
1478
1479# ecore_file
1480ECORE_CHECK_MODULE([file], [${want_ecore_file}], [File])
1481
1482have_poll="no"
1483have_inotify="no"
1484have_notify_win32="no"
1485if test "x${have_ecore_file}" = "xyes" ; then
1486 ECORE_CHECK_POLL([${want_poll}], [have_poll="yes"], [have_poll="no"])
1487 ECORE_CHECK_INOTIFY([${want_inotify}], [have_inotify="yes"], [have_inotify="no"])
1488 ECORE_CHECK_NOTIFY_WIN32([${want_notify_win32}], [have_notify_win32="yes"], [have_notify_win32="no"])
1489
1490 if test "x${have_ecore_con}" = "xyes" ; then
1491 requirements_ecore_file="ecore-con >= 1.1.0 ${requirements_ecore_file}"
1492 else
1493 ECORE_CHECK_CURL([${want_curl}],
1494 [
1495 have_curl="yes"
1496 requirements_ecore_file="libcurl ${requirements_ecore_file}"
1497 ],
1498 [have_curl="no"])
1499 fi
1500
1501fi
1502
1503# ecore_config
1504#ecore_config_deps="no"
1505#if test "x${have_eet}" = "xyes" -a "x${have_evas}" -a "x${have_ecore_ipc}" ; then
1506# ecore_config_deps="yes"
1507#fi
1508
1509#ECORE_CHECK_MODULE([config], [${want_ecore_config}], [Config], [${ecore_config_deps}],
1510# [requirements_ecore_config="ecore-ipc >= 1.1.0 evas >= 1.1.0 eet >= 1.5.0 ${requirements_ecore_config}"])
1511
1512AM_CONDITIONAL(BUILD_ECORE_CONFIG, false)
1513
1514# ecore_imf
1515
1516ECORE_CHECK_MODULE([imf], [${want_ecore_imf}], [Imf])
1517
1518# ecore_imf_evas
1519
1520ecore_imf_evas_deps="no"
1521if test "x${have_ecore_imf}" = "xyes" -a "x${have_evas}" = "xyes" ; then
1522 ecore_imf_evas_deps="yes"
1523fi
1524
1525ECORE_CHECK_MODULE([imf-evas], [${want_ecore_imf}], [Imf_Evas], [${ecore_imf_evas_deps}],
1526 [requirements_ecore_imf_evas="ecore-imf >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_imf_evas}"])
1527
1528# ecore_input{_evas}
1529ECORE_CHECK_MODULE([input], [${want_ecore_input}], [Input])
1530ECORE_CHECK_MODULE([input-evas], [${want_ecore_input}], [Input_Evas], [${have_evas}],
1531 [requirements_ecore_input_evas="ecore-input >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_input}"])
1532
1533# ecore_imf_xim
1534AM_CONDITIONAL(BUILD_ECORE_IMF_XIM, false)
1535ecore_imf_xim_deps="no"
1536echo "have_ecore_x_xlib: ${have_ecore_x_xlib}"
1537if test "x${have_ecore_imf}" = "xyes" \
1538 -a "x${have_ecore_x_xlib}" = "xyes" \
1539 -a "x${have_ecore_input}" = "xyes" ; then
1540 ecore_imf_xim_deps="yes"
1541 AC_DEFINE(BUILD_ECORE_IMF_XIM, 1, [Ecore Imf XIM Support])
1542fi
1543
1544ECORE_CHECK_MODULE([imf-xim], [${want_ecore_imf}], [Imf_XIM], [${ecore_imf_xim_deps}],
1545 [requirements_ecore_imf_xim="ecore-imf >= 1.1.0 ecore-x >= 1.1.0 ecore-input >= 1.1.0 ${requirements_ecore_imf_xim}"])
1546
1547## Graphic systems
1548
1549# ecore_x{cb}
1550
1551ecore_x_deps="no"
1552if test "x${have_x}" = "xyes" -a \
1553 "x${have_ecore_input}" = "xyes" ; then
1554 ecore_x_deps="yes"
1555fi
1556
1557ECORE_CHECK_MODULE([x], [${want_ecore_x}], [X], [${ecore_x_deps}],
1558 [
1559 ecore_x_libs="$ecore_x_libs $x_libs"
1560 requirements_ecore_x="ecore-input >= 1.1.0 ${requirements_ecore_x}"
1561 ])
1562
1563# ecore_win32
1564
1565ECORE_CHECK_MODULE([win32], [${want_ecore_win32}], [Win32], [${have_ecore_input}],
1566 [
1567 ecore_win32_libs="-lole32 -lgdi32"
1568 requirements_ecore_win32="ecore-input >= 1.1.0 ${requirements_ecore_win32}"
1569 ])
1570AC_SUBST(ecore_win32_libs)
1571
1572# ecore_cocoa
1573
1574ecore_cocoa_deps="no"
1575if test "x${have_ecore_input}" = "xyes" -a "x${have_cocoa}" = "xyes" ; then
1576 ecore_cocoa_deps="yes"
1577fi
1578
1579ECORE_CHECK_MODULE([cocoa], [${want_ecore_cocoa}], [Cocoa], [${ecore_cocoa_deps}],
1580 [requirements_ecore_cocoa="ecore-input >= 1.1.0 ${requirements_ecore_cocoa}"])
1581
1582# ecore_sdl
1583
1584ecore_sdl_deps="no"
1585if test "x${have_sdl}" = "xyes" -a "x${have_ecore_input}" = "xyes" ; then
1586 ecore_sdl_deps="yes"
1587fi
1588
1589ECORE_CHECK_MODULE([sdl], [${want_ecore_sdl}], [Sdl], [${ecore_sdl_deps}],
1590 [requirements_ecore_sdl="ecore-input >= 1.1.0 ${requirements_ecore_sdl}"])
1591
1592ECORE_CHECK_MODULE([psl1ght], [${want_ecore_psl1ght}], [psl1ght], [${ecore_psl1ght_deps}],
1593 [requirements_ecore_psl1ght="ecore-input >= 1.1.0 ${requirements_ecore_psl1ght}"])
1594
1595# ecore_fb
1596ECORE_CHECK_MODULE([fb], [${want_ecore_fb}], [FB], [$have_fb])
1597
1598if test "x${have_ecore_fb}" = "xyes" ; then
1599 ECORE_CHECK_TSLIB([${want_tslib}],
1600 [
1601 have_tslib="yes"
1602 requirements_ecore_fb="${_tslib_requirement} ${requirements_ecore_fb}"
1603 ],
1604 [have_tslib="no"])
1605fi
1606
1607# ecore_directfb
1608
1609ECORE_CHECK_MODULE([directfb], [${want_ecore_directfb}], [DirectFB], [${have_directfb}],
1610 [requirements_ecore_directfb="directfb ${requirements_ecore_directfb}"])
1611
1612# ecore_wince
1613
1614ECORE_CHECK_MODULE([wince], [${want_ecore_wince}], [WinCE], [${have_ecore_input}],
1615 [requirements_ecore_win32="ecore-input >= 1.1.0 ${requirements_ecore_win32}"])
1616
1617## Ecore Evas
1618
1619# ecore_evas
1620
1621ecore_evas_deps="no"
1622if test "x${have_evas}" = "xyes" -a "x${have_ecore_input}" = "xyes" -a "x${have_ecore_input_evas}" = "xyes" ; then
1623 ecore_evas_deps="yes"
1624fi
1625
1626ECORE_CHECK_MODULE([evas], [${want_ecore_evas}], [Evas], [${ecore_evas_deps}],
1627 [requirements_ecore_evas="ecore-input >= 1.1.0 ecore-input-evas >= 1.1.0 evas >= 1.1.0 ${requirements_ecore_evas}"])
1628
1629# ecore_evas_buffer
1630
1631ECORE_EVAS_CHECK_MODULE([software-buffer],
1632 [${want_ecore_evas_software_buffer}],
1633 [Software Buffer],
1634 [yes])
1635
1636# ecore_evas_x11
1637
1638# ecore_evas_software_x11
1639
1640ECORE_EVAS_CHECK_MODULE([software-x11],
1641 [${want_ecore_evas_software_x11}],
1642 [Software X11],
1643 [${have_ecore_x}])
1644
1645have_ecore_evas_software_xlib="no"
1646have_ecore_evas_software_xcb="no"
1647if test "x$have_ecore_evas_software_x11" = "xyes" ; then
1648 have_ecore_evas_software_xlib=`${PKG_CONFIG} --variable=Xlib evas-software-x11`
1649 if test "x${have_ecore_evas_software_xlib}" = "xstatic"; then
1650 have_ecore_evas_software_xlib="yes"
1651 fi
1652 if test "x${have_ecore_evas_software_xlib}" = "xyes" -a "x${have_ecore_x_xlib}" = "xyes" ; then
1653 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XLIB, 1, [Evas Software Xlib Engine Support])
1654 fi
1655 have_ecore_evas_software_xcb=`${PKG_CONFIG} --variable=XCB evas-software-x11`
1656 if test "x$have_ecore_evas_software_xcb" = "xstatic"; then
1657 have_ecore_evas_software_xcb="yes"
1658 fi
1659 if test "x$have_ecore_evas_software_xcb" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
1660 AC_DEFINE(BUILD_ECORE_EVAS_SOFTWARE_XCB, 1, [Evas Software XCB Engine Support])
1661 fi
1662fi
1663
1664# ecore_evas_opengl_x11
1665
1666ECORE_EVAS_CHECK_MODULE([opengl-x11],
1667 [${want_ecore_evas_opengl_x11}],
1668 [OpenGL Xlib],
1669 [${have_ecore_x}])
1670
1671have_ecore_evas_opengl_xlib="no"
1672have_ecore_evas_opengl_xcb="no"
1673if test "x${have_ecore_evas_opengl_x11}" = "xyes" -o "x${have_ecore_evas_opengl_x11}" = "xstatic" ; then
1674 have_ecore_evas_opengl_xlib=`${PKG_CONFIG} --variable=Xlib evas-opengl-x11`
1675 if test "x${have_ecore_evas_opengl_xlib}" = "xyes" ; then
1676 AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XLIB, 1, [OpenGL Xlib rendering backend])
1677 fi
1678
1679# opengl does not work with xcb (yet)
1680 have_ecore_evas_opengl_xcb=`${PKG_CONFIG} --variable=XCB evas-opengl-x11`
1681 if test "x${have_ecore_evas_opengl_xcb}" = "xstatic"; then
1682 have_ecore_evas_opengl_xcb="yes"
1683 fi
1684 if test "x${have_ecore_evas_opengl_xcb}" = "xyes" -a "x${have_ecore_x_xcb}" = "xyes" ; then
1685 PKG_CHECK_MODULES(XCB_X11, x11-xcb,
1686 [ have_ecore_x_opengl_xcb="yes"
1687 requirements_ecore_x="x11-xcb ${requirements_ecore_x}"
1688 AC_DEFINE(BUILD_ECORE_X_OPENGL_XCB, 1, [Build support for XCB-based OpenGL])
1689 AC_DEFINE(BUILD_ECORE_EVAS_OPENGL_XCB, 1, [OpenGL XCB rendering backend])
1690 ],
1691 [ have_ecore_x_opengl_xcb="no" ])
1692 else
1693 have_ecore_x_opengl_xcb="no"
1694 AC_MSG_NOTICE("XCB-based OpenGL explicitly disabled")
1695 fi
1696fi
1697
1698# ecore_evas_software_x11 16 bits
1699
1700ECORE_EVAS_CHECK_MODULE([software-16-x11],
1701 [${want_ecore_evas_software_16_x11}],
1702 [Software Xlib 16 bits],
1703 [${have_ecore_x_xlib}])
1704
1705ECORE_EVAS_CHECK_MODULE([software-8-x11],
1706 [$want_ecore_evas_software_8_x11],
1707 [Software 8bit X11],
1708 $have_ecore_x_xcb)
1709
1710
1711if test "x$have_ecore_evas_software_x11" = "xyes" -o \
1712 "x$have_ecore_evas_opengl_x11" = "xyes" -o \
1713 "x$have_ecore_evas_software_8_x11" = "xyes" -o \
1714 "x$have_ecore_evas_software_16_x11" = "xyes" -o \
1715 "x$have_ecore_evas_software_xcb" = "xyes"; then
1716 AC_DEFINE(BUILD_ECORE_EVAS_X11, 1, [Support for X Window Engines in Ecore_Evas])
1717 requirements_ecore_evas="ecore-x >= 1.1.0 ${requirements_ecore_evas}"
1718fi
1719
1720# ecore_evas_win32
1721
1722ECORE_EVAS_CHECK_MODULE([software-gdi],
1723 [${want_ecore_evas_software_gdi}],
1724 [Software GDI],
1725 [${have_ecore_win32}])
1726
1727ECORE_EVAS_CHECK_MODULE([software-ddraw],
1728 [${want_ecore_evas_software_ddraw}],
1729 [Software DirectDraw],
1730 [${have_ecore_win32}])
1731
1732ECORE_EVAS_CHECK_MODULE([direct3d],
1733 [${want_ecore_evas_direct3d}],
1734 [Direct3d],
1735 [${have_ecore_win32}])
1736
1737ECORE_EVAS_CHECK_MODULE([opengl-glew],
1738 [${want_ecore_evas_opengl_glew}],
1739 [Glew OpenGL],
1740 [${have_ecore_win32}])
1741
1742ECORE_EVAS_CHECK_MODULE([software-16-ddraw],
1743 [${want_ecore_evas_software_16_ddraw}],
1744 [16 bpp Software DirectDraw],
1745 [${have_ecore_win32}])
1746
1747if test "x${have_ecore_evas_software_gdi}" = "xyes" -o \
1748 "x${have_ecore_evas_software_ddraw}" = "xyes" -o \
1749 "x${have_ecore_evas_direct3d}" = "xyes" -o \
1750 "x${have_ecore_evas_opengl_glew}" = "xyes" -o \
1751 "x${have_ecore_evas_software_16_ddraw}" = "xyes" ; then
1752 AC_DEFINE(BUILD_ECORE_EVAS_WIN32, 1, [Support for Win32 Engine in Ecore_Evas])
1753 requirements_ecore_evas="ecore-win32 >= 1.1.0 ${requirements_ecore_evas}"
1754fi
1755
1756# ecore_evas_software_sdl
1757
1758ECORE_EVAS_CHECK_MODULE([software-sdl],
1759 [${want_ecore_evas_software_sdl}],
1760 [Software SDL],
1761 [${have_ecore_sdl}],
1762 [requirements_ecore_evas="ecore-sdl >= 1.1.0 ${requirements_ecore_evas}"])
1763
1764# ecore_evas_gl_sdl
1765
1766ECORE_EVAS_CHECK_MODULE([opengl-sdl],
1767 [${want_ecore_evas_gl_sdl}],
1768 [OpenGL SDL],
1769 [${have_ecore_sdl}],
1770 [requirements_ecore_evas="ecore-sdl >= 1.1.0 ${requirements_ecore_evas}"])
1771
1772# ecore_evas_cocoa
1773
1774ECORE_EVAS_CHECK_MODULE([opengl-cocoa],
1775 [${want_ecore_evas_gl_cocoa}],
1776 [OpenGL Cocoa],
1777 [${have_ecore_cocoa}],
1778 [requirements_ecore_evas="ecore-cocoa >= 1.1.0 ${requirements_ecore_evas}"])
1779
1780# ecore_evas_directfb
1781
1782ECORE_EVAS_CHECK_MODULE([directfb],
1783 [${want_ecore_evas_directfb}],
1784 [DirectFB],
1785 [${have_ecore_directfb}],
1786 [requirements_ecore_evas="ecore-directfb >= 1.1.0 ${requirements_ecore_evas}"])
1787
1788# ecore_evas_fb
1789
1790ECORE_EVAS_CHECK_MODULE([fb],
1791 [${want_ecore_evas_fb}],
1792 [Linux Framebuffer],
1793 [${have_ecore_fb}],
1794 [requirements_ecore_evas="ecore-fb >= 1.1.0 ${requirements_ecore_evas}"])
1795
1796# ecore_evas_wince
1797
1798ECORE_EVAS_CHECK_MODULE([software-16-wince],
1799 [${want_ecore_evas_software_16_wince}],
1800 [16 bpp Software Windows CE],
1801 [${have_ecore_wince}],
1802 [requirements_ecore_evas="ecore-wince >= 1.1.0 ${requirements_ecore_evas}"])
1803
1804# ecore_evas_ews
1805
1806ECORE_EVAS_CHECK_MODULE_FULL([ews], [software-buffer],
1807 [${want_ecore_evas_ews}],
1808 [Ecore Evas Single Process Windowing System],
1809 [yes], [])
1810
1811# ecore_evas_psl1ght
1812
1813ECORE_EVAS_CHECK_MODULE([psl1ght],
1814 [${want_ecore_evas_psl1ght}],
1815 [PSL1GHT],
1816 [${have_ecore_psl1ght}],
1817 [requirements_ecore_evas="ecore-psl1ght >= 1.1.0 ${requirements_ecore_evas}"])
1818
1819### install and build examples
1820
1821EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
1822EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
1823
1824### requirements
1825
1826AC_SUBST(requirements_ecore)
1827AC_SUBST(requirements_ecore_con)
1828#AC_SUBST(requirements_ecore_config)
1829AC_SUBST(requirements_ecore_directfb)
1830AC_SUBST(requirements_ecore_evas)
1831AC_SUBST(requirements_ecore_fb)
1832AC_SUBST(requirements_ecore_file)
1833AC_SUBST(requirements_ecore_imf)
1834AC_SUBST(requirements_ecore_imf_evas)
1835AC_SUBST(requirements_ecore_input)
1836AC_SUBST(requirements_ecore_input_evas)
1837AC_SUBST(requirements_ecore_ipc)
1838AC_SUBST(requirements_ecore_cocoa)
1839AC_SUBST(requirements_ecore_sdl)
1840AC_SUBST(requirements_ecore_psl1ght)
1841AC_SUBST(requirements_ecore_x)
1842AC_SUBST(requirements_ecore_win32)
1843AC_SUBST(requirements_ecore_wince)
1844AC_SUBST(requirements_ecore_imf_xim)
1845
1846AC_CONFIG_FILES([
1847Makefile
1848ecore-con.pc
1849ecore-config.pc
1850ecore-directfb.pc
1851ecore-evas.pc
1852ecore-fb.pc
1853ecore-file.pc
1854ecore-imf.pc
1855ecore-imf-evas.pc
1856ecore-ipc.pc
1857ecore-x.pc
1858ecore-input.pc
1859ecore-input-evas.pc
1860ecore-win32.pc
1861ecore-sdl.pc
1862ecore-cocoa.pc
1863ecore-psl1ght.pc
1864ecore-wince.pc
1865ecore.pc
1866doc/ecore.dox
1867doc/Makefile
1868doc/Doxyfile
1869src/Makefile
1870src/util/Makefile
1871src/bin/Makefile
1872src/lib/Makefile
1873src/lib/ecore/Makefile
1874src/lib/ecore_con/Makefile
1875src/lib/ecore_config/Makefile
1876src/lib/ecore_directfb/Makefile
1877src/lib/ecore_evas/Makefile
1878src/lib/ecore_fb/Makefile
1879src/lib/ecore_file/Makefile
1880src/lib/ecore_cocoa/Makefile
1881src/lib/ecore_sdl/Makefile
1882src/lib/ecore_psl1ght/Makefile
1883src/lib/ecore_imf/Makefile
1884src/lib/ecore_imf_evas/Makefile
1885src/lib/ecore_input/Makefile
1886src/lib/ecore_input_evas/Makefile
1887src/lib/ecore_ipc/Makefile
1888src/lib/ecore_win32/Makefile
1889src/lib/ecore_wince/Makefile
1890src/lib/ecore_x/Makefile
1891src/lib/ecore_x/xlib/Makefile
1892src/lib/ecore_x/xcb/Makefile
1893src/examples/Makefile
1894src/tests/Makefile
1895src/modules/Makefile
1896src/modules/immodules/Makefile
1897src/modules/immodules/xim/Makefile
1898ecore.spec
1899$po_makefile_in
1900])
1901
1902AC_OUTPUT
1903
1904echo
1905echo "$PACKAGE $VERSION"
1906echo
1907echo "Optional Modules:"
1908echo
1909echo " Core:"
1910echo
1911echo " Ecore........................: always"
1912echo " Thread support.............: $have_threads"
1913echo " Thread safety..............: $want_thread_safety"
1914echo " GLib support...............: $have_glib"
1915echo " Always integrate GLib......: $want_glib_integration_always"
1916echo " Use g_main_loop............: $want_g_main_loop"
1917echo " Gathering memory statistic.: $have_mallinfo"
1918echo " Gathering timer allocation.: $want_ecore_timer_dump"
1919echo " Ecore_Con....................: $have_ecore_con"
1920if test "x$have_ecore_con" = "xyes" ; then
1921 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1922if test "x$have_gnutls" = "xyes" ; then
1923 echo " (disabled)"
1924else
1925 echo
1926fi
1927 echo " IPv6.......................: $have_ipv6"
1928 echo " GnuTLS.....................: $have_gnutls"
1929 echo " CURL.......................: $have_curl"
1930 echo " Local Sockets..............: $want_ecore_con_local_sockets"
1931if test "x$want_ecore_con_local_sockets" = "xyes" ; then
1932 echo " Abstract Sockets.........: $want_ecore_con_abstract_sockets"
1933fi
1934 echo " c-ares.....................: $have_cares"
1935fi
1936echo " Ecore_Ipc....................: $have_ecore_ipc"
1937if test "x$have_ecore_ipc" = "xyes" ; then
1938 echo $ECHO_N " OpenSSL....................: $have_openssl $ECHO_C"
1939if test "x$have_gnutls" = "xyes" ; then
1940 echo " (disabled)"
1941else
1942 echo
1943fi
1944 echo " GnuTLS.....................: $have_gnutls"
1945fi
1946echo " Ecore_File...................: $have_ecore_file"
1947if test "x$have_ecore_file" = "xyes" ; then
1948 echo " Inotify....................: $have_inotify"
1949 echo " Windows notification.......: $have_notify_win32"
1950 echo " Poll.......................: $have_poll"
1951 echo " CURL.......................: $have_curl"
1952fi
1953#echo " Ecore_Config.................: $have_ecore_config (deprecated)"
1954echo " Ecore_IMF....................: $have_ecore_imf"
1955echo " XIM........................: $have_ecore_imf_xim"
1956echo " Ecore_IMF_Evas...............: $have_ecore_imf_evas"
1957echo " Ecore_Input..................: $have_ecore_input"
1958echo " Ecore_Input_Evas.............: $have_ecore_input_evas"
1959
1960echo
1961echo " Graphic systems:"
1962echo
1963
1964if test "x$have_ecore_x" = "xyes" ; then
1965 if test "x$have_ecore_x_xcb" = "xyes" ; then
1966 echo " Ecore_X (XCB backend)........: $have_ecore_x_xcb"
1967 echo " Xprint.....................: $have_ecore_x_xcb_xprint"
1968 echo " Xinerama...................: $have_ecore_x_xcb_xinerama"
1969 echo " Xrandr.....................: $have_ecore_x_xcb_randr"
1970 echo " Xscreensaver...............: $have_ecore_x_xcb_screensaver"
1971 echo " Xshape.....................: $have_ecore_x_xcb_shape"
1972 echo " Xgesture...................: $have_ecore_x_xcb_gesture"
1973 echo " Xsync......................: $have_ecore_x_xcb_sync"
1974 echo " Xrender....................: $have_ecore_x_xcb_render"
1975 echo " Xcomposite.................: $have_ecore_x_xcb_composite"
1976 echo " Xfixes.....................: $have_ecore_x_xcb_xfixes"
1977 echo " Xdamage....................: $have_ecore_x_xcb_damage"
1978 echo " Xdpms......................: $have_ecore_x_xcb_dpms"
1979 echo " Xtest......................: $have_ecore_x_xcb_xtest"
1980 else
1981 echo " Ecore_X (Xlib backend).......: $have_ecore_x"
1982 echo " Xcursor....................: $use_Xcursor"
1983 echo " Xkb........................: $use_xkb"
1984 echo " Xprint.....................: $use_xprint"
1985 echo " Xinerama...................: $use_xinerama"
1986 echo " Xrandr.....................: $use_xrandr"
1987 echo " Xgesture...................: $use_xgesture"
1988 echo " Xscreensaver...............: $use_xss"
1989 echo " Xrender....................: $use_xrender"
1990 echo " Xcomposite.................: $use_xcomposite"
1991 echo " Xfixes.....................: $use_xfixes"
1992 echo " Xdamage....................: $use_xdamage"
1993 echo " Xdpms......................: $use_xdpms"
1994 echo " Xtest......................: $use_xtest"
1995 echo " XIM........................: $want_xim"
1996 echo " Xi2........................: $use_xi2"
1997 fi
1998else
1999 echo " Ecore_X......................: $have_ecore_x"
2000fi
2001echo " Ecore_Win32..................: $have_ecore_win32"
2002echo " Ecore_Cocoa..................: $have_ecore_cocoa"
2003echo " Ecore_SDL....................: $have_ecore_sdl"
2004echo " Ecore_FB.....................: $have_ecore_fb"
2005if test "x${have_ecore_fb}" = "xyes" ; then
2006 echo " Touchscreen................: $have_tslib"
2007fi
2008echo " Ecore_DirectFB...............: $have_ecore_directfb"
2009echo " Ecore_WinCE..................: $have_ecore_wince"
2010echo " Ecore_PSL1GHT................: $have_ecore_psl1ght"
2011
2012echo
2013echo " Ecore Evas:"
2014echo
2015
2016echo " Ecore_Evas...................: $have_ecore_evas"
2017if test "x${have_ecore_evas}" = "xyes" ; then
2018 echo " Software Memory Buffer.....: $have_ecore_evas_software_buffer"
2019 if test "x${have_ecore_evas_software_x11}" = "xyes" ; then
2020 echo " Software X11...............: $have_ecore_evas_software_x11 (Xlib=${have_ecore_evas_software_xlib}) (XCB=${have_ecore_evas_software_xcb})"
2021 else
2022 echo " Software X11...............: $have_ecore_evas_software_x11"
2023 fi
2024 if test "x${have_ecore_evas_opengl_x11}" = "xyes" ; then
2025 echo " OpenGL X11.................: $have_ecore_evas_opengl_x11 (Xlib=${have_ecore_evas_opengl_xlib}) (XCB=${have_ecore_evas_opengl_xcb})"
2026 else
2027 echo " OpenGL X11.................: $have_ecore_evas_opengl_x11"
2028 fi
2029 echo " Software GDI...............: $have_ecore_evas_software_gdi"
2030 echo " Software DirectDraw........: $have_ecore_evas_software_ddraw"
2031 echo " Direct3D...................: $have_ecore_evas_direct3d"
2032 echo " OpenGL Glew................: $have_ecore_evas_opengl_glew"
2033 echo " Software SDL...............: $have_ecore_evas_software_sdl"
2034 echo " OpenGL SDL.................: $have_ecore_evas_opengl_sdl"
2035 echo " OpenGL Cocoa...............: $have_ecore_evas_opengl_cocoa"
2036 echo " DirectFB...................: $have_ecore_evas_directfb"
2037 echo " PSL1GHT....................: $have_ecore_evas_psl1ght"
2038 echo " Software Framebuffer.......: $have_ecore_evas_fb"
2039 echo " Software 8bit grayscale XCB: $have_ecore_evas_software_8_x11"
2040 echo " Software 16bit X11.........: $have_ecore_evas_software_16_x11"
2041 echo " Software 16bit DirectDraw..: $have_ecore_evas_software_16_ddraw"
2042 echo " Software 16bit WinCE.......: $have_ecore_evas_software_16_wince"
2043 echo " Sing.Proc. Windowing System: $have_ecore_evas_ews"
2044fi
2045echo
2046echo " Tests................: ${enable_tests}"
2047echo " Maximum log level....: ${with_max_log_level}"
2048echo "Documentation..........: ${build_doc}"
2049echo
2050echo "Compilation............: make (or gmake)"
2051echo " CPPFLAGS.............: $CPPFLAGS"
2052echo " CFLAGS...............: $CFLAGS"
2053echo " CXXFLAGS.............: $CXXFLAGS"
2054echo " LDFLAGS..............: $LDFLAGS"
2055echo
2056echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
2057echo " prefix...............: $prefix"
2058echo