forked from hb/claws_mail_gnome_plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
72 lines (58 loc) · 1.71 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
AC_PREREQ(2.60)
AC_INIT([gnome_plugin], [0.2.2])
AC_CONFIG_SRCDIR([src/gnome_plugin.c])
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS(config.h)
AC_PROG_CC
AC_ISC_POSIX
AM_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_CPP
AC_PROG_LIBTOOL
AC_PROG_MKDIR_P
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
CFLAGS="$CFLAGS -Wall"
if test $USE_MAINTAINER_MODE = yes; then
CFLAGS="$CFLAGS -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED"
fi
dnl Find pkg-config
PKG_PROG_PKG_CONFIG
if test -z "$PKG_CONFIG" ; then
AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
fi
if test -z $prefix || test "${prefix}" = "NONE" ; then
prefix=$( $PKG_CONFIG --variable=prefix claws-mail )
CLAWS_MAIL_PLUGINDIR=$( $PKG_CONFIG --variable=plugindir claws-mail )
else
CLAWS_MAIL_PLUGINDIR='${libdir}/claws-mail/plugins'
fi
dnl Check for claws-mail
PKG_CHECK_MODULES(CLAWS_MAIL, claws-mail >= 3.9.3)
AC_SUBST(CLAWS_MAIL_CFLAGS)
AC_SUBST(CLAWS_MAIL_LIBS)
AC_SUBST(CLAWS_MAIL_PLUGINDIR)
dnl Check for GLib
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6)
GLIB_GENMARSHAL=$( $PKG_CONFIG --variable=glib_genmarshal glib-2.0 )
AC_SUBST(GLIB_GENMARSHAL)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
dnl Check for GTK+
PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.20)
dnl EDS support via libebook
LIBEBOOK_REQUIRED=3.6
PKG_CHECK_MODULES(LIBEBOOK, libebook-1.2 >= $LIBEBOOK_REQUIRED)
AC_SUBST(LIBEBOOK_CFLAGS)
AC_SUBST(LIBEBOOK_LIBS)
dnl libsecret, library for storing and retrieving passwords
PKG_CHECK_MODULES([LIBSECRET], [libsecret-1])
AC_SUBST(LIBSECRET_CFLAGS)
AC_SUBST(LIBSECRET_LIBS)
AC_OUTPUT([
Makefile
src/Makefile
])