* bump glib version to 2.24, make gtest stuff non-optional
(even ubuntu 10.04 comes with 2.24, so that should be conservative enough)
This commit is contained in:
11
configure.ac
11
configure.ac
@ -103,19 +103,11 @@ AS_IF([test "x$PKG_CONFIG" = "xno"],[
|
|||||||
|
|
||||||
# glib2?
|
# glib2?
|
||||||
# we need 2.14 at least, because we use GRegex
|
# we need 2.14 at least, because we use GRegex
|
||||||
PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.14 gobject-2.0)
|
PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.24 gobject-2.0)
|
||||||
AC_SUBST(GLIB_CFLAGS)
|
AC_SUBST(GLIB_CFLAGS)
|
||||||
AC_SUBST(GLIB_LIBS)
|
AC_SUBST(GLIB_LIBS)
|
||||||
glib_version="`$PKG_CONFIG --modversion glib-2.0`"
|
glib_version="`$PKG_CONFIG --modversion glib-2.0`"
|
||||||
|
|
||||||
# gtest was introduced in glib 2.16; but we're also using
|
|
||||||
# g_test_log_set_fatal_handler, which was introduced in 2.22
|
|
||||||
PKG_CHECK_MODULES(g_test,glib-2.0 >= 2.22, [have_gtest=yes],[have_gtest=no])
|
|
||||||
AM_CONDITIONAL(BUILD_TESTS, test "x$have_gtest" = "xyes")
|
|
||||||
AS_IF([test "x$have_gtest" = "xno"],[
|
|
||||||
AC_MSG_WARN([You need GLIB version >= 2.22 to build the tests])
|
|
||||||
])
|
|
||||||
|
|
||||||
# gmime 2.4 or 2.6?
|
# gmime 2.4 or 2.6?
|
||||||
PKG_CHECK_MODULES(GMIME,gmime-2.6,[have_gmime_26=yes],[have_gmime_26=no])
|
PKG_CHECK_MODULES(GMIME,gmime-2.6,[have_gmime_26=yes],[have_gmime_26=no])
|
||||||
AS_IF([test "x$have_gmime_26" = "xno"],[
|
AS_IF([test "x$have_gmime_26" = "xno"],[
|
||||||
@ -371,7 +363,6 @@ fi
|
|||||||
echo
|
echo
|
||||||
echo "Build mu4e emacs frontend : $build_mu4e"
|
echo "Build mu4e emacs frontend : $build_mu4e"
|
||||||
echo "Build crypto support (gmime >= 2.6) : $have_gmime_26"
|
echo "Build crypto support (gmime >= 2.6) : $have_gmime_26"
|
||||||
echo "Build unit tests (glib >= 2.22) : $have_gtest"
|
|
||||||
echo "Build 'mug' toy-ui (gtk+/webkit) : $buildgui"
|
echo "Build 'mug' toy-ui (gtk+/webkit) : $buildgui"
|
||||||
echo "McCabe's Cyclomatic Complexity tool : $have_pmccabe"
|
echo "McCabe's Cyclomatic Complexity tool : $have_pmccabe"
|
||||||
echo
|
echo
|
||||||
|
|||||||
@ -18,11 +18,7 @@ include $(top_srcdir)/gtest.mk
|
|||||||
|
|
||||||
# note, we need top_builddir for snarfing with 'make distcheck' (ie.,
|
# note, we need top_builddir for snarfing with 'make distcheck' (ie.,
|
||||||
# with separate builddir)
|
# with separate builddir)
|
||||||
SUBDIRS= . mu examples
|
SUBDIRS= . mu examples tests
|
||||||
|
|
||||||
if BUILD_TESTS
|
|
||||||
SUBDIRS += tests
|
|
||||||
endif
|
|
||||||
|
|
||||||
INCLUDES=-I. -I${top_builddir} -I${top_srcdir}/lib ${GUILE_CFLAGS} ${GLIB_CFLAGS}
|
INCLUDES=-I. -I${top_builddir} -I${top_srcdir}/lib ${GUILE_CFLAGS} ${GLIB_CFLAGS}
|
||||||
|
|
||||||
|
|||||||
@ -18,11 +18,7 @@ include $(top_srcdir)/gtest.mk
|
|||||||
|
|
||||||
# enforce compiling guile (optionally) first,then this dir first
|
# enforce compiling guile (optionally) first,then this dir first
|
||||||
# before decending into tests/
|
# before decending into tests/
|
||||||
SUBDIRS= .
|
SUBDIRS= . tests
|
||||||
|
|
||||||
if BUILD_TESTS
|
|
||||||
SUBDIRS += tests
|
|
||||||
endif
|
|
||||||
|
|
||||||
if BUILD_CRYPTO
|
if BUILD_CRYPTO
|
||||||
crypto=mu-msg-crypto.c mu-msg-crypto.h
|
crypto=mu-msg-crypto.c mu-msg-crypto.h
|
||||||
|
|||||||
@ -18,11 +18,7 @@ include $(top_srcdir)/gtest.mk
|
|||||||
|
|
||||||
# enforce compiling guile (optionally) first,then this dir first
|
# enforce compiling guile (optionally) first,then this dir first
|
||||||
# before decending into tests/
|
# before decending into tests/
|
||||||
SUBDIRS= .
|
SUBDIRS= . tests
|
||||||
|
|
||||||
if BUILD_TESTS
|
|
||||||
SUBDIRS += tests
|
|
||||||
endif
|
|
||||||
|
|
||||||
INCLUDES=-I${top_srcdir}/lib $(GLIB_CFLAGS)
|
INCLUDES=-I${top_srcdir}/lib $(GLIB_CFLAGS)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user