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 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
70 MODULE_ARCH="$host_os-$host_cpu"
71 MODULE_EDJE="$host_os-$host_cpu"
74 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
75 MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
78 AC_SUBST(release_info)
80 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
82 AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
84 EFL_SHARED_EXTENSION="${shrext_cmds}"
85 AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")
91 # Check whether pkg-config supports Requires.private
92 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
93 pkgconfig_requires_private="Requires.private"
95 pkgconfig_requires_private="Requires"
97 AC_SUBST(pkgconfig_requires_private)
99 lt_enable_auto_import=""
100 ELM_UNIX_DEF="#undef"
101 ELM_WIN32_DEF="#undef"
102 ELM_WINCE_DEF="#undef"
106 PKG_CHECK_MODULES([EVIL], [evil])
107 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
108 lt_enable_auto_import="-Wl,--enable-auto-import"
109 ELM_WINCE_DEF="#define"
112 AC_DEFINE(HAVE_DLADDR)
113 requirement_elm="evil"
117 PKG_CHECK_MODULES([EVIL], [evil])
118 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
119 lt_enable_auto_import="-Wl,--enable-auto-import"
120 ELM_WIN32_DEF="#define"
122 requirement_elm="evil"
126 ELM_UNIX_DEF="#define"
128 AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
131 ELM_UNIX_DEF="#define"
133 AC_CHECK_HEADERS([crt_externs.h])
134 AC_DEFINE([environ], [(*_NSGetEnviron())], [apple doesn't follow POSIX in this case.])
137 ELM_UNIX_DEF="#define"
138 AC_CHECK_FUNCS(dlopen, res=yes, res=no)
139 if test "x$res" = "xyes"; then
140 AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
142 AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
143 if test "x$res" = "xyes"; then
144 AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
147 AC_MSG_ERROR(Cannot find dlopen)
153 AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
156 AC_CHECK_FUNCS(fork, [
160 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
162 AC_SUBST(dlopen_libs)
163 AC_SUBST(lt_enable_auto_import)
164 AC_SUBST(ELM_UNIX_DEF)
165 AC_SUBST(ELM_WIN32_DEF)
166 AC_SUBST(ELM_WINCE_DEF)
168 AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
170 PKG_CHECK_MODULES([ELEMENTARY],
179 edje >= ${EDJE_VERSION}
184 [ --with-eet-eet=PATH specify a specific path to eet utility],
188 echo " Elementary eet explicitly set to "$eet_eet;
190 eet_eet=$(pkg-config --variable=prefix eet)/bin/eet
194 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}"
196 have_elementary_x="no"
197 want_elementary_x="auto"
198 AC_ARG_ENABLE([ecore-x],
199 [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
200 [want_elementary_x=$enableval], [])
202 if test "x$want_elementary_x" != "xno"; then
203 PKG_CHECK_MODULES([ELEMENTARY_X],
206 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
207 have_elementary_x="yes"
208 requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
210 [have_elementary_x="no"]
213 have_elementary_x="no"
215 if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
216 AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
220 have_elementary_fb="no"
221 want_elementary_fb="auto"
222 AC_ARG_ENABLE([ecore-fb],
223 [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
224 [want_elementary_fb=$enableval], [])
226 if test "x$want_elementary_fb" != "xno"; then
227 PKG_CHECK_MODULES([ELEMENTARY_FB],
230 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
231 have_elementary_fb="yes"
232 requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
234 [have_elementary_fb="no"]
237 have_elementary_fb="no"
239 if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
240 AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
243 have_elementary_sdl="no"
244 want_elementary_sdl="auto"
245 AC_ARG_ENABLE([ecore-sdl],
246 [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
247 [want_elementary_sdl=$enableval], [])
249 if test "x$want_elementary_sdl" != "xno"; then
250 PKG_CHECK_MODULES([ELEMENTARY_SDL],
251 [ecore-sdl >= 1.0.0],
253 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
254 have_elementary_sdl="yes"
255 requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
257 [have_elementary_sdl="no"]
260 have_elementary_sdl="no"
262 if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
263 AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
266 have_elementary_win32="no"
267 want_elementary_win32="auto"
268 AC_ARG_ENABLE([ecore-win32],
269 [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
270 [want_elementary_win32=$enableval], [])
272 if test "x$want_elementary_win32" != "xno"; then
273 PKG_CHECK_MODULES([ELEMENTARY_WIN32],
274 [ecore-win32 >= 1.0.0],
276 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
277 have_elementary_win32="yes"
278 requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
280 [have_elementary_win32="no"]
283 have_elementary_win32="no"
285 if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
286 AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
289 have_elementary_wince="no"
290 want_elementary_wince="auto"
291 AC_ARG_ENABLE([ecore-wince],
292 [AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
293 [want_elementary_wince=$enableval], [])
295 if test "x$want_elementary_wince" != "xno"; then
296 PKG_CHECK_MODULES([ELEMENTARY_WINCE],
297 [ecore-wince >= 1.0.0],
299 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
300 have_elementary_wince="yes"
301 requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
303 [have_elementary_wince="no"]
306 have_elementary_wince="no"
308 if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
309 AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
312 ELM_EDBUS_DEF="#undef"
313 have_elementary_edbus="no"
314 want_elementary_edbus="auto"
315 AC_ARG_ENABLE([edbus],
316 [AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
317 [want_elementary_edbus=$enableval], [])
319 if test "x$want_elementary_edbus" != "xno"; then
320 PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
326 AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
327 have_elementary_edbus="yes"
328 ELM_EDBUS_DEF="#define"
329 requirement_elm="ehal >= 1.0.0 edbus >= 1.0.0 ${requirement_elm}"
331 [have_elementary_edbus="no"]
334 have_elementary_edbus="no"
336 if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
337 AC_MSG_ERROR([E_DBus support requested, but no edbus/ehal found by pkg-config.])
339 AC_SUBST(ELM_EDBUS_DEF)
341 ELM_EFREET_DEF="#undef"
342 have_elementary_efreet="no"
343 want_elementary_efreet="auto"
344 AC_ARG_ENABLE([efreet],
345 [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
346 [want_elementary_efreet=$enableval], [])
348 if test "x$want_elementary_efreet" != "xno"; then
349 PKG_CHECK_MODULES([ELEMENTARY_EFREET],
353 efreet-trash >= 1.0.0
356 AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
357 have_elementary_efreet="yes"
358 ELM_EFREET_DEF="#define"
359 requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
361 [have_elementary_efreet="no"]
364 have_elementary_efreet="no"
366 if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
367 AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
369 AC_SUBST(ELM_EFREET_DEF)
371 ELM_EWEATHER_DEF="#undef"
372 have_elementary_eweather="no"
373 want_elementary_eweather="auto"
374 AC_ARG_ENABLE([eweather],
375 [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
376 [want_elementary_eweather=$enableval], [])
378 if test "x$want_elementary_eweather" != "xno"; then
379 PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
384 AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
385 have_elementary_eweather="yes"
386 ELM_EWEATHER_DEF="#define"
387 requirement_elm="eweather ${requirement_elm}"
389 [have_elementary_eweather="no"]
392 have_elementary_eweather="no"
394 if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
395 AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
397 AC_SUBST(ELM_EWEATHER_DEF)
399 ELM_EWEBKIT_DEF="#undef"
400 have_elementary_ewebkit="no"
401 want_elementary_ewebkit="auto"
402 AC_ARG_ENABLE([ewebkit],
403 [AC_HELP_STRING([--disable-ewebkit], [disable ewebkit support. @<:@default=detect@:>@])],
404 [want_elementary_ewebkit=$enableval], [])
406 if test "x$want_elementary_ewebkit" != "xno"; then
407 PKG_CHECK_MODULES([ELEMENTARY_EWEBKIT],
412 AC_DEFINE(HAVE_ELEMENTARY_EWEBKIT, 1, [EWebKit support for Elementary])
413 have_elementary_ewebkit="yes"
414 ELM_EWEBKIT_DEF="#define"
415 requirement_elm="ewebkit ${requirement_elm}"
417 [have_elementary_ewebkit="no"]
420 have_elementary_ewebkit="no"
422 if test "x$want_elementary_ewebkit" = "xyes" -a "x$have_elementary_ewebkit" = "xno"; then
423 AC_MSG_ERROR([EWebKit support requested, but no ewebkit found by pkg-config.])
425 AC_SUBST(ELM_EWEBKIT_DEF)
427 ELM_ETHUMB_DEF="#undef"
428 have_elementary_ethumb="no"
429 want_elementary_ethumb="auto"
430 AC_ARG_ENABLE([ethumb],
431 [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
432 [want_elementary_ethumb=$enableval], [])
434 if test "x$want_elementary_ethumb" != "xno"; then
435 PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
440 AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
441 have_elementary_ethumb="yes"
442 ELM_ETHUMB_DEF="#define"
443 requirement_elm="ethumb_client ${requirement_elm}"
445 [have_elementary_ethumb="no"]
448 have_elementary_ethumb="no"
450 if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
451 AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
453 AC_SUBST(ELM_ETHUMB_DEF)
455 ELM_ALLOCA_H_DEF="#undef"
456 AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
457 AC_SUBST(ELM_ALLOCA_H_DEF)
459 ELM_LIBINTL_H_DEF="#undef"
460 AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
461 AC_SUBST(ELM_LIBINTL_H_DEF)
464 [ --with-edje-cc=PATH specify a specific path to edje_cc],
468 echo " Elementary edje_cc explicitly set to "$edje_cc;
470 edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
476 AC_SUBST(requirement_elm)
478 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
491 src/modules/test_entry/Makefile
492 src/modules/ctxpopup_copypasteUI/Makefile
493 src/modules/popup_copypasteUI/Makefile
494 src/edje_externals/Makefile
498 data/objects/Makefile
499 data/desktop/Makefile
500 data/edje_externals/Makefile
502 config/default/Makefile
503 config/standard/Makefile
504 config/illume/Makefile
507 #####################################################################
513 echo "------------------------------------------------------------------------"
514 echo "$PACKAGE $VERSION"
515 echo "------------------------------------------------------------------------"
517 echo "Configuration Options Summary:"
520 echo " X11................: ${have_elementary_x}"
521 echo " Framebuffer........: ${have_elementary_fb}"
522 echo " SDL................: ${have_elementary_sdl}"
523 echo " Windows XP.........: ${have_elementary_win32}"
524 echo " Windows CE.........: ${have_elementary_wince}"
527 echo " EDBus..............: ${have_elementary_edbus}"
528 echo " EFreet.............: ${have_elementary_efreet}"
529 echo " EWeather...........: ${have_elementary_eweather}"
530 echo " Ethumb.............: ${have_elementary_ethumb}"
531 echo " EWebKit............: ${have_elementary_ewebkit}"
533 echo " edje_cc..............: ${edje_cc}"
535 echo "Compilation............: make (or gmake)"
536 echo " CPPFLAGS.............: $CPPFLAGS"
537 echo " CFLAGS...............: $CFLAGS"
538 echo " LDFLAGS..............: $LDFLAGS"
540 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
541 echo " prefix...............: $prefix"