2010-07-11 16:42:38 -07:00
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
m4_define([v_maj], [0])
|
|
|
|
m4_define([v_min], [2])
|
|
|
|
m4_define([v_mic], [0])
|
|
|
|
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']))
|
|
|
|
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']))])
|
|
|
|
##-- When released, remove the dnl on the below line
|
|
|
|
dnl m4_undefine([v_rev])
|
|
|
|
##-- When doing snapshots - change soname. remove dnl on below line
|
|
|
|
m4_define([relname], [ver-pre-svn-07])
|
|
|
|
m4_define([v_rel], [-release relname])
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])],
|
|
|
|
[m4_define([v_ver], [v_maj.v_min.v_mic])])
|
|
|
|
m4_define([lt_rev], m4_eval(v_maj + v_min))
|
|
|
|
m4_define([lt_cur], v_mic)
|
|
|
|
m4_define([lt_age], v_min)
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
2004-06-18 08:38:03 -07:00
|
|
|
|
2010-07-11 16:42:38 -07:00
|
|
|
AC_INIT([emotion], [v_ver], [enlightenment-devel@lists.sourceforge.net])
|
2010-01-04 10:45:40 -08:00
|
|
|
AC_PREREQ([2.60])
|
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
2004-06-18 08:38:03 -07:00
|
|
|
AC_ISC_POSIX
|
2010-01-04 10:45:40 -08:00
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
|
|
|
|
AM_CONFIG_HEADER([config.h])
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
2004-06-18 08:38:03 -07:00
|
|
|
|
2007-11-11 01:12:08 -08:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
|
|
|
AC_PROG_LIBTOOL
|
2007-10-31 12:34:39 -07:00
|
|
|
|
2010-07-11 16:42:38 -07:00
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
|
|
|
|
m4_ifdef([v_rel], , [m4_define([v_rel], [])])
|
|
|
|
AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
|
|
|
|
AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
|
|
|
|
AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
|
|
|
|
AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
|
|
|
|
version_info="lt_rev:lt_cur:lt_age"
|
|
|
|
release_info="v_rel"
|
2007-11-11 01:12:08 -08:00
|
|
|
AC_SUBST(version_info)
|
2010-07-11 16:42:38 -07:00
|
|
|
AC_SUBST(release_info)
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
|
|
|
|
VMAJ=v_maj
|
2010-07-08 23:38:12 -07:00
|
|
|
AC_SUBST(VMAJ)
|
2010-01-04 10:45:40 -08:00
|
|
|
|
2010-10-19 05:04:01 -07:00
|
|
|
want_vlc="no"
|
2009-04-17 12:40:41 -07:00
|
|
|
case "$host_os" in
|
|
|
|
mingw* | cegcc*)
|
2010-01-04 10:45:40 -08:00
|
|
|
want_xine="no"
|
|
|
|
want_gstreamer="yes"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
want_xine="yes"
|
|
|
|
want_gstreamer="yes"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
requirement_emotion=""
|
|
|
|
|
|
|
|
### Additional options to configure
|
|
|
|
|
2010-01-26 01:48:47 -08:00
|
|
|
EFL_ENABLE_BIN([emotion-test])
|
|
|
|
|
2010-01-04 10:45:40 -08:00
|
|
|
# edje_cc
|
|
|
|
|
|
|
|
AC_ARG_WITH([edje-cc],
|
|
|
|
[AC_HELP_STRING([--with-edje-cc=PATH], [specify a specific path to edje_cc])],
|
|
|
|
[
|
|
|
|
v=$withval;
|
|
|
|
edje_cc=$v
|
|
|
|
echo " Enlightenment edje_cc explicitly set to "$edje_cc;
|
|
|
|
],
|
|
|
|
[edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc])
|
|
|
|
AC_SUBST(edje_cc)
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for programs
|
|
|
|
AC_PROG_CC
|
|
|
|
|
2011-01-30 02:03:05 -08:00
|
|
|
# pkg-config
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2010-01-04 10:45:40 -08:00
|
|
|
# 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)
|
|
|
|
|
|
|
|
# doxygen program for documentation building
|
|
|
|
|
|
|
|
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for libraries
|
|
|
|
|
2010-08-16 03:21:32 -07:00
|
|
|
PKG_CHECK_MODULES(EMOTION, [eina >= 1.0.0 evas >= 1.0.0 ecore >= 1.0.0])
|
|
|
|
requirement_emotion="ecore >= 1.0.0 evas >= 1.0.0 eina >= 1.0.0"
|
2010-01-04 10:45:40 -08:00
|
|
|
|
2010-01-26 01:48:47 -08:00
|
|
|
if test "x${have_emotion_test}" = "xyes" ; then
|
2011-02-28 06:50:27 -08:00
|
|
|
PKG_CHECK_MODULES(EMOTION_BIN, [eina >= 1.0.0 evas >= 1.0.0 ecore >= 1.0.0 ecore-evas >= 1.0.0 edje >= 1.0.0])
|
2010-01-26 01:48:47 -08:00
|
|
|
fi
|
2010-01-04 10:45:40 -08:00
|
|
|
|
2010-08-16 03:21:32 -07:00
|
|
|
PKG_CHECK_MODULES(ECORE_X, [ecore-x >= 1.0.0], [have_ecore_x="yes"], [have_ecore_x="no"])
|
2010-01-04 10:45:40 -08:00
|
|
|
|
2010-08-16 03:21:32 -07:00
|
|
|
PKG_CHECK_MODULES(ECORE_FB, [ecore-fb >= 1.0.0], [have_ecore_fb="yes"], [have_ecore_fb="no"])
|
2010-01-04 10:45:40 -08:00
|
|
|
|
|
|
|
if test "x${have_ecore_x}" = "xyes" ; then
|
|
|
|
AC_DEFINE(EMOTION_HAVE_ECORE_X, 1, [Define to 1 if Ecore_X is enabled])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x${have_ecore_fb}" = "xyes" ; then
|
|
|
|
AC_DEFINE(EMOTION_HAVE_ECORE_FB, 1, [Define to 1 if Ecore_Fb is enabled])
|
|
|
|
fi
|
|
|
|
|
2010-08-16 03:21:32 -07:00
|
|
|
PKG_CHECK_EXISTS([evas-software-x11 >= 1.0.0], [AC_DEFINE(HAVE_EVAS_SOFWARE_X11, 1, [Evas Software Xlib Engine Support])])
|
2010-01-04 10:45:40 -08:00
|
|
|
|
2010-08-16 03:21:32 -07:00
|
|
|
PKG_CHECK_EXISTS([evas-xrender-x11 >= 1.0.0], [AC_DEFINE(HAVE_EVAS_XRENDER_X11, 1, [Evas Software Xlib Engine Support])])
|
2010-01-04 10:45:40 -08:00
|
|
|
|
2010-08-16 03:21:32 -07:00
|
|
|
PKG_CHECK_EXISTS([evas-opengl-x11 >= 1.0.0], [AC_DEFINE(HAVE_EVAS_OPENGL_X11, 1, [Evas OpenGL Xlib Engine Support])])
|
2010-01-04 10:45:40 -08:00
|
|
|
|
2010-08-16 03:21:32 -07:00
|
|
|
PKG_CHECK_EXISTS([evas-fb >= 1.0.0], [AC_DEFINE(HAVE_EVAS_FB, 1, [Evas Framebuffer Engine Support])])
|
2010-01-04 10:45:40 -08:00
|
|
|
|
2010-04-21 12:51:16 -07:00
|
|
|
EFL_EDJE_EXTERNAL([have_edje_external="yes"], [have_edje_external="no"])
|
2010-03-31 20:59:39 -07:00
|
|
|
|
2011-07-17 14:38:54 -07:00
|
|
|
PKG_CHECK_MODULES(EEZE, [eeze >= 1.0.99], [have_eeze="yes"], [have_eeze="no"])
|
|
|
|
|
|
|
|
if test "x${have_eeze}" = "xyes"; then
|
|
|
|
AC_DEFINE(EMOTION_HAVE_EEZE, 1, [Define to 1 if Eeze is available])
|
|
|
|
fi
|
2010-01-04 10:45:40 -08:00
|
|
|
|
|
|
|
### Checks for header files
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
|
|
### Checks for types
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for structures
|
|
|
|
|
|
|
|
|
|
|
|
### Checks for compiler characteristics
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_C___ATTRIBUTE__
|
|
|
|
|
|
|
|
EFL_EMOTION_BUILD=""
|
|
|
|
case "$host_os" in
|
|
|
|
mingw32ce* | cegcc*)
|
|
|
|
EMOTION_CPPFLAGS="-D_WIN32_WCE=0x0420"
|
|
|
|
EFL_EMOTION_BUILD="-DEFL_EMOTION_BUILD"
|
|
|
|
;;
|
|
|
|
mingw*)
|
|
|
|
EMOTION_CPPFLAGS="-D_WIN32_WINNT=0x0501"
|
2009-04-17 12:40:41 -07:00
|
|
|
EFL_EMOTION_BUILD="-DEFL_EMOTION_BUILD"
|
2010-01-04 10:45:40 -08:00
|
|
|
;;
|
2009-04-17 12:40:41 -07:00
|
|
|
esac
|
|
|
|
AC_SUBST(EFL_EMOTION_BUILD)
|
2010-01-04 10:45:40 -08:00
|
|
|
AC_SUBST(EMOTION_CPPFLAGS)
|
|
|
|
|
2009-04-17 12:40:41 -07:00
|
|
|
|
|
|
|
### Checks for linker characteristics
|
|
|
|
|
|
|
|
# use --enable-auto-import on Windows
|
|
|
|
|
|
|
|
lt_enable_auto_import=""
|
|
|
|
case "$host_os" in
|
|
|
|
mingw* | cegcc*)
|
|
|
|
lt_enable_auto_import="-Wl,--enable-auto-import"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(lt_enable_auto_import)
|
|
|
|
|
2011-06-29 10:30:19 -07:00
|
|
|
### Check for extended attribute
|
|
|
|
|
|
|
|
AC_COMPILE_IFELSE(
|
|
|
|
[AC_LANG_PROGRAM(
|
|
|
|
[[
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/xattr.h>
|
|
|
|
]],
|
|
|
|
[[
|
|
|
|
size_t tmp = listxattr("/", NULL, 0);
|
|
|
|
tmp = getxattr("/", "user.ethumb.md5", NULL, 0);
|
|
|
|
setxattr("/", "user.ethumb.md5", NULL, 0, 0);
|
|
|
|
]])],
|
|
|
|
[
|
|
|
|
AC_DEFINE(HAVE_XATTR, 1, [Define to 1 if you have 'listxattr', 'setxattr' and 'getxattr'])
|
|
|
|
have_xattr="yes"
|
|
|
|
],
|
|
|
|
[have_xattr="no"])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for Xattr])
|
|
|
|
AC_MSG_RESULT([${have_xattr}])
|
2008-09-27 14:07:53 -07:00
|
|
|
|
2010-01-04 10:45:40 -08:00
|
|
|
### Modules
|
2005-10-02 01:07:56 -07:00
|
|
|
|
2010-01-04 10:45:40 -08:00
|
|
|
EMOTION_CHECK_MODULE([Xine], [${want_xine}])
|
|
|
|
EMOTION_CHECK_MODULE([Gstreamer], [${want_gstreamer}])
|
|
|
|
EMOTION_CHECK_MODULE([VLC], [${want_vlc}])
|
2007-11-11 01:12:08 -08:00
|
|
|
|
2011-03-23 19:29:55 -07:00
|
|
|
#disabled vlc
|
|
|
|
#if test "x${enable_xine}" = "xno" && test "x${enable_gstreamer}" = "xno" && test "x${enable_vlc}" = "xno" ; then
|
|
|
|
if test "x${enable_xine}" = "xno" && test "x${enable_gstreamer}" = "xno"; then
|
|
|
|
#disabled vlc
|
|
|
|
# AC_MSG_ERROR([Xine, Gstreamer or VLC backends must be selected to build Emotion])
|
|
|
|
AC_MSG_ERROR([Xine or Gstreamer backends must be selected to build Emotion])
|
2005-10-02 00:34:36 -07:00
|
|
|
fi
|
|
|
|
|
2011-06-29 10:30:19 -07:00
|
|
|
PKG_CHECK_MODULES([EIO],
|
|
|
|
[eio],
|
|
|
|
[
|
|
|
|
have_eio="yes"
|
|
|
|
AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
|
|
|
|
requirement_emotion="eio ${requirement_emotion}"
|
|
|
|
],
|
|
|
|
[have_eio="no"])
|
|
|
|
|
|
|
|
AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
|
|
|
|
|
2011-07-04 07:30:54 -07:00
|
|
|
### install and build 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"])
|
2011-06-29 10:30:19 -07:00
|
|
|
|
2010-01-04 10:45:40 -08:00
|
|
|
AC_SUBST(requirement_emotion)
|
2009-05-14 01:09:47 -07:00
|
|
|
|
2011-03-23 19:29:55 -07:00
|
|
|
#disabled vlc
|
|
|
|
#src/modules/vlc/Makefile
|
2010-10-31 18:53:16 -07:00
|
|
|
|
2004-06-18 08:38:03 -07:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2004-07-15 12:23:03 -07:00
|
|
|
emotion.pc
|
2005-10-24 21:40:17 -07:00
|
|
|
emotion.spec
|
2004-06-18 08:38:03 -07:00
|
|
|
src/Makefile
|
|
|
|
src/lib/Makefile
|
|
|
|
src/modules/Makefile
|
2008-05-11 11:52:29 -07:00
|
|
|
src/modules/xine/Makefile
|
|
|
|
src/modules/gstreamer/Makefile
|
2010-03-31 20:59:39 -07:00
|
|
|
src/edje_external/Makefile
|
2004-06-18 08:38:03 -07:00
|
|
|
src/bin/Makefile
|
2011-07-04 07:30:54 -07:00
|
|
|
src/examples/Makefile
|
2011-06-29 13:13:37 -07:00
|
|
|
doc/Makefile
|
|
|
|
doc/Doxyfile
|
|
|
|
doc/emotion.dox
|
2004-06-18 08:38:03 -07:00
|
|
|
data/Makefile
|
|
|
|
])
|
2005-10-02 00:34:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
## Info
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo "------------------------------------------------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Configuration Options Summary:"
|
|
|
|
echo
|
|
|
|
echo " Modules:"
|
2010-01-04 10:45:40 -08:00
|
|
|
echo " Xine...............: ${enable_xine}"
|
2011-03-23 19:29:55 -07:00
|
|
|
#echo " Vlc................: ${enable_vlc}"
|
2010-01-04 10:45:40 -08:00
|
|
|
echo " Gstreamer..........: ${enable_gstreamer}"
|
2005-10-02 00:34:36 -07:00
|
|
|
echo
|
2010-01-26 01:48:47 -08:00
|
|
|
echo " Build emotion_test...: $have_emotion_test"
|
2009-05-14 01:09:47 -07:00
|
|
|
echo " edje_cc..............: ${edje_cc}"
|
|
|
|
echo
|
2010-04-21 12:51:16 -07:00
|
|
|
echo " Edje EXTERNAL support: ${have_edje_external}"
|
2010-03-31 20:59:39 -07:00
|
|
|
echo
|
2011-06-29 10:30:19 -07:00
|
|
|
echo " Xattr................: ${have_xattr}"
|
|
|
|
echo " Eio..................: ${have_eio}"
|
|
|
|
echo
|
2011-06-29 13:13:37 -07:00
|
|
|
echo "Documentation..........: ${build_doc}"
|
2011-07-04 07:30:54 -07:00
|
|
|
echo "Examples.............: ${enable_build_examples}"
|
|
|
|
echo "Examples installed...: ${enable_install_examples}"
|
2011-06-29 13:13:37 -07:00
|
|
|
echo
|
2010-01-04 10:45:40 -08:00
|
|
|
echo "Compilation............: make (or gmake)"
|
|
|
|
echo " CPPFLAGS.............: $CPPFLAGS"
|
|
|
|
echo " CFLAGS...............: $CFLAGS"
|
|
|
|
echo " LDFLAGS..............: $LDFLAGS"
|
2005-10-02 00:34:36 -07:00
|
|
|
echo
|
2010-01-04 10:45:40 -08:00
|
|
|
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
|
|
|
|
echo " prefix...............: $prefix"
|
2005-10-02 00:34:36 -07:00
|
|
|
echo
|
2010-01-04 10:45:40 -08:00
|
|
|
if test "x${have_static_module}" = "xyes" ; then
|
|
|
|
echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Emotion."
|
|
|
|
echo " You must know what you are doing, or else you will have a lot of problems."
|
|
|
|
echo " And asparagus will disappear from the earth."
|
|
|
|
echo " Think about that."
|
2005-10-02 00:34:36 -07:00
|
|
|
echo
|
2010-01-04 10:45:40 -08:00
|
|
|
fi
|