X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=configure.ac;h=60833678e00a535a57e5e065b61e257bd10a7344;hp=d9239a531ee0ed9878bf8ebad0f7d4d281b9385a;hb=4a97c4a2b6ba57b415de727f389f44505f032824;hpb=d6e173eccef9f61733456b2f227ce77aa35588a2 diff --git a/configure.ac b/configure.ac index d9239a5..6083367 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,7 @@ fi AC_SUBST(prefix) AC_PROG_CC +AC_PROG_CXX AM_PROG_CC_STDC AC_HEADER_STDC AC_PROG_LIBTOOL @@ -79,8 +80,10 @@ LIBS="$modest_save_libs" __COPY_LIBS="$LIBS" LIBS="$LIBS $MODEST_GSTUFF_LIBS" AC_CHECK_FUNCS(gtk_html_get_selection_area) -LIBS="$__COPY_LIBS" AC_SUBST(HAVE_GTK_HTML_GET_SELECTION_AREA) +AC_CHECK_FUNCS(gtk_tree_view_column_get_cell_data_hint) +AC_SUBST(HAVE_GTK_TREE_VIEW_COLUMN_GET_CELL_DATA_HINT) +LIBS="$__COPY_LIBS" dnl dnl now, determine what to build dnl AC_MSG_NOTICE([Determining what platform to build]) @@ -102,6 +105,23 @@ if test "$MODEST_PLATFORM" = "detect"; then with_platform=$detected_platform fi + +dnl Whether to use maemo-launcher or not +AC_ARG_ENABLE([maemo-launcher], + [AS_HELP_STRING([--enable-maemo-launcher], + [build with maemo-launcher support])], + [case "${enableval}" in + yes) maemo_launcher=true ;; + no) maemo_launcher=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-maemo-launcher]) ;; + esac], [maemo_launcher=false]) +if test x$maemo_launcher = xtrue +then + PKG_CHECK_MODULES(MAEMO_LAUNCHER, [maemo-launcher-app]) + AC_SUBST(MAEMO_LAUNCHER_CFLAGS) + AC_SUBST(MAEMO_LAUNCHER_LIBS) +fi + have_easysetup=false if test "x$with_platform" == "xgnome"; then PKG_CHECK_MODULES(MODEST_PLATFORM,libtinymail-gnome-desktop-1.0 libnm_glib glib-2.0 >= 2.8 gtk+-2.0 >= 2.10 libnotify) @@ -121,7 +141,6 @@ AC_SUBST(MODEST_PLATFORM) - # # check for wpeditor or libwpeditor-plus (on maemo) # @@ -157,7 +176,20 @@ else fi fi - +# +# check for MCE +# +if test "x$with_platform" == "xmaemo"; then +PKG_CHECK_MODULES(MODEST_MCE,mce,have_mce=true,have_mce=false) +if test "x$have_mce" == "xtrue"; then + mce="mce" + AC_DEFINE_UNQUOTED(MODEST_HAVE_MCE, 1, ["Whether mce is used."]) + AC_SUBST(MODEST_MCE_CFLAGS) + AC_SUBST(MODEST_MCE_LIBS) +else + mce="" +fi +fi # # check for libconic; this is a trick to check whether we run @@ -449,11 +481,13 @@ echo "Build docs : $build_docs" echo "Gettext Package : $GETTEXT_PACKAGE" if test "x$with_platform" == "xmaemo"; then + echo "Maemo Launcher : $maemo_launcher" echo "Editor lib : $wpeditor" echo "Addressbook : $have_abook" echo "Help lib : $helplib" echo "libconic support : $have_libconic" echo "Alarm : $have_libalarm" + echo "MCE : $have_mce" echo "Hildon-Notify : $have_hildon_notify" echo "LibOGS support : $have_ogs_support" echo "MozEmbed support : $use_mozembed"