summaryrefslogtreecommitdiffstats
path: root/meta/packages/webkit/files/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/webkit/files/configure.ac')
-rw-r--r--meta/packages/webkit/files/configure.ac913
1 files changed, 667 insertions, 246 deletions
diff --git a/meta/packages/webkit/files/configure.ac b/meta/packages/webkit/files/configure.ac
index 3ab2baffb8..d4f3e749fc 100644
--- a/meta/packages/webkit/files/configure.ac
+++ b/meta/packages/webkit/files/configure.ac
@@ -1,20 +1,50 @@
1AC_INIT([WebKit],[0.1],[http://bugs.webkit.org/])
2
3AC_PREREQ(2.59) 1AC_PREREQ(2.59)
4 2
5AC_CONFIG_HEADERS([aconfig.h]) 3m4_define([webkit_major_version], [1])
4m4_define([webkit_minor_version], [3])
5m4_define([webkit_micro_version], [2])
6
7# This is the version we'll be using as part of our User-Agent string
8# e.g., AppleWebKit/$(webkit_user_agent_version) ...
9#
10# Sourced from WebCore/Configurations/Version.xcconfig
11m4_define([webkit_user_agent_major_version], [531])
12m4_define([webkit_user_agent_minor_version], [2])
13
14AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
15
16AC_CONFIG_MACRO_DIR([autotools])
17AC_CONFIG_AUX_DIR([autotools])
18AC_SUBST(ACLOCAL_AMFLAGS, "-I autotools")
19
20AC_CONFIG_HEADERS([autotoolsconfig.h])
21AC_CANONICAL_HOST
22
23WEBKIT_MAJOR_VERSION=webkit_major_version
24WEBKIT_MINOR_VERSION=webkit_minor_version
25WEBKIT_MICRO_VERSION=webkit_micro_version
26WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
27WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
28AC_SUBST(WEBKIT_MAJOR_VERSION)
29AC_SUBST(WEBKIT_MINOR_VERSION)
30AC_SUBST(WEBKIT_MICRO_VERSION)
31AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
32AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
33
6AC_CONFIG_SRCDIR([WebCore/config.h]) 34AC_CONFIG_SRCDIR([WebCore/config.h])
7 35
8# see http://www.gnu.org/software/libtool/manual.html#Versioning 36dnl # Libtool library version, not to confuse with API version
9LIBWEBKITGTK_VERSION=1:0:0 37dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html#Libtool-versioning
38LIBWEBKITGTK_VERSION=0:0:0
10AC_SUBST([LIBWEBKITGTK_VERSION]) 39AC_SUBST([LIBWEBKITGTK_VERSION])
11 40
12AM_INIT_AUTOMAKE([foreign subdir-objects]) 41AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar])
13 42
14AC_CANONICAL_HOST 43# Use AM_SILENT_RULES if present
44m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
15 45
16# host checking - inspired by the GTK+ configure.in 46# host checking - inspired by the GTK+ configure.in
17# TODO: os_mac, os_bsd 47# TODO: move these to webkit.m4?
18AC_MSG_CHECKING([for native Win32]) 48AC_MSG_CHECKING([for native Win32])
19case "$host" in 49case "$host" in
20 *-*-mingw*) 50 *-*-mingw*)
@@ -38,49 +68,28 @@ case "$host" in
38 ;; 68 ;;
39esac 69esac
40 70
41# If CXXFLAGS and CFLAGS are unset, default to -O2 71case "$host_os" in
42# This is to tell automake not to include '-g' if CXXFLAGS is not set 72 gnu* | linux* | k*bsd*-gnu)
43# For more info - http://www.gnu.org/software/automake/manual/autoconf.html#C_002b_002b-Compiler 73 os_gnu=yes
44if test -z "$CXXFLAGS"; then 74 ;;
45 CXXFLAGS="-O2" 75 *)
46fi 76 os_gnu=no
47if test -z "$CFLAGS"; then 77 ;;
48 CFLAGS="-O2" 78esac
49fi
50 79
51# programs 80# initialize webkit options
81WEBKIT_INIT
52AC_DISABLE_STATIC 82AC_DISABLE_STATIC
53AM_PROG_LIBTOOL 83AC_LIBTOOL_WIN32_DLL
54AC_PROG_INSTALL 84AC_PROG_LIBTOOL
55AM_PROG_CC_STDC
56AC_PROG_CXX
57AM_PROG_CC_C_O
58
59# check for -fvisibility=hidden compiler support (GCC >= 4)
60saved_CFLAGS="$CFLAGS"
61CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
62AC_MSG_CHECKING([if ${CXX} supports -fvisibility=hidden -fvisibility-inlines-hidden])
63AC_COMPILE_IFELSE([char foo;],
64 [ AC_MSG_RESULT([yes])
65 SYMBOL_VISIBILITY="-fvisibility=hidden" SYMBOL_VISIBILITY_INLINES="-fvisibility-inlines-hidden" ],
66 AC_MSG_RESULT([no]))
67CFLAGS="$saved_CFLAGS"
68AC_SUBST(SYMBOL_VISIBILITY)
69AC_SUBST(SYMBOL_VISIBILITY_INLINES)
70
71AC_PATH_PROG(PERL, perl)
72if test -z "$PERL"; then
73 AC_MSG_ERROR([You need 'perl' to compile WebKit])
74fi
75
76AC_PATH_PROG(BISON, bison)
77if test -z "$BISON"; then
78 AC_MSG_ERROR([You need the 'bison' parser generator to compile WebKit])
79fi
80 85
81AC_PATH_PROG(FLEX, flex) 86AC_PATH_PROG(FLEX, flex)
82if test -z "$FLEX"; then 87if test -z "$FLEX"; then
83 AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit]) 88 AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
89else
90 FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
91 AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
92 AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
84fi 93fi
85 94
86AC_PATH_PROG(GPERF, gperf) 95AC_PATH_PROG(GPERF, gperf)
@@ -88,82 +97,112 @@ if test -z "$GPERF"; then
88 AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit]) 97 AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
89fi 98fi
90 99
91AC_PATH_PROG(MV, mv)
92if test -z "$MV"; then
93 AC_MSG_ERROR([You need 'mv' to compile WebKit])
94fi
95
96# GTK+ port only
97# Check for glib-genmarshal and glib-mkenums
98AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
99AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
100
101# Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it
102# doesn't exist)
103AC_LANG_PUSH([C++])
104AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
105AC_LANG_POP([C++])
106
107# C/C++ Language Features
108AC_C_CONST
109AC_C_INLINE
110AC_C_VOLATILE
111
112# C/C++ Headers
113AC_HEADER_STDC
114AC_HEADER_STDBOOL
115
116# pthread (not needed on Windows) 100# pthread (not needed on Windows)
117if test "$os_win32" = "no"; then 101if test "$os_win32" = "no"; then
118AC_CHECK_HEADERS([pthread.h], 102AC_CHECK_HEADERS([pthread.h],
119 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exist]), 103 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
120 AC_MSG_ERROR([pthread support is required to build WebKit])) 104 AC_MSG_ERROR([pthread support is required to build WebKit]))
121fi 105fi
122 106
123# libjpeg headers 107# check for libjpeg the way Gtk does it.
124AC_CHECK_HEADERS([jpeglib.h]) 108AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
125 109 jpeg_ok=yes, jpeg_ok=no
126# check for pkg-config 110 AC_MSG_ERROR([JPEG library (libjpeg) not found]))
127AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 111if test "$jpeg_ok" = yes; then
128if test "$PKG_CONFIG" = "no"; then 112 AC_MSG_CHECKING([for jpeglib])
129 AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed in your PATH]) 113 AC_TRY_CPP(
114[#include <stdio.h>
115#undef PACKAGE
116#undef VERSION
117#undef HAVE_STDLIB_H
118#include <jpeglib.h>],
119 jpeg_ok=yes,
120 jpeg_ok=no)
121 AC_MSG_RESULT($jpeg_ok)
122 if test "$jpeg_ok" = yes; then
123 JPEG_LIBS="-ljpeg"
124 # should we check for progressive JPEG like GTK+ as well?
125 else
126 AC_MSG_ERROR([JPEG library (libjpeg) not found])
127 fi
130fi 128fi
131 129AC_SUBST([JPEG_LIBS])
132# determine the Unicode backend 130
133AC_MSG_CHECKING([the Unicode backend to use]) 131# Check for libpng the way Gtk+ does it
134AC_ARG_WITH(unicode_backend, 132for l in libpng libpng14 libpng12; do
135 AC_HELP_STRING([--with-unicode-backend=@<:@icu@:>@], 133 AC_MSG_CHECKING(for $l)
136 [Select Unicode backend [default=icu]]), 134 if $PKG_CONFIG --exists $l ; then
137 [],[unicode_backend="icu"]) 135 AC_MSG_RESULT(yes)
138 136 PNG_LIBS=`$PKG_CONFIG --libs $l`
139case "$unicode_backend" in 137 png_ok=yes
140 icu) ;; 138 break
141 *) AC_MSG_ERROR([Invalid Unicode backend: must be icu.]) ;; 139 else
142esac 140 AC_MSG_RESULT(no)
143 141 png_ok=no
144AC_MSG_RESULT([$unicode_backend]) 142 fi
145 143done
146if test "$unicode_backend" = "icu"; then 144if test "$png_ok" != yes; then
147 # check for icu-config 145 AC_CHECK_LIB(png, png_read_info,
148 if test "$os_darwin" = "yes"; then 146 [AC_CHECK_HEADER(png.h,
149 UNICODE_CFLAGS="-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu" 147 png_ok=yes,
150 UNICODE_LIBS="-licucore" 148 png_ok=no)],
151 else 149 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
152 AC_PATH_PROG(icu_config, icu-config, no) 150 if test "$png_ok" = yes; then
153 if test "$icu_config" = "no"; then 151 AC_MSG_CHECKING([for png_structp in png.h])
154 AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.]) 152 AC_TRY_COMPILE([#include <png.h>],
155 fi 153 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
156 154 png_ok=yes,
157 # We don't use --cflags as this gives us a lot of things that we don't 155 png_ok=no)
158 # necessarily want, like debugging and optimization flags 156 AC_MSG_RESULT($png_ok)
159 # See man (1) icu-config for more info. 157 if test "$png_ok" = yes; then
160 UNICODE_CFLAGS=`$icu_config --cppflags` 158 PNG_LIBS='-lpng -lz'
161 UNICODE_LIBS=`$icu_config --ldflags` 159 else
162 fi 160 AC_MSG_ERROR([PNG library (libpng) not found])
161 fi
162 else
163 AC_MSG_ERROR([PNG library (libpng) not found])
164 fi
163fi 165fi
166AC_SUBST([PNG_LIBS])
167
168# determine the GTK+ version to use
169AC_MSG_CHECKING([the GTK+ version to use])
170AC_ARG_WITH([gtk],
171 [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 2.0)])],
172 [case "$with_gtk" in
173 2.0|3.0) ;;
174 *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
175 esac],
176 [with_gtk=2.0])
177AC_MSG_RESULT([$with_gtk])
178
179case "$with_gtk" in
180 2.0) GTK_REQUIRED_VERSION=2.10
181 GTK_API_VERSION=2.0
182 WEBKITGTK_API_MAJOR_VERSION=1
183 WEBKITGTK_API_MINOR_VERSION=0
184 WEBKITGTK_API_VERSION=1.0
185 WEBKITGTK_PC_NAME=webkit
186 GAIL_PC_NAME=gail
187 GAIL_REQUIRED_VERSION=1.8
188 ;;
189 3.0) GTK_REQUIRED_VERSION=2.90
190 GTK_API_VERSION=3.0
191 WEBKITGTK_API_MAJOR_VERSION=3
192 WEBKITGTK_API_MINOR_VERSION=0
193 WEBKITGTK_API_VERSION=3.0
194 WEBKITGTK_PC_NAME=webkitgtk
195 GAIL_PC_NAME=gail-3.0
196 GAIL_REQUIRED_VERSION=2.90.4
197 ;;
198esac
164 199
165AC_SUBST([UNICODE_CFLAGS]) 200AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
166AC_SUBST([UNICODE_LIBS]) 201AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
202AC_SUBST([WEBKITGTK_API_VERSION])
203AC_SUBST([WEBKITGTK_PC_NAME])
204AC_SUBST([GTK_API_VERSION])
205AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
167 206
168# determine the GDK/GTK+ target 207# determine the GDK/GTK+ target
169AC_MSG_CHECKING([the target windowing system]) 208AC_MSG_CHECKING([the target windowing system])
@@ -194,58 +233,88 @@ if test "$with_hildon" = "yes"; then
194 AC_SUBST([HILDON_LIBS]) 233 AC_SUBST([HILDON_LIBS])
195fi 234fi
196 235
197# determine the http backend
198AC_MSG_CHECKING([the HTTP backend to use])
199AC_ARG_WITH(http_backend,
200 AC_HELP_STRING([--with-http-backend=@<:@curl/soup@:>@],
201 [Select HTTP backend [default=curl]]),
202 [],[with_http_backend="curl"])
203
204case "$with_http_backend" in
205 curl|soup) ;;
206 *) AC_MSG_ERROR([Invalid HTTP backend: must be curl, soup.]) ;;
207esac
208
209AC_MSG_RESULT([$with_http_backend])
210
211# minimum base dependencies 236# minimum base dependencies
212CAIRO_REQUIRED_VERSION=1.4 237LIBSOUP_REQUIRED_VERSION=2.28.2
238CAIRO_REQUIRED_VERSION=1.6
213FONTCONFIG_REQUIRED_VERSION=2.4 239FONTCONFIG_REQUIRED_VERSION=2.4
214FREETYPE2_REQUIRED_VERSION=9.0 240FREETYPE2_REQUIRED_VERSION=9.0
215LIBXML_REQUIRED_VERSION=2.6 241LIBXML_REQUIRED_VERSION=2.6
216 242
217# minimum GTK+ base dependencies 243# minimum GTK+ base dependencies
218GLIB_REQUIRED_VERSION=2.0 244PANGO_REQUIRED_VERSION=1.12
219GOBJECT_REQUIRED_VERSION=2.0
220GTHREAD_REQUIRED_VERSION=2.0
221PANGO_REQUIRED_VERSION=1.0
222GTK_REQUIRED_VERSION=2.8
223 245
224# optional modules 246# optional modules
225LIBCURL_REQUIRED_VERSION=7.15
226LIBSOUP_REQUIRED_VERSION=2.4
227LIBXSLT_REQUIRED_VERSION=1.1.7 247LIBXSLT_REQUIRED_VERSION=1.1.7
228SQLITE_REQUIRED_VERSION=3.0 248SQLITE_REQUIRED_VERSION=3.0
229GSTREAMER_REQUIRED_VERSION=0.10 249GSTREAMER_REQUIRED_VERSION=0.10
230GNOME_VFS_REQUIRED_VERSION=2.0 250GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.25
231 251ENCHANT_REQUIRED_VERSION=0.22
232PKG_CHECK_MODULES([GLOBALDEPS], 252
233 [glib-2.0 >= $GLIB_REQUIRED_VERSION 253# Available modules
234 gobject-2.0 >= $GOBJECT_REQUIRED_VERSION 254#
235 gthread-2.0 >= $GTHREAD_REQUIRED_VERSION]) 255# glib - glib and includes gthread
236AC_SUBST([GLOBALDEPS_CFLAGS]) 256# unicode - check and identify which unicode backend to use
237AC_SUBST([GLOBALDEPS_LIBS]) 257#
238 258# todo: webcore gtk
239PKG_CHECK_MODULES([WEBKITDEPS], 259WEBKIT_CHECK_DEPENDENCIES([glib unicode])
240 [gtk+-2.0 >= $GTK_REQUIRED_VERSION 260
241 pango >= $PANGO_REQUIRED_VERSION 261GETTEXT_PACKAGE=$PACKAGE
242 cairo >= $CAIRO_REQUIRED_VERSION 262AC_SUBST(GETTEXT_PACKAGE)
243 cairo-ft, 263AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
244 fontconfig >= $FONTCONFIG_REQUIRED_VERSION 264 [The gettext catalog name])
245 freetype2 >= $FREETYPE2_REQUIRED_VERSION 265
246 libxml-2.0 >= $LIBXML_REQUIRED_VERSION]) 266PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
247AC_SUBST([WEBKITDEPS_CFLAGS]) 267AC_SUBST(LIBXML_CFLAGS)
248AC_SUBST([WEBKITDEPS_LIBS]) 268AC_SUBST(LIBXML_LIBS)
269
270PKG_CHECK_MODULES(PANGO,
271 [pango >= $PANGO_REQUIRED_VERSION
272 pangoft2])
273AC_SUBST(PANGO_CFLAGS)
274AC_SUBST(PANGO_LIBS)
275
276PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
277AC_SUBST(ENCHANT_CFLAGS)
278AC_SUBST(ENCHANT_LIBS)
279
280PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
281AC_SUBST(GAIL_CFLAGS)
282AC_SUBST(GAIL_LIBS)
283
284# check for target-specific dependencies
285if test "$with_target" = "directfb"; then
286 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
287 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
288 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
289else
290 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
291 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
292
293 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
294 # check for XT
295 PKG_CHECK_MODULES([XT],
296 [xt],
297 [xt_has_pkg_config=yes],
298 [xt_has_pkg_config=no])
299 # some old versions of Xt do not provide xt.pc, so try to link against Xt
300 # and if it's installed fall back to just adding -lXt
301 if test "$xt_has_pkg_config" = "no"; then
302 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
303 # we don't care about the XtOpenDisplay symbol but only about the
304 # existence of libXt
305 AC_CHECK_LIB([Xt], [XtOpenDisplay],
306 [XT_CFLAGS=""; XT_LIBS="-lXt"],
307 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
308 fi
309 AC_SUBST([XT_CFLAGS])
310 AC_SUBST([XT_LIBS])
311 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
312 fi
313fi
314AC_SUBST(GTK_CFLAGS)
315AC_SUBST(GTK_LIBS)
316AC_SUBST(CAIRO_CFLAGS)
317AC_SUBST(CAIRO_LIBS)
249 318
250# check whether to build with debugging enabled 319# check whether to build with debugging enabled
251AC_MSG_CHECKING([whether to do a debug build]) 320AC_MSG_CHECKING([whether to do a debug build])
@@ -255,22 +324,72 @@ AC_ARG_ENABLE(debug,
255 [],[enable_debug="no"]) 324 [],[enable_debug="no"])
256AC_MSG_RESULT([$enable_debug]) 325AC_MSG_RESULT([$enable_debug])
257 326
258# check whether to build with cross-document messaging support 327# check whether to enable optimized builds
259AC_MSG_CHECKING([whether to enable HTML5 cross-document messaging support]) 328AC_MSG_CHECKING([whether to enable optimized builds])
260AC_ARG_ENABLE(cross_document_messaging, 329AC_ARG_ENABLE(optimizations,
261 AC_HELP_STRING([--enable-cross-document-messaging], 330 AC_HELP_STRING([--enable-optimizations],
262 [enable HTML5 cross-document messaging support [default=yes]]), 331 [turn on optimize builds (GCC only)
263 [],[enable_cross_document_messaging="yes"]) 332 [default=yes]]),
264AC_MSG_RESULT([$enable_cross_document_messaging]) 333 [enable_optimizations=$enableval],
334 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
335AC_MSG_RESULT([$enable_optimizations])
336
337# check whether to enable 3D transforms support
338AC_MSG_CHECKING([whether to enable support for 3D Transforms])
339AC_ARG_ENABLE(3D_transforms,
340 AC_HELP_STRING([--enable-3D-transforms],
341 [enable support for 3D transforms [default=no]]),
342 [],[enable_3D_transforms="no"])
343AC_MSG_RESULT([$enable_3D_transforms])
344
345# check whether to enable channel messaging support
346AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
347AC_ARG_ENABLE(channel_messaging,
348 AC_HELP_STRING([--enable-channel-messaging],
349 [enable HTML5 channel messaging support [default=yes]]),
350 [],[enable_channel_messaging="yes"])
351AC_MSG_RESULT([$enable_channel_messaging])
352
353# check whether to enable JavaScript debugger/profiler support
354AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
355AC_ARG_ENABLE(javascript_debugger,
356 AC_HELP_STRING([--enable-javascript-debugger],
357 [enable JavaScript debugger/profiler support [default=yes]]),
358 [],[enable_javascript_debugger="yes"])
359AC_MSG_RESULT([$enable_javascript_debugger])
360
361# check whether to enable HTML5 Offline Web Applications support
362AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
363AC_ARG_ENABLE(offline_web_applications,
364 AC_HELP_STRING([--enable-offline-web-applications],
365 [enable HTML5 offline web applications support [default=yes]]),
366 [],[enable_offline_web_applications="yes"])
367AC_MSG_RESULT([$enable_offline_web_applications])
265 368
266# check whether to enable HTML5 client-side session and persitent storage support 369# check whether to enable HTML5 client-side session and persitent storage support
267AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support]) 370AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
268AC_ARG_ENABLE(dom_storage, 371AC_ARG_ENABLE(dom_storage,
269 AC_HELP_STRING([--enable-dom-storage], 372 AC_HELP_STRING([--enable-dom-storage],
270 [enable HTML5 client-side session and persistent storage support [default=no]]), 373 [enable HTML5 client-side session and persistent storage support [default=yes]]),
271 [],[enable_dom_storage="no"]) 374 [],[enable_dom_storage="yes"])
272AC_MSG_RESULT([$enable_dom_storage]) 375AC_MSG_RESULT([$enable_dom_storage])
273 376
377# check whether to enable the indexed database API
378AC_MSG_CHECKING([whether to enable the indexed database API])
379AC_ARG_ENABLE(indexed_database,
380 AC_HELP_STRING([--enable-indexeddb],
381 [enable the indexed database API [default=no]]),
382 [],[enable_indexed_database="no"])
383AC_MSG_RESULT([$enable_indexed_database])
384
385# check whether to enable the speech input API
386AC_MSG_CHECKING([whether to enable the speech input API])
387AC_ARG_ENABLE(input_speech,
388 AC_HELP_STRING([--enable-input-speech],
389 [enable the speech input API [default=no]]),
390 [],[enable_input_speech="no"])
391AC_MSG_RESULT([$enable_input_speech])
392
274# check whether to build with database support 393# check whether to build with database support
275AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support]) 394AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
276AC_ARG_ENABLE(database, 395AC_ARG_ENABLE(database,
@@ -279,22 +398,70 @@ AC_ARG_ENABLE(database,
279 [],[enable_database="yes"]) 398 [],[enable_database="yes"])
280AC_MSG_RESULT([$enable_database]) 399AC_MSG_RESULT([$enable_database])
281 400
401# check whether to build with server-sent events support
402AC_MSG_CHECKING([whether to enable HTML5 server-sent events support])
403AC_ARG_ENABLE(eventsource,
404 AC_HELP_STRING([--enable-eventsource],
405 [enable HTML5 server-sent events support [default=yes]]),
406 [],[enable_eventsource="yes"])
407AC_MSG_RESULT([$enable_eventsource])
408
282# check whether to build with icon database support 409# check whether to build with icon database support
283AC_MSG_CHECKING([whether to enable icon database support]) 410AC_MSG_CHECKING([whether to enable icon database support])
284AC_ARG_ENABLE(icon_database, 411AC_ARG_ENABLE(icon_database,
285 AC_HELP_STRING([--enable-icon-database], 412 AC_HELP_STRING([--enable-icon-database],
286 [enable icon database [default=no]]), 413 [enable icon database [default=yes]]),
287 [],[enable_icon_database="no"]) 414 [],[enable_icon_database="yes"])
288AC_MSG_RESULT([$enable_icon_database]) 415AC_MSG_RESULT([$enable_icon_database])
289 416
417# check whether to build with image resizer API support
418AC_MSG_CHECKING([whether to enable image resizer API support])
419AC_ARG_ENABLE(image_resizer,
420 AC_HELP_STRING([--enable-image-resizer],
421 [enable image resizer [default=no]]),
422 [],[enable_image_resizer="no"])
423AC_MSG_RESULT([$enable_image_resizer])
424
425# check whether to enable HTML5 datalist support
426AC_MSG_CHECKING([whether to enable HTML5 datalist support])
427AC_ARG_ENABLE(datalist,
428 AC_HELP_STRING([--enable-datalist],
429 [enable HTML5 datalist support [default=yes]]),
430 [],[enable_datalist="yes"])
431AC_MSG_RESULT([$enable_datalist])
432
433# check whether to enable HTML5 ruby support
434AC_MSG_CHECKING([whether to enable HTML5 ruby support])
435AC_ARG_ENABLE(ruby,
436 AC_HELP_STRING([--enable-ruby],
437 [enable HTML5 ruby support [default=yes]]),
438 [],[enable_ruby="yes"])
439AC_MSG_RESULT([$enable_ruby])
440
441# check whether to enable HTML5 sandbox iframe support
442AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
443AC_ARG_ENABLE(sandbox,
444 AC_HELP_STRING([--enable-sandbox],
445 [enable HTML5 sandboxed iframe support [default=yes]]),
446 [],[enable_sandbox="yes"])
447AC_MSG_RESULT([$enable_sandbox])
448
290# check whether to enable HTML5 audio/video support 449# check whether to enable HTML5 audio/video support
291AC_MSG_CHECKING([whether to enable HTML5 video support]) 450AC_MSG_CHECKING([whether to enable HTML5 video support])
292AC_ARG_ENABLE(video, 451AC_ARG_ENABLE(video,
293 AC_HELP_STRING([--enable-video], 452 AC_HELP_STRING([--enable-video],
294 [enable HTML5 video support [default=no]]), 453 [enable HTML5 video support [default=yes]]),
295 [],[enable_video="no"]) 454 [],[enable_video="yes"])
296AC_MSG_RESULT([$enable_video]) 455AC_MSG_RESULT([$enable_video])
297 456
457# check whether to enable XHTML-MP support
458AC_MSG_CHECKING([whether to enable XHTML-MP support])
459AC_ARG_ENABLE(xhtmlmp,
460 AC_HELP_STRING([--enable-xhtmlmp],
461 [enable support for XHTML-MP [default=no]]),
462 [],[enable_xhtmlmp="no"])
463AC_MSG_RESULT([$enable_xhtmlmp])
464
298# check whether to enable XPath support 465# check whether to enable XPath support
299AC_MSG_CHECKING([whether to enable XPath support]) 466AC_MSG_CHECKING([whether to enable XPath support])
300AC_ARG_ENABLE(xpath, 467AC_ARG_ENABLE(xpath,
@@ -311,80 +478,171 @@ AC_ARG_ENABLE(xslt,
311 [],[enable_xslt="yes"]) 478 [],[enable_xslt="yes"])
312AC_MSG_RESULT([$enable_xslt]) 479AC_MSG_RESULT([$enable_xslt])
313 480
314# check whether to enable SVG experimental features 481# check whether to enable geolocation support
315# Enable all SVG if it is 482AC_MSG_CHECKING([whether to enable geolocation support])
316AC_MSG_CHECKING([whether to enable SVG experimental features]) 483AC_ARG_ENABLE(geolocation,
317AC_ARG_ENABLE(svg_experimental, 484 AC_HELP_STRING([--enable-geolocation],
318 AC_HELP_STRING([--enable-svg-experimental], 485 [enable support for geolocation [default=no]]),
319 [enable support for SVG experimental features [default=no]]), 486 [],[enable_geolocation="no"])
320 [],[enable_svg_experimental="no"]) 487AC_MSG_RESULT([$enable_geolocation])
321AC_MSG_RESULT([$enable_svg_experimental]) 488
322 489# check whether to enable MathML support
323if test "$enable_svg_experimental" = "yes"; then 490AC_MSG_CHECKING([whether to enable MathML support])
324 enable_svg=yes 491AC_ARG_ENABLE(mathml,
325 enable_svg_animation=yes 492 AC_HELP_STRING([--enable-mathml],
326# enable_svg_filters=yes 493 [enable support for MathML [default=no]]),
327 enable_svg_fonts=yes 494 [],[enable_mathml="no"])
328 enable_svg_foreign_object=yes 495AC_MSG_RESULT([$enable_mathml])
329 enable_svg_as_image=yes
330 enable_svg_use_element=yes
331fi
332 496
333# check whether to enable SVG support 497# check whether to enable SVG support
334AC_MSG_CHECKING([whether to enable SVG support]) 498AC_MSG_CHECKING([whether to enable SVG support])
335AC_ARG_ENABLE(svg, 499AC_ARG_ENABLE(svg,
336 AC_HELP_STRING([--enable-svg], 500 AC_HELP_STRING([--enable-svg],
337 [enable support for SVG [default=no]]), 501 [enable support for SVG [default=yes]]),
338 [],[enable_svg="no"]) 502 [],[enable_svg="yes"])
339AC_MSG_RESULT([$enable_svg]) 503AC_MSG_RESULT([$enable_svg])
340 504
505# check whether to enable WML support
506AC_MSG_CHECKING([whether to enable WML support])
507AC_ARG_ENABLE(wml,
508 AC_HELP_STRING([--enable-wml],
509 [enable support for WML [default=no]]),
510 [],[enable_wml="no"])
511AC_MSG_RESULT([$enable_wml])
512
513# check whether to enable SharedWorkers support
514AC_MSG_CHECKING([whether to enable SharedWorkers support])
515AC_ARG_ENABLE(shared_workers,
516 AC_HELP_STRING([--enable-shared-workers],
517 [enable support for SharedWorkers [default=yes]]),
518 [],[enable_shared_workers="yes"])
519AC_MSG_RESULT([$enable_shared_workers])
520
521# check whether to enable Web Workers support
522AC_MSG_CHECKING([whether to enable Web Workers support])
523AC_ARG_ENABLE(workers,
524 AC_HELP_STRING([--enable-workers],
525 [enable support for Web Workers [default=yes]]),
526 [],[enable_workers="yes"])
527AC_MSG_RESULT([$enable_workers])
528
529# turn off svg features if --disable-svg is requested
530if test "$enable_svg" = "no"; then
531 enable_svg_animation=no
532 enable_svg_fonts=no
533 enable_svg_foreign_object=no
534 enable_svg_as_image=no
535 enable_svg_use=no
536fi
537
341# check whether to enable support for SVG animation 538# check whether to enable support for SVG animation
342AC_MSG_CHECKING([whether to enable support for SVG animation]) 539AC_MSG_CHECKING([whether to enable support for SVG animation])
343AC_ARG_ENABLE(svg_animation, 540AC_ARG_ENABLE(svg_animation,
344 AC_HELP_STRING([--enable-svg-animation], 541 AC_HELP_STRING([--enable-svg-animation],
345 [enable support for SVG animation (experimental) [default=no]]), 542 [enable support for SVG animation (experimental) [default=yes]]),
346 [],[enable_svg_animation="no"]) 543 [],[enable_svg_animation="yes"])
347AC_MSG_RESULT([$enable_svg_animation]) 544AC_MSG_RESULT([$enable_svg_animation])
348 545
349# check whether to enable support for SVG filters 546# check whether to enable support for filters
350AC_MSG_CHECKING([whether to enable support for SVG filters]) 547AC_MSG_CHECKING([whether to enable support for filters])
351AC_ARG_ENABLE(svg_filters, 548AC_ARG_ENABLE(filters,
352 AC_HELP_STRING([--enable-svg-filters], 549 AC_HELP_STRING([--enable-filters],
353 [enable support for SVG filters (experimental) [default=no]]), 550 [enable support for filters (experimental) [default=yes]]),
354 [],[enable_svg_filters="no"]) 551 [],[enable_filters="yes"])
355AC_MSG_RESULT([$enable_svg_filters]) 552AC_MSG_RESULT([$enable_filters])
356 553
357# check whether to enable support for SVG fonts 554# check whether to enable support for SVG fonts
358AC_MSG_CHECKING([whether to enable support for SVG fonts]) 555AC_MSG_CHECKING([whether to enable support for SVG fonts])
359AC_ARG_ENABLE(svg_fonts, 556AC_ARG_ENABLE(svg_fonts,
360 AC_HELP_STRING([--enable-svg-fonts], 557 AC_HELP_STRING([--enable-svg-fonts],
361 [enable support for SVG fonts (experimental) [default=no]]), 558 [enable support for SVG fonts (experimental) [default=yes]]),
362 [],[enable_svg_fonts="no"]) 559 [],[enable_svg_fonts="yes"])
363AC_MSG_RESULT([$enable_svg_fonts]) 560AC_MSG_RESULT([$enable_svg_fonts])
364 561
365# check whether to enable foreign objects support for SVG 562# check whether to enable foreign objects support for SVG
366AC_MSG_CHECKING([whether to enable support for SVG foreign objects]) 563AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
367AC_ARG_ENABLE(svg_foreign_object, 564AC_ARG_ENABLE(svg_foreign_object,
368 AC_HELP_STRING([--enable-svg-foreign-object], 565 AC_HELP_STRING([--enable-svg-foreign-object],
369 [enable support for SVG foreign objects (experimental) [default=no]]), 566 [enable support for SVG foreign objects (experimental) [default=yes]]),
370 [],[enable_svg_foreign_object="no"]) 567 [],[enable_svg_foreign_object="yes"])
371AC_MSG_RESULT([$enable_svg_foreign_object]) 568AC_MSG_RESULT([$enable_svg_foreign_object])
372 569
373# check whether to enable SVG As Image support 570# check whether to enable SVG As Image support
374AC_MSG_CHECKING([whether to enable SVG as Image support]) 571AC_MSG_CHECKING([whether to enable SVG as Image support])
375AC_ARG_ENABLE(svg_as_image, 572AC_ARG_ENABLE(svg_as_image,
376 AC_HELP_STRING([--enable-svg-as-image], 573 AC_HELP_STRING([--enable-svg-as-image],
377 [enable SVG as Image support (experimental) [default=no]]), 574 [enable SVG as Image support (experimental) [default=yes]]),
378 [],[enable_svg_as_image="no"]) 575 [],[enable_svg_as_image="yes"])
379AC_MSG_RESULT([$enable_svg_as_image]) 576AC_MSG_RESULT([$enable_svg_as_image])
380 577
381# check whether to enable SVG USE element support 578# check whether to enable SVG USE element support
382AC_MSG_CHECKING([whether to enable support for SVG use element]) 579AC_MSG_CHECKING([whether to enable support for SVG use element])
383AC_ARG_ENABLE(svg_use_element, 580AC_ARG_ENABLE(svg_use,
384 AC_HELP_STRING([--enable-svg-use-element], 581 AC_HELP_STRING([--enable-svg-use],
385 [enable SVG use element support (experimental) [default=no]]), 582 [enable SVG use element support (experimental) [default=yes]]),
386 [],[enable_svg_use_element="no"]) 583 [],[enable_svg_use="yes"])
387AC_MSG_RESULT([$enable_svg_use_element]) 584AC_MSG_RESULT([$enable_svg_use])
585
586# check for SVG features, enabling SVG if necessary
587if test "$enable_svg_animation" = "yes" || \
588 test "$enable_svg_fonts" = "yes" || \
589 test "$enable_svg_foreign_object" = "yes" || \
590 test "$enable_svg_as_image" = "yes" || \
591 test "$enable_svg_use" = "yes"; then
592 svg_flags=yes
593 if test "$enable_svg" = "no"; then
594 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
595 enable_svg=yes
596 fi
597fi
598
599# check whether to enable Web Socket support
600AC_MSG_CHECKING([whether to enable Web Sockets support])
601AC_ARG_ENABLE(web_sockets,
602 AC_HELP_STRING([--enable-web-sockets],
603 [enable support for Web Sockets [default=no]]),
604 [],[enable_web_sockets="no"])
605AC_MSG_RESULT([$enable_web_sockets])
606
607# check whether to enable Web Timing support
608AC_MSG_CHECKING([whether to enable Web Timing support])
609AC_ARG_ENABLE(web_timing,
610 AC_HELP_STRING([--enable-web-timing],
611 [enable support for Web Timing [default=no]]),
612 [],[enable_web_timing="no"])
613AC_MSG_RESULT([$enable_web_timing])
614
615# check whether to enable Blob.slice support
616AC_MSG_CHECKING([whether to enable Blob.slice support])
617AC_ARG_ENABLE(blob_slice,
618 AC_HELP_STRING([--enable-blob-slice],
619 [enable support for Blob.slice [default=no]]),
620 [],[enable_blob_slice="no"])
621AC_MSG_RESULT([$enable_blob_slice])
622
623# check whether to enable Fast Mobile Scrolling support
624AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
625AC_ARG_ENABLE(fast_mobile_scrolling,
626 AC_HELP_STRING([--enable-fast-mobile-scrolling],
627 [enable support for Fast Mobile Scrolling [default=no]]),
628 [],[enable_fast_mobile_scrolling="no"])
629AC_MSG_RESULT([$enable_fast_mobile_scrolling])
630
631# check whether to enable FileReader support
632AC_MSG_CHECKING([whether to enable FileReader support])
633AC_ARG_ENABLE(file_reader,
634 AC_HELP_STRING([--enable-file-reader],
635 [enable support for FileReader [default=no]]),
636 [],[enable_file_reader="no"])
637AC_MSG_RESULT([$enable_file_reader])
638
639# check whether to enable FileWriter support
640AC_MSG_CHECKING([whether to enable FileWriter support])
641AC_ARG_ENABLE(file_writer,
642 AC_HELP_STRING([--enable-file-writer],
643 [enable support for FileWriter [default=no]]),
644 [],[enable_file_writer="no"])
645AC_MSG_RESULT([$enable_file_writer])
388 646
389# check whether to enable code coverage 647# check whether to enable code coverage
390AC_MSG_CHECKING([whether to enable code coverage support]) 648AC_MSG_CHECKING([whether to enable code coverage support])
@@ -402,6 +660,64 @@ AC_ARG_ENABLE(fast_malloc,
402 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi]) 660 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
403AC_MSG_RESULT([$enable_fast_malloc]) 661AC_MSG_RESULT([$enable_fast_malloc])
404 662
663AC_MSG_CHECKING([whether to enable JIT compilation])
664AC_ARG_ENABLE([jit],
665 AC_HELP_STRING([--enable-jit],
666 [Enable JIT compilation default=yes]),
667 [],[enable_jit="yes"])
668if test "$enable_jit" = "yes"; then
669 case "$host_cpu" in
670 i*86|x86_64)
671 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
672 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
673 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
674 AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
675 AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
676 AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
677 case "$host_cpu" in
678 i*86)
679 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
680 ;;
681 x86_64)
682 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
683 AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
684 ;;
685 esac
686 ;;
687 *)
688 enable_jit="no (CPU '$host_cpu' not supported)"
689 ;;
690 esac
691fi
692AC_MSG_RESULT([$enable_jit])
693
694# GObject Introspection
695AC_MSG_CHECKING([whether to enable GObject introspection support])
696AC_ARG_ENABLE([introspection],
697 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
698 [],[enable_introspection=no])
699AC_MSG_RESULT([$enable_introspection])
700
701G_IR_SCANNER=
702G_IR_COMPILER=
703G_IR_GENERATE=
704GIRDIR=
705GIRTYPELIBDIR=
706
707if test "$enable_introspection" = "yes"; then
708 GOBJECT_INTROSPECTION_REQUIRED=0.6.15
709 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
710
711 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
712 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
713 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
714 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
715fi
716
717AC_SUBST([G_IR_SCANNER])
718AC_SUBST([G_IR_COMPILER])
719AC_SUBST([G_IR_GENERATE])
720
405# determine the font backend 721# determine the font backend
406AC_MSG_CHECKING([the font backend to use]) 722AC_MSG_CHECKING([the font backend to use])
407AC_ARG_WITH(font_backend, 723AC_ARG_WITH(font_backend,
@@ -419,26 +735,63 @@ AC_MSG_RESULT([$with_font_backend])
419if test "$enable_debug" = "yes"; then 735if test "$enable_debug" = "yes"; then
420 CXXFLAGS="$CXXFLAGS -g" 736 CXXFLAGS="$CXXFLAGS -g"
421 CFLAGS="$CFLAGS -g" 737 CFLAGS="$CFLAGS -g"
738else
739 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
422fi 740fi
423 741
424# check if curl is available 742# Add the appropriate 'O' level for optimized builds
425if test "$with_http_backend" = "curl"; then 743if test "$enable_optimizations" = "yes"; then
426 PKG_CHECK_MODULES([LIBCURL], 744 CXXFLAGS="$CXXFLAGS -O2"
427 [libcurl >= $LIBCURL_REQUIRED_VERSION]) 745 CFLAGS="$CFLAGS -O2"
428 AC_SUBST([LIBCURL_CFLAGS]) 746else
429 AC_SUBST([LIBCURL_LIBS]) 747 CXXFLAGS="$CXXFLAGS -O0"
748 CFLAGS="$CFLAGS -O0"
430fi 749fi
431 750
432if test "$with_http_backend" = "soup"; then 751PKG_CHECK_MODULES([LIBSOUP],
433 PKG_CHECK_MODULES([LIBSOUP], 752 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
434 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION]) 753AC_SUBST([LIBSOUP_CFLAGS])
435 AC_SUBST([LIBSOUP_CFLAGS]) 754AC_SUBST([LIBSOUP_LIBS])
436 AC_SUBST([LIBSOUP_LIBS]) 755
756# check if we can use libSoup 2.29.90 features
757PKG_CHECK_MODULES([LIBSOUP_2_29_90],
758 [libsoup-2.4 >= 2.29.90],
759 [have_libsoup_2_29_90=yes],
760 [have_libsoup_2_29_90=no])
761if test "$have_libsoup_2_29_90" = "yes"; then
762 AC_DEFINE([HAVE_LIBSOUP_2_29_90], 1, [Whether libSoup 2.29.90 features are available])
763fi
764
765# check if FreeType/FontConfig are available
766if test "$with_font_backend" = "freetype"; then
767 if test "$with_target" = "directfb"; then
768 PKG_CHECK_MODULES([FREETYPE],
769 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
770 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
771 else
772 PKG_CHECK_MODULES([FREETYPE],
773 [cairo-ft
774 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
775 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
776 fi
777 AC_SUBST([FREETYPE_CFLAGS])
778 AC_SUBST([FREETYPE_LIBS])
437fi 779fi
438 780
439# check if sqlite 3 is available 781# check if sqlite 3 is available
440if test "$enable_icon_database" = "yes" || test "$enable_database" = "yes"; then 782if test "$enable_icon_database" = "yes" || \
441 PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= $SQLITE_REQUIRED_VERSION]) 783 test "$enable_database" = "yes" || \
784 test "$enable_offline_web_applications" = "yes" || \
785 test "$enable_dom_storage" = "yes"; then
786 PKG_CHECK_MODULES([SQLITE3],
787 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
788 [sqlite3_has_pkg_config=yes],
789 [sqlite3_has_pkg_config=no])
790 if test "$sqlite3_has_pkg_config" = "no"; then
791 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
792 [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
793 [AC_MSG_ERROR([SQLite3 is required to enable Database support])])
794 fi
442 AC_SUBST([SQLITE3_CFLAGS]) 795 AC_SUBST([SQLITE3_CFLAGS])
443 AC_SUBST([SQLITE3_LIBS]) 796 AC_SUBST([SQLITE3_LIBS])
444fi 797fi
@@ -450,13 +803,22 @@ if test "$enable_xslt" = "yes"; then
450 AC_SUBST([LIBXSLT_LIBS]) 803 AC_SUBST([LIBXSLT_LIBS])
451fi 804fi
452 805
806# check if geoclue is available
807if test "$enable_geolocation" = "yes"; then
808 PKG_CHECK_MODULES([GEOCLUE], [geoclue])
809 AC_SUBST([GEOCLUE_CFLAGS])
810 AC_SUBST([GEOCLUE_LIBS])
811fi
812
453# check if gstreamer is available 813# check if gstreamer is available
454if test "$enable_video" = "yes"; then 814if test "$enable_video" = "yes"; then
455 PKG_CHECK_MODULES([GSTREAMER], 815 PKG_CHECK_MODULES([GSTREAMER],
456 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION 816 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
457 gstreamer-base-0.10, 817 gstreamer-app-0.10
458 gstreamer-plugins-base-0.10, 818 gstreamer-base-0.10
459 gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED_VERSION]) 819 gstreamer-pbutils-0.10
820 gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
821 gstreamer-video-0.10])
460 AC_SUBST([GSTREAMER_CFLAGS]) 822 AC_SUBST([GSTREAMER_CFLAGS])
461 AC_SUBST([GSTREAMER_LIBS]) 823 AC_SUBST([GSTREAMER_LIBS])
462fi 824fi
@@ -469,24 +831,18 @@ if test "$enable_coverage" = "yes"; then
469 AC_SUBST([COVERAGE_LDFLAGS]) 831 AC_SUBST([COVERAGE_LDFLAGS])
470fi 832fi
471 833
472# check for SVG features, enabling SVG if necessary 834# check for HTML features
473if test "$enable_svg_animation" = "yes" || \ 835if test "$enable_video" = "yes"; then
474 test "$enable_svg_filters" = "yes" || \ 836 html_flags=yes
475 test "$enable_svg_fonts" = "yes" || \
476 test "$enable_svg_foreign_object" = "yes" || \
477 test "$enable_svg_as_image" = "yes" || \
478 test "$enable_svg_use_element" = "yes"; then
479 svg_flags=yes
480 if test "$enable_svg" = "no"; then
481 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
482 enable_svg=yes
483 fi
484fi 837fi
485 838
839GTK_DOC_CHECK([1.10])
840
486# OS conditionals 841# OS conditionals
487AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"]) 842AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
488AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"]) 843AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
489AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"]) 844AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
845AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
490AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"]) 846AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
491 847
492# target conditionals 848# target conditionals
@@ -495,9 +851,9 @@ AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
495AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"]) 851AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
496AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"]) 852AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
497 853
498# HTTP backend conditionals 854# Unicode backend conditionals
499AM_CONDITIONAL([USE_CURL], [test "$with_http_backend" = "curl"]) 855AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
500AM_CONDITIONAL([USE_SOUP], [test "$with_http_backend" = "soup"]) 856AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
501 857
502# Font backend conditionals 858# Font backend conditionals
503AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"]) 859AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
@@ -505,30 +861,67 @@ AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
505 861
506# WebKit feature conditionals 862# WebKit feature conditionals
507AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"]) 863AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
508AM_CONDITIONAL([ENABLE_CROSS_DOCUMENT_MESSAGING],[test "$enable_cross_document_messaging" = "yes"]) 864AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3D_transforms" = "yes"])
865AM_CONDITIONAL([ENABLE_BLOB_SLICE],[test "$enable_blob_slice" = "yes"])
866AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
867AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
868AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
509AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"]) 869AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
510AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"]) 870AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
871AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
872AM_CONDITIONAL([ENABLE_EVENTSOURCE],[test "$enable_eventsource" = "yes"])
873AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
511AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"]) 874AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
875AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
876AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
877AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
878AM_CONDITIONAL([ENABLE_XHTMLMP],[test "$enable_xhtmlmp" = "yes"])
512AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"]) 879AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
513AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"]) 880AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
881AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
882AM_CONDITIONAL([ENABLE_FILE_READER],[test "$enable_file_reader" = "yes"])
883AM_CONDITIONAL([ENABLE_FILE_WRITER],[test "$enable_file_writer" = "yes"])
884AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
885AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
886AM_CONDITIONAL([ENABLE_RUBY],[test "$enable_ruby" = "yes"])
887AM_CONDITIONAL([ENABLE_SANDBOX],[test "$enable_sandbox" = "yes"])
514AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"]) 888AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
889AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
890AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
515AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"]) 891AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
516AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"]) 892AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
517AM_CONDITIONAL([ENABLE_SVG_FILTERS],[test "$enable_svg_filters" = "yes"])
518AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"]) 893AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
519AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"]) 894AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
520AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"]) 895AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
521AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use_element" = "yes"]) 896AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use" = "yes"])
522AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"]) 897AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
523AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"]) 898AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
899AM_CONDITIONAL([ENABLE_WML],[test "$enable_wml" = "yes"])
900AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
901AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
524AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"]) 902AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
903AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
904AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
905AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
906
907# Gtk conditionals
908AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
909
525 910
526AC_CONFIG_FILES([ 911AC_CONFIG_FILES([
527GNUmakefile 912GNUmakefile
528WebKit/gtk/webkit-1.0.pc:WebKit/gtk/webkit.pc.in 913WebKit/gtk/webkit/webkitversion.h
914WebKit/gtk/docs/GNUmakefile
915WebKit/gtk/docs/version.xml
529] 916]
530) 917)
531 918
919AC_CONFIG_FILES([
920WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:WebKit/gtk/webkit.pc.in
921WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:WebKit/gtk/JSCore.gir.in]
922,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
923)
924
532AC_OUTPUT 925AC_OUTPUT
533 926
534echo " 927echo "
@@ -536,27 +929,55 @@ WebKit was configured with the following options:
536 929
537Build configuration: 930Build configuration:
538 Enable debugging (slow) : $enable_debug 931 Enable debugging (slow) : $enable_debug
932 Enable GCC build optimization : $enable_optimizations
539 Code coverage support : $enable_coverage 933 Code coverage support : $enable_coverage
540 Unicode backend : $unicode_backend 934 Unicode backend : $with_unicode_backend
541 HTTP backend : $with_http_backend
542 Font backend : $with_font_backend 935 Font backend : $with_font_backend
543 Optimized memory allocator : $enable_fast_malloc 936 Optimized memory allocator : $enable_fast_malloc
544Features: 937Features:
545 HTML5 cross-document messaging : $enable_cross_document_messaging 938 3D Transforms : $enable_3D_transforms
939 Blob.slice support : $enable_blob_slice
940 Fast Mobile Scrolling : $enable_fast_mobile_scrolling
941 JIT compilation : $enable_jit
942 Filters support : $enable_filters
943 FileReader support : $enable_file_reader
944 FileWriter support : $enable_file_writer
945 Geolocation support : $enable_geolocation
946 JavaScript debugger/profiler support : $enable_javascript_debugger
947 MathML support : $enable_mathml
948 HTML5 offline web applications support : $enable_offline_web_applications
949 HTML5 channel messaging support : $enable_channel_messaging
546 HTML5 client-side session and persistent storage support : $enable_dom_storage 950 HTML5 client-side session and persistent storage support : $enable_dom_storage
547 HTML5 client-side database storage support : $enable_database 951 HTML5 client-side database storage support : $enable_database
952 HTML5 ruby support : $enable_ruby
953 HTML5 sandboxed iframe support : $enable_sandbox
954 HTML5 server-sent events support : $enable_eventsource
548 HTML5 video element support : $enable_video 955 HTML5 video element support : $enable_video
549 Icon database support : $enable_icon_database 956 Icon database support : $enable_icon_database
957 Image resizer support : $enable_image_resizer
958 SharedWorkers support : $enable_shared_workers
959 Speech input support : $enable_input_speech
550 SVG support : $enable_svg 960 SVG support : $enable_svg
551 SVG animation support : $enable_svg_animation 961 SVG animation support : $enable_svg_animation
552 SVG filters support : $enable_svg_filters
553 SVG fonts support : $enable_svg_fonts 962 SVG fonts support : $enable_svg_fonts
554 SVG foreign object support : $enable_svg_foreign_object 963 SVG foreign object support : $enable_svg_foreign_object
555 SVG as image support : $enable_svg_as_image 964 SVG as image support : $enable_svg_as_image
556 SVG use element support : $enable_svg_use_element 965 SVG use element support : $enable_svg_use
966 WML support : $enable_wml
967 Web Sockets support : $enable_web_sockets
968 Web Timing support : $enable_web_timing
969 Web Workers support : $enable_workers
970 XHTML-MP support : $enable_xhtmlmp
557 XPATH support : $enable_xpath 971 XPATH support : $enable_xpath
558 XSLT support : $enable_xslt 972 XSLT support : $enable_xslt
559GTK+ configuration: 973GTK+ configuration:
974 GTK+ version : $with_gtk
560 GDK target : $with_target 975 GDK target : $with_target
561 Hildon UI extensions : $with_hildon 976 Hildon UI extensions : $with_hildon
977 Introspection support : $enable_introspection
562" 978"
979if test "$with_unicode_backend" = "glib"; then
980 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"
981 echo
982 echo
983fi