2016-01-05 06:24:19 -08:00
|
|
|
EFL_VERSION([1], [17], [0], [release])
|
|
|
|
AC_INIT([elementary], [efl_version-alpha1], [enlightenment-devel@lists.sourceforge.net])
|
2014-01-23 17:28:05 -08:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
AC_PREREQ(2.63)
|
2009-05-23 01:45:57 -07:00
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2008-12-18 16:34:56 -08:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2011-01-06 11:01:34 -08:00
|
|
|
AC_CONFIG_HEADERS([elementary_config.h])
|
|
|
|
AH_TOP([
|
|
|
|
#ifndef EFL_CONFIG_H__
|
|
|
|
#define EFL_CONFIG_H__
|
|
|
|
])
|
|
|
|
AH_BOTTOM([
|
|
|
|
#endif /* EFL_CONFIG_H__ */
|
|
|
|
])
|
|
|
|
|
2014-01-23 17:28:05 -08:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
2014-11-11 01:37:16 -08:00
|
|
|
AM_INIT_AUTOMAKE([1.11 dist-xz -Wall])
|
2009-10-06 09:56:21 -07:00
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
2014-08-29 10:05:30 -07:00
|
|
|
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
LT_INIT([win32-dll disable-static pic-only])
|
|
|
|
EFL_INIT
|
2013-01-18 06:17:13 -08:00
|
|
|
|
2010-08-17 06:29:23 -07:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
### Additional options to configure
|
|
|
|
|
|
|
|
# C++ bindings
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([cxx-bindings],
|
2014-12-16 13:04:43 -08:00
|
|
|
[AS_HELP_STRING([--disable-cxx-bindings],
|
|
|
|
[Disable C++11 bindings. @<:@default=enabled@:>@])],
|
2014-08-29 10:05:30 -07:00
|
|
|
[want_cxx11="${enableval}"],
|
2014-12-16 13:04:43 -08:00
|
|
|
[want_cxx11="yes"])
|
2014-08-29 10:05:30 -07:00
|
|
|
|
2014-12-09 10:41:16 -08:00
|
|
|
AC_ARG_ENABLE([js-bindings],
|
|
|
|
[AS_HELP_STRING([--enable-js-bindings],
|
|
|
|
[enable JS bindings. @<:@default=disabled@:>@])],
|
|
|
|
[want_js="${enableval}"],
|
|
|
|
[want_js="yes"])
|
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
# Tests
|
|
|
|
|
|
|
|
AC_ARG_WITH([tests],
|
2015-01-16 12:16:04 -08:00
|
|
|
[AS_HELP_STRING([--with-tests=none|regular|coverage],
|
2015-01-16 07:39:37 -08:00
|
|
|
[choose elementary testing method: regular, coverage or none @<:@default=none@:>@])],
|
2014-08-29 10:05:30 -07:00
|
|
|
[build_tests=${withval}],
|
2015-01-16 07:39:37 -08:00
|
|
|
[build_tests=auto])
|
|
|
|
|
|
|
|
want_coverage="no"
|
|
|
|
want_tests="no"
|
|
|
|
case "${build_tests}" in
|
|
|
|
auto)
|
|
|
|
if test "${build_profile}" = "dev"; then
|
|
|
|
want_tests="yes"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
regular)
|
|
|
|
want_tests="yes"
|
|
|
|
;;
|
|
|
|
coverage)
|
|
|
|
want_tests="yes"
|
|
|
|
want_coverage="yes"
|
|
|
|
;;
|
|
|
|
no*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([Unknown build tests option: --with-tests=${build_tests}])
|
|
|
|
;;
|
|
|
|
esac
|
2014-08-29 10:05:30 -07:00
|
|
|
|
|
|
|
# Elementary base dir
|
|
|
|
|
|
|
|
AC_ARG_WITH([elementary-base-dir],
|
2014-09-02 02:31:29 -07:00
|
|
|
[AS_HELP_STRING([--with-elementary-base-dir=PATH], [specify the subdirectory for all elementary data @<:@default=${elementary_base_dir}@:>@])],
|
2014-08-29 10:05:30 -07:00
|
|
|
[elementary_base_dir=${withval}],
|
|
|
|
[elementary_base_dir=".elementary"])
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([ELEMENTARY_BASE_DIR set to ${elementary_base_dir}])
|
|
|
|
AC_DEFINE_UNQUOTED([ELEMENTARY_BASE_DIR], ["${elementary_base_dir}"], ["subdirectory for all elementary data"])
|
|
|
|
|
|
|
|
# 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"])
|
|
|
|
|
|
|
|
# Debug mode
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([debug],
|
2014-09-02 02:31:29 -07:00
|
|
|
[AS_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
|
2014-08-29 10:05:30 -07:00
|
|
|
[want_elementary_debug=$enableval],
|
|
|
|
[want_elementary_debug="no"])
|
|
|
|
|
|
|
|
ELM_DEBUG_DEF="#undef"
|
|
|
|
if test "x$want_elementary_debug" = "xyes"; then
|
|
|
|
AC_DEFINE([HAVE_ELEMENTARY_DEBUG], [1], [Elementary debug.])
|
|
|
|
ELM_DEBUG_DEF="#define"
|
|
|
|
fi
|
|
|
|
AC_SUBST([ELM_DEBUG_DEF])
|
|
|
|
|
|
|
|
# quicklaunch support
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([quick-launch],
|
2014-09-02 02:31:29 -07:00
|
|
|
[AS_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
|
2014-08-29 10:05:30 -07:00
|
|
|
[want_quicklaunch=$enableval],
|
|
|
|
[want_quicklaunch="auto"])
|
|
|
|
|
|
|
|
|
|
|
|
### Default options with respect to host and default values
|
|
|
|
|
|
|
|
ELM_VERSION_MAJOR="v_maj"
|
|
|
|
ELM_VERSION_MINOR="v_min"
|
|
|
|
AC_SUBST([ELM_VERSION_MAJOR])
|
|
|
|
AC_SUBST([ELM_VERSION_MINOR])
|
|
|
|
|
|
|
|
MODULE_ARCH="v-v_maj.v_min.v_mic"
|
|
|
|
AC_SUBST([MODULE_ARCH])
|
|
|
|
AC_DEFINE_UNQUOTED([MODULE_ARCH], ["$MODULE_ARCH"], ["Module architecture"])
|
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
ELM_UNIX_DEF="#undef"
|
|
|
|
ELM_WIN32_DEF="#undef"
|
2009-01-22 13:43:07 -08:00
|
|
|
have_windows="no"
|
2014-08-07 14:49:09 -07:00
|
|
|
have_freebsd="no"
|
2014-08-29 10:05:30 -07:00
|
|
|
|
2008-12-18 16:34:56 -08:00
|
|
|
case "$host_os" in
|
|
|
|
mingw*)
|
2014-08-29 10:05:30 -07:00
|
|
|
AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if evil package is installed.])
|
2008-12-18 16:34:56 -08:00
|
|
|
ELM_WIN32_DEF="#define"
|
2009-01-22 13:43:07 -08:00
|
|
|
have_windows="yes"
|
2009-04-19 21:48:58 -07:00
|
|
|
;;
|
|
|
|
*solaris*)
|
2009-11-29 08:10:40 -08:00
|
|
|
ELM_UNIX_DEF="#define"
|
2014-08-29 10:05:30 -07:00
|
|
|
;;
|
|
|
|
freebsd*)
|
|
|
|
ELM_UNIX_DEF="#define"
|
|
|
|
have_freebsd="yes"
|
2008-12-18 16:34:56 -08:00
|
|
|
;;
|
2010-03-06 08:46:08 -08:00
|
|
|
darwin*)
|
|
|
|
ELM_UNIX_DEF="#define"
|
|
|
|
;;
|
2008-12-18 16:34:56 -08:00
|
|
|
*)
|
|
|
|
ELM_UNIX_DEF="#define"
|
|
|
|
;;
|
|
|
|
esac
|
2014-06-11 13:35:25 -07:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
|
2014-08-07 14:49:09 -07:00
|
|
|
AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
|
2014-08-29 10:05:30 -07:00
|
|
|
AC_SUBST([ELM_UNIX_DEF])
|
|
|
|
AC_SUBST([ELM_WIN32_DEF])
|
2009-03-01 01:33:41 -08:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
### Checks for programs
|
2011-06-28 23:40:45 -07:00
|
|
|
|
2014-09-02 03:37:34 -07:00
|
|
|
# compilers
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CC_STDC
|
|
|
|
AC_PROG_CXX
|
|
|
|
|
|
|
|
EFL_CXX_COMPILE_STDCXX_11([ext])
|
|
|
|
|
|
|
|
# pkg-config
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
# gettext
|
|
|
|
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
|
2014-09-02 03:37:34 -07:00
|
|
|
AM_GNU_GETTEXT_VERSION([0.18])
|
2014-08-29 10:05:30 -07:00
|
|
|
])
|
|
|
|
|
|
|
|
m4_ifdef([AM_GNU_GETTEXT], [
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
po_makefile_in=po/Makefile.in
|
|
|
|
have_po="yes"
|
|
|
|
],[
|
|
|
|
have_po="no"
|
|
|
|
])
|
|
|
|
AC_SUBST([LTLIBINTL])
|
2013-12-01 03:59:15 -08:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
if test "x${POSUB}" = "x" ; then
|
|
|
|
have_po="no"
|
|
|
|
fi
|
2014-01-23 17:28:05 -08:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
|
|
|
|
|
|
|
|
# doxygen
|
|
|
|
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
2013-11-04 03:14:47 -08:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
# EFL binaries
|
|
|
|
EFL_WITH_BIN([eet], [eet-eet], [eet])
|
|
|
|
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
|
|
|
|
EFL_WITH_BIN([elementary], [elementary-codegen], [elementary_codegen])
|
|
|
|
EFL_WITH_BIN([elementary], [elm-prefs-cc], [elm_prefs_cc])
|
|
|
|
EFL_WITH_BIN([eolian], [eolian-gen], [eolian_gen])
|
|
|
|
EFL_WITH_BIN([eolian-cxx], [eolian-cxx], [eolian_cxx])
|
2015-04-08 08:40:02 -07:00
|
|
|
EFL_WITH_BIN([eldbus], [eldbus_codegen], [eldbus-codegen])
|
2014-08-29 10:05:30 -07:00
|
|
|
# Force the helper to try external eolian generators
|
|
|
|
AM_CONDITIONAL([HAVE_EOLIAN_GEN], [true])
|
|
|
|
AM_CONDITIONAL([HAVE_EOLIAN_CXX], [true])
|
2014-12-09 10:41:16 -08:00
|
|
|
AM_CONDITIONAL([HAVE_EOLIAN_JS], [true])
|
2009-03-01 01:33:41 -08:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
EFL_ENABLE_BIN([elementary-test])
|
|
|
|
EFL_ENABLE_BIN([elementary-codegen])
|
|
|
|
EFL_ENABLE_BIN([elm-prefs-cc])
|
|
|
|
EFL_ENABLE_BIN([elementary-config])
|
2014-01-08 05:08:44 -08:00
|
|
|
|
2008-09-29 23:58:56 -07:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
### Checks for libraries
|
2009-01-22 13:43:07 -08:00
|
|
|
|
2014-09-04 08:10:37 -07:00
|
|
|
requirement_elm_pc=""
|
2010-09-17 06:18:13 -07:00
|
|
|
|
2014-08-29 10:05:30 -07:00
|
|
|
case "$host_os" in
|
|
|
|
mingw*)
|
2014-09-04 08:10:37 -07:00
|
|
|
requirement_elm_pc="evil >= efl_version"
|
2014-08-29 10:05:30 -07:00
|
|
|
;;
|
|
|
|
esac
|
2013-06-27 18:22:52 -07:00
|
|
|
|
2014-09-20 19:11:28 -07:00
|
|
|
requirement_elm_pc_only="\
|
2014-08-23 06:42:28 -07:00
|
|
|
efl >= efl_version \
|
2014-01-23 17:28:05 -08:00
|
|
|
eina >= efl_version \
|
|
|
|
eet >= efl_version \
|
|
|
|
evas >= efl_version \
|
|
|
|
ecore >= efl_version \
|
|
|
|
ecore-evas >= efl_version \
|
|
|
|
ecore-file >= efl_version \
|
|
|
|
ecore-input >= efl_version \
|
|
|
|
edje >= efl_version \
|
|
|
|
eo >= efl_version \
|
|
|
|
ethumb_client >= efl_version \
|
|
|
|
emotion >= efl_version \
|
|
|
|
ecore-imf >= efl_version \
|
|
|
|
ecore-con >= efl_version \
|
|
|
|
eio >= efl_version \
|
|
|
|
eldbus >= efl_version \
|
|
|
|
efreet >= efl_version \
|
|
|
|
efreet-mime >= efl_version \
|
|
|
|
efreet-trash >= efl_version \
|
2014-07-03 22:29:24 -07:00
|
|
|
eio >= efl_version \
|
2013-11-12 05:56:05 -08:00
|
|
|
"
|
2011-06-30 10:18:13 -07:00
|
|
|
|
2014-09-20 19:11:28 -07:00
|
|
|
requirement_elm_pc="\
|
|
|
|
${requirement_elm_pc} \
|
|
|
|
${requirement_elm_pc_only} \
|
|
|
|
"
|
|
|
|
|
2014-09-01 01:35:49 -07:00
|
|
|
ELM_CHECK_BACKEND([X])
|
|
|
|
ELM_CHECK_BACKEND([FB])
|
|
|
|
ELM_CHECK_BACKEND([PSL1GHT])
|
|
|
|
ELM_CHECK_BACKEND([SDL])
|
|
|
|
ELM_CHECK_BACKEND([Cocoa])
|
|
|
|
ELM_CHECK_BACKEND([Win32])
|
2015-10-01 07:23:28 -07:00
|
|
|
ELM_CHECK_BACKEND([Wl2])
|
2014-09-01 01:35:49 -07:00
|
|
|
ELM_CHECK_BACKEND([DRM])
|
|
|
|
|
2014-09-04 07:43:12 -07:00
|
|
|
ELM_CHECK_OPTION([elocation], [0.1.0])
|
|
|
|
ELM_CHECK_OPTION([eweather], [0.2.0])
|
|
|
|
# emap is in svn : trunk/PROTO
|
|
|
|
ELM_CHECK_OPTION([emap], [0.1.0])
|
|
|
|
ELM_CHECK_OPTION([eweb])
|
|
|
|
|
2014-05-09 13:51:39 -07:00
|
|
|
if test "x${HAVE_CXX11}" = "x1" -a "x${want_cxx11}" = "xyes"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_CXX],
|
|
|
|
[
|
2014-09-16 14:38:44 -07:00
|
|
|
efl-cxx >= efl_version
|
2014-05-09 13:51:39 -07:00
|
|
|
eo-cxx >= efl_version
|
|
|
|
eina-cxx >= efl_version
|
|
|
|
evas-cxx >= efl_version
|
2015-07-01 15:27:30 -07:00
|
|
|
eio-cxx >= efl_version
|
2014-12-16 13:04:43 -08:00
|
|
|
edje-cxx >= efl_version
|
2014-05-09 13:51:39 -07:00
|
|
|
],
|
|
|
|
[
|
2014-09-04 08:10:37 -07:00
|
|
|
requirement_elm_pc="${requirement_elm_pc} \
|
2014-09-16 14:38:44 -07:00
|
|
|
efl-cxx >= efl_version \
|
2014-05-09 13:51:39 -07:00
|
|
|
eo-cxx >= efl_version \
|
|
|
|
eina-cxx >= efl_version \
|
|
|
|
evas-cxx >= efl_version \
|
2015-07-01 15:27:30 -07:00
|
|
|
eio-cxx >= efl_version \
|
2014-12-16 13:04:43 -08:00
|
|
|
edje-cxx >= efl_version \
|
2014-05-09 13:51:39 -07:00
|
|
|
"
|
|
|
|
have_cxx11="yes"
|
2014-08-01 00:56:29 -07:00
|
|
|
LDFLAGS="${LDFLAGS} -fPIC -DPIC"
|
2014-07-23 10:54:03 -07:00
|
|
|
CXXFLAGS="${CXXFLAGS} -fPIC -DPIC"
|
2014-12-16 13:04:43 -08:00
|
|
|
AC_CONFIG_FILES([src/lib/Elementary.hh])
|
2014-05-09 13:51:39 -07:00
|
|
|
],
|
|
|
|
[have_cxx11="no"]
|
|
|
|
)
|
2014-07-23 10:54:03 -07:00
|
|
|
else
|
|
|
|
have_cxx11="no"
|
2014-05-09 13:51:39 -07:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([HAVE_CXX11], [test "x${have_cxx11}" = "xyes"])
|
|
|
|
|
2014-12-09 10:41:16 -08:00
|
|
|
if test "x${want_js}" = "xyes"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_JS],
|
|
|
|
[
|
|
|
|
eolian-js >= efl_version
|
|
|
|
eo-js >= efl_version
|
|
|
|
efl-js >= efl_version
|
|
|
|
eina-js >= efl_version
|
|
|
|
efl-cxx >= efl_version
|
|
|
|
eo-cxx >= efl_version
|
|
|
|
eina-cxx >= efl_version
|
|
|
|
],
|
|
|
|
[
|
|
|
|
requirement_elm_js_pc="${requirement_elm_js_pc} \
|
|
|
|
eolian-js >= efl_version \
|
|
|
|
eo-js >= efl_version \
|
|
|
|
efl-js >= efl_version \
|
|
|
|
eina-js >= efl_version \
|
|
|
|
efl-cxx >= efl_version \
|
|
|
|
eina-cxx >= efl_version \
|
|
|
|
eo-cxx >= efl_version \
|
|
|
|
"
|
|
|
|
have_js="yes"
|
|
|
|
dep_js=`$PKG_CONFIG --variable=want_js efl-js`
|
|
|
|
],
|
|
|
|
[have_js="no"
|
|
|
|
dep_js="none"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
else
|
|
|
|
have_js="no"
|
|
|
|
dep_js="none"
|
|
|
|
fi
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY], [${requirement_elm_pc}])
|
|
|
|
if test "x${have_js}" = "xyes"; then
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_JS], [${requirement_elm_js_pc}])
|
|
|
|
fi
|
|
|
|
PKG_CHECK_MODULES([ELEMENTARY_PC], [${requirement_elm_pc_only}])
|
|
|
|
|
|
|
|
EFL_ENABLE_EO_API_SUPPORT
|
|
|
|
EFL_ENABLE_BETA_API_SUPPORT
|
|
|
|
|
|
|
|
AM_CONDITIONAL([HAVE_JS], [test "x${have_js}" = "xyes"])
|
|
|
|
|
|
|
|
AM_CONDITIONAL([HAVE_NODEJS], [test "x${dep_js}" = "xnodejs"])
|
|
|
|
AC_DEFINE_IF([HAVE_NODEJS], [test "x${dep_js}" = "xnodejs"],
|
|
|
|
[1], [Using NodeJS])
|
|
|
|
AC_SUBST([want_js])
|
|
|
|
AC_SUBST([HAVE_NODEJS])
|
|
|
|
|
|
|
|
AM_CONDITIONAL([HAVE_JS], [test "x${dep_js}" = "xnodejs" -o "x${dep_js}" = "xlibv8" -o "x${dep_js}" = "xlibuv"])
|
|
|
|
AC_DEFINE_IF([HAVE_JS], [test "x${dep_js}" = "xnodejs" -o "x${dep_js}" = "xlibv8" -o "x${dep_js}" = "xlibuv"],
|
|
|
|
[1], [Compiling bindings for JavaScript])
|
|
|
|
AC_SUBST([HAVE_JS])
|
|
|
|
|
|
|
|
AM_CONDITIONAL([HAVE_LIBUV], [test "x${dep_js}" = "xnodejs" -o "x${dep_js}" = "xlibuv"])
|
|
|
|
AC_DEFINE_IF([HAVE_LIBUV], [test "x${dep_js}" = "xnodejs" -o "x${dep_js}" = "xlibuv"],
|
|
|
|
[1], [Compiling libuv event loop integration])
|
|
|
|
AC_SUBST([HAVE_LIBUV])
|
|
|
|
|
|
|
|
EFL_WITH_BIN([eolian-js], [eolian-js], [eolian_js])
|
2014-08-29 10:05:30 -07:00
|
|
|
|
|
|
|
MODULE_EDJE=`${PKG_CONFIG} --variable=module_arch edje`
|
|
|
|
AC_SUBST([MODULE_EDJE])
|
|
|
|
AC_DEFINE_UNQUOTED([MODULE_EDJE], ["$MODULE_EDJE"], ["Edje module architecture"])
|
|
|
|
|
|
|
|
# Needs to be moved into a macro, and also, needs a way to automatically fetch
|
|
|
|
# from all the dependencies using the Requires.
|
|
|
|
DEPS_EOLIAN_FLAGS=`${PKG_CONFIG} --variable=eolian_flags eo evas edje ecore efl`
|
|
|
|
AC_SUBST([DEPS_EOLIAN_FLAGS])
|
|
|
|
|
2014-09-04 08:10:37 -07:00
|
|
|
requirement_elm_libs="-lm"
|
2014-08-29 10:05:30 -07:00
|
|
|
|
|
|
|
# sockets
|
|
|
|
|
|
|
|
case "$host_os" in
|
|
|
|
mingw*)
|
|
|
|
have_socket="no"
|
|
|
|
;;
|
|
|
|
*solaris*)
|
|
|
|
AC_CHECK_LIB([socket], [connect],
|
|
|
|
[
|
|
|
|
have_socket="yes"
|
2014-09-04 08:10:37 -07:00
|
|
|
requirement_elm_libs="-lsocket ${requirement_elm_libs}"
|
2014-08-29 10:05:30 -07:00
|
|
|
],
|
|
|
|
[have_socket="no"])
|
|
|
|
;;
|
|
|
|
darwin*)
|
|
|
|
have_socket="yes"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
have_socket="yes"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
|
|
|
|
|
|
|
|
# dlopen
|
|
|
|
|
|
|
|
have_dlopen="no"
|
|
|
|
case "$host_os" in
|
|
|
|
mingw*)
|
|
|
|
dnl managed by evil
|
|
|
|
AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if you have the `dladdr' function.])
|
|
|
|
have_dlopen="yes"
|
|
|
|
;;
|
2015-08-05 04:27:34 -07:00
|
|
|
linux*)
|
2014-08-29 10:05:30 -07:00
|
|
|
AC_CHECK_LIB([dl], [dlopen], [res=yes], [res=no])
|
|
|
|
if test "x$res" = "xyes"; then
|
|
|
|
AC_CHECK_LIB([dl], [dladdr], AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if you have the `dladdr' function.]))
|
2014-09-04 08:10:37 -07:00
|
|
|
requirement_elm_libs="-ldl ${requirement_elm_libs}"
|
2014-08-29 10:05:30 -07:00
|
|
|
have_dlopen="yes"
|
|
|
|
fi
|
|
|
|
;;
|
2015-08-05 04:27:34 -07:00
|
|
|
*)
|
|
|
|
have_dlopen="yes"
|
|
|
|
;;
|
2014-08-29 10:05:30 -07:00
|
|
|
esac
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"])
|
|
|
|
|
2014-09-04 08:10:37 -07:00
|
|
|
ELEMENTARY_LIBS="${ELEMENTARY_LIBS} ${requirement_elm_libs}"
|
2014-09-20 19:11:28 -07:00
|
|
|
ELEMENTARY_PC_LIBS="${ELEMENTARY_PC_LIBS} ${requirement_elm_libs}"
|
2014-09-04 08:10:37 -07:00
|
|
|
|
|
|
|
AC_SUBST([requirement_elm_pc])
|
2014-12-09 10:41:16 -08:00
|
|
|
AC_SUBST([requirement_elm_js_pc])
|
2014-08-29 10:05:30 -07:00
|
|
|
|
|
|
|
# check unit testing library
|
2015-01-16 07:39:37 -08:00
|
|
|
if test "${want_tests}" = "yes"; then
|
2014-08-29 10:05:30 -07:00
|
|
|
PKG_CHECK_MODULES([CHECK], [check >= 0.9.5])
|
|
|
|
fi
|
2015-01-16 07:39:37 -08:00
|
|
|
AM_CONDITIONAL([ELEMENTARY_ENABLE_TESTS], [test "${want_tests}" = "yes"])
|
|
|
|
|
|
|
|
# lcov
|
|
|
|
if test "${want_coverage}" = "yes" ; then
|
|
|
|
AC_CHECK_PROG([have_lcov], [lcov], [yes], [no])
|
|
|
|
if test "x${have_lcov}" = "xyes" ; then
|
|
|
|
ELEMENTARY_CFLAGS="${ELEMENTARY_CFLAGS} -fprofile-arcs -ftest-coverage"
|
|
|
|
ELEMENTARY_LIBS="${ELEMENTARY_LIBS} -lgcov"
|
|
|
|
if test "x${prefer_assert}" = "xno"; then
|
|
|
|
ELEMENTARY_CFLAGS="${ELEMENTARY_CFLAGS} -DNDEBUG"
|
|
|
|
else
|
|
|
|
ELEMENTARY_CFLAGS="${ELEMENTARY_CFLAGS} -g -O0 -DDEBUG"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR([lcov is not found])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([ELEMENTARY_ENABLE_COVERAGE], [test "${want_coverage}" = "yes"])
|
2014-08-29 10:05:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
### Checks for header files
|
|
|
|
|
|
|
|
ELM_ALLOCA_H_DEF="#undef"
|
|
|
|
AC_CHECK_HEADER([alloca.h], [ELM_ALLOCA_H_DEF="#define"])
|
|
|
|
AC_SUBST([ELM_ALLOCA_H_DEF])
|
|
|
|
|
|
|
|
ELM_LIBINTL_H_DEF="#undef"
|
|
|
|
AC_CHECK_HEADER([libintl.h], [ELM_LIBINTL_H_DEF="#define"])
|
|
|
|
AC_SUBST([ELM_LIBINTL_H_DEF])
|
|
|
|
|
|
|
|
ELM_DIRENT_H_DEF="#undef"
|
|
|
|
AC_CHECK_HEADER([dirent.h], [ELM_DIRENT_H_DEF="#define"])
|
|
|
|
AC_SUBST([ELM_DIRENT_H_DEF])
|
|
|
|
|
|
|
|
AC_CHECK_HEADER([sys/mman.h], [have_mman="yes"], [have_mman="no"])
|
|
|
|
if test "x${have_mman}" = "xyes"; then
|
|
|
|
AC_DEFINE([HAVE_MMAN_H], [1], [Have sys/mman.h header file])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS([locale.h langinfo.h sys/times.h])
|
|
|
|
|
|
|
|
case "$host_os" in
|
|
|
|
darwin*)
|
|
|
|
AC_CHECK_HEADERS([crt_externs.h])
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for types
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for structures
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for compiler characteristics
|
|
|
|
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
|
|
|
m4_ifdef([v_mic],
|
|
|
|
[
|
|
|
|
EFL_COMPILER_FLAG([-Wshadow])
|
|
|
|
EFL_COMPILER_FLAG([-Wall])
|
|
|
|
EFL_COMPILER_FLAG([-W])
|
|
|
|
])
|
|
|
|
|
|
|
|
EFL_COMPILER_FLAG([-Wall -Wextra -Wpointer-arith -Wno-missing-field-initializers -fvisibility=hidden -fdata-sections -ffunction-sections])
|
|
|
|
|
|
|
|
EFL_CHECK_PATH_MAX
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for linker characteristics
|
|
|
|
|
|
|
|
EFL_LINKER_FLAG([-fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-strict-aliasing -Wl,--as-needed -Wl,--no-copy-dt-needed-entries])
|
|
|
|
|
|
|
|
# Check if we can build binary with quicklaunch support
|
|
|
|
ELM_QUICKLAUNCH
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for library functions
|
|
|
|
|
|
|
|
AC_FUNC_ALLOCA
|
|
|
|
|
2015-07-22 07:27:49 -07:00
|
|
|
AC_CHECK_FUNCS([geteuid getuid getpwent])
|
2014-08-29 10:05:30 -07:00
|
|
|
|
|
|
|
if test "x${want_quicklaunch}" != "xno"; then
|
|
|
|
AC_CHECK_FUNCS([fork clearenv])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x${have_dlopen}" = "xno"; then
|
|
|
|
AC_CHECK_FUNCS([dlopen dladdr])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x${ac_cv_func_dlopen}" = "xyes"; then
|
|
|
|
have_dlopen="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x${ac_cv_func_fork}" = "xyes" && test "x${have_dlopen}" = "xyes"])
|
|
|
|
|
|
|
|
# environ variable
|
|
|
|
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[
|
|
|
|
# define _GNU_SOURCE 1
|
|
|
|
#include <unistd.h>
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
extern char **environ;
|
|
|
|
]])
|
|
|
|
],
|
|
|
|
[AC_DEFINE([HAVE_ENVIRON], [1], [extern environ exists])])
|
|
|
|
|
|
|
|
case "$host_os" in
|
|
|
|
darwin*)
|
|
|
|
AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
2013-09-05 00:56:20 -07:00
|
|
|
AC_CONFIG_FILES([
|
2008-09-29 23:58:56 -07:00
|
|
|
Makefile
|
2010-02-21 11:18:26 -08:00
|
|
|
elementary.spec
|
2009-05-15 04:45:14 -07:00
|
|
|
doc/Makefile
|
2011-06-13 07:51:06 -07:00
|
|
|
doc/Doxyfile
|
2011-07-22 10:20:31 -07:00
|
|
|
doc/widgets/Makefile
|
2008-09-29 23:58:56 -07:00
|
|
|
src/Makefile
|
|
|
|
src/lib/Makefile
|
2008-12-18 16:34:56 -08:00
|
|
|
src/lib/Elementary.h
|
2014-02-11 23:16:30 -08:00
|
|
|
src/lib/elm_intro.h
|
2008-09-29 23:58:56 -07:00
|
|
|
src/bin/Makefile
|
2009-12-01 03:03:14 -08:00
|
|
|
src/modules/Makefile
|
2012-11-30 06:41:39 -08:00
|
|
|
src/modules/prefs/Makefile
|
2011-08-19 04:07:42 -07:00
|
|
|
src/modules/access_output/Makefile
|
2012-03-05 03:07:05 -08:00
|
|
|
src/modules/datetime_input_ctxpopup/Makefile
|
2009-12-01 03:03:14 -08:00
|
|
|
src/modules/test_entry/Makefile
|
2010-12-21 01:14:47 -08:00
|
|
|
src/modules/test_map/Makefile
|
2009-12-05 17:22:54 -08:00
|
|
|
src/edje_externals/Makefile
|
2011-06-15 07:22:11 -07:00
|
|
|
src/examples/Makefile
|
2014-12-09 21:05:24 -08:00
|
|
|
src/examples/sphere_hunter/Makefile
|
2015-02-22 18:59:14 -08:00
|
|
|
src/examples/performance/Makefile
|
2013-11-19 05:18:02 -08:00
|
|
|
src/tests/Makefile
|
2013-12-03 00:14:30 -08:00
|
|
|
src/imported/Makefile
|
|
|
|
src/imported/atspi/Makefile
|
2008-09-29 23:58:56 -07:00
|
|
|
data/Makefile
|
|
|
|
data/themes/Makefile
|
2008-09-30 04:20:07 -07:00
|
|
|
data/images/Makefile
|
2008-10-07 00:45:49 -07:00
|
|
|
data/objects/Makefile
|
2008-11-04 21:27:42 -08:00
|
|
|
data/desktop/Makefile
|
2010-01-22 12:07:47 -08:00
|
|
|
data/edje_externals/Makefile
|
2010-01-18 01:38:52 -08:00
|
|
|
config/Makefile
|
|
|
|
config/default/Makefile
|
2014-06-11 13:35:25 -07:00
|
|
|
config/default/base.src
|
2010-01-18 01:38:52 -08:00
|
|
|
config/standard/Makefile
|
2014-06-11 13:35:25 -07:00
|
|
|
config/standard/base.src
|
2012-08-07 23:07:37 -07:00
|
|
|
config/mobile/Makefile
|
2014-06-11 13:35:25 -07:00
|
|
|
config/mobile/base.src
|
2011-02-03 07:52:49 -08:00
|
|
|
$po_makefile_in
|
2013-02-05 08:40:12 -08:00
|
|
|
cmakeconfig/ElementaryConfig.cmake
|
2013-04-03 06:37:02 -07:00
|
|
|
cmakeconfig/ElementaryConfigVersion.cmake
|
2008-09-29 23:58:56 -07:00
|
|
|
])
|
2008-12-10 00:47:41 -08:00
|
|
|
|
2013-09-05 00:56:20 -07:00
|
|
|
AC_OUTPUT
|
|
|
|
|
2008-12-10 00:47:41 -08:00
|
|
|
#####################################################################
|
|
|
|
## Info
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
2009-12-11 02:58:10 -08:00
|
|
|
echo " Engines:"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " X11....................: ${have_elementary_x}"
|
|
|
|
echo " Framebuffer............: ${have_elementary_fb}"
|
2014-03-06 04:38:37 -08:00
|
|
|
echo " DRM....................: ${have_elementary_drm}"
|
2011-11-05 10:50:09 -07:00
|
|
|
echo " PSL1GHT................: ${have_elementary_psl1ght}"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " SDL....................: ${have_elementary_sdl}"
|
2011-11-02 12:26:29 -07:00
|
|
|
echo " Cocoa..................: ${have_elementary_cocoa}"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " Windows XP.............: ${have_elementary_win32}"
|
2013-06-04 09:42:41 -07:00
|
|
|
echo " Wayland................: ${have_elementary_wayland}"
|
2008-12-10 00:47:41 -08:00
|
|
|
echo
|
2009-12-11 02:58:10 -08:00
|
|
|
echo " Features:"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " EWeather...............: ${have_elementary_eweather}"
|
2011-06-25 07:30:10 -07:00
|
|
|
echo " EMap...................: ${have_elementary_emap}"
|
2012-10-18 20:08:45 -07:00
|
|
|
echo " Web (WebKit)...........: ${elementary_web}"
|
2014-08-29 10:05:30 -07:00
|
|
|
echo " Quick Launch...........: ${ac_cv_func_fork}"
|
2012-12-11 06:05:48 -08:00
|
|
|
echo " Elocation..............: ${have_elementary_elocation}"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo
|
|
|
|
echo " eet......................: ${eet_eet}"
|
|
|
|
echo " edje_cc..................: ${edje_cc}"
|
2014-06-19 02:01:28 -07:00
|
|
|
echo " elementary_codegen.......: ${elementary_codegen}"
|
2014-06-19 01:49:09 -07:00
|
|
|
echo " elm_prefs_cc.............: ${elm_prefs_cc}"
|
2014-03-11 03:04:15 -07:00
|
|
|
echo " eolian_gen...............: ${eolian_gen}"
|
2014-05-09 13:51:39 -07:00
|
|
|
echo " eolian_cxx...............: ${eolian_cxx}"
|
2015-04-08 08:40:02 -07:00
|
|
|
echo " eldbus_codegen...........: ${eldbus_codegen}"
|
2014-12-09 10:41:16 -08:00
|
|
|
if test "x${have_js}" = "xyes"; then
|
|
|
|
echo " eolian_js...............: ${eolian_js}"
|
|
|
|
fi
|
2008-12-18 17:22:11 -08:00
|
|
|
echo
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " Build elementary_test....: ${have_elementary_test}"
|
2012-09-13 07:06:07 -07:00
|
|
|
echo " Build elementary_codegen.: ${have_elementary_codegen}"
|
2012-11-30 06:41:39 -08:00
|
|
|
echo " Build elm_prefs_cc.......: ${have_elm_prefs_cc}"
|
2011-07-26 22:59:01 -07:00
|
|
|
echo " Examples.................: ${enable_build_examples}"
|
|
|
|
echo " Examples installed.......: ${enable_install_examples}"
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " Build elementary_config..: ${have_elementary_config}"
|
2013-06-09 01:12:39 -07:00
|
|
|
echo " Enable debug.............: ${want_elementary_debug}"
|
2014-05-09 13:51:39 -07:00
|
|
|
echo " Enable C++...............: ${have_cxx11}"
|
2014-12-09 10:41:16 -08:00
|
|
|
echo " Enable JavaScript........: ${have_js}"
|
2009-02-05 02:23:04 -08:00
|
|
|
echo
|
2010-09-17 06:18:13 -07:00
|
|
|
echo "Compilation................: make (or gmake)"
|
|
|
|
echo " CPPFLAGS.................: $CPPFLAGS"
|
|
|
|
echo " CFLAGS...................: $CFLAGS"
|
2014-07-23 10:54:03 -07:00
|
|
|
if test "x${have_cxx11}" = "xyes"; then
|
2014-05-09 13:51:39 -07:00
|
|
|
echo " CXXFLAGS.................: $CXXFLAGS"
|
2014-07-23 10:54:03 -07:00
|
|
|
fi
|
2010-09-17 06:18:13 -07:00
|
|
|
echo " LDFLAGS..................: $LDFLAGS"
|
2008-12-10 00:47:41 -08:00
|
|
|
echo
|
2013-11-19 05:18:02 -08:00
|
|
|
if test "${build_tests}" = "none"; then
|
|
|
|
echo "Tests......................: no"
|
|
|
|
else
|
|
|
|
echo "Tests......................: make check"
|
|
|
|
fi
|
2014-02-08 12:32:02 -08:00
|
|
|
if test "${build_doc}" = "no"; then
|
|
|
|
echo "Docs.......................: no (doxygen not found)"
|
|
|
|
else
|
|
|
|
echo "Docs.......................: make doc"
|
|
|
|
fi
|
2013-11-19 05:18:02 -08:00
|
|
|
echo
|
2010-09-17 06:18:13 -07:00
|
|
|
echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
|
|
|
|
echo " prefix...................: $prefix"
|
2008-12-10 00:47:41 -08:00
|
|
|
echo
|