~ubuntu-branches/ubuntu/lucid/evolution-indicator/lucid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
AC_PREREQ(2.53)
AC_INIT(evolution-indicator, 0.1.13, [])
AM_INIT_AUTOMAKE()
AC_CONFIG_SRCDIR(src/evolution-indicator.c)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_PROG_LIBTOOL

dnl ******************************
dnl Install in correct location
dnl ******************************

with_localinstall="no"

AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install in the local build directory instead of the system one (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
if test "x$with_localinstall" = "xyes"; then
	EVO_PLUGIN_DIR="${libdir}/evolution/2.26/plugins"
else
	EVO_PLUGIN_DIR=`pkg-config --variable=plugindir evolution-plugin`
fi
AC_SUBST(EVO_PLUGIN_DIR)


dnl ******************************
dnl i18n
dnl ******************************

GETTEXT_PACKAGE=evolution-indicator
AC_SUBST(GETTEXT_PACKAGE)
AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the Gettext package name])
ALL_LINGUAS="`cat "$srcdir/po/LINGUAS" | grep -v '^#'`"
		
IT_PROG_INTLTOOL([0.34])

AM_GLIB_GNU_GETTEXT

dnl GConf 
AC_PATH_PROG(GCONFTOOL, gconftool-2)
AM_GCONF_SOURCE_2

dnl We be tough with our -Werror
if test "x$GCC" = "xyes"; then
        GCC_FLAGS="-g -Wall -Werror"
fi
AC_SUBST(GCC_FLAGS)

PKG_CHECK_MODULES(DEPS, 
                  indicate
                  evolution-plugin
                  dbus-1
                  dbus-glib-1
                  libnotify
                  libcanberra
                  )
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)

AC_OUTPUT([
Makefile
data/Makefile
src/Makefile
po/Makefile.in
])