1
AC_INIT(almanah, 0.4.0)
3
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
4
AM_CONFIG_HEADER(config.h)
12
dnl ***************************************************************************
14
dnl ***************************************************************************
16
AC_ARG_ENABLE([debug],
17
[ --enable-debug Turn on debugging],
18
[case "${enableval}" in
21
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
24
if test $debug = "true"; then
25
AC_DEFINE([ENABLE_DEBUG],[1],[Define if you want debugging enabled])
28
AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
30
AC_ARG_ENABLE([encryption],
31
[ --enable-encryption Enable database encryption support],
32
[case "${enableval}" in
33
yes) encryption=true ;;
34
no) encryption=false ;;
35
*) AC_MSG_ERROR([bad value ${enableval} for --enable-encryption]) ;;
36
esac],[encryption=true])
38
if test $encryption = "true"; then
39
AC_DEFINE([ENABLE_ENCRYPTION],[1],[Define if you want database encryption support])
42
AM_CONDITIONAL([ENCRYPTION], [test x$encryption = xtrue])
44
dnl ***************************************************************************
45
dnl Internationalisation
46
dnl ***************************************************************************
48
GETTEXT_PACKAGE=almanah
49
AC_SUBST(GETTEXT_PACKAGE)
50
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
52
IT_PROG_INTLTOOL([0.35.0])
56
PKG_CHECK_MODULES(STANDARD, glib-2.0 gtk+-2.0 >= 2.12 gmodule-2.0 gio-2.0 sqlite3 gtkspell-2.0 cairo)
57
AC_SUBST(STANDARD_CFLAGS)
58
AC_SUBST(STANDARD_LIBS)
60
if test $encryption = "true"; then
61
PKG_CHECK_MODULES(ENCRYPTION, gconf-2.0)
63
dnl Check for GPGME, which doesn't provide a pkgconfig file
64
dnl This code courtesy of seahorse
65
min_gpgme_version=1.0.0
66
AC_PATH_PROG(GPGME_CONFIG, gpgme-config, "failed")
67
if test $GPGME_CONFIG != "failed" ; then
68
AC_MSG_CHECKING(for GPGME)
69
req_major=`echo $min_gpgme_version | \
70
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
71
req_minor=`echo $min_gpgme_version | \
72
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
73
req_micro=`echo $min_gpgme_version | \
74
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
75
gpgme_config_version=`$GPGME_CONFIG --version`
76
major=`echo $gpgme_config_version | \
77
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
78
minor=`echo $gpgme_config_version | \
79
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
80
micro=`echo $gpgme_config_version | \
81
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
83
if test "$major" -eq "$req_major"; then
84
if test "$minor" -ge "$req_minor"; then
85
if test "$micro" -ge "$req_micro"; then
92
if test $ok = "yes"; then
93
ENCRYPTION_CFLAGS="$ENCRYPTION_CFLAGS `$GPGME_CONFIG --cflags`"
94
ENCRYPTION_LIBS="$ENCRYPTION_LIBS `$GPGME_CONFIG --libs`"
97
AC_MSG_ERROR(GPGME $min_gpgme_version or later needed)
104
AC_SUBST(ENCRYPTION_CFLAGS)
105
AC_SUBST(ENCRYPTION_LIBS)
113
data/icons/16x16/Makefile
114
data/icons/22x22/Makefile
115
data/icons/32x32/Makefile
116
data/icons/48x48/Makefile