2012-06-12 03:10:01 -07:00
dnl Process this file with autoconf to produce a configure script.
# get rid of that stupid cache mechanism
rm -f config.cache
2014-03-08 09:26:49 -08:00
AC_INIT([terminology], [0.5.99], [enlightenment-devel@lists.sourceforge.net])
2012-06-17 09:28:02 -07:00
AC_PREREQ([2.60])
2012-06-12 03:10:01 -07:00
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([terminology_config.h])
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2012-06-17 09:28:02 -07:00
AC_USE_SYSTEM_EXTENSIONS
2013-01-03 21:49:26 -08:00
AC_PROG_CC
2012-06-12 03:10:01 -07:00
AM_PROG_CC_C_O
2012-06-17 10:04:17 -07:00
AC_C___ATTRIBUTE__
2012-06-12 03:10:01 -07:00
2013-11-14 14:45:18 -08:00
efl_version="1.7.0"
2013-11-04 01:42:55 -08:00
AC_SUBST(efl_version)
2012-06-12 03:10:01 -07:00
requirements="\
2013-11-04 01:42:55 -08:00
elementary >= ${efl_version} \
eina >= ${efl_version} \
eet >= ${efl_version} \
evas >= ${efl_version} \
ecore >= ${efl_version} \
ecore-evas >= ${efl_version} \
ecore-file >= ${efl_version} \
edje >= ${efl_version} \
emotion >= ${efl_version} \
ecore-input >= ${efl_version} \
ecore-imf >= ${efl_version} \
ecore-imf-evas >= ${efl_version} \
ecore-ipc >= ${efl_version} \
efreet >= ${efl_version} \
ethumb_client >= ${efl_version} \
2012-06-16 23:06:38 -07:00
"
2012-06-12 03:10:01 -07:00
2013-09-06 11:39:37 -07:00
EFL_ENABLE_EO_API_SUPPORT
EFL_ENABLE_BETA_API_SUPPORT
2012-06-12 03:10:01 -07:00
PKG_CHECK_MODULES([TERMINOLOGY], [${requirements}])
2013-06-15 13:39:35 -07:00
PKG_CHECK_MODULES([ELDBUS],
[eldbus],
[
AC_DEFINE(HAVE_ELDBUS, 1, [DBUS support])
have_eldbus="yes"
],
[have_eldbus="no"]
)
2012-09-24 05:18:52 -07:00
AC_CHECK_FUNCS(mkstemps)
2012-06-12 03:10:01 -07:00
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
2012-06-21 01:18:12 -07:00
with_max_log_level="EINA_LOG_LEVEL_ERR"
2012-06-17 11:41:23 -07:00
AC_ARG_WITH(maximum-log-level,
[AC_HELP_STRING([--with-maximum-log-level=NUMBER],
[limit terminology log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
[
if test "x${withval}" != "xno"; then
if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then
AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
with_max_log_level="${withval}"
else
AC_MSG_ERROR([--with-maximum-log-level takes a decimal number, got "${withval}" instead.])
fi
fi
], [:])
2012-06-21 01:18:12 -07:00
AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])
2012-06-12 03:10:01 -07:00
AC_CONFIG_FILES([
Makefile
2012-08-18 01:25:54 -07:00
terminology.spec
2012-06-12 03:10:01 -07:00
src/Makefile
src/bin/Makefile
data/Makefile
data/desktop/Makefile
data/icons/Makefile
2013-12-28 20:45:27 -08:00
data/backgrounds/Makefile
2012-06-12 03:10:01 -07:00
data/images/Makefile
data/fonts/Makefile
data/themes/Makefile
data/themes/images/Makefile
2013-05-06 03:13:02 -07:00
data/themes/sounds/Makefile
2014-05-10 01:20:14 -07:00
data/themes/nyanology/Makefile
2013-03-29 03:37:29 -07:00
man/Makefile
2013-06-07 04:59:18 -07:00
pkgbuild/PKGBUILD
2012-06-12 03:10:01 -07:00
])
AC_OUTPUT
#####################################################################
## Info
echo
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo "Compilation................: make (or gmake)"
echo " CPPFLAGS.................: $CPPFLAGS"
echo " CFLAGS...................: $CFLAGS"
echo " LDFLAGS..................: $LDFLAGS"
echo
echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix...................: $prefix"
echo
2013-06-15 13:39:35 -07:00
echo "Features:"
echo " dbus................: $have_eldbus"
echo