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"])
181 want_quicklaunch="auto"
182 AC_ARG_ENABLE([quick-launch],
183 [AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
184 [want_quicklaunch=$enableval], [])
186 if test "x$want_quicklaunch" != "xno"; then
187 AC_CHECK_FUNCS(fork, [
192 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
194 AC_SUBST(dlopen_libs)
195 AC_SUBST(lt_enable_auto_import)
196 AC_SUBST(ELM_UNIX_DEF)
197 AC_SUBST(ELM_WIN32_DEF)
198 AC_SUBST(ELM_WINCE_DEF)
200 AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
202 PKG_CHECK_MODULES([ELEMENTARY],
215 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}"
217 have_elementary_x="no"
218 want_elementary_x="auto"
219 AC_ARG_ENABLE([ecore-x],
220 [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
221 [want_elementary_x=$enableval], [])
223 if test "x$want_elementary_x" != "xno"; then
224 PKG_CHECK_MODULES([ELEMENTARY_X],
227 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
228 have_elementary_x="yes"
229 requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
231 [have_elementary_x="no"]
234 have_elementary_x="no"
236 if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
237 AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
241 have_elementary_fb="no"
242 want_elementary_fb="auto"
243 AC_ARG_ENABLE([ecore-fb],
244 [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
245 [want_elementary_fb=$enableval], [])
247 if test "x$want_elementary_fb" != "xno"; then
248 PKG_CHECK_MODULES([ELEMENTARY_FB],
251 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
252 have_elementary_fb="yes"
253 requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
255 [have_elementary_fb="no"]
258 have_elementary_fb="no"
260 if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
261 AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
264 have_elementary_sdl="no"
265 want_elementary_sdl="auto"
266 AC_ARG_ENABLE([ecore-sdl],
267 [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
268 [want_elementary_sdl=$enableval], [])
270 if test "x$want_elementary_sdl" != "xno"; then
271 PKG_CHECK_MODULES([ELEMENTARY_SDL],
272 [ecore-sdl >= 1.0.0],
274 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
275 have_elementary_sdl="yes"
276 requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
278 [have_elementary_sdl="no"]
281 have_elementary_sdl="no"
283 if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
284 AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
287 have_elementary_win32="no"
288 want_elementary_win32="auto"
289 AC_ARG_ENABLE([ecore-win32],
290 [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
291 [want_elementary_win32=$enableval], [])
293 if test "x$want_elementary_win32" != "xno"; then
294 PKG_CHECK_MODULES([ELEMENTARY_WIN32],
295 [ecore-win32 >= 1.0.0],
297 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
298 have_elementary_win32="yes"
299 requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
301 [have_elementary_win32="no"]
304 have_elementary_win32="no"
306 if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
307 AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
310 have_elementary_wince="no"
311 want_elementary_wince="auto"
312 AC_ARG_ENABLE([ecore-wince],
313 [AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
314 [want_elementary_wince=$enableval], [])
316 if test "x$want_elementary_wince" != "xno"; then
317 PKG_CHECK_MODULES([ELEMENTARY_WINCE],
318 [ecore-wince >= 1.0.0],
320 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
321 have_elementary_wince="yes"
322 requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
324 [have_elementary_wince="no"]
327 have_elementary_wince="no"
329 if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
330 AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
333 ELM_EDBUS_DEF="#undef"
334 have_elementary_edbus="no"
335 want_elementary_edbus="auto"
336 AC_ARG_ENABLE([edbus],
337 [AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
338 [want_elementary_edbus=$enableval], [])
340 if test "x$want_elementary_edbus" != "xno"; then
341 PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
346 AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
347 have_elementary_edbus="yes"
348 ELM_EDBUS_DEF="#define"
349 requirement_elm="edbus >= 1.0.0 ${requirement_elm}"
351 [have_elementary_edbus="no"]
354 have_elementary_edbus="no"
356 if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
357 AC_MSG_ERROR([E_DBus support requested, but no e_dbus found by pkg-config.])
359 AC_SUBST(ELM_EDBUS_DEF)
361 ELM_EFREET_DEF="#undef"
362 have_elementary_efreet="no"
363 want_elementary_efreet="auto"
364 AC_ARG_ENABLE([efreet],
365 [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
366 [want_elementary_efreet=$enableval], [])
368 if test "x$want_elementary_efreet" != "xno"; then
369 PKG_CHECK_MODULES([ELEMENTARY_EFREET],
373 efreet-trash >= 1.0.0
376 AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
377 have_elementary_efreet="yes"
378 ELM_EFREET_DEF="#define"
379 requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
381 [have_elementary_efreet="no"]
384 have_elementary_efreet="no"
386 if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
387 AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
389 AC_SUBST(ELM_EFREET_DEF)
391 ELM_EWEATHER_DEF="#undef"
392 have_elementary_eweather="no"
393 want_elementary_eweather="auto"
394 AC_ARG_ENABLE([eweather],
395 [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
396 [want_elementary_eweather=$enableval], [])
398 if test "x$want_elementary_eweather" != "xno"; then
399 PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
404 AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
405 have_elementary_eweather="yes"
406 ELM_EWEATHER_DEF="#define"
407 requirement_elm="eweather ${requirement_elm}"
409 [have_elementary_eweather="no"]
412 have_elementary_eweather="no"
414 if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
415 AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
417 AC_SUBST(ELM_EWEATHER_DEF)
419 ELM_ETHUMB_DEF="#undef"
420 have_elementary_ethumb="no"
421 want_elementary_ethumb="auto"
422 AC_ARG_ENABLE([ethumb],
423 [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
424 [want_elementary_ethumb=$enableval], [])
426 if test "x$want_elementary_ethumb" != "xno"; then
427 PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
432 AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
433 have_elementary_ethumb="yes"
434 ELM_ETHUMB_DEF="#define"
435 requirement_elm="ethumb_client ${requirement_elm}"
437 [have_elementary_ethumb="no"]
440 have_elementary_ethumb="no"
442 if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
443 AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
445 AC_SUBST(ELM_ETHUMB_DEF)
447 ELM_DEBUG_DEF="#undef"
448 want_elementary_debug="no"
449 AC_ARG_ENABLE([debug],
450 [AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
451 [want_elementary_debug=$enableval], [])
453 if test "x$want_elementary_debug" = "xyes"; then
454 AC_DEFINE(HAVE_ELEMENTARY_DEBUG, 1, [Elementary debug.])
455 ELM_DEBUG_DEF="#define"
457 AC_SUBST(ELM_DEBUG_DEF)
459 ELM_ALLOCA_H_DEF="#undef"
460 AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
461 AC_SUBST(ELM_ALLOCA_H_DEF)
463 ELM_LIBINTL_H_DEF="#undef"
464 AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
465 AC_SUBST(ELM_LIBINTL_H_DEF)
470 AC_MSG_ERROR(no thread support found. required.)
473 AC_SUBST(EFL_PTHREAD_CFLAGS)
474 AC_SUBST(EFL_PTHREAD_LIBS)
478 AC_SUBST(requirement_elm)
480 EFL_WITH_BIN([eet], [eet-eet], [eet])
481 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
483 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
485 EFL_ENABLE_BIN([elementary-test])
486 EFL_ENABLE_BIN([elementary-config])
488 m4_ifdef([AM_GNU_GETTEXT_VERSION], [
489 AM_GNU_GETTEXT_VERSION([0.12.1])
492 m4_ifdef([AM_GNU_GETTEXT], [
493 AM_GNU_GETTEXT([external])
494 po_makefile_in=po/Makefile.in
495 AM_CONDITIONAL([HAVE_PO], [true])
497 AM_CONDITIONAL([HAVE_PO], [false])
513 src/modules/test_entry/Makefile
514 src/modules/test_map/Makefile
515 src/edje_externals/Makefile
519 data/objects/Makefile
520 data/desktop/Makefile
521 data/edje_externals/Makefile
523 config/default/Makefile
524 config/standard/Makefile
525 config/illume/Makefile
529 #####################################################################
535 echo "------------------------------------------------------------------------"
536 echo "$PACKAGE $VERSION"
537 echo "------------------------------------------------------------------------"
539 echo "Configuration Options Summary:"
542 echo " X11....................: ${have_elementary_x}"
543 echo " Framebuffer............: ${have_elementary_fb}"
544 echo " SDL....................: ${have_elementary_sdl}"
545 echo " Windows XP.............: ${have_elementary_win32}"
546 echo " Windows CE.............: ${have_elementary_wince}"
549 echo " EDBus..................: ${have_elementary_edbus}"
550 echo " EFreet.................: ${have_elementary_efreet}"
551 echo " EWeather...............: ${have_elementary_eweather}"
552 echo " Ethumb.................: ${have_elementary_ethumb}"
553 echo " Quick Launch...........: ${have_fork}"
555 echo " eet......................: ${eet_eet}"
556 echo " edje_cc..................: ${edje_cc}"
558 echo " Build elementary_test....: ${have_elementary_test}"
559 echo " Build elementary_config..: ${have_elementary_config}"
561 echo "Compilation................: make (or gmake)"
562 echo " CPPFLAGS.................: $CPPFLAGS"
563 echo " CFLAGS...................: $CFLAGS"
564 echo " LDFLAGS..................: $LDFLAGS"
566 echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
567 echo " prefix...................: $prefix"