# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-AC_INIT([modest],[1.0],[http://maemo.org])
+AC_INIT([modest],[3.0],[http://maemo.org])
AC_CONFIG_HEADERS([config.h])
+m4_define([modest_api_major_version], [1])
+m4_define([modest_api_minor_version], [0])
+m4_define([modest_api_micro_version], [0])
+m4_define([modest_api_version], [modest_api_major_version.modest_api_minor_version.modest_api_micro_version])
+
+
AC_CONFIG_SRCDIR(src/modest-main.c)
AM_INIT_AUTOMAKE([dist-bzip2])
+MODEST_API_MAJOR_VERSION=modest_api_major_version
+MODEST_API_MINOR_VERSION=modest_api_minor_version
+MODEST_API_MICRO_VERSION=modest_api_micro_version
+MODEST_API_VERSION=modest_api_version
+AC_SUBST(MODEST_API_MAJOR_VERSION)
+AC_SUBST(MODEST_API_MINOR_VERSION)
+AC_SUBST(MODEST_API_MICRO_VERSION)
+AC_SUBST(MODEST_API_VERSION)
+
ALL_LINGUAS="en_GB"
MODEST_LOCALE_DIR='$prefix/${DATADIRNAME}/locale'
fi
if test "$with_platform" = "maemo"; then
- MODEST_PLUGIN_DEFINES=" -DMODEST_PLATFORM_MAEMO"
+ MODEST_PLUGIN_DEFINES=" -DMODEST_PLATFORM_MAEMO -DMODEST_API_VERSION=${MODEST_API_VERSION}"
elif test "$with_platform" = "gnome"; then
- MODEST_PLUGIN_DEFINES=" -DMODEST_PLATFORM_GNOME"
+ MODEST_PLUGIN_DEFINES=" -DMODEST_PLATFORM_GNOME -DMODEST_API_VERSION=${MODEST_API_VERSION}"
fi
AC_SUBST(MODEST_PLUGIN_DEFINES)
echo "Plugin Packages $pluginpkgs"
AC_SUBST(pluginpkgs)
+use_profile_data=false
# Plugin packages must not include libcanberra and libprofile
if test "$have_hildon2" = "true"; then
echo "DETECTED HILDON 2 $have_hildon2."
detected_toolkit=hildon2
- hildonpkgs="$hildonpkgs libcanberra profile"
+ hildonpkgs="$hildonpkgs libcanberra"
+ AC_CHECK_HEADER([profiled/keys_nokia.h], use_profile_data=true, use_profile_data=false)
+ if test "$use_profile_data" = "true"; then
+ hildonpkgs="$hildonpkgs profile"
+ AC_DEFINE_UNQUOTED(MODEST_USE_PROFILE, 1, ["Use the Profile data include"])
+ fi
echo "HILDON 2 PACKAGES $hildonpkgs"
- AC_CHECK_HEADER([profiled/keys_nokia.h], [], AC_MSG_ERROR([You have to install package profile-data-dev]))
fi
AC_SUBST(hildonpkgs)