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-07])
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 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
30 AM_CONFIG_HEADER([elementary_config.h])
31 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
43 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
44 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
47 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
48 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
49 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
50 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
51 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
52 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
53 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
54 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
55 version_info="lt_rev:lt_cur:lt_age"
57 AC_SUBST(version_info)
58 AC_SUBST(release_info)
59 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
60 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
72 MODULE_ARCH="$host_os-$host_cpu"
73 MODULE_EDJE="$host_os-$host_cpu"
76 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
77 MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
80 AC_SUBST(release_info)
82 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
84 AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
86 EFL_SHARED_EXTENSION="${shrext_cmds}"
87 AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")
93 # Check whether pkg-config supports Requires.private
94 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
95 pkgconfig_requires_private="Requires.private"
97 pkgconfig_requires_private="Requires"
99 AC_SUBST(pkgconfig_requires_private)
101 lt_enable_auto_import=""
102 ELM_UNIX_DEF="#undef"
103 ELM_WIN32_DEF="#undef"
104 ELM_WINCE_DEF="#undef"
108 PKG_CHECK_MODULES([EVIL], [evil])
109 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
110 lt_enable_auto_import="-Wl,--enable-auto-import"
111 ELM_WINCE_DEF="#define"
114 AC_DEFINE(HAVE_DLADDR)
115 requirement_elm="evil"
119 PKG_CHECK_MODULES([EVIL], [evil])
120 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
121 lt_enable_auto_import="-Wl,--enable-auto-import"
122 ELM_WIN32_DEF="#define"
124 requirement_elm="evil"
128 ELM_UNIX_DEF="#define"
130 AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
133 ELM_UNIX_DEF="#define"
135 AC_CHECK_HEADERS([crt_externs.h])
136 AC_DEFINE([environ], [(*_NSGetEnviron())], [apple doesn't follow POSIX in this case.])
139 ELM_UNIX_DEF="#define"
140 AC_CHECK_FUNCS(dlopen, res=yes, res=no)
141 if test "x$res" = "xyes"; then
142 AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
144 AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
145 if test "x$res" = "xyes"; then
146 AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
149 AC_MSG_ERROR(Cannot find dlopen)
155 AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
158 AC_CHECK_FUNCS(fork, [
162 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
164 AC_SUBST(dlopen_libs)
165 AC_SUBST(lt_enable_auto_import)
166 AC_SUBST(ELM_UNIX_DEF)
167 AC_SUBST(ELM_WIN32_DEF)
168 AC_SUBST(ELM_WINCE_DEF)
170 AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
172 PKG_CHECK_MODULES([ELEMENTARY],
181 edje >= ${EDJE_VERSION}
185 requirement_elm="edje >= ${EDJE_VERSION} 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}"
187 have_elementary_x="no"
188 want_elementary_x="auto"
189 AC_ARG_ENABLE([ecore-x],
190 [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
191 [want_elementary_x=$enableval], [])
193 if test "x$want_elementary_x" != "xno"; then
194 PKG_CHECK_MODULES([ELEMENTARY_X],
197 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
198 have_elementary_x="yes"
199 requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
201 [have_elementary_x="no"]
204 have_elementary_x="no"
206 if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
207 AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
210 have_conformant_autoscroll="no"
211 want_conformant_autoscroll="yes"
212 AC_ARG_ENABLE([ecore-x],
213 [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
214 [want_conformant_autoscroll=$enableval], [])
216 if test "x$want_conformant_autoscroll" != "xno"; then
217 PKG_CHECK_MODULES([ELEMENTARY_X],
220 AC_DEFINE(HAVE_CONFORMANT_AUTOSCROLL, 1, [autoscroll with conformant])
221 have_conformant_autoscroll="yes"
222 requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
224 [have_conformant_autoscroll="no"]
227 have_conformant_autoscroll="no"
229 if test "x$want_conformant_autoscroll" = "xyes" -a "x$have_conformant_autoscroll" = "xno"; then
230 AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
233 have_elementary_fb="no"
234 want_elementary_fb="auto"
235 AC_ARG_ENABLE([ecore-fb],
236 [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
237 [want_elementary_fb=$enableval], [])
239 if test "x$want_elementary_fb" != "xno"; then
240 PKG_CHECK_MODULES([ELEMENTARY_FB],
243 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
244 have_elementary_fb="yes"
245 requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
247 [have_elementary_fb="no"]
250 have_elementary_fb="no"
252 if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
253 AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
256 have_elementary_sdl="no"
257 want_elementary_sdl="auto"
258 AC_ARG_ENABLE([ecore-sdl],
259 [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
260 [want_elementary_sdl=$enableval], [])
262 if test "x$want_elementary_sdl" != "xno"; then
263 PKG_CHECK_MODULES([ELEMENTARY_SDL],
264 [ecore-sdl >= 1.0.0],
266 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
267 have_elementary_sdl="yes"
268 requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
270 [have_elementary_sdl="no"]
273 have_elementary_sdl="no"
275 if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
276 AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
279 have_elementary_win32="no"
280 want_elementary_win32="auto"
281 AC_ARG_ENABLE([ecore-win32],
282 [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
283 [want_elementary_win32=$enableval], [])
285 if test "x$want_elementary_win32" != "xno"; then
286 PKG_CHECK_MODULES([ELEMENTARY_WIN32],
287 [ecore-win32 >= 1.0.0],
289 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
290 have_elementary_win32="yes"
291 requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
293 [have_elementary_win32="no"]
296 have_elementary_win32="no"
298 if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
299 AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
302 have_elementary_wince="no"
303 want_elementary_wince="auto"
304 AC_ARG_ENABLE([ecore-wince],
305 [AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
306 [want_elementary_wince=$enableval], [])
308 if test "x$want_elementary_wince" != "xno"; then
309 PKG_CHECK_MODULES([ELEMENTARY_WINCE],
310 [ecore-wince >= 1.0.0],
312 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
313 have_elementary_wince="yes"
314 requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
316 [have_elementary_wince="no"]
319 have_elementary_wince="no"
321 if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
322 AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
325 ELM_EDBUS_DEF="#undef"
326 have_elementary_edbus="no"
327 want_elementary_edbus="auto"
328 AC_ARG_ENABLE([edbus],
329 [AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
330 [want_elementary_edbus=$enableval], [])
332 if test "x$want_elementary_edbus" != "xno"; then
333 PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
339 AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
340 have_elementary_edbus="yes"
341 ELM_EDBUS_DEF="#define"
342 requirement_elm="ehal >= 1.0.0 edbus >= 1.0.0 ${requirement_elm}"
344 [have_elementary_edbus="no"]
347 have_elementary_edbus="no"
349 if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
350 AC_MSG_ERROR([E_DBus support requested, but no edbus/ehal found by pkg-config.])
352 AC_SUBST(ELM_EDBUS_DEF)
354 ELM_EFREET_DEF="#undef"
355 have_elementary_efreet="no"
356 want_elementary_efreet="auto"
357 AC_ARG_ENABLE([efreet],
358 [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
359 [want_elementary_efreet=$enableval], [])
361 if test "x$want_elementary_efreet" != "xno"; then
362 PKG_CHECK_MODULES([ELEMENTARY_EFREET],
366 efreet-trash >= 1.0.0
369 AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
370 have_elementary_efreet="yes"
371 ELM_EFREET_DEF="#define"
372 requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
374 [have_elementary_efreet="no"]
377 have_elementary_efreet="no"
379 if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
380 AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
382 AC_SUBST(ELM_EFREET_DEF)
384 ELM_EWEATHER_DEF="#undef"
385 have_elementary_eweather="no"
386 want_elementary_eweather="auto"
387 AC_ARG_ENABLE([eweather],
388 [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
389 [want_elementary_eweather=$enableval], [])
391 if test "x$want_elementary_eweather" != "xno"; then
392 PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
397 AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
398 have_elementary_eweather="yes"
399 ELM_EWEATHER_DEF="#define"
400 requirement_elm="eweather ${requirement_elm}"
402 [have_elementary_eweather="no"]
405 have_elementary_eweather="no"
407 if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
408 AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
410 AC_SUBST(ELM_EWEATHER_DEF)
412 ELM_ETHUMB_DEF="#undef"
413 have_elementary_ethumb="no"
414 want_elementary_ethumb="auto"
415 AC_ARG_ENABLE([ethumb],
416 [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
417 [want_elementary_ethumb=$enableval], [])
419 if test "x$want_elementary_ethumb" != "xno"; then
420 PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
425 AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
426 have_elementary_ethumb="yes"
427 ELM_ETHUMB_DEF="#define"
428 requirement_elm="ethumb_client ${requirement_elm}"
430 [have_elementary_ethumb="no"]
433 have_elementary_ethumb="no"
435 if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
436 AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
438 AC_SUBST(ELM_ETHUMB_DEF)
440 ELM_LIBXML2_DEF="#undef"
441 have_elementary_libxml2="no"
442 want_elementary_libxml2="auto"
443 AC_ARG_ENABLE([libxml2],
444 [AC_HELP_STRING([--disable-libxml2], [disable libxml2 support. @<:@default=detect@:>@])],
445 [want_elementary_libxml2=$enableval], [])
447 if test "x$want_elementary_libxml2" != "xno"; then
448 PKG_CHECK_MODULES([ELEMENTARY_LIBXML2],
453 AC_DEFINE(HAVE_ELEMENTARY_LIBXML2, 1, [Libxml2 support for Elementary])
454 have_elementary_libxml2="yes"
455 ELM_ETHUMB_DEF="#define"
456 requirement_elm="libxml2 ${requirement_elm}"
458 [have_elementary_libxml2="no"]
461 have_elementary_libxml2="no"
463 if test "x$want_elementary_libxml2" = "xyes" -a "x$have_elementary_libxml2" = "xno"; then
464 AC_MSG_ERROR(Libxml2 support requested, but no libxml2 found by pkg-config.])
466 AC_SUBST(ELM_LIBXML2_DEF)
468 ELM_ALLOCA_H_DEF="#undef"
469 AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
470 AC_SUBST(ELM_ALLOCA_H_DEF)
472 ELM_LIBINTL_H_DEF="#undef"
473 AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
474 AC_SUBST(ELM_LIBINTL_H_DEF)
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"])
496 src/modules/test_entry/Makefile
497 src/modules/ctxpopup_copypasteUI/Makefile
498 src/modules/popup_copypasteUI/Makefile
499 src/edje_externals/Makefile
503 data/objects/Makefile
504 data/desktop/Makefile
506 data/edje_externals/Makefile
508 config/default/Makefile
509 config/standard/Makefile
510 config/illume/Makefile
513 #####################################################################
519 echo "------------------------------------------------------------------------"
520 echo "$PACKAGE $VERSION"
521 echo "------------------------------------------------------------------------"
523 echo "Configuration Options Summary:"
526 echo " X11................: ${have_elementary_x}"
527 echo " Framebuffer........: ${have_elementary_fb}"
528 echo " SDL................: ${have_elementary_sdl}"
529 echo " Windows XP.........: ${have_elementary_win32}"
530 echo " Windows CE.........: ${have_elementary_wince}"
533 echo " EDBus..............: ${have_elementary_edbus}"
534 echo " EFreet.............: ${have_elementary_efreet}"
535 echo " EWeather...........: ${have_elementary_eweather}"
536 echo " Ethumb.............: ${have_elementary_ethumb}"
537 echo " EWebKit............: ${have_elementary_ewebkit}"
538 echo " Xml2...............: ${have_elementary_libxml2}"
540 echo " eet..................: ${eet_eet}"
541 echo " edje_cc..............: ${edje_cc}"
543 echo "Compilation............: make (or gmake)"
544 echo " CPPFLAGS.............: $CPPFLAGS"
545 echo " CFLAGS...............: $CFLAGS"
546 echo " LDFLAGS..............: $LDFLAGS"
548 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
549 echo " prefix...............: $prefix"