+AM_CONDITIONAL(BUILD_DBUSAPI, test x$dbus_api = xdbus_api)
+
+dnl do we have the easy setup stuff?
+have_easysetup=false
+if test -d src/${with_platform}/easysetup; then
+ have_easysetup=true
+ AC_DEFINE_UNQUOTED(MODEST_HAVE_EASYSETUP, 1, ["Whether the easysetup feature is available."])
+
+ # Just check that the dependency exists:
+ PKG_CHECK_MODULES(MODEST_PROVIDERS_DATA, modest-providers-data)
+
+ # Get the location of the ISO-Codes (currencies, languages) files:
+ AC_DEFINE_UNQUOTED([MODEST_PROVIDERS_DATA_PATH],["`$PKG_CONFIG --variable=path modest-providers-data`"],[modest-providers-data file path])
+fi
+AM_CONDITIONAL(MODEST_HAVE_EASYSETUP,test x$have_easysetup = xtrue)
+
+
+dnl ## setup the testing framework (ie., make check)
+build_tests=false
+AC_ARG_ENABLE(tests,
+AC_HELP_STRING([--enable-tests],
+ [Build tests (no, yes)]),
+[case "${enableval}" in
+ yes)
+ build_tests=true ;;
+ *) build_tests=false ;;
+esac],[build_tests=false])
+AM_CONDITIONAL(BUILD_TESTS, test x$build_tests = xtrue)
+
+
+
+dnl ## is the check package installed?
+if test x$build_tests = xtrue; then
+ PKG_CHECK_MODULES(CHECK, check >= 0.9.4 glib-2.0)
+fi
+
+
+
+dnl ## do we want documentation (gtk-doc)
+build_docs=false
+AC_ARG_ENABLE(docs,
+AC_HELP_STRING([--enable-docs],
+ [Build documentation (yes, no)]),
+[case "${enableval}" in
+ yes)
+ build_docs=true ;;
+ *) build_docs=false ;;
+esac],[build_docs=false])
+AM_CONDITIONAL(BUILD_DOCS, test x$build_docs = xtrue)
+
+dnl ## gtk-doc
+GTK_DOC_CHECK([1.0])
+
+dnl Intltool utility programs
+#AC_PROG_INTLTOOL([0.33.0],[no-xml])
+
+
+