enlightenment-module-wallpa.../configure.ac

78 lines
1.8 KiB
Plaintext

dnl Process this file with autoconf to produce a configure script.
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT(wallpaper2, 0.1, enlightenment-devel@lists.sourceforge.net)
AC_CONFIG_MACRO_DIR([m4])
AC_PREREQ(2.52)
AC_CONFIG_SRCDIR(configure.ac)
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_ISC_POSIX
AM_INIT_AUTOMAKE([1.8 dist-bzip2])
AM_CONFIG_HEADER(config.h)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PROG_CC
AM_PROG_CC_STDC
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
AM_GNU_GETTEXT_VERSION([0.14])
])
m4_ifdef([AM_GNU_GETTEXT], [
AM_GNU_GETTEXT([external])
po_makefile_in=po/Makefile.in
AM_CONDITIONAL([HAVE_PO], [true])
],[
AM_CONDITIONAL([HAVE_PO], [false])
])
AC_SUBST(LTLIBINTL)
PKG_CHECK_MODULES([E], [enlightenment > 0.18.99])
release=$(pkg-config --variable=release enlightenment)
MODULE_ARCH="$host_os-$host_cpu-$release"
AC_SUBST(MODULE_ARCH)
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
module_dir="$(pkg-config --variable=modules enlightenment)"
AC_SUBST(module_dir)
datadir="$module_dir/wallpaper2"
# Find 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
## ],[
## EDJE_CC=$(pkg-config --variable=prefix edje)/bin/edje_cc
## ]
##)
##AC_SUBST(EDJE_CC)
##AC_MSG_CHECKING([Which edje_cc to use])
##AC_MSG_RESULT(${EDJE_CC})
m4_ifdef([v_mic],
[
EFL_COMPILER_FLAG([-Wshadow])
EFL_COMPILER_FLAG([-Wall])
EFL_COMPILER_FLAG([-Wpointer-arith])
EFL_COMPILER_FLAG([-W])
EFL_COMPILER_FLAG([-Wno-missing-field-initializers])
])
AC_OUTPUT([
Makefile
src/Makefile
module.desktop
$po_makefile_in
], [
])