X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=configure.ac;h=e48eeadc4c5f4eb5b506cc9f6bd2f1bafe31037d;hb=fd382dbc5face5a3cf26d4e9b3fa2f78b3afce4c;hp=a55efb9a777dd926b5885cdbf93bae603926b990;hpb=89e06dbe362cc8192dd180381a6b189da4c37329;p=modest diff --git a/configure.ac b/configure.ac index a55efb9..e48eead 100644 --- a/configure.ac +++ b/configure.ac @@ -92,7 +92,7 @@ if test "x$with_platform" = "xmaemo"; then PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.9.9, hildon1=yes, hildon1=no) if test "$hildon1" == "yes"; then # the 'new' hildon - PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO, conic libtinymail-maemo-1.0 hildon-1 libosso libhildonmime osso-addressbook-1.0 wpeditor libossohelp libebook-1.2 libalarm) + PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO, conic libtinymail-maemo-1.0 hildon-1 libosso libhildonmime osso-addressbook-1.0 wpeditor hildon-help libebook-1.2 libalarm) else # the old hildon PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO, conic libtinymail-maemo-1.0 hildon-libs >= 0.12.0 libosso libossomime libossohelp osso-addressbook-1.0 libwpeditor-plus libebook-1.2 libalarm gnome-vfs-module-2.0) @@ -209,6 +209,28 @@ GTK_DOC_CHECK([1.0]) dnl Intltool utility programs #AC_PROG_INTLTOOL([0.33.0],[no-xml]) +#dnl wether we can and should build the +#dnl search plugin +PKG_CHECK_MODULES(OGS, libosso >= 0.8.5 libogs-1.2, have_ogs=true, have_ogs=false) + +have_ogs_support=false +AC_ARG_ENABLE(ogs_support, +AC_HELP_STRING([--enable-ogs-support], + [Build with osso global search support (yes, no)]), +[case "${enableval}" in + yes) + if test x$have_ogs = xfalse; then + AC_MSG_ERROR([building of ogs support requested and libogs-1.2 not found]) + fi + ;; + *) + have_ogs_support=false + ;; +esac],[have_ogs_support=$have_ogs]) + +if test x$have_ogs_support = xtrue; then + AC_DEFINE_UNQUOTED(MODEST_HAVE_OGS, 1, ["Whether ogs is available."]) +fi AC_OUTPUT([ po/Makefile.in @@ -238,6 +260,7 @@ echo "Platform : $with_platform" echo "Build easy setup : $have_easysetup" echo "Build tests : $build_tests" echo "Build docs : $build_docs" +echo "libogs support : $have_ogs_support" echo "Debug version : $with_debug" echo "" echo "NOTE: you should do a 'make clean' after changing architecture or platform (--with-platform=)"