2007-10-20 06:14:52 -07:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
# get rid of that stupid cache mechanism
|
|
|
|
rm -f config.cache
|
|
|
|
|
2007-11-12 13:09:05 -08:00
|
|
|
AC_INIT(penguins, 0.0.1, enlightenment-devel@lists.sourceforge.net)
|
|
|
|
AC_PREREQ(2.52)
|
|
|
|
AC_CONFIG_SRCDIR(configure.in)
|
2007-10-20 06:14:52 -07:00
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
AC_CANONICAL_HOST
|
2007-11-12 13:09:05 -08:00
|
|
|
AC_ISC_POSIX
|
2007-10-20 06:14:52 -07:00
|
|
|
|
2007-11-12 13:09:05 -08:00
|
|
|
AM_INIT_AUTOMAKE(1.6)
|
2007-10-20 06:14:52 -07:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2007-11-12 13:09:05 -08:00
|
|
|
|
2007-10-20 06:14:52 -07:00
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_C_CONST
|
2007-11-12 13:09:05 -08:00
|
|
|
|
|
|
|
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
|
|
|
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
|
|
|
AC_PROG_LIBTOOL
|
2007-10-20 06:14:52 -07:00
|
|
|
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
AM_GNU_GETTEXT_VERSION(0.14)
|
|
|
|
|
|
|
|
MODULE_ARCH="$host_os-$host_cpu"
|
|
|
|
AC_SUBST(MODULE_ARCH)
|
|
|
|
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
|
|
|
|
|
|
|
|
AC_ARG_WITH(enlightenment-config,
|
2007-11-12 22:39:04 -08:00
|
|
|
AS_HELP_STRING([--with-enlightenment-config=E_CONFIG], [use enlightenment-config specified]),
|
2007-11-12 13:09:05 -08:00
|
|
|
[
|
|
|
|
E_CONFIG=$withval;
|
|
|
|
echo "using "$E_CONFIG" for enlightenment-config";
|
|
|
|
], [
|
|
|
|
PROG="enlightenment-config";
|
|
|
|
AC_PATH_PROG(E_CONFIG, $PROG, "", $PATH)
|
|
|
|
]
|
|
|
|
)
|
2007-10-20 06:14:52 -07:00
|
|
|
e_cflags=`$E_CONFIG --cflags`
|
|
|
|
e_libs=`$E_CONFIG --libs`
|
|
|
|
e_modules=`$E_CONFIG --module-dir`
|
|
|
|
AC_SUBST(e_cflags)
|
|
|
|
AC_SUBST(e_libs)
|
2007-11-12 13:09:05 -08:00
|
|
|
|
|
|
|
dnl TODO: Fix better install for homedir
|
|
|
|
datadir="${e_modules}/${PACKAGE}"
|
2007-10-20 06:14:52 -07:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
e_modules-penguins.spec
|
2007-11-07 13:52:00 -08:00
|
|
|
po/Makefile.in
|
2007-10-20 06:14:52 -07:00
|
|
|
themes/Makefile
|
|
|
|
themes/default/Makefile
|
|
|
|
themes/lemmings/Makefile
|
2007-11-12 13:09:05 -08:00
|
|
|
], [
|
2007-10-20 06:14:52 -07:00
|
|
|
])
|
|
|
|
|