Merge "[elm_multibuttonentry]Bug fix:IME doesn't show up when guidetext is clicked...
[framework/uifw/elementary.git] / configure.ac
1 =-------##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [0])
4 m4_define([v_min], [7])
5 m4_define([v_mic], [0])
6 m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7 m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
8 ##--   When released, remove the dnl on the below line
9 dnl m4_undefine([v_rev])
10 ##--   When doing snapshots - change soname. remove dnl on below line
11 m4_define([relname], [ver-pre-svn-09])
12 m4_define([v_rel], [-release relname])
13 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])],
15 [m4_define([v_ver], [v_maj.v_min.v_mic])])
16 m4_define([lt_rev], m4_eval(v_maj + v_min))
17 m4_define([lt_cur], v_mic)
18 m4_define([lt_age], v_min)
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
21
22 AC_INIT([elementary], [v_ver], [enlightenment-devel@lists.sourceforge.net])
23 AC_PREREQ(2.52)
24 AC_CONFIG_SRCDIR([configure.ac])
25 AC_CONFIG_MACRO_DIR([m4])
26 AC_CANONICAL_BUILD
27 AC_CANONICAL_HOST
28
29 AC_CONFIG_HEADERS([elementary_config.h])
30 AH_TOP([
31 #ifndef EFL_CONFIG_H__
32 #define EFL_CONFIG_H__
33 ])
34 AH_BOTTOM([
35 #endif /* EFL_CONFIG_H__ */
36 ])
37
38 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
39 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
40
41 AC_GNU_SOURCE
42
43 AC_C_BIGENDIAN
44 AC_ISC_POSIX
45 AC_PROG_CC
46 AM_PROG_CC_STDC
47 AC_HEADER_STDC
48 AC_C_CONST
49 AC_C___ATTRIBUTE__
50 AC_FUNC_ALLOCA
51
52 AC_LIBTOOL_WIN32_DLL
53 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
54 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
55 AC_PROG_LIBTOOL
56
57 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
58 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
59 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
60 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
61 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
62 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
63 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
64 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
65 version_info="lt_rev:lt_cur:lt_age"
66 release_info="v_rel"
67 AC_SUBST(version_info)
68 AC_SUBST(release_info)
69 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
70 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
71 VMAJ=v_maj
72 VMIN=v_min
73 AC_SUBST(VMAJ)
74 AC_SUBST(VMIN)
75
76 # pkg-config
77 PKG_PROG_PKG_CONFIG
78 EDJE_VERSION=`$PKG_CONFIG edje --modversion | awk -F . '{printf("%s.0.0", $1);}'`
79
80 case "$host_os" in
81   mingw32ce* | cegcc*)
82     MODULE_ARCH="$host_os-$host_cpu"
83     MODULE_EDJE="$host_os-$host_cpu"
84     ;;
85   *)
86     MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
87     MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
88     ;;
89 esac
90 AC_SUBST(release_info)
91 AC_SUBST(MODULE_ARCH)
92 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
93 AC_SUBST(MODULE_EDJE)
94 AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
95
96 EFL_SHARED_EXTENSION="${shrext_cmds}"
97 AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")
98
99 requirement_elm=""
100
101 PKG_PROG_PKG_CONFIG
102
103 # Check whether pkg-config supports Requires.private
104 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
105    pkgconfig_requires_private="Requires.private"
106 else
107    pkgconfig_requires_private="Requires"
108 fi
109 AC_SUBST(pkgconfig_requires_private)
110
111 #================================================
112 if test "x${prefix}" = "xNONE"; then
113   LOCALE_DIR="${ac_default_prefix}/share/locale"
114 else
115   LOCALE_DIR="${prefix}/share/locale"
116 fi
117 AC_SUBST(LOCALE_DIR)
118 #================================================
119
120 lt_enable_auto_import=""
121 ELM_UNIX_DEF="#undef"
122 ELM_WIN32_DEF="#undef"
123 ELM_WINCE_DEF="#undef"
124 have_windows="no"
125 case "$host_os" in
126    mingw32ce* | cegcc*)
127       PKG_CHECK_MODULES([EVIL], [evil])
128       AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
129       lt_enable_auto_import="-Wl,--enable-auto-import"
130       ELM_WINCE_DEF="#define"
131       have_windows="yes"
132 dnl managed by evil
133       AC_DEFINE(HAVE_DLADDR)
134       dlopen_libs=-ldl
135       requirement_elm="evil"
136       have_socket="no"
137     ;;
138    mingw*)
139       PKG_CHECK_MODULES([EVIL], [evil])
140       AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
141       lt_enable_auto_import="-Wl,--enable-auto-import"
142       ELM_WIN32_DEF="#define"
143       have_windows="yes"
144 dnl managed by evil
145       AC_DEFINE(HAVE_DLADDR)
146       dlopen_libs=-ldl
147       requirement_elm="evil"
148       have_socket="no"
149       ;;
150    *solaris*)
151       ELM_UNIX_DEF="#define"
152       have_socket="yes"
153       AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
154       ;;
155    darwin*)
156       ELM_UNIX_DEF="#define"
157       have_socket="yes"
158       AC_CHECK_HEADERS([crt_externs.h])
159       AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
160       ;;
161    *)
162       ELM_UNIX_DEF="#define"
163       AC_CHECK_FUNCS(dlopen, res=yes, res=no)
164       if test "x$res" = "xyes"; then
165         AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
166       else
167         AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
168         if test "x$res" = "xyes"; then
169           AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
170           dlopen_libs=-ldl
171         else
172           AC_MSG_ERROR(Cannot find dlopen)
173         fi
174       fi
175       have_socket="yes"
176       ;;
177 esac
178 AC_CHECK_FUNCS(strcasestr, AC_DEFINE(HAVE_STRCASESTR))
179 AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
180
181 m4_ifdef([v_mic],
182    [
183     EFL_COMPILER_FLAG([-Wall])
184     EFL_COMPILER_FLAG([-W])
185    ])
186
187 have_fork="no"
188 want_quicklaunch="auto"
189 AC_ARG_ENABLE([quick-launch],
190         [AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
191         [want_quicklaunch=$enableval], [])
192
193 if test "x$want_quicklaunch" != "xno"; then
194    AC_CHECK_FUNCS(fork, [
195         have_fork="yes"
196         AC_DEFINE(HAVE_FORK)
197    ])
198 fi
199 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
200
201 AC_SUBST(dlopen_libs)
202 AC_SUBST(lt_enable_auto_import)
203 AC_SUBST(ELM_UNIX_DEF)
204 AC_SUBST(ELM_WIN32_DEF)
205 AC_SUBST(ELM_WINCE_DEF)
206
207 AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
208
209 PKG_CHECK_MODULES([ELEMENTARY],
210    [
211     eina >= 1.0.999
212     eet >= 1.4.0
213     evas >= 1.0.999
214     ecore >= 1.0.0
215     ecore-evas >= 1.0.0
216     ecore-file >= 1.0.0
217     ecore-imf >= 1.0.0
218     edje >= 1.0.999
219     icu-i18n >= 4.6.0
220    ]
221 )
222
223 PKG_CHECK_MODULES([ECORE_CON],
224         [ecore-con],
225         [
226          have_ecore_con="yes"
227          AC_DEFINE(HAVE_ECORE_CON, 1, [Use Ecore_Con for downloding files])
228          requirement_elm="ecore-con ${requirement_elm}"
229         ],
230         [have_ecore_con="no"])
231
232 PKG_CHECK_MODULES([EIO],
233         [eio],
234         [
235          have_eio="yes"
236          AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
237          requirement_elm="eio ${requirement_elm}"
238         ],
239         [have_eio="no"])
240
241 AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
242
243 PKG_CHECK_MODULES([EMOTION],
244         [emotion],
245         [
246          have_emotion="yes"
247          AC_DEFINE(HAVE_EMOTION, 1, [Use Emotion for asynchronous file access])
248          requirement_elm="emotion ${requirement_elm}"
249         ],
250         [have_emotion="no"])
251
252 AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])
253
254 requirement_elm="edje >= 1.0.0 ecore-file >= 1.0.0 ecore-evas >= 1.0.0 ecore >= 1.0.0 evas >= 1.0.0 eet >= 1.4.0 eina >= 1.0.0 icu-i18n >= 4.6.0 ${requirement_elm}"
255
256 have_elementary_x="no"
257 want_elementary_x="auto"
258 AC_ARG_ENABLE([ecore-x],
259    [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
260    [want_elementary_x=$enableval], [])
261
262 if test "x$want_elementary_x" != "xno"; then
263    PKG_CHECK_MODULES([ELEMENTARY_X],
264       [ecore-x >= 1.0.0],
265       [
266        AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
267        have_elementary_x="yes"
268        requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
269       ],
270       [have_elementary_x="no"]
271    )
272 else
273     have_elementary_x="no"
274 fi
275 if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
276     AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
277 fi
278
279 have_conformant_autoscroll="no"
280 want_conformant_autoscroll="yes"
281 AC_ARG_ENABLE([ecore-x],
282    [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
283    [want_conformant_autoscroll=$enableval], [])
284
285 if test "x$want_conformant_autoscroll" != "xno"; then
286    PKG_CHECK_MODULES([ELEMENTARY_X],
287       [ecore-x >= 1.0.0],
288       [
289        AC_DEFINE(HAVE_CONFORMANT_AUTOSCROLL, 1, [autoscroll with conformant])
290        have_conformant_autoscroll="yes"
291        requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
292       ],
293       [have_conformant_autoscroll="no"]
294    )
295 else
296     have_conformant_autoscroll="no"
297 fi
298 if test "x$want_conformant_autoscroll" = "xyes" -a "x$have_conformant_autoscroll" = "xno"; then
299     AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
300 fi
301
302 have_elementary_fb="no"
303 want_elementary_fb="auto"
304 AC_ARG_ENABLE([ecore-fb],
305    [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
306    [want_elementary_fb=$enableval], [])
307
308 if test "x$want_elementary_fb" != "xno"; then
309    PKG_CHECK_MODULES([ELEMENTARY_FB],
310       [ecore-fb >= 1.0.0],
311       [
312        AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
313        have_elementary_fb="yes"
314        requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
315       ],
316       [have_elementary_fb="no"]
317    )
318 else
319     have_elementary_fb="no"
320 fi
321 if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
322     AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
323 fi
324
325 have_elementary_sdl="no"
326 want_elementary_sdl="auto"
327 AC_ARG_ENABLE([ecore-sdl],
328    [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
329    [want_elementary_sdl=$enableval], [])
330
331 if test "x$want_elementary_sdl" != "xno"; then
332    PKG_CHECK_MODULES([ELEMENTARY_SDL],
333       [ecore-sdl >= 1.0.0],
334       [
335        AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
336        have_elementary_sdl="yes"
337        requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
338       ],
339       [have_elementary_sdl="no"]
340    )
341 else
342     have_elementary_sdl="no"
343 fi
344 if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
345     AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
346 fi
347
348 have_elementary_win32="no"
349 want_elementary_win32="auto"
350 AC_ARG_ENABLE([ecore-win32],
351    [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
352    [want_elementary_win32=$enableval], [])
353
354 if test "x$want_elementary_win32" != "xno"; then
355    PKG_CHECK_MODULES([ELEMENTARY_WIN32],
356       [ecore-win32 >= 1.0.0],
357       [
358        AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
359        have_elementary_win32="yes"
360        requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
361       ],
362       [have_elementary_win32="no"]
363    )
364 else
365     have_elementary_win32="no"
366 fi
367 if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
368     AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
369 fi
370
371 have_elementary_wince="no"
372 want_elementary_wince="auto"
373 AC_ARG_ENABLE([ecore-wince],
374    [AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
375    [want_elementary_wince=$enableval], [])
376
377 if test "x$want_elementary_wince" != "xno"; then
378    PKG_CHECK_MODULES([ELEMENTARY_WINCE],
379       [ecore-wince >= 1.0.0],
380       [
381        AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
382        have_elementary_wince="yes"
383        requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
384       ],
385       [have_elementary_wince="no"]
386    )
387 else
388     have_elementary_wince="no"
389 fi
390 if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
391     AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
392 fi
393
394 ELM_EDBUS_DEF="#undef"
395 have_elementary_edbus="no"
396 want_elementary_edbus="auto"
397 AC_ARG_ENABLE([edbus],
398    [AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
399    [want_elementary_edbus=$enableval], [])
400
401 if test "x$want_elementary_edbus" != "xno"; then
402     PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
403        [
404         edbus >= 1.0.0
405        ],
406        [
407         AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
408         have_elementary_edbus="yes"
409         ELM_EDBUS_DEF="#define"
410         requirement_elm="edbus >= 1.0.0 ${requirement_elm}"
411        ],
412        [have_elementary_edbus="no"]
413     )
414 else
415     have_elementary_edbus="no"
416 fi
417 if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
418     AC_MSG_ERROR([E_DBus support requested, but no e_dbus found by pkg-config.])
419 fi
420 AC_SUBST(ELM_EDBUS_DEF)
421
422 ELM_EFREET_DEF="#undef"
423 have_elementary_efreet="no"
424 want_elementary_efreet="auto"
425 AC_ARG_ENABLE([efreet],
426    [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
427    [want_elementary_efreet=$enableval], [])
428
429 if test "x$want_elementary_efreet" != "xno"; then
430     PKG_CHECK_MODULES([ELEMENTARY_EFREET],
431        [
432         efreet >= 1.0.0
433         efreet-mime >= 1.0.0
434         efreet-trash >= 1.0.0
435        ],
436        [
437         AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
438         have_elementary_efreet="yes"
439         ELM_EFREET_DEF="#define"
440         requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
441        ],
442        [have_elementary_efreet="no"]
443     )
444 else
445     have_elementary_efreet="no"
446 fi
447 if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
448     AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
449 fi
450 AC_SUBST(ELM_EFREET_DEF)
451
452 ELM_EWEATHER_DEF="#undef"
453 have_elementary_eweather="no"
454 want_elementary_eweather="auto"
455 AC_ARG_ENABLE([eweather],
456    [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
457    [want_elementary_eweather=$enableval], [])
458
459 if test "x$want_elementary_eweather" != "xno"; then
460     PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
461        [
462         eweather
463        ],
464        [
465         AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
466         have_elementary_eweather="yes"
467         ELM_EWEATHER_DEF="#define"
468         requirement_elm="eweather ${requirement_elm}"
469        ],
470        [have_elementary_eweather="no"]
471     )
472 else
473     have_elementary_eweather="no"
474 fi
475 if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
476     AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
477 fi
478 AC_SUBST(ELM_EWEATHER_DEF)
479
480 ELM_EMAP_DEF="#undef"
481 have_elementary_emap="no"
482 want_elementary_emap="auto"
483 AC_ARG_ENABLE([emap],
484    [AC_HELP_STRING([--disable-emap], [disable emap support. @<:@default=detect@:>@])],
485    [want_elementary_emap=$enableval], [])
486
487 if test "x$want_elementary_emap" != "xno"; then
488     PKG_CHECK_MODULES([ELEMENTARY_EMAP],
489        [
490         emap
491        ],
492        [
493         AC_DEFINE(HAVE_ELEMENTARY_EMAP, 1, [EMap support for Elementary])
494         have_elementary_emap="yes"
495         ELM_EMAP_DEF="#define"
496         requirement_elm="emap ${requirement_elm}"
497        ],
498        [have_elementary_emap="no"]
499     )
500 else
501     have_elementary_emap="no"
502 fi
503 if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; then
504     AC_MSG_ERROR([Emap support requested, but no emap found by pkg-config.])
505 fi
506 AC_SUBST(ELM_EMAP_DEF)
507
508
509
510 ELM_ETHUMB_DEF="#undef"
511 have_elementary_ethumb="no"
512 want_elementary_ethumb="auto"
513 AC_ARG_ENABLE([ethumb],
514    [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
515    [want_elementary_ethumb=$enableval], [])
516
517 if test "x$want_elementary_ethumb" != "xno"; then
518     PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
519        [
520         ethumb_client
521        ],
522        [
523         AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
524         have_elementary_ethumb="yes"
525         ELM_ETHUMB_DEF="#define"
526         requirement_elm="ethumb_client ${requirement_elm}"
527        ],
528        [have_elementary_ethumb="no"]
529     )
530 else
531     have_elementary_ethumb="no"
532 fi
533 if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
534     AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
535 fi
536 AC_SUBST(ELM_ETHUMB_DEF)
537
538 ELM_DEBUG_DEF="#undef"
539 want_elementary_debug="no"
540 AC_ARG_ENABLE([debug],
541    [AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
542    [want_elementary_debug=$enableval], [])
543
544 if test "x$want_elementary_debug" = "xyes"; then
545         AC_DEFINE(HAVE_ELEMENTARY_DEBUG, 1, [Elementary debug.])
546         ELM_DEBUG_DEF="#define"
547 fi
548 AC_SUBST(ELM_DEBUG_DEF)
549
550 ELM_ALLOCA_H_DEF="#undef"
551 AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
552 AC_SUBST(ELM_ALLOCA_H_DEF)
553
554 ELM_LIBINTL_H_DEF="#undef"
555 AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
556 AC_SUBST(ELM_LIBINTL_H_DEF)
557
558 EFL_CHECK_THREADS([
559   TH=1
560 ] , [
561   AC_MSG_ERROR(no thread support found. required.)
562   exit 1
563 ])
564 AC_SUBST(EFL_PTHREAD_CFLAGS)
565 AC_SUBST(EFL_PTHREAD_LIBS)
566
567 my_libs="-lm"
568 AC_SUBST(my_libs)
569 AC_SUBST(requirement_elm)
570
571 EFL_WITH_BIN([eet], [eet-eet], [eet])
572 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
573
574 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
575
576 EFL_ENABLE_BIN([elementary-test])
577 EFL_ENABLE_BIN([elementary-config])
578
579 m4_ifdef([AM_GNU_GETTEXT_VERSION], [
580 AM_GNU_GETTEXT_VERSION([0.12.1])
581 ])
582
583 m4_ifdef([AM_GNU_GETTEXT], [
584 AM_GNU_GETTEXT([external])
585 po_makefile_in=po/Makefile.in
586 AM_CONDITIONAL([HAVE_PO], [true])
587 ],[
588 AM_CONDITIONAL([HAVE_PO], [false])
589 ])
590 AC_SUBST(LTLIBINTL)
591
592 ### Build and install examples
593 EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
594 EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
595
596
597 AC_OUTPUT([
598 Makefile
599 elementary.spec
600 elementary.pc
601 doc/elementary.dox
602 doc/Makefile
603 doc/Doxyfile
604 src/Makefile
605 src/lib/Makefile
606 src/lib/Elementary.h
607 src/bin/Makefile
608 src/modules/Makefile
609 src/modules/test_entry/Makefile
610 src/modules/test_map/Makefile
611 src/modules/ctxpopup_copypasteUI/Makefile
612 src/modules/ctxpopup_copypasteshareUI/Makefile
613 src/modules/popup_copypasteUI/Makefile
614 src/edje_externals/Makefile
615 src/examples/Makefile
616 data/Makefile
617 data/themes/Makefile
618 data/images/Makefile
619 data/objects/Makefile
620 data/desktop/Makefile
621 data/edje_externals/Makefile
622 config/Makefile
623 config/default/Makefile
624 config/standard/Makefile
625 config/illume/Makefile
626 config/slp/Makefile
627 $po_makefile_in
628 ])
629
630 #####################################################################
631 ## Info
632
633 echo
634 echo
635 echo
636 echo "------------------------------------------------------------------------"
637 echo "$PACKAGE $VERSION"
638 echo "------------------------------------------------------------------------"
639 echo
640 echo "Configuration Options Summary:"
641 echo
642 echo "  Engines:"
643 echo "    X11....................: ${have_elementary_x}"
644 echo "    Framebuffer............: ${have_elementary_fb}"
645 echo "    SDL....................: ${have_elementary_sdl}"
646 echo "    Windows XP.............: ${have_elementary_win32}"
647 echo "    Windows CE.............: ${have_elementary_wince}"
648 echo
649 echo "  Features:"
650 echo "    EDBus..................: ${have_elementary_edbus}"
651 echo "    EFreet.................: ${have_elementary_efreet}"
652 echo "    EWeather...............: ${have_elementary_eweather}"
653 echo "    EMap...................: ${have_elementary_emap}"
654 echo "    Ethumb.................: ${have_elementary_ethumb}"
655 echo "    Quick Launch...........: ${have_fork}"
656 echo "    EIO....................: ${have_eio}"
657 echo "    Emotion................: ${have_emotion}"
658 echo
659 echo "  eet......................: ${eet_eet}"
660 echo "  edje_cc..................: ${edje_cc}"
661 echo
662 echo "  Build elementary_test....: ${have_elementary_test}"
663 echo "  Examples.............: ${enable_build_examples}"
664 echo "  Examples installed...: ${enable_install_examples}"
665 echo "  Build elementary_config..: ${have_elementary_config}"
666 echo
667 echo "Compilation................: make (or gmake)"
668 echo "  CPPFLAGS.................: $CPPFLAGS"
669 echo "  CFLAGS...................: $CFLAGS"
670 echo "  LDFLAGS..................: $LDFLAGS"
671 echo
672 echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
673 echo "  prefix...................: $prefix"
674 echo