ELM_WIN32_DEF="#undef"
ELM_WINCE_DEF="#undef"
have_windows="no"
+have_dlopen="no"
case "$host_os" in
mingw32ce* | cegcc*)
PKG_CHECK_MODULES([EVIL], [evil])
have_windows="yes"
dnl managed by evil
AC_DEFINE(HAVE_DLADDR)
+ have_dlopen="yes"
dlopen_libs=-ldl
requirement_elm="evil"
have_socket="no"
have_windows="yes"
dnl managed by evil
AC_DEFINE(HAVE_DLADDR)
+ have_dlopen="yes"
dlopen_libs=-ldl
requirement_elm="evil"
have_socket="no"
*solaris*)
ELM_UNIX_DEF="#define"
have_socket="yes"
+ have_dlopen="yes"
AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
;;
darwin*)
ELM_UNIX_DEF="#define"
have_socket="yes"
+ have_dlopen="yes"
AC_CHECK_HEADERS([crt_externs.h])
AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
;;
ELM_UNIX_DEF="#define"
AC_CHECK_FUNCS(dlopen, res=yes, res=no)
if test "x$res" = "xyes"; then
- AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
+ AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
+ have_dlopen="yes"
else
- AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
- if test "x$res" = "xyes"; then
- AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
- dlopen_libs=-ldl
- else
- AC_MSG_ERROR(Cannot find dlopen)
- fi
+ AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
+ if test "x$res" = "xyes"; then
+ AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
+ dlopen_libs=-ldl
+ have_dlopen="yes"
+ fi
fi
have_socket="yes"
;;
esac
AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
+AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"])
+
+m4_ifdef([v_mic],
+ [
+ EFL_COMPILER_FLAG([-Wall])
+ EFL_COMPILER_FLAG([-W])
+ ])
have_fork="no"
want_quicklaunch="auto"
AC_ARG_ENABLE([quick-launch],
- [AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
- [want_quicklaunch=$enableval], [])
+ [AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
+ [want_quicklaunch=$enableval], [])
if test "x$want_quicklaunch" != "xno"; then
AC_CHECK_FUNCS(fork, [
- have_fork="yes"
- AC_DEFINE(HAVE_FORK)
+ have_fork="yes"
+ AC_DEFINE(HAVE_FORK)
])
fi
-AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
+AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes" && test "x$have_dlopen" = "xyes"])
AC_SUBST(dlopen_libs)
AC_SUBST(lt_enable_auto_import)
PKG_CHECK_MODULES([ELEMENTARY],
[
- eina >= 1.0.0
+ eina >= 1.0.999
eet >= 1.4.0
- evas >= 1.0.0
- ecore >= 1.0.0
- ecore-evas >= 1.0.0
- ecore-file >= 1.0.0
- ecore-imf >= 1.0.0
- edje >= 1.0.0
+ evas >= 1.0.999
+ ecore >= 1.0.999
+ ecore-evas >= 1.0.999
+ ecore-file >= 1.0.999
+ ecore-imf >= 1.0.999
+ ecore-con >= 1.0.999
+ edje >= 1.0.999
]
)
-PKG_CHECK_MODULES([ELEMENTARY_BIN],
- [
- eina >= 1.0.0
- ]
-)
+PKG_CHECK_MODULES([EIO],
+ [eio],
+ [
+ have_eio="yes"
+ AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
+ requirement_elm="eio ${requirement_elm}"
+ ],
+ [have_eio="no"])
+
+AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
+
+have_emotion="no"
+want_elementary_emotion="yes"
+AC_ARG_ENABLE([emotion],
+ [AC_HELP_STRING([--disable-emotion], [disable emotion support. @<:@default=enabled@:>@])],
+ [want_elementary_emotion=$enableval], [])
+
+if test "x$want_elementary_emotion" != "xno"; then
+ PKG_CHECK_MODULES([EMOTION],
+ [emotion],
+ [
+ have_emotion="yes"
+ AC_DEFINE(HAVE_EMOTION, 1, [Use Emotion for asynchronous file access])
+ requirement_elm="emotion ${requirement_elm}"
+ ],
+ [have_emotion="no"])
+fi
+
+AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])
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}"
fi
AC_SUBST(ELM_EWEATHER_DEF)
+ELM_EMAP_DEF="#undef"
+have_elementary_emap="no"
+want_elementary_emap="auto"
+AC_ARG_ENABLE([emap],
+ [AC_HELP_STRING([--disable-emap], [disable emap support. @<:@default=detect@:>@])],
+ [want_elementary_emap=$enableval], [])
+
+if test "x$want_elementary_emap" != "xno"; then
+ PKG_CHECK_MODULES([ELEMENTARY_EMAP],
+ [
+ emap
+ ],
+ [
+ AC_DEFINE(HAVE_ELEMENTARY_EMAP, 1, [EMap support for Elementary])
+ have_elementary_emap="yes"
+ ELM_EMAP_DEF="#define"
+ requirement_elm="emap ${requirement_elm}"
+ ],
+ [have_elementary_emap="no"]
+ )
+else
+ have_elementary_emap="no"
+fi
+if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; then
+ AC_MSG_ERROR([Emap support requested, but no emap found by pkg-config.])
+fi
+AC_SUBST(ELM_EMAP_DEF)
+
+
+
ELM_ETHUMB_DEF="#undef"
have_elementary_ethumb="no"
want_elementary_ethumb="auto"
fi
AC_SUBST(ELM_ETHUMB_DEF)
+ELM_WEB_DEF="#undef"
+have_elementary_web="no"
+want_elementary_web="auto"
+AC_ARG_ENABLE([web],
+ [AC_HELP_STRING([--disable-web], [disable web (WebKit) support. @<:@default=detect@:>@])],
+ [want_elementary_web=$enableval], [])
+
+if test "x$want_elementary_web" != "xno"; then
+ PKG_CHECK_MODULES([ELEMENTARY_WEB],
+ [
+ ewebkit
+ ],
+ [
+ AC_DEFINE(HAVE_ELEMENTARY_WEB, 1, [Web support for Elementary])
+ webkit_datadir=$($PKG_CONFIG ewebkit --variable=datadir)
+ AC_DEFINE_UNQUOTED(WEBKIT_DATADIR,
+ "$webkit_datadir",
+ "WebKit's data dir")
+ have_elementary_web="yes"
+ ELM_WEB_DEF="#define"
+## web_client? how about ewebkit? at least in current upstreak webkit
+## there is no web_client.pc
+# requirement_elm="web_client ${requirement_elm}"
+ requirement_elm="ewebkit ${requirement_elm}"
+ ],
+ [have_elementary_web="no"]
+ )
+else
+ have_elementary_web="no"
+fi
+if test "x$want_elementary_web" = "xyes" -a "x$have_elementary_web" = "xno"; then
+ AC_MSG_ERROR([Web support requested, but no ewebkit found by pkg-config.])
+fi
+AC_SUBST(ELM_WEB_DEF)
+
ELM_DEBUG_DEF="#undef"
want_elementary_debug="no"
AC_ARG_ENABLE([debug],
EFL_ENABLE_BIN([elementary-config])
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
-AM_GNU_GETTEXT_VERSION([0.12.1])
+AM_GNU_GETTEXT_VERSION([0.17])
])
m4_ifdef([AM_GNU_GETTEXT], [
AM_CONDITIONAL([HAVE_PO], [false])
])
AC_SUBST(LTLIBINTL)
+EFL_CHECK_PATH_MAX
+
+
+### Build and install examples
+EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
+EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
AC_OUTPUT([
Makefile
elementary.spec
elementary.pc
-doc/elementary.dox
doc/Makefile
+doc/Doxyfile
+doc/widgets/Makefile
src/Makefile
src/lib/Makefile
src/lib/Elementary.h
src/bin/Makefile
src/modules/Makefile
+src/modules/access_output/Makefile
src/modules/test_entry/Makefile
src/modules/test_map/Makefile
src/edje_externals/Makefile
+src/examples/Makefile
data/Makefile
data/themes/Makefile
data/images/Makefile
echo " EDBus..................: ${have_elementary_edbus}"
echo " EFreet.................: ${have_elementary_efreet}"
echo " EWeather...............: ${have_elementary_eweather}"
+echo " EMap...................: ${have_elementary_emap}"
echo " Ethumb.................: ${have_elementary_ethumb}"
+echo " Web (WebKit)...........: ${have_elementary_web}"
echo " Quick Launch...........: ${have_fork}"
+echo " EIO....................: ${have_eio}"
+echo " Emotion................: ${have_emotion}"
echo
echo " eet......................: ${eet_eet}"
echo " edje_cc..................: ${edje_cc}"
echo
echo " Build elementary_test....: ${have_elementary_test}"
+echo " Examples.................: ${enable_build_examples}"
+echo " Examples installed.......: ${enable_install_examples}"
echo " Build elementary_config..: ${have_elementary_config}"
echo
echo "Compilation................: make (or gmake)"