From dcc8a491133ec51f50ebb27d7182ec109b47e1e5 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 9 Mar 2016 15:57:09 -0800 Subject: web: split web into a module. There is currently no configuration to switch backend. Another patch will introduce it. --- m4/elm_check_option.m4 | 58 -------------------------------------------------- 1 file changed, 58 deletions(-) (limited to 'm4') diff --git a/m4/elm_check_option.m4 b/m4/elm_check_option.m4 index 9fae5ffaf..999636ad3 100644 --- a/m4/elm_check_option.m4 +++ b/m4/elm_check_option.m4 @@ -42,64 +42,6 @@ m4_popdef([UP])dnl m4_popdef([DOWN])dnl ]) -dnl use: ELM_CHECK_OPTION_DEP_EWK2() -AC_DEFUN([ELM_CHECK_OPTION_DEP_EWK2], -[dnl - -ELM_WEB2_DEF="#undef" -elementary_web="no" - -AC_ARG_WITH([elementary-web-backend], - [AS_HELP_STRING( - [--with-elementary-web-backend=@<:@ewebkit2/detect/none@:>@], - [Select the WebKit backend for Elementary to support web @<:@default=detect@:>@])], - [elementary_web_backend=${withval}], - [elementary_web_backend="detect"]) - -case "${elementary_web_backend}" in - ewebkit2|detect|none) - ;; - *) - AC_MSG_ERROR([Invalid web backend: must be ewebkit2, detect or none]) - ;; -esac - -if test "x${elementary_web_backend}" = "xdetect"; then - want_elementary_web="ewebkit2" -else - want_elementary_web=${elementary_web_backend} -fi - -AC_MSG_CHECKING([which web option to use]) -AC_MSG_RESULT([${want_elementary_web}]) - -if test "x${want_elementary_web}" != "xnone"; then - PKG_CHECK_EXISTS([$want_elementary_web], - [ - AC_DEFINE([HAVE_ELEMENTARY_WEB], [1], [Web support for Elementary]) - webkit_datadir=$(${PKG_CONFIG} ${want_elementary_web} --variable=datadir) - AC_DEFINE_UNQUOTED([WEBKIT_DATADIR], - ["${webkit_datadir}"], - ["WebKit's data dir"]) - ELM_WEB2_DEF="#define" - elementary_web=${want_elementary_web} - requirement_elm_pc="${want_elementary_web} ${requirement_elm_pc}" - ], - [elementary_web="no"] - ) -fi - -AC_MSG_CHECKING([whether to build web option]) -AC_MSG_RESULT([${elementary_web}]) - -if test "x${elementary_web_backend}" = "xewebkit2" && test "x${elementary_web}" = "xnone"; then - AC_MSG_ERROR([Web support requested, but no ${elementary_web_backend} found by pkg-config.]) -fi - -AC_SUBST([ELM_WEB2_DEF]) -]) - - dnl use: ELM_CHECK_OPTION(option, pkgver) AC_DEFUN([ELM_CHECK_OPTION], [dnl -- cgit v1.2.1