2004-11-24 19:37:45 -08:00
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT(configure.in)
2005-02-07 07:34:20 -08:00
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_ISC_POSIX
2006-12-04 04:14:18 -08:00
AM_INIT_AUTOMAKE(enlightenment, 0.16.999.037)
2004-11-24 19:37:45 -08:00
AM_CONFIG_HEADER(config.h)
2005-02-07 07:34:20 -08:00
AC_C_BIGENDIAN
2004-11-24 19:37:45 -08:00
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST
AM_ENABLE_SHARED
AM_PROG_LIBTOOL
2005-12-14 23:12:00 -08:00
AC_FUNC_ALLOCA
2005-04-12 22:48:38 -07:00
AC_C___ATTRIBUTE__
2004-11-24 19:37:45 -08:00
2005-04-14 02:09:22 -07:00
AC_CHECK_FUNCS(setenv)
AC_CHECK_FUNCS(unsetenv)
2005-06-30 21:09:30 -07:00
AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file]))
AC_CHECK_FUNCS(fnmatch, res=yes, res=no)
if test "x$res" = "xno"; then
AC_CHECK_LIB(fnmatch, fnmatch, res=yes, res=no)
if test "x$res" = "xno"; then
AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch])
else
fnmatch_libs="-lfnmatch"
fi
fi
AC_SUBST(fnmatch_libs)
2005-10-06 11:49:53 -07:00
2006-03-31 09:26:38 -08:00
have_pam=no
AC_CHECK_HEADERS(security/pam_appl.h, [
LIBS="$LIBS -lpam"
have_pam=yes
AC_DEFINE(HAVE_PAM, 1, [PAM Authentication Support])])
2005-10-06 11:49:53 -07:00
# Setting have_valgrind to "no" seems pointless, but we just need to
# put something in as the 4th parameter, so configure doesn't abort
# when valgrind.pc isn't found.
2005-12-05 16:50:26 -08:00
#have_valgrind="no"
#PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0, have_valgrind=yes, have_valgrind=no)
#AC_ARG_ENABLE(valgrind,
# [ --enable-valgrind enable valgrind support], [
# if test x"$enableval" = x"yes" ; then
# AC_MSG_RESULT(yes)
# have_valgrind="yes"
# else
# AC_MSG_RESULT(no)
# have_valgrind="no"
# VALGRIND_CFLAGS=""
# VALGRIND_LIBS=""
# fi
# ], [
# have_valgrind=$have_valgrind
# ]
#)
2005-10-06 11:49:53 -07:00
2005-12-05 16:50:26 -08:00
#if test x$have_valgrind = "xyes"; then
# AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
#fi
2005-10-06 11:49:53 -07:00
2005-12-05 17:13:29 -08:00
AC_SUBST(VALGRIND_CFLAGS)
AC_SUBST(VALGRIND_LIBS)
2005-04-28 19:10:36 -07:00
MODULE_ARCH="$host_os-$host_cpu"
2005-02-07 07:34:20 -08:00
AC_SUBST(MODULE_ARCH)
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
2004-11-24 19:37:45 -08:00
if test "x${bindir}" = 'xNONE'; then
if test "x${prefix}" = "xNONE"; then
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${ac_default_prefix}/bin"
2004-11-24 19:37:45 -08:00
else
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${prefix}/bin"
2004-11-24 19:37:45 -08:00
fi
else
2006-07-13 09:35:46 -07:00
PACKAGE_BIN_DIR="${bindir}"
2004-11-24 19:37:45 -08:00
fi
2006-07-13 09:35:46 -07:00
AC_SUBST(PACKAGE_BIN_DIR)
2004-11-24 19:37:45 -08:00
if test "x${libdir}" = 'xNONE'; then
if test "x${prefix}" = "xNONE"; then
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${ac_default_prefix}/lib"
2004-11-24 19:37:45 -08:00
else
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${prefix}/lib"
2004-11-24 19:37:45 -08:00
fi
else
2006-07-13 09:35:46 -07:00
PACKAGE_LIB_DIR="${libdir}"
2004-11-24 19:37:45 -08:00
fi
2006-07-13 09:35:46 -07:00
AC_SUBST(PACKAGE_LIB_DIR)
2004-11-24 19:37:45 -08:00
2006-06-11 03:23:49 -07:00
if test "x${prefix}" = "xNONE"; then
2006-07-13 09:35:46 -07:00
PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}"
LOCALE_DIR="${ac_default_prefix}/share/locale"
2006-09-03 01:51:32 -07:00
PACKAGE_SYSCONF_DIR="${ac_default_prefix}/etc"
2006-06-11 03:23:49 -07:00
else
2006-07-13 09:35:46 -07:00
PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
LOCALE_DIR="${prefix}/share/locale"
2006-09-03 01:51:32 -07:00
PACKAGE_SYSCONF_DIR="${sysconfdir}"
2004-11-24 19:37:45 -08:00
fi
2006-07-13 09:35:46 -07:00
AC_SUBST(PACKAGE_DATA_DIR)
AC_SUBST(LOCALE_DIR)
2006-09-03 01:51:32 -07:00
AC_SUBST(PACKAGE_SYSCONF_DIR)
2005-04-11 13:25:52 -07:00
2005-06-02 07:56:07 -07:00
x_dir=""
x_cflags=""
x_libs=""
AC_PATH_XTRA
AC_CHECK_HEADER(X11/X.h,
[
x_dir=${x_dir:-/usr/X11R6}
x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
],[
AC_MSG_ERROR([Cannot find X headers and libraries.])
]
)
AC_SUBST(x_cflags)
AC_SUBST(x_libs)
2005-08-17 23:15:27 -07:00
cf_cflags=""
cf_libs=""
PCPPFLAGS="${CPPFLAGS}"
CPPFLAGS="${CPPFLAGS} -I /System/Library/Frameworks/CoreFoundation.framework/Headers"
AC_CHECK_HEADERS(CFBase.h,
[
cf_cflags="-I /System/Library/Frameworks/CoreFoundation.framework/Headers"
cf_cflags="${cf_cflags} -I /System/Library/Frameworks/IOKit.framework/Headers"
cf_libs="-framework 'CoreFoundation' -framework 'IOKit'"
]
)
CPPFLAGS="${PCPPFLAGS}"
AC_SUBST(cf_cflags)
AC_SUBST(cf_libs)
2006-10-31 12:51:32 -08:00
#ALL_LINGUAS="bg de eo es fi fr ja pl pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW ko"
2006-11-02 16:40:35 -08:00
#ALL_LINGUAS="bg de eo es fi fr ja pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW"
# a lot of .po's are broken
2007-01-20 10:23:03 -08:00
ALL_LINGUAS="bg de eo ja ru hu sl it fr"
2005-07-11 20:53:56 -07:00
AC_SUBST(ALL_LINGUAS)
2005-04-23 01:39:41 -07:00
2006-10-31 15:28:27 -08:00
AM_GNU_GETTEXT([external])
2007-01-26 22:00:58 -08:00
AM_GNU_GETTEXT_VERSION([0.12.1])
2005-04-11 13:25:52 -07:00
if test "x$LIBINTL" = "x"; then
LIBINTL="$INTLLIBS"
fi
2004-11-24 19:37:45 -08:00
AC_CHECK_LIB(dl, dlopen, dlopen_libs=-ldl)
AC_SUBST(dlopen_libs)
2006-11-07 14:46:24 -08:00
AC_MSG_CHECKING([whether to enable Favorite Applications menu])
AC_ARG_ENABLE([favorites],
AS_HELP_STRING([--enable-favorites],[enable Favorite Applications menu @<:@yes@:>@]),
[e_cv_enable_favorites=$enableval],
AC_CACHE_VAL([e_cv_enable_favorites], [e_cv_enable_favorites=yes]))
if test "[${e_cv_enable_favorites}]" = yes; then
AC_DEFINE_UNQUOTED([ENABLE_FAVORITES],[1],[enable Favorite Applications menu])
fi
AC_MSG_RESULT([$e_cv_enable_favorites])
AC_MSG_CHECKING([whether to enable Files menu item])
AC_ARG_ENABLE([files],
AS_HELP_STRING([--enable-files],[enable Files menu item @<:@yes@:>@]),
[e_cv_enable_files=$enableval],
AC_CACHE_VAL([e_cv_enable_files], [e_cv_enable_files=yes]))
if test "[${e_cv_enable_files}]" = yes; then
AC_DEFINE_UNQUOTED([ENABLE_FILES],[1],[enable Files menu item])
fi
AC_MSG_RESULT([$e_cv_enable_files])
2007-03-21 11:59:50 -07:00
PKG_CHECK_MODULES(E, [
evas
ecore
ecore-evas
ecore-config
ecore-dbus
ecore-file
ecore-desktop
edje
eet
embryo
2007-03-24 02:17:30 -07:00
efreet
2004-11-24 19:37:45 -08:00
])
2007-03-21 11:59:50 -07:00
e_libs=$E_LIBS" "$LIBINTL" "$fnmatch_libs" "
e_cflags="-DUSE_E_CONFIG_H "$E_CFLAGS" "
2004-11-24 19:37:45 -08:00
AC_SUBST(e_libs)
AC_SUBST(e_cflags)
2005-10-29 22:36:50 -07:00
profile="SLOW_PC"
2004-11-24 19:37:45 -08:00
AC_ARG_WITH(profile,
[ --with-profile=TARGET_PROFILE specify a target format profile of:
LOWRES_PDA, MEDIUMRES_PDA, HIRES_PDA,
SLOW_PC, MEDIUM_PC, FAST_PC ],
[
v=$withval;
profile=$v
echo " Enlightenment build profile set to "$profile;
],[
2005-10-29 22:36:50 -07:00
profile="SLOW_PC"
2004-11-24 19:37:45 -08:00
])
EDJE_DEF="-DLOWRES_PDA=1 -DMEDIUMRES_PDA=2 -DHIRES_PDA=3 -DSLOW_PC=4 -DMEDIUM_PC=5 -DFAST_PC=6"
EDJE_DEF=$EDJE_DEF" -DE17_PROFILE"=$profile
AC_SUBST(EDJE_DEF)
AC_ARG_WITH(edje-cc,
[ --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;
],[
2007-03-21 11:59:50 -07:00
edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
2004-11-24 19:37:45 -08:00
])
AC_SUBST(edje_cc)
2006-09-03 00:42:06 -07:00
2004-11-24 19:37:45 -08:00
AC_OUTPUT([
Makefile
2005-10-24 22:02:03 -07:00
enlightenment.spec
2004-11-24 19:37:45 -08:00
src/Makefile
src/bin/Makefile
src/modules/Makefile
src/modules/ibar/Makefile
2006-09-03 00:42:06 -07:00
src/modules/ibar/module.desktop
2004-12-27 00:33:52 -08:00
src/modules/dropshadow/Makefile
2006-09-03 00:42:06 -07:00
src/modules/dropshadow/module.desktop
2004-11-26 02:59:26 -08:00
src/modules/clock/Makefile
2006-09-03 00:42:06 -07:00
src/modules/clock/module.desktop
2005-01-09 11:02:18 -08:00
src/modules/pager/Makefile
2006-09-03 00:42:06 -07:00
src/modules/pager/module.desktop
2004-12-27 00:33:52 -08:00
src/modules/battery/Makefile
2006-09-03 00:42:06 -07:00
src/modules/battery/module.desktop
2005-01-01 18:39:44 -08:00
src/modules/temperature/Makefile
2006-09-03 00:42:06 -07:00
src/modules/temperature/module.desktop
2005-04-18 07:33:24 -07:00
src/modules/cpufreq/Makefile
2006-09-03 00:42:06 -07:00
src/modules/cpufreq/module.desktop
2005-05-13 14:19:04 -07:00
src/modules/ibox/Makefile
2006-09-03 00:42:06 -07:00
src/modules/ibox/module.desktop
2005-05-17 22:06:05 -07:00
src/modules/start/Makefile
2006-09-03 00:42:06 -07:00
src/modules/start/module.desktop
2006-10-22 03:03:59 -07:00
src/preload/Makefile
2004-11-24 19:37:45 -08:00
data/Makefile
data/fonts/Makefile
data/images/Makefile
data/init/Makefile
data/init/images/Makefile
2005-10-23 00:17:59 -07:00
data/input_methods/Makefile
2004-11-24 19:37:45 -08:00
data/themes/Makefile
data/themes/images/Makefile
data/other/Makefile
2005-07-03 00:23:03 -07:00
data/xsession/Makefile
data/xsession/enlightenment.desktop
2006-08-07 13:25:34 -07:00
data/backgrounds/Makefile
2006-09-03 01:51:32 -07:00
data/etc/Makefile
2006-09-11 02:36:32 -07:00
data/icons/Makefile
2004-11-24 19:37:45 -08:00
doc/Makefile
2006-11-03 11:01:28 -08:00
po/Makefile.in
2004-11-24 19:37:45 -08:00
enlightenment-config
2005-10-12 19:16:01 -07:00
debian/changelog
2004-11-24 19:37:45 -08:00
],[
chmod +x enlightenment-config
])