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 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
22 AC_INIT([elementary], [v_ver], [enlightenment-devel@lists.sourceforge.net])
24 AC_CONFIG_SRCDIR([configure.ac])
25 AC_CONFIG_MACRO_DIR([m4])
29 AC_CONFIG_HEADERS([elementary_config.h])
31 #ifndef EFL_CONFIG_H__
32 #define EFL_CONFIG_H__
35 #endif /* EFL_CONFIG_H__ */
38 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
39 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
53 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
54 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
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"
67 AC_SUBST(version_info)
68 AC_SUBST(release_info)
69 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
70 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
78 EDJE_VERSION=`$PKG_CONFIG edje --modversion | awk -F . '{printf("%s.0.0", $1);}'`
82 MODULE_ARCH="$host_os-$host_cpu"
83 MODULE_EDJE="$host_os-$host_cpu"
86 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
87 MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
90 AC_SUBST(release_info)
92 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
94 AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
96 EFL_SHARED_EXTENSION="${shrext_cmds}"
97 AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")
103 # Check whether pkg-config supports Requires.private
104 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
105 pkgconfig_requires_private="Requires.private"
107 pkgconfig_requires_private="Requires"
109 AC_SUBST(pkgconfig_requires_private)
111 #================================================
112 if test "x${prefix}" = "xNONE"; then
113 LOCALE_DIR="${ac_default_prefix}/share/locale"
115 LOCALE_DIR="${prefix}/share/locale"
118 #================================================
120 lt_enable_auto_import=""
121 ELM_UNIX_DEF="#undef"
122 ELM_WIN32_DEF="#undef"
123 ELM_WINCE_DEF="#undef"
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"
133 AC_DEFINE(HAVE_DLADDR)
135 requirement_elm="evil"
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"
145 AC_DEFINE(HAVE_DLADDR)
147 requirement_elm="evil"
151 ELM_UNIX_DEF="#define"
153 AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
156 ELM_UNIX_DEF="#define"
158 AC_CHECK_HEADERS([crt_externs.h])
159 AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
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))
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))
172 AC_MSG_ERROR(Cannot find dlopen)
178 AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
182 EFL_COMPILER_FLAG([-Wall])
183 EFL_COMPILER_FLAG([-W])
187 want_quicklaunch="auto"
188 AC_ARG_ENABLE([quick-launch],
189 [AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
190 [want_quicklaunch=$enableval], [])
192 if test "x$want_quicklaunch" != "xno"; then
193 AC_CHECK_FUNCS(fork, [
198 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
200 AC_SUBST(dlopen_libs)
201 AC_SUBST(lt_enable_auto_import)
202 AC_SUBST(ELM_UNIX_DEF)
203 AC_SUBST(ELM_WIN32_DEF)
204 AC_SUBST(ELM_WINCE_DEF)
206 AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
208 PKG_CHECK_MODULES([ELEMENTARY],
221 PKG_CHECK_MODULES([ECORE_CON],
225 AC_DEFINE(HAVE_ECORE_CON, 1, [Use Ecore_Con for downloding files])
226 requirement_elm="ecore-con ${requirement_elm}"
228 [have_ecore_con="no"])
230 PKG_CHECK_MODULES([EIO],
234 AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
235 requirement_elm="eio ${requirement_elm}"
239 AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
242 want_elementary_emotion="yes"
243 AC_ARG_ENABLE([emotion],
244 [AC_HELP_STRING([--disable-emotion], [disable emotion support. @<:@default=enabled@:>@])],
245 [want_elementary_emotion=$enableval], [])
247 if test "x$want_elementary_emotion" != "xno"; then
248 PKG_CHECK_MODULES([EMOTION],
252 AC_DEFINE(HAVE_EMOTION, 1, [Use Emotion for asynchronous file access])
253 requirement_elm="emotion ${requirement_elm}"
258 AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])
260 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}"
262 have_elementary_x="no"
263 want_elementary_x="auto"
264 AC_ARG_ENABLE([ecore-x],
265 [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
266 [want_elementary_x=$enableval], [])
268 if test "x$want_elementary_x" != "xno"; then
269 PKG_CHECK_MODULES([ELEMENTARY_X],
272 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
273 have_elementary_x="yes"
274 requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
276 [have_elementary_x="no"]
279 have_elementary_x="no"
281 if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
282 AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
286 have_elementary_fb="no"
287 want_elementary_fb="auto"
288 AC_ARG_ENABLE([ecore-fb],
289 [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
290 [want_elementary_fb=$enableval], [])
292 if test "x$want_elementary_fb" != "xno"; then
293 PKG_CHECK_MODULES([ELEMENTARY_FB],
296 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
297 have_elementary_fb="yes"
298 requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
300 [have_elementary_fb="no"]
303 have_elementary_fb="no"
305 if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
306 AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
309 have_elementary_sdl="no"
310 want_elementary_sdl="auto"
311 AC_ARG_ENABLE([ecore-sdl],
312 [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
313 [want_elementary_sdl=$enableval], [])
315 if test "x$want_elementary_sdl" != "xno"; then
316 PKG_CHECK_MODULES([ELEMENTARY_SDL],
317 [ecore-sdl >= 1.0.0],
319 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
320 have_elementary_sdl="yes"
321 requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
323 [have_elementary_sdl="no"]
326 have_elementary_sdl="no"
328 if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
329 AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
332 have_elementary_win32="no"
333 want_elementary_win32="auto"
334 AC_ARG_ENABLE([ecore-win32],
335 [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
336 [want_elementary_win32=$enableval], [])
338 if test "x$want_elementary_win32" != "xno"; then
339 PKG_CHECK_MODULES([ELEMENTARY_WIN32],
340 [ecore-win32 >= 1.0.0],
342 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
343 have_elementary_win32="yes"
344 requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
346 [have_elementary_win32="no"]
349 have_elementary_win32="no"
351 if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
352 AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
355 have_elementary_wince="no"
356 want_elementary_wince="auto"
357 AC_ARG_ENABLE([ecore-wince],
358 [AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
359 [want_elementary_wince=$enableval], [])
361 if test "x$want_elementary_wince" != "xno"; then
362 PKG_CHECK_MODULES([ELEMENTARY_WINCE],
363 [ecore-wince >= 1.0.0],
365 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
366 have_elementary_wince="yes"
367 requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
369 [have_elementary_wince="no"]
372 have_elementary_wince="no"
374 if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
375 AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
378 ELM_EDBUS_DEF="#undef"
379 have_elementary_edbus="no"
380 want_elementary_edbus="auto"
381 AC_ARG_ENABLE([edbus],
382 [AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
383 [want_elementary_edbus=$enableval], [])
385 if test "x$want_elementary_edbus" != "xno"; then
386 PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
391 AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
392 have_elementary_edbus="yes"
393 ELM_EDBUS_DEF="#define"
394 requirement_elm="edbus >= 1.0.0 ${requirement_elm}"
396 [have_elementary_edbus="no"]
399 have_elementary_edbus="no"
401 if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
402 AC_MSG_ERROR([E_DBus support requested, but no e_dbus found by pkg-config.])
404 AC_SUBST(ELM_EDBUS_DEF)
406 ELM_EFREET_DEF="#undef"
407 have_elementary_efreet="no"
408 want_elementary_efreet="auto"
409 AC_ARG_ENABLE([efreet],
410 [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
411 [want_elementary_efreet=$enableval], [])
413 if test "x$want_elementary_efreet" != "xno"; then
414 PKG_CHECK_MODULES([ELEMENTARY_EFREET],
418 efreet-trash >= 1.0.0
421 AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
422 have_elementary_efreet="yes"
423 ELM_EFREET_DEF="#define"
424 requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
426 [have_elementary_efreet="no"]
429 have_elementary_efreet="no"
431 if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
432 AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
434 AC_SUBST(ELM_EFREET_DEF)
436 ELM_EWEATHER_DEF="#undef"
437 have_elementary_eweather="no"
438 want_elementary_eweather="auto"
439 AC_ARG_ENABLE([eweather],
440 [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
441 [want_elementary_eweather=$enableval], [])
443 if test "x$want_elementary_eweather" != "xno"; then
444 PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
449 AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
450 have_elementary_eweather="yes"
451 ELM_EWEATHER_DEF="#define"
452 requirement_elm="eweather ${requirement_elm}"
454 [have_elementary_eweather="no"]
457 have_elementary_eweather="no"
459 if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
460 AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
462 AC_SUBST(ELM_EWEATHER_DEF)
464 ELM_EMAP_DEF="#undef"
465 have_elementary_emap="no"
466 want_elementary_emap="auto"
467 AC_ARG_ENABLE([emap],
468 [AC_HELP_STRING([--disable-emap], [disable emap support. @<:@default=detect@:>@])],
469 [want_elementary_emap=$enableval], [])
471 if test "x$want_elementary_emap" != "xno"; then
472 PKG_CHECK_MODULES([ELEMENTARY_EMAP],
477 AC_DEFINE(HAVE_ELEMENTARY_EMAP, 1, [EMap support for Elementary])
478 have_elementary_emap="yes"
479 ELM_EMAP_DEF="#define"
480 requirement_elm="emap ${requirement_elm}"
482 [have_elementary_emap="no"]
485 have_elementary_emap="no"
487 if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; then
488 AC_MSG_ERROR([Emap support requested, but no emap found by pkg-config.])
490 AC_SUBST(ELM_EMAP_DEF)
494 ELM_ETHUMB_DEF="#undef"
495 have_elementary_ethumb="no"
496 want_elementary_ethumb="auto"
497 AC_ARG_ENABLE([ethumb],
498 [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
499 [want_elementary_ethumb=$enableval], [])
501 if test "x$want_elementary_ethumb" != "xno"; then
502 PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
507 AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
508 have_elementary_ethumb="yes"
509 ELM_ETHUMB_DEF="#define"
510 requirement_elm="ethumb_client ${requirement_elm}"
512 [have_elementary_ethumb="no"]
515 have_elementary_ethumb="no"
517 if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
518 AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
520 AC_SUBST(ELM_ETHUMB_DEF)
522 ELM_DEBUG_DEF="#undef"
523 want_elementary_debug="no"
524 AC_ARG_ENABLE([debug],
525 [AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
526 [want_elementary_debug=$enableval], [])
528 if test "x$want_elementary_debug" = "xyes"; then
529 AC_DEFINE(HAVE_ELEMENTARY_DEBUG, 1, [Elementary debug.])
530 ELM_DEBUG_DEF="#define"
532 AC_SUBST(ELM_DEBUG_DEF)
534 ELM_ALLOCA_H_DEF="#undef"
535 AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
536 AC_SUBST(ELM_ALLOCA_H_DEF)
538 ELM_LIBINTL_H_DEF="#undef"
539 AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
540 AC_SUBST(ELM_LIBINTL_H_DEF)
545 AC_MSG_ERROR(no thread support found. required.)
548 AC_SUBST(EFL_PTHREAD_CFLAGS)
549 AC_SUBST(EFL_PTHREAD_LIBS)
553 AC_SUBST(requirement_elm)
555 EFL_WITH_BIN([eet], [eet-eet], [eet])
556 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
558 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
560 EFL_ENABLE_BIN([elementary-test])
561 EFL_ENABLE_BIN([elementary-config])
563 m4_ifdef([AM_GNU_GETTEXT_VERSION], [
564 AM_GNU_GETTEXT_VERSION([0.12.1])
567 m4_ifdef([AM_GNU_GETTEXT], [
568 AM_GNU_GETTEXT([external])
569 po_makefile_in=po/Makefile.in
570 AM_CONDITIONAL([HAVE_PO], [true])
572 AM_CONDITIONAL([HAVE_PO], [false])
576 ### Build and install examples
577 EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
578 EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
594 src/modules/test_entry/Makefile
595 src/modules/test_map/Makefile
596 src/edje_externals/Makefile
597 src/examples/Makefile
601 data/objects/Makefile
602 data/desktop/Makefile
603 data/edje_externals/Makefile
605 config/default/Makefile
606 config/standard/Makefile
607 config/illume/Makefile
611 #####################################################################
617 echo "------------------------------------------------------------------------"
618 echo "$PACKAGE $VERSION"
619 echo "------------------------------------------------------------------------"
621 echo "Configuration Options Summary:"
624 echo " X11....................: ${have_elementary_x}"
625 echo " Framebuffer............: ${have_elementary_fb}"
626 echo " SDL....................: ${have_elementary_sdl}"
627 echo " Windows XP.............: ${have_elementary_win32}"
628 echo " Windows CE.............: ${have_elementary_wince}"
631 echo " EDBus..................: ${have_elementary_edbus}"
632 echo " EFreet.................: ${have_elementary_efreet}"
633 echo " EWeather...............: ${have_elementary_eweather}"
634 echo " EMap...................: ${have_elementary_emap}"
635 echo " Ethumb.................: ${have_elementary_ethumb}"
636 echo " Quick Launch...........: ${have_fork}"
637 echo " EIO....................: ${have_eio}"
638 echo " Emotion................: ${have_emotion}"
640 echo " eet......................: ${eet_eet}"
641 echo " edje_cc..................: ${edje_cc}"
643 echo " Build elementary_test....: ${have_elementary_test}"
644 echo " Examples.............: ${enable_build_examples}"
645 echo " Examples installed...: ${enable_install_examples}"
646 echo " Build elementary_config..: ${have_elementary_config}"
648 echo "Compilation................: make (or gmake)"
649 echo " CPPFLAGS.................: $CPPFLAGS"
650 echo " CFLAGS...................: $CFLAGS"
651 echo " LDFLAGS..................: $LDFLAGS"
653 echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
654 echo " prefix...................: $prefix"