diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2016-03-09 15:57:09 -0800 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2016-03-09 16:55:48 -0800 |
commit | dcc8a491133ec51f50ebb27d7182ec109b47e1e5 (patch) | |
tree | 7fbe91e97afae4e6810eb1ca700ec7e6137a9711 /m4 | |
parent | de897d633f58b81a3b73c0af3ff3c586fdeb8056 (diff) | |
download | elementary-dcc8a491133ec51f50ebb27d7182ec109b47e1e5.tar.gz |
web: split web into a module.
There is currently no configuration to switch backend. Another patch
will introduce it.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/elm_check_option.m4 | 58 |
1 files changed, 0 insertions, 58 deletions
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 |