summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-03-09 15:57:09 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-03-09 16:55:48 -0800
commitdcc8a491133ec51f50ebb27d7182ec109b47e1e5 (patch)
tree7fbe91e97afae4e6810eb1ca700ec7e6137a9711 /configure.ac
parentde897d633f58b81a3b73c0af3ff3c586fdeb8056 (diff)
web: split web into a module.
There is currently no configuration to switch backend. Another patch will introduce it.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac149
1 files changed, 93 insertions, 56 deletions
diff --git a/configure.ac b/configure.ac
index 741217ae5..038ebab4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,58 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
25LT_INIT([win32-dll disable-static pic-only]) 25LT_INIT([win32-dll disable-static pic-only])
26EFL_INIT 26EFL_INIT
27 27
28### Checks for programs
29
30# compilers
31AC_PROG_CC
32AC_PROG_CC_STDC
33AC_PROG_CXX
34
35EFL_CXX_COMPILE_STDCXX_11([ext])
36
37# pkg-config
38PKG_PROG_PKG_CONFIG
39
40# gettext
41m4_ifdef([AM_GNU_GETTEXT_VERSION], [
42AM_GNU_GETTEXT_VERSION([0.18])
43])
44
45m4_ifdef([AM_GNU_GETTEXT], [
46AM_GNU_GETTEXT([external])
47po_makefile_in=po/Makefile.in
48have_po="yes"
49],[
50have_po="no"
51])
52AC_SUBST([LTLIBINTL])
53
54if test "x${POSUB}" = "x" ; then
55 have_po="no"
56fi
57
58AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
59
60# doxygen
61EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
62
63# EFL binaries
64EFL_WITH_BIN([eet], [eet-eet], [eet])
65EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
66EFL_WITH_BIN([elementary], [elementary-codegen], [elementary_codegen])
67EFL_WITH_BIN([elementary], [elm-prefs-cc], [elm_prefs_cc])
68EFL_WITH_BIN([eolian], [eolian-gen], [eolian_gen])
69EFL_WITH_BIN([eolian-cxx], [eolian-cxx], [eolian_cxx])
70EFL_WITH_BIN([eldbus], [eldbus_codegen], [eldbus-codegen])
71# Force the helper to try external eolian generators
72AM_CONDITIONAL([HAVE_EOLIAN_GEN], [true])
73AM_CONDITIONAL([HAVE_EOLIAN_CXX], [true])
74AM_CONDITIONAL([HAVE_EOLIAN_JS], [true])
75
76EFL_ENABLE_BIN([elementary-test])
77EFL_ENABLE_BIN([elementary-codegen])
78EFL_ENABLE_BIN([elm-prefs-cc])
79EFL_ENABLE_BIN([elementary-config])
28 80
29### Additional options to configure 81### Additional options to configure
30 82
@@ -113,6 +165,43 @@ AC_ARG_ENABLE([quick-launch],
113 [want_quicklaunch=$enableval], 165 [want_quicklaunch=$enableval],
114 [want_quicklaunch="auto"]) 166 [want_quicklaunch="auto"])
115 167
168# Webkit support
169AC_ARG_WITH([elementary-web-backend],
170 [AS_HELP_STRING([--with-elementary-web-backend=@<:@ewebkit2/detect/none@:>@],
171 [Select the WebKit backend for Elementary to support web @<:@default=detect@:>@])],
172 [elementary_web_backend=${withval}],
173 [elementary_web_backend="detect"])
174
175elementary_webkit2="no"
176elementary_web="none"
177
178case "${elementary_web_backend}" in
179 ewebkit2|detect)
180# For now only ewebkit2 exist so detect is similar to it
181 PKG_CHECK_MODULES([EWEBKIT2], [ewebkit2],
182 [elementary_webkit2="yes"],
183 [elementary_webkit2="no"])
184 ;;
185 none)
186 ;;
187 *)
188 AC_MSG_ERROR([Invalid web backend: must be ewebkit2, detect or none instead of '${elementary_web_backend}'])
189 ;;
190esac
191
192if test "x${elementary_webkit2}" = "xyes"; then
193 AC_DEFINE([HAVE_ELEMENTARY_WEB], [1], [Web support for Elementary])
194 webkit_datadir=$(${PKG_CONFIG} ewebkit2 --variable=datadir)
195 AC_DEFINE_UNQUOTED([WEBKIT_DATADIR],
196 ["${webkit_datadir}"],
197 ["WebKit's data dir"])
198 ELM_WEB2_DEF="#define"
199 elementary_web="ewebkit2"
200fi
201AM_CONDITIONAL([HAVE_EWEBKIT2], [test "x${elementary_web}" = "xewebkit2"])
202
203AC_MSG_CHECKING([whether to build web option])
204AC_MSG_RESULT([${elementary_web}])
116 205
117### Default options with respect to host and default values 206### Default options with respect to host and default values
118 207
@@ -156,60 +245,6 @@ AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
156AC_SUBST([ELM_UNIX_DEF]) 245AC_SUBST([ELM_UNIX_DEF])
157AC_SUBST([ELM_WIN32_DEF]) 246AC_SUBST([ELM_WIN32_DEF])
158 247
159### Checks for programs
160
161# compilers
162AC_PROG_CC
163AC_PROG_CC_STDC
164AC_PROG_CXX
165
166EFL_CXX_COMPILE_STDCXX_11([ext])
167
168# pkg-config
169PKG_PROG_PKG_CONFIG
170
171# gettext
172m4_ifdef([AM_GNU_GETTEXT_VERSION], [
173AM_GNU_GETTEXT_VERSION([0.18])
174])
175
176m4_ifdef([AM_GNU_GETTEXT], [
177AM_GNU_GETTEXT([external])
178po_makefile_in=po/Makefile.in
179have_po="yes"
180],[
181have_po="no"
182])
183AC_SUBST([LTLIBINTL])
184
185if test "x${POSUB}" = "x" ; then
186 have_po="no"
187fi
188
189AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
190
191# doxygen
192EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
193
194# EFL binaries
195EFL_WITH_BIN([eet], [eet-eet], [eet])
196EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
197EFL_WITH_BIN([elementary], [elementary-codegen], [elementary_codegen])
198EFL_WITH_BIN([elementary], [elm-prefs-cc], [elm_prefs_cc])
199EFL_WITH_BIN([eolian], [eolian-gen], [eolian_gen])
200EFL_WITH_BIN([eolian-cxx], [eolian-cxx], [eolian_cxx])
201EFL_WITH_BIN([eldbus], [eldbus_codegen], [eldbus-codegen])
202# Force the helper to try external eolian generators
203AM_CONDITIONAL([HAVE_EOLIAN_GEN], [true])
204AM_CONDITIONAL([HAVE_EOLIAN_CXX], [true])
205AM_CONDITIONAL([HAVE_EOLIAN_JS], [true])
206
207EFL_ENABLE_BIN([elementary-test])
208EFL_ENABLE_BIN([elementary-codegen])
209EFL_ENABLE_BIN([elm-prefs-cc])
210EFL_ENABLE_BIN([elementary-config])
211
212
213### Checks for libraries 248### Checks for libraries
214 249
215requirement_elm_pc="" 250requirement_elm_pc=""
@@ -263,7 +298,6 @@ ELM_CHECK_OPTION([elocation], [0.1.0])
263ELM_CHECK_OPTION([eweather], [0.2.0]) 298ELM_CHECK_OPTION([eweather], [0.2.0])
264# emap is in svn : trunk/PROTO 299# emap is in svn : trunk/PROTO
265ELM_CHECK_OPTION([emap], [0.1.0]) 300ELM_CHECK_OPTION([emap], [0.1.0])
266ELM_CHECK_OPTION([eweb])
267 301
268if test "x${HAVE_CXX11}" = "x1" -a "x${want_cxx11}" = "xyes"; then 302if test "x${HAVE_CXX11}" = "x1" -a "x${want_cxx11}" = "xyes"; then
269 PKG_CHECK_MODULES([ELEMENTARY_CXX], 303 PKG_CHECK_MODULES([ELEMENTARY_CXX],
@@ -564,6 +598,9 @@ src/modules/access_output/Makefile
564src/modules/datetime_input_ctxpopup/Makefile 598src/modules/datetime_input_ctxpopup/Makefile
565src/modules/test_entry/Makefile 599src/modules/test_entry/Makefile
566src/modules/test_map/Makefile 600src/modules/test_map/Makefile
601src/modules/web/Makefile
602src/modules/web/none/Makefile
603src/modules/web/webkit2/Makefile
567src/edje_externals/Makefile 604src/edje_externals/Makefile
568src/examples/Makefile 605src/examples/Makefile
569src/examples/sphere_hunter/Makefile 606src/examples/sphere_hunter/Makefile
@@ -616,7 +653,7 @@ echo
616echo " Features:" 653echo " Features:"
617echo " EWeather...............: ${have_elementary_eweather}" 654echo " EWeather...............: ${have_elementary_eweather}"
618echo " EMap...................: ${have_elementary_emap}" 655echo " EMap...................: ${have_elementary_emap}"
619echo " Web (WebKit)...........: ${elementary_web}" 656echo " Web....................: ${elementary_web}"
620echo " Quick Launch...........: ${ac_cv_func_fork}" 657echo " Quick Launch...........: ${ac_cv_func_fork}"
621echo " Elocation..............: ${have_elementary_elocation}" 658echo " Elocation..............: ${have_elementary_elocation}"
622echo 659echo