[Obsolete: Only webkit is used as HTML engine now]),
[],[with_html_engine="webkit"])
AC_MSG_RESULT([$with_html_engine])
case "$with_html_engine" in
gtkhtml)
# check for gtkhtml >= 3.14 with gtkprint support
gtkhtml=0
PKG_CHECK_MODULES(GTKHTML, libgtkhtml-3.14, [
# check for gtkhtml >= 3.16 (includes gtk_html_print_operation_run())
AC_MSG_CHECKING(for GtkHTML - version >= 3.16.0)
if $PKG_CONFIG 'libgtkhtml-3.14 >= 3.16.0'; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GTKHTML_3_16,1,[System has gtkhtml 3.16.0 or better])
HAVE_GTKHTML_3_16=1
else
AC_MSG_RESULT(no)
fi
], [
AC_MSG_ERROR([cannot find GtkHTML >= 3.14])
])
# No more gtkhtml in gnucash-2.5.0
AC_MSG_ERROR([gtkhtml is no longer sufficient for gnucash, as we now require the CSS/javascript features using webkit. Please remove your --with-html-engine argument from configure.])
;;
webkit)
PKG_CHECK_MODULES(WEBKIT, webkit-1.0 >= "1.0")
AC_DEFINE(WANT_WEBKIT,1,[Use webkit instead of gtkhtml])
AC_DEFINE(WANT_WEBKIT,1,[Use webkit])
case "$platform" in
win32)
# 1.1.90 has both functions
@ -1008,26 +995,16 @@ then
esac
;;
*) AC_MSG_ERROR([Invalid HTML engine: must be gtkhtml or webkit]) ;;
*) AC_MSG_ERROR([Invalid HTML engine: must be webkit]) ;;