AM_GLIB_DEFINE_LOCALEDIR([MODEST_LOCALE_DIR])
AM_GLIB_GNU_GETTEXT
-
-
if test x$prefix = xNONE; then
prefix=/usr/local
fi
CFLAGS="$CFLAGS -O2 -Wall"
fi
+# Option to enable debugging
+AC_ARG_ENABLE(gcov,
+ [AC_HELP_STRING([--enable-gcov],[Coverage reporting (default=no)])],
+ [with_gcov=yes], [with_gcov=no])
+
+if test "x$with_gcov" == "xyes" ; then
+ CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
+ LDFLAGS="$LDFLAGS -lgcov"
+fi
+
dnl -------
detected_toolkit=hildon2
hildonpkgs="$hildonpkgs libcanberra profile"
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)