forked from acidrain42/evolution-on
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
121 lines (99 loc) · 3.12 KB
/
configure.ac
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
AC_INIT([evolution-on], [3.24.2], [https://github.com/KostadinAtanasov/evolution-on])
AC_CONFIG_SRCDIR(src)
AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
AM_MAINTAINER_MODE
dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
GLIB_GSETTINGS
AC_PROG_INTLTOOL([0.21])
AC_PROG_CC
AC_ISC_POSIX
AC_HEADER_STDC
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
GNOME_COMPILE_WARNINGS
EVOLUTION_INIT
dnl base packages and versions
LIBGTK_REQUIRED=3.6.0
EVOLUTION_REQUIRED=3.6.4
AC_SUBST(LIBGTK_REQUIRED)
AC_SUBST(EVOLUTION_REQUIRED)
LIBGCONFBRIDGE_CFLAGS=
LIBGCONFBRIDGE_LIBS=
PKG_CHECK_MODULES([LIBGCONFBRIDGE], libgconf-bridge, [HAVE_LIBGCONFBRIDGE="yes"], [HAVE_LIBGCONFBRIDGE="no"])
if test "x$HAVE_LIBGCONFBRIDGE" == "xyes"; then
AC_DEFINE(HAVE_LIBGCONFBRIDGE, 1, [libgconf-bridge available])
AC_SUBST(HAVE_LIBGCONFBRIDGE)
fi
AC_SUBST(LIBGCONFBRIDGE_CFLAGS)
AC_SUBST(LIBGCONFBRIDGE_LIBS)
EVOLUTIO_PLUGIN_CHECK="evolution-plugin$EVOLUTION_BASE_VERSION_S >= $EVOLUTION_REQUIRED"
if test "$evolution_version_int" -ge "31191"; then
EVOLUTIO_PLUGIN_CHECK=
fi
PKG_CHECK_MODULES(TRAY_EPLUGIN,
[gtk+-3.0 >= $LIBGTK_REQUIRED dnl
$EVOLUTIO_PLUGIN_CHECK dnl
evolution-shell$EVOLUTION_BASE_VERSION_S >= $EVOLUTION_REQUIRED dnl
])
libnotify_minimum_version="0.5.1"
dnl ***************
dnl Libnotify Flags
dnl ***************
LIBNOTIFY_CFLAGS=
LIBNOTIFY_LIBS=
PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= $libnotify_minimum_version], [HAVE_LIBNOTIFY="yes"], [HAVE_LIBNOTIFY="no"])
if test "x$HAVE_LIBNOTIFY" = "xyes"; then
AC_DEFINE(HAVE_LIBNOTIFY, 1, [libnotify available])
libnotify="libnotify"
else
libnotify=""
fi
AC_SUBST(LIBNOTIFY_CFLAGS)
AC_SUBST(LIBNOTIFY_LIBS)
LIBNOTIFY_S_VERSION=`$PKG_CONFIG --modversion libnotify`
LIBNOTIFY_VERSION=`echo $LIBNOTIFY_S_VERSION|$AWK -F . '{print $1 * 1000000 + $2 * 1000 + $3}'`
AC_SUBST(LIBNOTIFY_VERSION)
dnl ***********
dnl GConf stuff
dnl ***********
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
AM_GCONF_SOURCE_2
dnl ***************
dnl Libappindicator stuff
dnl ***************
LIBAPPINDICATOR_CFLAGS=
LIBAPPINDICATOR_LIBS=
AC_ARG_WITH(libappindicator, [ --with-libappindicator=yes use libappindicator instead of systray])
if test "x$with_libappindicator" != "x"; then
PKG_CHECK_MODULES([libappindicator], [appindicator3-0.1], [HAVE_LIBAPPINDICATOR="yes"], [HAVE_LIBAPPINDICATOR="no"])
if test "x$HAVE_LIBAPPINDICATOR" = "xyes"; then
AC_DEFINE(HAVE_LIBAPPINDICATOR, 1, [libappindicator available])
fi
fi
AC_SUBST([libappindicator_CFLAGS])
AC_SUBST([libappindicator_LIBS])
dnl Internationalisation stuff
ALL_LINGUAS="en"
GETTEXT_PACKAGE=evolution-on
AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [definition of GETTEXT_PACKAGE])
AM_GLIB_DEFINE_LOCALEDIR(GNOMELOCALEDIR)
LOCALEDIR=$localedir
AC_SUBST(LOCALEDIR)
# Generated files from automake
AC_CONFIG_FILES([
Makefile
po/Makefile.in
src/Makefile
])
AC_OUTPUT
echo ""
echo "Evolution on plugin successfully configured"
echo ""
echo " Installation path: $PLUGIN_INSTALL_DIR"
echo ""