2014-04-28 03:35:19 -07:00
EFL_VERSION([1], [10], [0], [release])
2014-05-05 07:25:04 -07:00
AC_INIT([elementary], [efl_version-beta1], [enlightenment-devel@lists.sourceforge.net])
2014-01-23 17:28:05 -08:00
AC_PREREQ(2.60)
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
2009-10-06 09:56:21 -07:00
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2008-09-29 23:58:56 -07:00
2011-01-30 01:50:56 -08:00
# pkg-config
PKG_PROG_PKG_CONFIG
2013-01-18 06:17:13 -08:00
MODULE_EDJE=`pkg-config --variable=module_arch edje`
AC_SUBST(MODULE_EDJE)
AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
2010-08-17 06:29:23 -07:00
2014-03-13 03:09:51 -07:00
# 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`
AC_SUBST(DEPS_EOLIAN_FLAGS)
2008-12-18 16:34:56 -08:00
lt_enable_auto_import=""
ELM_UNIX_DEF="#undef"
ELM_WIN32_DEF="#undef"
ELM_WINCE_DEF="#undef"
2009-01-22 13:43:07 -08:00
have_windows="no"
2011-10-15 02:48:42 -07:00
have_dlopen="no"
2008-12-18 16:34:56 -08:00
case "$host_os" in
2012-03-07 05:27:06 -08:00
mingw32ce*)
2008-12-18 16:34:56 -08:00
PKG_CHECK_MODULES([EVIL], [evil])
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
lt_enable_auto_import="-Wl,--enable-auto-import"
ELM_WINCE_DEF="#define"
2009-01-22 13:43:07 -08:00
have_windows="yes"
2009-01-13 01:20:53 -08:00
dnl managed by evil
AC_DEFINE(HAVE_DLADDR)
2011-10-15 02:48:42 -07:00
have_dlopen="yes"
2010-09-27 14:49:00 -07:00
dlopen_libs=-ldl
2009-01-22 13:43:07 -08:00
requirement_elm="evil"
2009-04-19 21:48:58 -07:00
have_socket="no"
2009-01-13 01:20:53 -08:00
;;
2008-12-18 16:34:56 -08:00
mingw*)
PKG_CHECK_MODULES([EVIL], [evil])
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
lt_enable_auto_import="-Wl,--enable-auto-import"
ELM_WIN32_DEF="#define"
2009-01-22 13:43:07 -08:00
have_windows="yes"
2010-09-27 14:49:00 -07:00
dnl managed by evil
AC_DEFINE(HAVE_DLADDR)
2011-10-15 02:48:42 -07:00
have_dlopen="yes"
2010-09-27 14:49:00 -07:00
dlopen_libs=-ldl
2009-01-22 13:43:07 -08:00
requirement_elm="evil"
2009-04-19 21:48:58 -07:00
have_socket="no"
;;
*solaris*)
2009-11-29 08:10:40 -08:00
ELM_UNIX_DEF="#define"
2009-04-19 21:48:58 -07:00
have_socket="yes"
2011-10-15 02:48:42 -07:00
have_dlopen="yes"
2009-04-19 21:48:58 -07:00
AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
2008-12-18 16:34:56 -08:00
;;
2010-03-06 08:46:08 -08:00
darwin*)
ELM_UNIX_DEF="#define"
have_socket="yes"
2011-10-15 02:48:42 -07:00
have_dlopen="yes"
2010-03-06 08:46:08 -08:00
AC_CHECK_HEADERS([crt_externs.h])
2010-10-01 12:03:19 -07:00
AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
2010-03-06 08:46:08 -08:00
;;
2008-12-18 16:34:56 -08:00
*)
ELM_UNIX_DEF="#define"
2009-01-13 01:20:53 -08:00
AC_CHECK_FUNCS(dlopen, res=yes, res=no)
if test "x$res" = "xyes"; then
2011-10-15 02:48:56 -07:00
AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
2011-10-15 02:48:42 -07:00
have_dlopen="yes"
2009-01-13 01:20:53 -08:00
else
2011-10-15 02:48:56 -07:00
AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
2013-04-26 03:43:20 -07:00
AC_CHECK_LIB(m, sincos)
2011-10-15 02:48:56 -07:00
if test "x$res" = "xyes"; then
AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
dlopen_libs=-ldl
2011-10-15 02:48:42 -07:00
have_dlopen="yes"
2011-10-15 02:48:56 -07:00
fi
2009-01-13 01:20:53 -08:00
fi
2009-04-19 21:48:58 -07:00
have_socket="yes"
2008-12-18 16:34:56 -08:00
;;
esac
2009-04-19 21:48:58 -07:00
AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
2011-10-15 02:48:50 -07:00
AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"])
2009-03-01 01:33:41 -08:00
2011-06-28 23:40:45 -07:00
m4_ifdef([v_mic],
[
2012-03-06 16:23:57 -08:00
EFL_COMPILER_FLAG([-Wshadow])
2011-06-28 23:40:45 -07:00
EFL_COMPILER_FLAG([-Wall])
EFL_COMPILER_FLAG([-W])
])
2013-12-01 03:59:15 -08:00
AC_LIBTOOL_WIN32_DLL
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT([win32-dll disable-static pic-only])
2014-01-23 17:28:05 -08:00
EFL_INIT
2013-12-01 03:59:15 -08:00
#AC_PROG_LIBTOOL
2014-01-23 17:28:05 -08:00
AC_GNU_SOURCE
AC_C_BIGENDIAN
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST
AC_FUNC_ALLOCA
ELM_VERSION_MAJOR="v_maj"
ELM_VERSION_MINOR="v_min"
2013-12-01 03:59:15 -08:00
AC_SUBST(ELM_VERSION_MAJOR)
AC_SUBST(ELM_VERSION_MINOR)
case "$host_os" in
mingw32ce* | cegcc*)
2014-02-11 23:04:09 -08:00
MODULE_ARCH="v"
2013-12-01 03:59:15 -08:00
;;
*)
2014-02-11 23:04:09 -08:00
MODULE_ARCH="v-v_maj.v_min.v_mic"
2013-12-01 03:59:15 -08:00
;;
esac
AC_SUBST(MODULE_ARCH)
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
EFL_SHARED_EXTENSION="${shrext_cmds}"
AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")
requirement_elm=""
# Check whether pkg-config supports Requires.private
if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
pkgconfig_requires_private="Requires.private"
else
pkgconfig_requires_private="Requires"
fi
AC_SUBST(pkgconfig_requires_private)
#================================================
if test "x${prefix}" = "xNONE"; then
LOCALE_DIR="${ac_default_prefix}/share/locale"
else
LOCALE_DIR="${prefix}/share/locale"
fi
AC_SUBST(LOCALE_DIR)
#================================================
elementary_icon_dir="${datadir}/icons"
AC_SUBST(elementary_icon_dir)
2009-03-01 15:52:13 -08:00
have_fork="no"
2010-09-17 06:29:53 -07:00
want_quicklaunch="auto"
AC_ARG_ENABLE([quick-launch],
2011-10-15 02:48:56 -07:00
[AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
[want_quicklaunch=$enableval], [])
2010-09-17 06:29:53 -07:00
2013-11-04 03:14:47 -08:00
# Check if we can build binary with quicklaunch support
ELM_QUICKLAUNCH
2010-09-17 06:29:53 -07:00
if test "x$want_quicklaunch" != "xno"; then
AC_CHECK_FUNCS(fork, [
2011-10-15 02:48:56 -07:00
have_fork="yes"
AC_DEFINE(HAVE_FORK)
2010-09-17 06:29:53 -07:00
])
2012-09-05 19:45:34 -07:00
AC_CHECK_FUNCS([clearenv])
2010-09-17 06:29:53 -07:00
fi
2011-10-15 02:51:26 -07:00
AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes" && test "x$have_dlopen" = "xyes"])
2009-03-01 01:33:41 -08:00
2014-01-08 05:08:44 -08:00
AC_CHECK_FUNCS([\
geteuid \
getuid \
])
2009-01-13 01:20:53 -08:00
AC_SUBST(dlopen_libs)
2008-12-18 16:34:56 -08:00
AC_SUBST(lt_enable_auto_import)
AC_SUBST(ELM_UNIX_DEF)
AC_SUBST(ELM_WIN32_DEF)
AC_SUBST(ELM_WINCE_DEF)
2008-09-29 23:58:56 -07:00
2009-01-22 13:43:07 -08:00
AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
2008-12-18 16:34:56 -08:00
PKG_CHECK_MODULES([ELEMENTARY],
[
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
2008-12-18 16:34:56 -08:00
]
)
2010-09-17 06:18:13 -07:00
2013-06-27 18:22:52 -07:00
EFL_ENABLE_EO_API_SUPPORT
2013-07-22 19:24:43 -07:00
EFL_ENABLE_BETA_API_SUPPORT
2013-06-27 18:22:52 -07:00
2013-11-12 05:56:05 -08:00
requirement_elm="\
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 \
2013-11-12 05:56:05 -08:00
"
2011-06-30 10:18:13 -07:00
2008-12-18 16:34:56 -08:00
have_elementary_x="no"
2010-03-03 14:34:57 -08:00
want_elementary_x="auto"
AC_ARG_ENABLE([ecore-x],
[AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
[want_elementary_x=$enableval], [])
if test "x$want_elementary_x" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_X],
2014-01-23 17:28:05 -08:00
[ecore-x >= efl_version],
2010-03-03 14:34:57 -08:00
[
AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
have_elementary_x="yes"
2014-01-23 17:28:05 -08:00
requirement_elm="ecore-x >= efl_version ${requirement_elm}"
2010-03-03 14:34:57 -08:00
],
[have_elementary_x="no"]
)
else
have_elementary_x="no"
fi
if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([ecore-x support requested, but ecore-x was not found by pkg-config.])
2010-03-03 14:34:57 -08:00
fi
2008-12-09 22:43:21 -08:00
2008-12-09 22:33:24 -08:00
have_elementary_fb="no"
2010-03-03 14:34:57 -08:00
want_elementary_fb="auto"
AC_ARG_ENABLE([ecore-fb],
[AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
[want_elementary_fb=$enableval], [])
if test "x$want_elementary_fb" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_FB],
2014-01-23 17:28:05 -08:00
[ecore-fb >= efl_version],
2010-03-03 14:34:57 -08:00
[
AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
have_elementary_fb="yes"
2014-01-23 17:28:05 -08:00
requirement_elm="ecore-fb >= efl_version ${requirement_elm}"
2010-03-03 14:34:57 -08:00
],
[have_elementary_fb="no"]
)
else
have_elementary_fb="no"
fi
if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([ecore-fb support requested, but ecore-fb was not found by pkg-config.])
2010-03-03 14:34:57 -08:00
fi
2008-12-18 16:34:56 -08:00
2011-11-05 10:50:09 -07:00
have_elementary_psl1ght="no"
want_elementary_psl1ght="auto"
AC_ARG_ENABLE([ecore-psl1ght],
[AC_HELP_STRING([--disable-ecore-psl1ght], [disable ecore-psl1ght support. @<:@default=detect@:>@])],
[want_elementary_psl1ght=$enableval], [])
if test "x$want_elementary_psl1ght" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_PSL1GHT],
2014-01-23 17:28:05 -08:00
[ecore-psl1ght >= efl_version],
2011-11-05 10:50:09 -07:00
[
AC_DEFINE(HAVE_ELEMENTARY_PSL1GHT, 1, [PSL1GHT support for Elementary])
have_elementary_psl1ght="yes"
2014-01-23 17:28:05 -08:00
requirement_elm="ecore-psl1ght >= efl_version ${requirement_elm}"
2011-11-05 10:50:09 -07:00
],
[have_elementary_psl1ght="no"]
)
else
have_elementary_psl1ght="no"
fi
if test "x$want_elementary_psl1ght" = "xyes" -a "x$have_elementary_psl1ght" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([ecore-psl1ght support requested, but ecore-psl1ght was not found by pkg-config.])
2011-11-05 10:50:09 -07:00
fi
2010-01-13 00:17:15 -08:00
have_elementary_sdl="no"
2010-03-03 14:34:57 -08:00
want_elementary_sdl="auto"
AC_ARG_ENABLE([ecore-sdl],
[AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
[want_elementary_sdl=$enableval], [])
if test "x$want_elementary_sdl" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_SDL],
2014-01-23 17:28:05 -08:00
[ecore-sdl >= efl_version],
2010-03-03 14:34:57 -08:00
[
AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
have_elementary_sdl="yes"
2014-01-23 17:28:05 -08:00
requirement_elm="ecore-sdl >= efl_version ${requirement_elm}"
2010-03-03 14:34:57 -08:00
],
[have_elementary_sdl="no"]
)
else
have_elementary_sdl="no"
fi
if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([ecore-sdl support requested, but ecore-sdl was not found by pkg-config.])
2010-03-03 14:34:57 -08:00
fi
2010-01-13 00:17:15 -08:00
2011-11-02 12:26:29 -07:00
have_elementary_cocoa="no"
want_elementary_cocoa="auto"
AC_ARG_ENABLE([ecore-cocoa],
[AC_HELP_STRING([--disable-ecore-cocoa], [disable ecore-cocoa support. @<:@default=detect@:>@])],
[want_elementary_cocoa=$enableval], [])
if test "x$want_elementary_cocoa" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_COCOA],
2014-01-23 17:28:05 -08:00
[ecore-cocoa >= efl_version],
2011-11-02 12:26:29 -07:00
[
AC_DEFINE(HAVE_ELEMENTARY_COCOA, 1, [COCOA support for Elementary])
have_elementary_cocoa="yes"
2014-01-23 17:28:05 -08:00
requirement_elm="ecore-cocoa >= efl_version ${requirement_elm}"
2011-11-02 12:26:29 -07:00
],
[have_elementary_cocoa="no"]
)
else
have_elementary_cocoa="no"
fi
if test "x$want_elementary_cocoa" = "xyes" -a "x$have_elementary_cocoa" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([ecore-cocoa support requested, but ecore-cocoa was not found by pkg-config.])
2011-11-02 12:26:29 -07:00
fi
2009-01-22 13:43:07 -08:00
have_elementary_win32="no"
2010-03-03 14:34:57 -08:00
want_elementary_win32="auto"
AC_ARG_ENABLE([ecore-win32],
[AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
[want_elementary_win32=$enableval], [])
if test "x$want_elementary_win32" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_WIN32],
2014-01-23 17:28:05 -08:00
[ecore-win32 >= efl_version],
2010-03-03 14:34:57 -08:00
[
AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
have_elementary_win32="yes"
2014-01-23 17:28:05 -08:00
requirement_elm="ecore-win32 >= efl_version ${requirement_elm}"
2010-03-03 14:34:57 -08:00
],
[have_elementary_win32="no"]
)
else
have_elementary_win32="no"
fi
if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([ecore-win32 support requested, but ecore-win32 was not found by pkg-config.])
2010-03-03 14:34:57 -08:00
fi
2009-01-22 13:43:07 -08:00
2008-12-18 16:34:56 -08:00
have_elementary_wince="no"
2010-03-03 14:34:57 -08:00
want_elementary_wince="auto"
AC_ARG_ENABLE([ecore-wince],
[AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
[want_elementary_wince=$enableval], [])
if test "x$want_elementary_wince" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_WINCE],
2014-01-23 17:28:05 -08:00
[ecore-wince >= efl_version],
2010-03-03 14:34:57 -08:00
[
AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
have_elementary_wince="yes"
2014-01-23 17:28:05 -08:00
requirement_elm="ecore-wince >= efl_version ${requirement_elm}"
2010-03-03 14:34:57 -08:00
],
[have_elementary_wince="no"]
)
else
have_elementary_wince="no"
fi
if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([ecore-wince support requested, but ecore-wince was not found by pkg-config.])
2010-03-03 14:34:57 -08:00
fi
2008-12-09 22:33:24 -08:00
2012-06-06 06:55:15 -07:00
have_elementary_wayland="no"
want_elementary_wayland="auto"
2012-06-06 09:43:35 -07:00
AC_ARG_ENABLE([ecore-wayland],
2012-06-06 06:55:15 -07:00
[AC_HELP_STRING([--disable-ecore-wayland], [disable ecore-wayland support. @<:@default=detect@:>@])],
[want_elementary_wayland=$enableval], [])
if test "x$want_elementary_wayland" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_WAYLAND],
[ecore-wayland],
[
AC_DEFINE(HAVE_ELEMENTARY_WAYLAND, 1, [Wayland support for Elementary])
have_elementary_wayland="yes"
requirement_elm="ecore-wayland ${requirement_elm}"
],
[have_elementary_wayland="no"]
)
else
have_elementary_wayland="no"
fi
if test "x$want_elementary_wayland" = "xyes" -a "x$have_elementary_wayland" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([ecore-wayland support requested, but ecore-wayland was not found by pkg-config.])
2012-06-06 06:55:15 -07:00
fi
2014-03-06 04:38:37 -08:00
have_elementary_drm="no"
want_elementary_drm="auto"
AC_ARG_ENABLE([ecore-drm],
[AC_HELP_STRING([--disable-ecore-drm], [disable ecore-drm support. @<:@default=detect@:>@])],
[want_elementary_drm=$enableval], [])
if test "x$want_elementary_drm" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_DRM],
[ecore-drm >= efl_version],
[
AC_DEFINE(HAVE_ELEMENTARY_DRM, 1, [DRM support for Elementary])
have_elementary_drm="yes"
requirement_elm="ecore-drm >= efl_version ${requirement_elm}"
],
[have_elementary_drm="no"]
)
else
have_elementary_drm="no"
fi
if test "x$want_elementary_drm" = "xyes" -a "x$have_elementary_drm" = "xno"; then
AC_MSG_ERROR([ecore-drm support requested, but ecore-drm was not found by pkg-config.])
fi
2012-12-11 06:05:48 -08:00
ELM_ELOCATION_DEF="#undef"
have_elementary_elocation="no"
want_elementary_elocation="auto"
AC_ARG_ENABLE([elocation],
[AC_HELP_STRING([--disable-elocation], [disable elocation support. @<:@default=detect@:>@])],
[want_elementary_elocation=$enableval], [])
if test "x$want_elementary_elocation" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_ELOCATION],
[
elocation >= 0.1.0
],
[
AC_DEFINE(HAVE_ELEMENTARY_ELOCATION, 1, [Elocation support for Elementary])
have_elementary_elocation="yes"
ELM_ELOCATION_DEF="#define"
2012-12-17 06:10:17 -08:00
requirement_elm="elocation >= 0.1.0 ${requirement_elm}"
2012-12-11 06:05:48 -08:00
],
[have_elementary_elocation="no"]
)
else
have_elementary_elocation="no"
fi
if test "x$want_elementary_elocation" = "xyes" -a "x$have_elementary_elocation" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([elocation support requested, but elocation was not found by pkg-config.])
2012-12-11 06:05:48 -08:00
fi
AC_SUBST(ELM_ELOCATION_DEF)
2009-11-25 12:37:53 -08:00
ELM_EWEATHER_DEF="#undef"
have_elementary_eweather="no"
2010-02-25 13:36:12 -08:00
want_elementary_eweather="auto"
AC_ARG_ENABLE([eweather],
[AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
[want_elementary_eweather=$enableval], [])
if test "x$want_elementary_eweather" != "xno"; then
PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
[
eweather
],
[
AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
have_elementary_eweather="yes"
ELM_EWEATHER_DEF="#define"
requirement_elm="eweather ${requirement_elm}"
],
[have_elementary_eweather="no"]
)
else
have_elementary_eweather="no"
fi
if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([Eweather support requested, but eweather was not found by pkg-config.])
2010-02-25 13:36:12 -08:00
fi
2009-11-25 12:37:53 -08:00
AC_SUBST(ELM_EWEATHER_DEF)
2011-06-25 07:30:10 -07:00
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
2013-06-04 09:42:41 -07:00
AC_MSG_ERROR([Emap support requested, but emap was not found by pkg-config.])
2011-06-25 07:30:10 -07:00
fi
AC_SUBST(ELM_EMAP_DEF)
2011-09-29 13:58:22 -07:00
ELM_WEB_DEF="#undef"
2013-12-13 05:26:02 -08:00
ELM_WEB2_DEF="#undef"
2011-09-29 13:58:22 -07:00
2012-10-18 20:08:45 -07:00
elementary_web_backend="detect"
2013-11-12 10:26:48 -08:00
elementary_web="no"
2012-10-18 20:08:45 -07:00
want_elementary_web=""
AC_ARG_WITH([elementary-web-backend],
[AC_HELP_STRING([--with-elementary-web-backend=@<:@ewebkit/ewebkit2/detect/none@:>@], [Select the WebKit backend for Elementary to support web @<:@default=detect@:>@])],
[
elementary_web_backend=${withval}
],
[elementary_web_backend="detect"])
case "$elementary_web_backend" in
ewebkit|ewebkit2|detect|none) ;;
*) AC_MSG_ERROR([Invalid web backend: must be ewebkit, ewebkit2, detect or none]) ;;
esac
if test "x$elementary_web_backend" = "xdetect"; then
# FIXME : detect option should check both ewebkit and ewebkit2.
want_elementary_web="ewebkit"
else
want_elementary_web=$elementary_web_backend
fi
if test "x$want_elementary_web" != "xnone"; then
2011-09-29 13:58:22 -07:00
PKG_CHECK_MODULES([ELEMENTARY_WEB],
2012-10-18 20:08:45 -07:00
[$want_elementary_web],
2011-09-29 13:58:22 -07:00
[
AC_DEFINE(HAVE_ELEMENTARY_WEB, 1, [Web support for Elementary])
2012-10-18 20:08:45 -07:00
webkit_datadir=$($PKG_CONFIG $want_elementary_web --variable=datadir)
2011-09-29 13:58:22 -07:00
AC_DEFINE_UNQUOTED(WEBKIT_DATADIR,
"$webkit_datadir",
"WebKit's data dir")
2012-10-18 20:08:45 -07:00
if test "x$elementary_web_backend" = "xewebkit2"; then
AC_DEFINE(USE_WEBKIT2, 1, [Use ewebkit2 as Elementary web backend])
2013-12-13 05:26:02 -08:00
ELM_WEB2_DEF="#define"
else
ELM_WEB_DEF="#define"
2012-10-18 20:08:45 -07:00
fi
elementary_web=$want_elementary_web
requirement_elm="${want_elementary_web} ${requirement_elm}"
2011-09-29 13:58:22 -07:00
],
2013-11-12 10:26:48 -08:00
[elementary_web="no"]
2011-09-29 13:58:22 -07:00
)
else
2013-11-12 10:26:48 -08:00
elementary_web="no"
2011-09-29 13:58:22 -07:00
fi
2012-10-18 20:08:45 -07:00
if test "x$elementary_web_backend" = "xewebkit" -o "x$elementary_web_backend" = "xewebkit2"; then
if test "x$elementary_web" = "xnone"; then
AC_MSG_ERROR([Web support requested, but no $elementary_web_backend found by pkg-config.])
fi
2011-09-29 13:58:22 -07:00
fi
AC_SUBST(ELM_WEB_DEF)
2013-12-13 05:26:02 -08:00
AC_SUBST(ELM_WEB2_DEF)
2011-09-29 13:58:22 -07:00
2010-10-01 12:03:23 -07:00
ELM_DEBUG_DEF="#undef"
want_elementary_debug="no"
AC_ARG_ENABLE([debug],
[AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
[want_elementary_debug=$enableval], [])
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)
2013-11-19 05:18:02 -08:00
AC_ARG_WITH([tests],
[AC_HELP_STRING([--with-tests=none|regular],
[choose elementary testing method: regular or none.(coverage will be supported)@<:@default=none@:>@])],
[build_tests=${withval}],
[build_tests=none])
if test "${build_tests}" = "regular"; then
PKG_CHECK_MODULES([CHECK], [check >= 0.9.5])
fi
AM_CONDITIONAL([ENABLE_ELEMENTARY_TESTS], [test "${build_tests}" = "regular"])
2008-12-18 17:22:11 -08:00
ELM_ALLOCA_H_DEF="#undef"
AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
AC_SUBST(ELM_ALLOCA_H_DEF)
2009-02-05 02:23:04 -08:00
ELM_LIBINTL_H_DEF="#undef"
AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
AC_SUBST(ELM_LIBINTL_H_DEF)
2011-11-20 06:56:12 -08:00
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
2012-05-07 14:28:01 -07:00
AC_CHECK_HEADERS([locale.h langinfo.h sys/times.h])
2012-03-07 05:27:06 -08:00
2010-11-20 20:37:52 -08:00
my_libs="-lm"
2008-09-29 23:58:56 -07:00
AC_SUBST(my_libs)
2009-01-22 13:43:07 -08:00
AC_SUBST(requirement_elm)
2008-09-29 23:58:56 -07:00
2010-08-22 00:19:29 -07:00
EFL_WITH_BIN([eet], [eet-eet], [eet])
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
2012-09-13 07:06:45 -07:00
EFL_WITH_BIN([elementary], [elementary-codegen], [elementary_codegen])
2012-11-30 06:41:39 -08:00
EFL_WITH_BIN([elementary], [elm-prefs-cc], [elm_prefs_cc])
2014-03-13 01:50:52 -07:00
EFL_WITH_BIN([eolian], [eolian-gen], [eolian_gen])
# Force the helper to try external eolian-gen
AM_CONDITIONAL(HAVE_EOLIAN_GEN, [true])
2010-08-22 00:19:29 -07:00
2009-05-15 04:45:14 -07:00
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
2010-09-17 06:18:13 -07:00
EFL_ENABLE_BIN([elementary-test])
2012-09-13 07:06:07 -07:00
EFL_ENABLE_BIN([elementary-codegen])
2012-11-30 06:41:39 -08:00
EFL_ENABLE_BIN([elm-prefs-cc])
2010-09-17 06:18:13 -07:00
EFL_ENABLE_BIN([elementary-config])
2011-02-03 07:52:49 -08:00
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
2011-09-27 14:39:49 -07:00
AM_GNU_GETTEXT_VERSION([0.17])
2011-02-03 07:52:49 -08:00
])
m4_ifdef([AM_GNU_GETTEXT], [
AM_GNU_GETTEXT([external])
po_makefile_in=po/Makefile.in
2011-10-21 14:20:12 -07:00
have_po="yes"
2011-02-03 07:52:49 -08:00
],[
2011-10-21 14:20:12 -07:00
have_po="no"
2011-02-03 07:52:49 -08:00
])
AC_SUBST(LTLIBINTL)
2011-10-21 14:20:12 -07:00
if test "x${POSUB}" = "x" ; then
have_po="no"
fi
AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
2011-10-15 02:30:52 -07:00
EFL_CHECK_PATH_MAX
2012-01-19 09:12:15 -08:00
elementary_base_dir=".elementary"
AC_ARG_WITH([elementary-base-dir],
[AC_HELP_STRING([--with-elementary-base-dir=PATH], [specify the subdirectory for all elementary data @<:@default=${elementary_base_dir}@:>@])],
[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")
2011-02-03 07:52:49 -08:00
2011-06-16 11:58:44 -07:00
### 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"])
2012-07-25 02:56:00 -07:00
AC_TRY_COMPILE([
# define _GNU_SOURCE 1
#include <unistd.h>
], [
extern char **environ;
], [
AC_DEFINE(HAVE_ENVIRON, 1, [extern environ exists])
])
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
2008-09-29 23:58:56 -07:00
elementary.pc
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
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
config/standard/Makefile
2012-08-07 23:07:37 -07:00
config/mobile/Makefile
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}"
echo " Windows CE.............: ${have_elementary_wince}"
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}"
2010-09-17 06:29:53 -07:00
echo " Quick Launch...........: ${have_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-03-11 03:04:15 -07:00
echo " eolian_gen...............: ${eolian_gen}"
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}"
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"
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