~ubuntu-branches/ubuntu/quantal/maildir-utils/quantal

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-02-28 19:30:03 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100228193003-95az0jwl5e2r31vf
Tags: 0.7-1
* Imported Upstream version 0.7
* disable upstream included make-index-silent patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
## along with this program; if not, write to the Free Software Foundation,
15
15
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  
16
16
 
17
 
AC_INIT([mu],[0.6],[http://www.djcbsoftware.nl/code/mu])
 
17
AC_INIT([mu],[0.7],[http://www.djcbsoftware.nl/code/mu])
18
18
AC_CONFIG_HEADERS([config.h])
19
 
AC_CONFIG_SRCDIR([src/mu.c])
 
19
AC_CONFIG_SRCDIR([src/mu.cc])
20
20
AM_INIT_AUTOMAKE([dist-bzip2])
21
21
 
 
22
# silent build
 
23
AM_SILENT_RULES([yes])
 
24
 
22
25
# we set the set the version of the Xapian database layout here; it
23
 
# will become part of the db name, so we can automtically recreate the
 
26
# will become part of the db name, so we can automatically recreate the
24
27
# database when we incompatible have changes.
25
28
#
26
29
# note that MU_XAPIAN_DB_VERSION does not necessarily follow MU
27
30
# versioning, as we hopefully don't have updates for each version;
28
31
# also, this has nothing to do with the version of the Xapian library
29
32
#
30
 
AC_DEFINE(MU_XAPIAN_DB_VERSION,["0.6"], [Schema version of the database])
 
33
AC_DEFINE(MU_XAPIAN_DB_VERSION,["7.0"], [Schema version of the database])
31
34
 
32
 
AC_PROG_LIBTOOL
 
35
LT_INIT # don't use AC_PROG_LIBTOOL anymore
33
36
 
34
37
AS_IF([test x$prefix = xNONE],[
35
38
   prefix=/usr/local])
37
40
 
38
41
AC_PROG_CC
39
42
AC_PROG_CXX
40
 
AM_PROG_CC_STDC
41
43
AC_HEADER_STDC
42
44
 
43
45
# require pkg-config
47
49
   *** The pkg-config script could not be found. Make sure it is
48
50
   *** in your path, or set the PKG_CONFIG environment variable
49
51
   *** to the full path to pkg-config.])
50
 
   ])
 
52
])
 
53
 
 
54
 
 
55
# check for pmccabe             
 
56
AC_PATH_PROG([PMCCABE], [pmccabe], [no])
 
57
AS_IF([test "x$PMCCABE" = "xno"],[
 
58
   AC_MSG_WARN([
 
59
   *** Developers: you don't seem to have the 'pmccabe' tool installed.
 
60
   *** Please install it if you want to run the automated code checks])
 
61
])
 
62
 
 
63
 
51
64
 
52
65
#
53
66
# currently, we don' support systems without d_type in their struct
59
72
AC_STRUCT_DIRENT_D_TYPE
60
73
AS_IF([test "x$ac_cv_member_struct_dirent_d_type" != "xyes"],[
61
74
   AC_MSG_ERROR([
62
 
   *** We need the d_type-member in struct dirent, but unfortunately
63
 
   *** your system does not seem to have it])
 
75
   *** We need the d_type member in struct dirent, but it seems
 
76
   *** your system does not have it])
64
77
   ])
65
78
# support for d_ino in struct dirent is optional     
66
79
AC_STRUCT_DIRENT_D_INO
67
80
 
68
81
 
69
82
# glib2?
70
 
PKG_CHECK_MODULES(GLIB,glib-2.0)
 
83
PKG_CHECK_MODULES(GLIB, glib-2.0 gio-2.0)
71
84
AC_SUBST(GLIB_CFLAGS)
72
85
AC_SUBST(GLIB_LIBS)
73
86
 
 
87
# g_test was introduced in glib 2.16
 
88
PKG_CHECK_MODULES(g_test,glib-2.0 >= 2.16,
 
89
                  [have_gtest=yes],[have_gtest=no])
 
90
AM_CONDITIONAL(HAVE_GTEST, test "x$have_gtest" = "xyes")
 
91
if test "x$have_gtest" = "xno"; then
 
92
   AC_MSG_WARN([You need GLIB version >= 2.16 to build the tests])
 
93
fi
 
94
 
 
95
 
74
96
# gmime2?       
75
97
PKG_CHECK_MODULES(GMIME,gmime-2.4)
76
98
AC_SUBST(GMIME_CFLAGS)
77
99
AC_SUBST(GMIME_LIBS)
78
100
 
 
101
 
79
102
# xapian?
80
103
AC_CHECK_PROG(XAPIAN,xapian-config,xapian-config,no)
81
104
AM_CONDITIONAL(HAVE_XAPIAN,test "x$XAPIAN" != "xno")
93
116
AC_SUBST(XAPIAN_CXXFLAGS)
94
117
AC_SUBST(XAPIAN_LIBS)
95
118
 
96
 
 
97
 
AC_OUTPUT([
 
119
AC_CONFIG_FILES([
98
120
Makefile
99
121
src/Makefile
 
122
src/tests/Makefile
100
123
man/Makefile
101
124
])
102
 
 
103
 
 
104
 
echo
 
125
AC_OUTPUT
 
126
 
 
127
 
 
128
echo 
105
129
echo "mu configuration is complete."
106
 
echo "type 'make' to build it"
 
130
echo "-----------------------------"
 
131
 
 
132
echo
 
133
echo "Note: the Xapian database is no longer stored as <muhome>/xapian-0.6"
 
134
echo "but instead simply as <muhome>/xapian. You can remove the older"
 
135
echo "<muhome>xapian-0.6 directory to save some disk space"
 
136
 
 
137
echo
 
138
echo "type 'make' to build mu, or 'make check' to run the unit tests."