it's time we moved to elm 0.8
[framework/uifw/elementary.git] / configure.ac
1 =-------##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [0])
4 m4_define([v_min], [8])
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 have_dlopen="no"
126 case "$host_os" in
127    mingw32ce* | cegcc*)
128       PKG_CHECK_MODULES([EVIL], [evil])
129       AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
130       lt_enable_auto_import="-Wl,--enable-auto-import"
131       ELM_WINCE_DEF="#define"
132       have_windows="yes"
133 dnl managed by evil
134       AC_DEFINE(HAVE_DLADDR)
135       have_dlopen="yes"
136       dlopen_libs=-ldl
137       requirement_elm="evil"
138       have_socket="no"
139     ;;
140    mingw*)
141       PKG_CHECK_MODULES([EVIL], [evil])
142       AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
143       lt_enable_auto_import="-Wl,--enable-auto-import"
144       ELM_WIN32_DEF="#define"
145       have_windows="yes"
146 dnl managed by evil
147       AC_DEFINE(HAVE_DLADDR)
148       have_dlopen="yes"
149       dlopen_libs=-ldl
150       requirement_elm="evil"
151       have_socket="no"
152       ;;
153    *solaris*)
154       ELM_UNIX_DEF="#define"
155       have_socket="yes"
156       have_dlopen="yes"
157       AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
158       ;;
159    darwin*)
160       ELM_UNIX_DEF="#define"
161       have_socket="yes"
162       have_dlopen="yes"
163       AC_CHECK_HEADERS([crt_externs.h])
164       AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
165       ;;
166    *)
167       ELM_UNIX_DEF="#define"
168       AC_CHECK_FUNCS(dlopen, res=yes, res=no)
169       if test "x$res" = "xyes"; then
170         AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
171         have_dlopen="yes"
172       else
173         AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
174         if test "x$res" = "xyes"; then
175           AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
176           dlopen_libs=-ldl
177           have_dlopen="yes"
178         fi
179       fi
180       have_socket="yes"
181       ;;
182 esac
183 AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
184 AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"])
185
186 m4_ifdef([v_mic],
187    [
188     EFL_COMPILER_FLAG([-Wall])
189     EFL_COMPILER_FLAG([-W])
190    ])
191
192 have_fork="no"
193 want_quicklaunch="auto"
194 AC_ARG_ENABLE([quick-launch],
195         [AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
196         [want_quicklaunch=$enableval], [])
197
198 if test "x$want_quicklaunch" != "xno"; then
199    AC_CHECK_FUNCS(fork, [
200         have_fork="yes"
201         AC_DEFINE(HAVE_FORK)
202    ])
203 fi
204 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes" && test "x$have_dlopen" = "xyes"])
205
206 AC_SUBST(dlopen_libs)
207 AC_SUBST(lt_enable_auto_import)
208 AC_SUBST(ELM_UNIX_DEF)
209 AC_SUBST(ELM_WIN32_DEF)
210 AC_SUBST(ELM_WINCE_DEF)
211
212 AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
213
214 PKG_CHECK_MODULES([ELEMENTARY],
215    [
216     eina >= 1.0.999
217     eet >= 1.4.0
218     evas >= 1.0.999
219     ecore >= 1.0.999
220     ecore-evas >= 1.0.999
221     ecore-file >= 1.0.999
222     ecore-imf >= 1.0.999
223     ecore-con >= 1.0.999
224     edje >= 1.0.999
225    ]
226 )
227
228 PKG_CHECK_MODULES([EIO],
229         [eio],
230         [
231          have_eio="yes"
232          AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
233          requirement_elm="eio ${requirement_elm}"
234         ],
235         [have_eio="no"])
236
237 AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
238
239 have_emotion="no"
240 want_elementary_emotion="yes"
241 AC_ARG_ENABLE([emotion],
242    [AC_HELP_STRING([--disable-emotion], [disable emotion support. @<:@default=enabled@:>@])],
243    [want_elementary_emotion=$enableval], [])
244
245 if test "x$want_elementary_emotion" != "xno"; then
246    PKG_CHECK_MODULES([EMOTION],
247         [emotion],
248         [
249          have_emotion="yes"
250          AC_DEFINE(HAVE_EMOTION, 1, [Use Emotion for asynchronous file access])
251          requirement_elm="emotion ${requirement_elm}"
252         ],
253         [have_emotion="no"])
254 fi
255
256 AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])
257
258 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 ${requirement_elm}"
259
260 have_elementary_x="no"
261 want_elementary_x="auto"
262 AC_ARG_ENABLE([ecore-x],
263    [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
264    [want_elementary_x=$enableval], [])
265
266 if test "x$want_elementary_x" != "xno"; then
267    PKG_CHECK_MODULES([ELEMENTARY_X],
268       [ecore-x >= 1.0.0],
269       [
270        AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
271        have_elementary_x="yes"
272        requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
273       ],
274       [have_elementary_x="no"]
275    )
276 else
277     have_elementary_x="no"
278 fi
279 if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
280     AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
281 fi
282
283
284 have_elementary_fb="no"
285 want_elementary_fb="auto"
286 AC_ARG_ENABLE([ecore-fb],
287    [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
288    [want_elementary_fb=$enableval], [])
289
290 if test "x$want_elementary_fb" != "xno"; then
291    PKG_CHECK_MODULES([ELEMENTARY_FB],
292       [ecore-fb >= 1.0.0],
293       [
294        AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
295        have_elementary_fb="yes"
296        requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
297       ],
298       [have_elementary_fb="no"]
299    )
300 else
301     have_elementary_fb="no"
302 fi
303 if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
304     AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
305 fi
306
307 have_elementary_sdl="no"
308 want_elementary_sdl="auto"
309 AC_ARG_ENABLE([ecore-sdl],
310    [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
311    [want_elementary_sdl=$enableval], [])
312
313 if test "x$want_elementary_sdl" != "xno"; then
314    PKG_CHECK_MODULES([ELEMENTARY_SDL],
315       [ecore-sdl >= 1.0.0],
316       [
317        AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
318        have_elementary_sdl="yes"
319        requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
320       ],
321       [have_elementary_sdl="no"]
322    )
323 else
324     have_elementary_sdl="no"
325 fi
326 if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
327     AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
328 fi
329
330 have_elementary_win32="no"
331 want_elementary_win32="auto"
332 AC_ARG_ENABLE([ecore-win32],
333    [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
334    [want_elementary_win32=$enableval], [])
335
336 if test "x$want_elementary_win32" != "xno"; then
337    PKG_CHECK_MODULES([ELEMENTARY_WIN32],
338       [ecore-win32 >= 1.0.0],
339       [
340        AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
341        have_elementary_win32="yes"
342        requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
343       ],
344       [have_elementary_win32="no"]
345    )
346 else
347     have_elementary_win32="no"
348 fi
349 if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
350     AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
351 fi
352
353 have_elementary_wince="no"
354 want_elementary_wince="auto"
355 AC_ARG_ENABLE([ecore-wince],
356    [AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
357    [want_elementary_wince=$enableval], [])
358
359 if test "x$want_elementary_wince" != "xno"; then
360    PKG_CHECK_MODULES([ELEMENTARY_WINCE],
361       [ecore-wince >= 1.0.0],
362       [
363        AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
364        have_elementary_wince="yes"
365        requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
366       ],
367       [have_elementary_wince="no"]
368    )
369 else
370     have_elementary_wince="no"
371 fi
372 if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
373     AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
374 fi
375
376 ELM_EDBUS_DEF="#undef"
377 have_elementary_edbus="no"
378 want_elementary_edbus="auto"
379 AC_ARG_ENABLE([edbus],
380    [AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
381    [want_elementary_edbus=$enableval], [])
382
383 if test "x$want_elementary_edbus" != "xno"; then
384     PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
385        [
386         edbus >= 1.0.0
387        ],
388        [
389         AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
390         have_elementary_edbus="yes"
391         ELM_EDBUS_DEF="#define"
392         requirement_elm="edbus >= 1.0.0 ${requirement_elm}"
393        ],
394        [have_elementary_edbus="no"]
395     )
396 else
397     have_elementary_edbus="no"
398 fi
399 if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
400     AC_MSG_ERROR([E_DBus support requested, but no e_dbus found by pkg-config.])
401 fi
402 AC_SUBST(ELM_EDBUS_DEF)
403
404 ELM_EFREET_DEF="#undef"
405 have_elementary_efreet="no"
406 want_elementary_efreet="auto"
407 AC_ARG_ENABLE([efreet],
408    [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
409    [want_elementary_efreet=$enableval], [])
410
411 if test "x$want_elementary_efreet" != "xno"; then
412     PKG_CHECK_MODULES([ELEMENTARY_EFREET],
413        [
414         efreet >= 1.0.0
415         efreet-mime >= 1.0.0
416         efreet-trash >= 1.0.0
417        ],
418        [
419         AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
420         have_elementary_efreet="yes"
421         ELM_EFREET_DEF="#define"
422         requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
423        ],
424        [have_elementary_efreet="no"]
425     )
426 else
427     have_elementary_efreet="no"
428 fi
429 if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
430     AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
431 fi
432 AC_SUBST(ELM_EFREET_DEF)
433
434 ELM_EWEATHER_DEF="#undef"
435 have_elementary_eweather="no"
436 want_elementary_eweather="auto"
437 AC_ARG_ENABLE([eweather],
438    [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
439    [want_elementary_eweather=$enableval], [])
440
441 if test "x$want_elementary_eweather" != "xno"; then
442     PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
443        [
444         eweather
445        ],
446        [
447         AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
448         have_elementary_eweather="yes"
449         ELM_EWEATHER_DEF="#define"
450         requirement_elm="eweather ${requirement_elm}"
451        ],
452        [have_elementary_eweather="no"]
453     )
454 else
455     have_elementary_eweather="no"
456 fi
457 if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
458     AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
459 fi
460 AC_SUBST(ELM_EWEATHER_DEF)
461
462 ELM_EMAP_DEF="#undef"
463 have_elementary_emap="no"
464 want_elementary_emap="auto"
465 AC_ARG_ENABLE([emap],
466    [AC_HELP_STRING([--disable-emap], [disable emap support. @<:@default=detect@:>@])],
467    [want_elementary_emap=$enableval], [])
468
469 if test "x$want_elementary_emap" != "xno"; then
470     PKG_CHECK_MODULES([ELEMENTARY_EMAP],
471        [
472         emap
473        ],
474        [
475         AC_DEFINE(HAVE_ELEMENTARY_EMAP, 1, [EMap support for Elementary])
476         have_elementary_emap="yes"
477         ELM_EMAP_DEF="#define"
478         requirement_elm="emap ${requirement_elm}"
479        ],
480        [have_elementary_emap="no"]
481     )
482 else
483     have_elementary_emap="no"
484 fi
485 if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; then
486     AC_MSG_ERROR([Emap support requested, but no emap found by pkg-config.])
487 fi
488 AC_SUBST(ELM_EMAP_DEF)
489
490
491
492 ELM_ETHUMB_DEF="#undef"
493 have_elementary_ethumb="no"
494 want_elementary_ethumb="auto"
495 AC_ARG_ENABLE([ethumb],
496    [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
497    [want_elementary_ethumb=$enableval], [])
498
499 if test "x$want_elementary_ethumb" != "xno"; then
500     PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
501        [
502         ethumb_client
503        ],
504        [
505         AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
506         have_elementary_ethumb="yes"
507         ELM_ETHUMB_DEF="#define"
508         requirement_elm="ethumb_client ${requirement_elm}"
509        ],
510        [have_elementary_ethumb="no"]
511     )
512 else
513     have_elementary_ethumb="no"
514 fi
515 if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
516     AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
517 fi
518 AC_SUBST(ELM_ETHUMB_DEF)
519
520 ELM_WEB_DEF="#undef"
521 have_elementary_web="no"
522 want_elementary_web="auto"
523 AC_ARG_ENABLE([web],
524    [AC_HELP_STRING([--disable-web], [disable web (WebKit) support. @<:@default=detect@:>@])],
525    [want_elementary_web=$enableval], [])
526
527 if test "x$want_elementary_web" != "xno"; then
528     PKG_CHECK_MODULES([ELEMENTARY_WEB],
529        [
530         ewebkit
531        ],
532        [
533         AC_DEFINE(HAVE_ELEMENTARY_WEB, 1, [Web support for Elementary])
534         webkit_datadir=$($PKG_CONFIG ewebkit --variable=datadir)
535         AC_DEFINE_UNQUOTED(WEBKIT_DATADIR,
536                            "$webkit_datadir",
537                            "WebKit's data dir")
538         have_elementary_web="yes"
539         ELM_WEB_DEF="#define"
540 ## web_client? how about ewebkit? at least in current upstreak webkit
541 ## there is no web_client.pc        
542 #        requirement_elm="web_client ${requirement_elm}"
543         requirement_elm="ewebkit ${requirement_elm}"
544        ],
545        [have_elementary_web="no"]
546     )
547 else
548     have_elementary_web="no"
549 fi
550 if test "x$want_elementary_web" = "xyes" -a "x$have_elementary_web" = "xno"; then
551     AC_MSG_ERROR([Web support requested, but no ewebkit found by pkg-config.])
552 fi
553 AC_SUBST(ELM_WEB_DEF)
554
555 ELM_DEBUG_DEF="#undef"
556 want_elementary_debug="no"
557 AC_ARG_ENABLE([debug],
558    [AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
559    [want_elementary_debug=$enableval], [])
560
561 if test "x$want_elementary_debug" = "xyes"; then
562         AC_DEFINE(HAVE_ELEMENTARY_DEBUG, 1, [Elementary debug.])
563         ELM_DEBUG_DEF="#define"
564 fi
565 AC_SUBST(ELM_DEBUG_DEF)
566
567 ELM_ALLOCA_H_DEF="#undef"
568 AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
569 AC_SUBST(ELM_ALLOCA_H_DEF)
570
571 ELM_LIBINTL_H_DEF="#undef"
572 AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
573 AC_SUBST(ELM_LIBINTL_H_DEF)
574
575 EFL_CHECK_THREADS([
576   TH=1
577 ] , [
578   AC_MSG_ERROR(no thread support found. required.)
579   exit 1
580 ])
581 AC_SUBST(EFL_PTHREAD_CFLAGS)
582 AC_SUBST(EFL_PTHREAD_LIBS)
583
584 my_libs="-lm"
585 AC_SUBST(my_libs)
586 AC_SUBST(requirement_elm)
587
588 EFL_WITH_BIN([eet], [eet-eet], [eet])
589 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
590
591 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
592
593 EFL_ENABLE_BIN([elementary-test])
594 EFL_ENABLE_BIN([elementary-config])
595
596 m4_ifdef([AM_GNU_GETTEXT_VERSION], [
597 AM_GNU_GETTEXT_VERSION([0.17])
598 ])
599
600 m4_ifdef([AM_GNU_GETTEXT], [
601 AM_GNU_GETTEXT([external])
602 po_makefile_in=po/Makefile.in
603 AM_CONDITIONAL([HAVE_PO], [true])
604 ],[
605 AM_CONDITIONAL([HAVE_PO], [false])
606 ])
607 AC_SUBST(LTLIBINTL)
608 EFL_CHECK_PATH_MAX
609
610
611 ### Build and install examples
612 EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
613 EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
614
615
616 AC_OUTPUT([
617 Makefile
618 elementary.spec
619 elementary.pc
620 doc/Makefile
621 doc/Doxyfile
622 doc/widgets/Makefile
623 src/Makefile
624 src/lib/Makefile
625 src/lib/Elementary.h
626 src/bin/Makefile
627 src/modules/Makefile
628 src/modules/access_output/Makefile
629 src/modules/test_entry/Makefile
630 src/modules/test_map/Makefile
631 src/edje_externals/Makefile
632 src/examples/Makefile
633 data/Makefile
634 data/themes/Makefile
635 data/images/Makefile
636 data/objects/Makefile
637 data/desktop/Makefile
638 data/edje_externals/Makefile
639 config/Makefile
640 config/default/Makefile
641 config/standard/Makefile
642 config/illume/Makefile
643 $po_makefile_in
644 ])
645
646 #####################################################################
647 ## Info
648
649 echo
650 echo
651 echo
652 echo "------------------------------------------------------------------------"
653 echo "$PACKAGE $VERSION"
654 echo "------------------------------------------------------------------------"
655 echo
656 echo "Configuration Options Summary:"
657 echo
658 echo "  Engines:"
659 echo "    X11....................: ${have_elementary_x}"
660 echo "    Framebuffer............: ${have_elementary_fb}"
661 echo "    SDL....................: ${have_elementary_sdl}"
662 echo "    Windows XP.............: ${have_elementary_win32}"
663 echo "    Windows CE.............: ${have_elementary_wince}"
664 echo
665 echo "  Features:"
666 echo "    EDBus..................: ${have_elementary_edbus}"
667 echo "    EFreet.................: ${have_elementary_efreet}"
668 echo "    EWeather...............: ${have_elementary_eweather}"
669 echo "    EMap...................: ${have_elementary_emap}"
670 echo "    Ethumb.................: ${have_elementary_ethumb}"
671 echo "    Web (WebKit)...........: ${have_elementary_web}"
672 echo "    Quick Launch...........: ${have_fork}"
673 echo "    EIO....................: ${have_eio}"
674 echo "    Emotion................: ${have_emotion}"
675 echo
676 echo "  eet......................: ${eet_eet}"
677 echo "  edje_cc..................: ${edje_cc}"
678 echo
679 echo "  Build elementary_test....: ${have_elementary_test}"
680 echo "  Examples.................: ${enable_build_examples}"
681 echo "  Examples installed.......: ${enable_install_examples}"
682 echo "  Build elementary_config..: ${have_elementary_config}"
683 echo
684 echo "Compilation................: make (or gmake)"
685 echo "  CPPFLAGS.................: $CPPFLAGS"
686 echo "  CFLAGS...................: $CFLAGS"
687 echo "  LDFLAGS..................: $LDFLAGS"
688 echo
689 echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
690 echo "  prefix...................: $prefix"
691 echo