e41593eea7433fec68b31546d21b7a60aa99376c
[framework/web/webkit-efl.git] / configure.ac
1 AC_PREREQ(2.59)
2
3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [7])
5 m4_define([webkit_micro_version], [0])
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 Source/WebCore/Configurations/Version.xcconfig
11 m4_define([webkit_user_agent_major_version], [535])
12 m4_define([webkit_user_agent_minor_version], [4])
13
14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
15
16 AC_CONFIG_MACRO_DIR([Source/autotools])
17 AC_CONFIG_AUX_DIR([Source/autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools")
19
20 AC_CONFIG_HEADERS([autotoolsconfig.h])
21 AC_CANONICAL_HOST
22
23 WEBKIT_MAJOR_VERSION=webkit_major_version
24 WEBKIT_MINOR_VERSION=webkit_minor_version
25 WEBKIT_MICRO_VERSION=webkit_micro_version
26 WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
27 WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
28 AC_SUBST(WEBKIT_MAJOR_VERSION)
29 AC_SUBST(WEBKIT_MINOR_VERSION)
30 AC_SUBST(WEBKIT_MICRO_VERSION)
31 AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
32 AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
33
34 AC_CONFIG_SRCDIR([Source/WebCore/config.h])
35
36 dnl # Libtool library version, not to confuse with API version
37 dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html
38 LIBWEBKITGTK_VERSION=11:0:11
39 AC_SUBST([LIBWEBKITGTK_VERSION])
40
41 AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar])
42
43 # Use AM_SILENT_RULES if present
44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
45
46 # host checking - inspired by the GTK+ configure.in
47 # TODO: move these to webkit.m4?
48 AC_MSG_CHECKING([for native Win32])
49 case "$host" in
50      *-*-mingw*)
51        os_win32=yes
52        ;;
53      *)
54        os_win32=no
55        ;;
56 esac
57 AC_MSG_RESULT([$os_win32])
58
59 case "$host" in
60      *-*-linux*)
61        os_linux=yes
62        ;;
63      *-*-freebsd*)
64        os_freebsd=yes
65        ;;
66      *-*-darwin*)
67        os_darwin=yes
68        ;;
69 esac
70
71 case "$host_os" in
72      gnu* | linux* | k*bsd*-gnu)
73        os_gnu=yes
74        ;;
75      *)
76        os_gnu=no
77        ;;
78 esac
79
80 # initialize webkit options
81 WEBKIT_INIT
82 AC_DISABLE_STATIC
83 AC_LIBTOOL_WIN32_DLL
84 AC_PROG_LIBTOOL
85 # use dolt to speedup the build
86 DOLT
87
88 AC_PATH_PROG(FLEX, flex)
89 if test -z "$FLEX"; then
90    AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
91 else
92    FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
93    AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
94       AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
95 fi
96
97 AC_PATH_PROG(GPERF, gperf)
98 if test -z "$GPERF"; then
99    AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
100 fi
101
102 # Disable C++0x compat warnings for GCC >= 4.6.0 until we build
103 # cleanly with that.
104 if test "$CXX" = "g++"; then
105    CXX_VERSION=`$CXX -dumpversion`
106    AX_COMPARE_VERSION([$CXX_VERSION],[ge],[4.6.0],CXXFLAGS="$CXXFLAGS -Wno-c++0x-compat")
107 fi
108
109 # pthread (not needed on Windows)
110 if test "$os_win32" = "no"; then
111 AC_CHECK_HEADERS([pthread.h],
112                  AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists])
113                  AC_DEFINE([WTF_USE_PTHREADS],[1],[Use pthreads]),
114                  AC_MSG_ERROR([pthread support is required to build WebKit]))
115 AC_CHECK_LIB(pthread, pthread_rwlock_init,
116                  AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
117                  AC_MSG_WARN([pthread rwlock support is not available]))
118 fi
119
120 # check for libjpeg the way Gtk does it.
121 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
122                    jpeg_ok=yes, jpeg_ok=no
123                    AC_MSG_ERROR([JPEG library (libjpeg) not found]))
124 if test "$jpeg_ok" = yes; then
125    AC_MSG_CHECKING([for jpeglib])
126    AC_TRY_CPP(
127 [#include <stdio.h>
128 #undef PACKAGE
129 #undef VERSION
130 #undef HAVE_STDLIB_H
131 #include <jpeglib.h>],
132          jpeg_ok=yes,
133          jpeg_ok=no)
134    AC_MSG_RESULT($jpeg_ok)
135    if test "$jpeg_ok" = yes; then
136       JPEG_LIBS="-ljpeg"
137       # should we check for progressive JPEG like GTK+ as well?
138    else
139       AC_MSG_ERROR([JPEG library (libjpeg) not found])
140    fi
141 fi
142 AC_SUBST([JPEG_LIBS])
143
144 # Check for libpng the way Gtk+ does it
145 for l in libpng libpng14 libpng12; do
146   AC_MSG_CHECKING(for $l)
147   if $PKG_CONFIG --exists $l ; then
148     AC_MSG_RESULT(yes)
149     PNG_LIBS=`$PKG_CONFIG --libs $l`
150     png_ok=yes
151     break
152 else
153   AC_MSG_RESULT(no)
154     png_ok=no
155   fi
156 done
157 if test "$png_ok" != yes; then
158   AC_CHECK_LIB(png, png_read_info,
159     [AC_CHECK_HEADER(png.h,
160       png_ok=yes,
161       png_ok=no)],
162     AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
163   if test "$png_ok" = yes; then
164     AC_MSG_CHECKING([for png_structp in png.h])
165     AC_TRY_COMPILE([#include <png.h>],
166       [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
167       png_ok=yes,
168       png_ok=no)
169     AC_MSG_RESULT($png_ok)
170     if test "$png_ok" = yes; then
171       PNG_LIBS='-lpng -lz'
172     else
173       AC_MSG_ERROR([PNG library (libpng) not found])
174     fi
175   else
176    AC_MSG_ERROR([PNG library (libpng) not found])
177   fi
178 fi
179 AC_SUBST([PNG_LIBS])
180
181
182 if test "$os_win32" = "yes"; then
183   WINMM_LIBS=-lwinmm
184   SHLWAPI_LIBS=-lshlwapi
185   OLE32_LIBS=-lole32
186 fi
187 AC_SUBST([WINMM_LIBS])
188 AC_SUBST([SHLWAPI_LIBS])
189 AC_SUBST([OLE32_LIBS])
190
191
192 # determine the GTK+ version to use
193 AC_MSG_CHECKING([the GTK+ version to use])
194 AC_ARG_WITH([gtk],
195         [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
196         [case "$with_gtk" in
197         2.0|3.0) ;;
198         *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
199         esac],
200         [with_gtk=3.0])
201 AC_MSG_RESULT([$with_gtk])
202
203 GTK2_REQUIRED_VERSION=2.10
204 GAIL2_REQUIRED_VERSION=1.8
205 GTK3_REQUIRED_VERSION=3.0
206 GAIL3_REQUIRED_VERSION=3.0
207
208 case "$with_gtk" in
209      2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
210           GTK_API_VERSION=2.0
211           WEBKITGTK_API_MAJOR_VERSION=1
212           WEBKITGTK_API_MINOR_VERSION=0
213           WEBKITGTK_API_VERSION=1.0
214           WEBKITGTK_PC_NAME=webkit
215           GAIL_PC_NAME=gail
216           GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
217           ;;
218      3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
219           GTK_API_VERSION=3.0
220           WEBKITGTK_API_MAJOR_VERSION=3
221           WEBKITGTK_API_MINOR_VERSION=0
222           WEBKITGTK_API_VERSION=3.0
223           WEBKITGTK_PC_NAME=webkitgtk
224           GAIL_PC_NAME=gail-3.0
225           GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION
226           ;;
227 esac
228
229 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
230 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
231 AC_SUBST([WEBKITGTK_API_VERSION])
232 AC_SUBST([WEBKITGTK_PC_NAME])
233 AC_SUBST([GTK_API_VERSION])
234 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
235
236 # determine the GDK/GTK+ target
237 AC_MSG_CHECKING([the target windowing system])
238 AC_ARG_WITH(target,
239             AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
240                            [Select webkit target [default=x11]]),
241             [],[with_target="x11"])
242
243 case "$with_target" in
244      x11|win32|quartz|directfb) ;;
245      *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
246 esac
247
248 AC_MSG_RESULT([$with_target])
249
250 AC_MSG_CHECKING([for Hildon UI extensions])
251 AC_ARG_WITH(hildon,
252             AC_HELP_STRING([--with-hildon],
253                            [Use Hildon UI extensions [default=no]]),
254             [],[with_hildon="no"])
255 AC_MSG_RESULT([$with_hildon])
256
257 if test "$with_hildon" = "yes"; then
258     HILDON_CPPFLAGS="-DMAEMO_CHANGES"
259     PKG_CHECK_MODULES([HILDON], [hildon-1])
260     AC_SUBST([HILDON_CPPFLAGS])
261     AC_SUBST([HILDON_CFLAGS])
262     AC_SUBST([HILDON_LIBS])
263 fi
264
265 # determine the efl target
266 AC_MSG_CHECKING([the efl target to build])
267 AC_ARG_WITH(efl_target,
268             AC_HELP_STRING([--with-efl-target=@<:@arm/i386@:>@],
269                            [Select Network backend [default=arm]]),
270             [],[with_efl_target="arm"])
271 case "$with_efl_target" in
272       arm|i386) ;;
273       *) AC_MSG_ERROR([Invalid efl target: must be arm, i386.]) ;;
274 esac
275 AC_MSG_RESULT([$with_efl_target])
276
277 # check whether to enable SLP multimedia player
278 AC_MSG_CHECKING([whether to enable multimedia player support])
279 AC_ARG_ENABLE(mm-player,
280               AC_HELP_STRING([--enable-mm-player],
281                              [enable multimedia player support [default=yes]]),
282               [],[enable_mm_player="yes"])
283 AC_MSG_RESULT([$enable_mm_player])
284
285 # determine the http backend
286 AC_MSG_CHECKING([the HTTP backend to use])
287 AC_ARG_WITH(http_backend,
288             AC_HELP_STRING([--with-http-backend=@<:@curl/soup@:>@],
289                            [Select HTTP backend [default=soup]]),
290             [],[with_http_backend="soup"])
291 case "$with_http_backend" in
292       curl|soup) ;;
293       *) AC_MSG_ERROR([Invalid HTTP backend: must be curl, soup.]) ;;
294 esac
295 AC_MSG_RESULT([$with_http_backend])
296
297 # check whether to enable enchant support
298 AC_MSG_CHECKING([whether to enable enchant support])
299 AC_ARG_ENABLE(enchant,
300               AC_HELP_STRING([--enable-enchant],
301                             [enable support for enchant [default=no]]),                                     [],[enable_enchant="no"])
302 AC_MSG_RESULT([$enable_enchant])
303
304 if test "$enable_enchant" = "yes"; then
305 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
306 AC_SUBST(ENCHANT_CFLAGS)
307 AC_SUBST(ENCHANT_LIBS)
308 fi
309
310 # minimum base dependencies
311 LIBSOUP_REQUIRED_VERSION=2.33.6
312 CAIRO_REQUIRED_VERSION=1.10
313 FONTCONFIG_REQUIRED_VERSION=2.4
314 FREETYPE2_REQUIRED_VERSION=9.0
315 LIBXML_REQUIRED_VERSION=2.6
316
317 # minimum GTK+ base dependencies
318 PANGO_REQUIRED_VERSION=1.12
319
320 # optional modules
321 LIBXSLT_REQUIRED_VERSION=1.1.7
322 SQLITE_REQUIRED_VERSION=3.0
323 GSTREAMER_REQUIRED_VERSION=0.10
324 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.30
325 ENCHANT_REQUIRED_VERSION=0.22
326
327 # Available modules
328 #
329 # glib - glib and includes gthread
330 # unicode - check and identify which unicode backend to use
331 #
332 # todo: webcore gtk
333 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
334
335 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
336 AC_SUBST(GETTEXT_PACKAGE)
337 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
338                    [The gettext catalog name])
339
340 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
341 AC_SUBST(LIBXML_CFLAGS)
342 AC_SUBST(LIBXML_LIBS)
343
344 PKG_CHECK_MODULES(PANGO, 
345                   [pango >= $PANGO_REQUIRED_VERSION
346                    pangoft2])
347 AC_SUBST(PANGO_CFLAGS)
348 AC_SUBST(PANGO_LIBS)
349
350 AC_MSG_CHECKING([whether to enable spellcheck support])
351 AC_ARG_ENABLE([spellcheck],
352   [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
353   [],[enable_spellcheck="yes"])
354 AC_MSG_RESULT([$enable_spellcheck])
355
356 if test "$enable_spellcheck" = "yes"; then
357 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
358 AC_SUBST(ENCHANT_CFLAGS)
359 AC_SUBST(ENCHANT_LIBS)
360 fi
361
362 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
363 AC_SUBST(GAIL_CFLAGS)
364 AC_SUBST(GAIL_LIBS)
365
366 # check for target-specific dependencies
367 if test "$with_target" = "directfb"; then
368    PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
369    PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
370    AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
371 else
372    PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
373    PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
374
375    if test "$with_target" = "x11" && test "$os_win32" = "no"; then
376       # check for XT
377       PKG_CHECK_MODULES([XT],
378                         [xt],
379                         [xt_has_pkg_config=yes],
380                         [xt_has_pkg_config=no])
381       # some old versions of Xt do not provide xt.pc, so try to link against Xt
382       # and if it's installed fall back to just adding -lXt
383       if test "$xt_has_pkg_config" = "no"; then
384          # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
385          # we don't care about the XtOpenDisplay symbol but only about the
386          # existence of libXt
387          AC_CHECK_LIB([Xt], [XtOpenDisplay],
388                       [XT_CFLAGS=""; XT_LIBS="-lXt"],
389                       [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
390       fi
391       AC_SUBST([XT_CFLAGS])
392       AC_SUBST([XT_LIBS])
393       AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
394    fi
395
396    if test "$with_port" = "efl"; then
397       AC_DEFINE([WTF_PLATFORM_CAIRO],[1],[Define if platform is Cairo])
398    fi
399 fi
400 AC_SUBST(GTK_CFLAGS)
401 AC_SUBST(GTK_LIBS)
402 AC_SUBST(CAIRO_CFLAGS)
403 AC_SUBST(CAIRO_LIBS)
404
405 if test "$with_port" = "efl"; then
406 # minimum EFL base dependencies
407 EINA_REQUIRED_VERSION=0.0.1
408 EVAS_REQUIRED_VERSION=0.1
409 ECORE_REQUIRED_VERSION=0.9
410 ECORE_EVAS_REQUIRED_VERSION=0.9
411 ECORE_X_REQUIRED_VERSION=0.9
412 EDJE_REQUIRED_VERSION=0.9.9.050
413 CAIRO_REQUIRED_VERSION=1.6
414 FONTCONFIG_REQUIRED_VERSION=2.4
415 FREETYPE2_REQUIRED_VERSION=9.0
416 GSTREAMER_REQUIRED_VERSION=0.10
417
418 LIBSOUP_REQUIRED_VERSION=2.28.2
419 LIBXSLT_REQUIRED_VERSION=1.1.7
420 SQLITE_REQUIRED_VERSION=3.0
421
422 WEBKIT_CHECK_DEPENDENCIES_MODULES="unicode"
423
424 want_ecore_x="auto"
425 have_ecore_x="no"
426 AC_ARG_ENABLE(ecore_x,
427   AC_HELP_STRING(
428     [--disable-ecore_x],
429     [disable ecore_x specific support. [[default=enabled]]]
430   ),
431   [ want_ecore_x=$enableval ]
432 )
433
434 if test "x$want_ecore_x" = "xyes" -o "x$want_ecore_x" = "xauto" ; then
435   # Check if really available
436   PKG_CHECK_MODULES(ECORE_X, [ecore-x >= $ECORE_X_REQUIRED_VERSION],
437     [
438       have_ecore_x="yes"
439       AC_DEFINE(HAVE_ECORE_X, 1, [have ecore_x specific support])
440       AC_SUBST([ECORE_X_CFLAGS])
441       AC_SUBST([ECORE_X_LIBS])
442     ],
443     [
444       if test "x$want_ecore_x" = "xyes" -a "x$use_strict" = "xyes" ; then
445         AC_MSG_ERROR([Ecore_X not found (strict dependencies checking)])
446       fi
447     ])
448 fi
449
450 PKG_CHECK_MODULES([EFLDEPS],
451                   [eina >= $EINA_REQUIRED_VERSION
452                   evas >= $EVAS_REQUIRED_VERSION
453                   ecore >= $ECORE_REQUIRED_VERSION
454                   ecore-file >= $ECORE_REQUIRED_VERSION
455                   ecore-evas >= $ECORE_EVAS_REQUIRED_VERSION
456                   edje >= $EDJE_REQUIRED_VERSION
457                   cairo >= $CAIRO_REQUIRED_VERSION
458                   ])
459
460 AC_SUBST([EFLDEPS_CFLAGS])
461 AC_SUBST([EFLDEPS_LIBS])
462 fi
463
464 # check whether to build with debugging enabled
465 AC_MSG_CHECKING([whether to do a debug build])
466 AC_ARG_ENABLE(debug,
467               AC_HELP_STRING([--enable-debug],
468                              [turn on debugging [default=no]]),
469               [],[enable_debug="no"])
470 AC_MSG_RESULT([$enable_debug])
471
472 # check whether to enable optimized builds
473 AC_MSG_CHECKING([whether to enable optimized builds])
474 AC_ARG_ENABLE(optimizations,
475               AC_HELP_STRING([--enable-optimizations],
476                              [turn on optimize builds (GCC only)
477                              [default=yes]]),
478               [enable_optimizations=$enableval],
479               [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
480 AC_MSG_RESULT([$enable_optimizations])
481
482 # check whether to enable 3D rendering support
483 AC_MSG_CHECKING([whether to enable support for 3D Rendering])
484 AC_ARG_ENABLE(3d_rendering,
485               AC_HELP_STRING([--enable-3d-rendering],
486                              [enable support for 3D Rendering (experimental) [default=no]]),
487               [],[enable_3d_rendering="no"])
488 AC_MSG_RESULT([$enable_3d_rendering])
489
490 # check whether to enable WebGL support
491 AC_MSG_CHECKING([whether to enable WebGL support])
492 AC_ARG_ENABLE(webgl,
493               AC_HELP_STRING([--enable-webgl],
494                              [enable support for WebGL (experimental) [default=no]]),
495               [], [enable_webgl="no"])
496 AC_MSG_RESULT([$enable_webgl])
497
498 if test "$enable_webgl" = "yes"; then
499     AC_CHECK_HEADERS([GL/gl.h], [], AC_MSG_ERROR([OpenGL header not found]))
500     AC_CHECK_HEADERS([GL/glx.h], [], AC_MSG_ERROR([GLX header not found]))
501     OPENGL_LIBS="-lGL -ldl"
502 fi
503 AC_SUBST([OPENGL_LIBS])
504
505 # check whether to enable channel messaging support
506 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
507 AC_ARG_ENABLE(channel_messaging,
508               AC_HELP_STRING([--enable-channel-messaging],
509                              [enable HTML5 channel messaging support [default=yes]]),
510               [],[enable_channel_messaging="yes"])
511 AC_MSG_RESULT([$enable_channel_messaging])
512
513 # check whether to enable notifications
514 AC_MSG_CHECKING([whether to enable notifications])
515 AC_ARG_ENABLE(notifications,
516               AC_HELP_STRING([--enable-notifications],
517                              [enable notifications [default=no]]),
518               [],[enable_notifications="no"])
519 AC_MSG_RESULT([$enable_notifications])
520
521 # check whether to enable the meter tag
522 AC_MSG_CHECKING([whether to enable HTML5 meter tag])
523 AC_ARG_ENABLE(meter_tag,
524               AC_HELP_STRING([--enable-meter-tag],
525                              [enable HTML5 meter [default=yes]]),
526               [],[enable_meter_tag="yes"])
527 AC_MSG_RESULT([$enable_meter_tag])
528
529 # check whether to enable HTML5 Microdata support
530 AC_MSG_CHECKING([whether to enable HTML5 Microdata support])
531 AC_ARG_ENABLE(microdata,
532               AC_HELP_STRING([--enable-microdata],
533                              [enable HTML5 microdata support [default=no]]),
534               [],[enable_microdata="no"])
535 AC_MSG_RESULT([$enable_microdata])
536
537 # check whether to enable page visibility API.
538 AC_MSG_CHECKING([whether to enable Page Visibility API support])
539 AC_ARG_ENABLE(page_visibility_api,
540               AC_HELP_STRING([--enable-page-visibility-api],
541                              [enable page visibility api[default=no]]),
542               [],[enable_page_visibility_api="no"])
543 AC_MSG_RESULT([$enable_page_visibility_api])
544
545 # check whether to enable the progress tag
546 AC_MSG_CHECKING([whether to enable HTML5 progress tag])
547 AC_ARG_ENABLE(progress_tag,
548               AC_HELP_STRING([--enable-progress-tag],
549                              [enable HTML5 progress [default=yes]]),
550               [],[enable_progress_tag="yes"])
551 AC_MSG_RESULT([$enable_progress_tag])
552
553 # check whether to enable JavaScript debugger/profiler support
554 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
555 AC_ARG_ENABLE(javascript_debugger,
556               AC_HELP_STRING([--enable-javascript-debugger],
557                              [enable JavaScript debugger/profiler support [default=yes]]),
558               [],[enable_javascript_debugger="yes"])
559 AC_MSG_RESULT([$enable_javascript_debugger])
560
561 # check whether to enable Gamepad support
562 AC_MSG_CHECKING([whether to enable Gamepad support])
563 AC_ARG_ENABLE(gamepad,
564               AC_HELP_STRING([--enable-gamepad],
565                              [enable Gamepad support [default=no]]),
566               [],[enable_gamepad="no"])
567 AC_MSG_RESULT([$enable_gamepad])
568
569 # check whether to build with datagrid support
570 AC_MSG_CHECKING([whether to enable HTML5 datagrid support])
571 AC_ARG_ENABLE(datagrid,
572               AC_HELP_STRING([--enable-datagrid],
573                              [enable HTML5 datagrid support [default=no]]),
574               [],[enable_datagrid="no"])
575 AC_MSG_RESULT([$enable_datagrid])
576
577 # check whether to build with data transfer items support
578 AC_MSG_CHECKING([whether to enable HTML5 data transfer items support])
579 AC_ARG_ENABLE(data_transfer_items,
580               AC_HELP_STRING([--enable-data-transfer-items],
581                              [enable HTML5 data transfer items support [default=no]]),
582               [],[enable_data_transfer_items="no"])
583 AC_MSG_RESULT([$enable_data_transfer_items])
584
585 # check whether to enable DOM mutation observer support
586 AC_MSG_CHECKING([whether to enable DOM mutation observer support])
587 AC_ARG_ENABLE(mutation_observers,
588               AC_HELP_STRING([--enable-mutation-observers],
589                              [enable DOM mutation observer support [default=no]]),
590               [],[enable_mutation_observers="no"])
591 AC_MSG_RESULT([$enable_mutation_observers])
592
593 # check whether to enable HTML5 client-side session and persitent storage support
594 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
595 AC_ARG_ENABLE(dom_storage,
596               AC_HELP_STRING([--enable-dom-storage],
597                              [enable HTML5 client-side session and persistent storage support [default=yes]]),
598               [],[enable_dom_storage="yes"])
599 AC_MSG_RESULT([$enable_dom_storage])
600
601 # check whether to enable the indexed database API
602 AC_MSG_CHECKING([whether to enable the indexed database API])
603 AC_ARG_ENABLE(indexed_database,
604               AC_HELP_STRING([--enable-indexed-database],
605                              [enable the indexed database API [default=no]]),
606               [],[enable_indexed_database="no"])
607 AC_MSG_RESULT([$enable_indexed_database])
608
609 # check whether to enable the color input
610 AC_MSG_CHECKING([whether to enable the color input])
611 AC_ARG_ENABLE(input_color,
612               AC_HELP_STRING([--enable-input-color],
613                              [enable the color input [default=no]]),
614               [],[enable_input_color="no"])
615 AC_MSG_RESULT([$enable_input_color])
616
617 # check whether to enable the speech input API
618 AC_MSG_CHECKING([whether to enable the speech input API])
619 AC_ARG_ENABLE(input_speech,
620               AC_HELP_STRING([--enable-input-speech],
621                              [enable the speech input API [default=no]]),
622               [],[enable_input_speech="no"])
623 AC_MSG_RESULT([$enable_input_speech])
624
625 # check whether to build with SQL database support
626 AC_MSG_CHECKING([whether to enable SQL client-side database storage support])
627 AC_ARG_ENABLE(sql_database,
628               AC_HELP_STRING([--enable-sql-database],
629                              [enable SQL client-side database storage support [default=yes]]),
630               [],[enable_sql_database="yes"])
631 AC_MSG_RESULT([$enable_sql_database])
632
633 # check whether to build with icon database support
634 AC_MSG_CHECKING([whether to enable icon database support])
635 AC_ARG_ENABLE(icon_database,
636               AC_HELP_STRING([--enable-icon-database],
637                              [enable icon database [default=yes]]),
638               [],[enable_icon_database="yes"])
639 AC_MSG_RESULT([$enable_icon_database])
640
641 # check whether to build with image resizer API support
642 AC_MSG_CHECKING([whether to enable image resizer API support])
643 AC_ARG_ENABLE(image_resizer,
644               AC_HELP_STRING([--enable-image-resizer],
645                              [enable image resizer [default=no]]),
646               [],[enable_image_resizer="no"])
647 AC_MSG_RESULT([$enable_image_resizer])
648
649 # check whether to enable HTML5 datalist support
650 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
651 AC_ARG_ENABLE(datalist,
652               AC_HELP_STRING([--enable-datalist],
653                              [enable HTML5 datalist support [default=yes]]),
654               [],[enable_datalist="yes"])
655 AC_MSG_RESULT([$enable_datalist])
656
657 # check whether to enable HTML5 sandbox iframe support
658 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
659 AC_ARG_ENABLE(sandbox,
660               AC_HELP_STRING([--enable-sandbox],
661                              [enable HTML5 sandboxed iframe support [default=yes]]),
662               [],[enable_sandbox="yes"])
663 AC_MSG_RESULT([$enable_sandbox])
664
665 # check whether to enable HTML5 audio/video support
666 AC_MSG_CHECKING([whether to enable HTML5 video support])
667 AC_ARG_ENABLE(video,
668               AC_HELP_STRING([--enable-video],
669                              [enable HTML5 video support [default=yes]]),
670               [],[enable_video="yes"])
671 AC_MSG_RESULT([$enable_video])
672
673 # turn off video features if --disable-video is requested
674 if test "$enable_video" = "no"; then
675    enable_video_track=no
676 fi
677
678 # check whether to enable HTML5 video track support
679 AC_MSG_CHECKING([whether to enable HTML5 video track support])
680 AC_ARG_ENABLE(video_track,
681               AC_HELP_STRING([--enable-video-track],
682                              [enable HTML5 video track support [default=yes]]),
683               [],[enable_video_track="yes"])
684 AC_MSG_RESULT([$enable_video_track])
685
686 # check whether to enable media source support
687 AC_MSG_CHECKING([whether to enable media source support])
688 AC_ARG_ENABLE(media_source,
689               AC_HELP_STRING([--enable-media-source],
690                              [enable support for media source [default=no]]),
691               [], [enable_media_source="no"])
692 AC_MSG_RESULT([$enable_media_source])
693
694 # check whether to enable media statistics support
695 AC_MSG_CHECKING([whether to enable media statistics support])
696 AC_ARG_ENABLE(media_statistics,
697               AC_HELP_STRING([--enable-media-statistics],
698                              [enable support for media statistics [default=no]]),
699               [], [enable_media_statistics="no"])
700 AC_MSG_RESULT([$enable_media_statistics])
701
702 # check whether to enable Javascript Fullscreen API support
703 AC_MSG_CHECKING([whether to enable Fullscreen API support])
704 AC_ARG_ENABLE(fullscreen_api,
705               AC_HELP_STRING([--enable-fullscreen-api],
706                              [enable the Fullscreen API support [default=yes]]),
707               [],[enable_fullscreen_api="yes"])
708 AC_MSG_RESULT([$enable_fullscreen_api])
709
710 # check whether to enable media stream support
711 AC_MSG_CHECKING([whether to enable media stream support])
712 AC_ARG_ENABLE(media_stream,
713               AC_HELP_STRING([--enable-media-stream],
714                              [enable media stream support (incomplete) [default=no]]),
715               [],[enable_media_stream="no"])
716 AC_MSG_RESULT([$enable_media_stream])
717
718 # check whether to enable XPath support
719 AC_MSG_CHECKING([whether to enable XPath support])
720 AC_ARG_ENABLE(xpath,
721               AC_HELP_STRING([--enable-xpath],
722                              [enable support for XPath [default=yes]]),
723               [],[enable_xpath="yes"])
724 AC_MSG_RESULT([$enable_xpath])
725
726 # check whether to enable XSLT support
727 AC_MSG_CHECKING([whether to enable XSLT support])
728 AC_ARG_ENABLE(xslt,
729               AC_HELP_STRING([--enable-xslt],
730                              [enable support for XSLT [default=yes]]),
731               [],[enable_xslt="yes"])
732 AC_MSG_RESULT([$enable_xslt])
733
734 # check whether to enable geolocation support
735 AC_MSG_CHECKING([whether to enable geolocation support])
736 AC_ARG_ENABLE(geolocation,
737               AC_HELP_STRING([--enable-geolocation],
738                              [enable support for geolocation [default=no]]),
739               [],[enable_geolocation="no"])
740 AC_MSG_RESULT([$enable_geolocation])
741
742 # check whether to enable client-based geolocation support
743 AC_MSG_CHECKING([whether to enable client-based geolocation support])
744 AC_ARG_ENABLE(client_based_geolocation,
745               AC_HELP_STRING([--enable-client-based-geolocation],
746                              [enable support for client-based geolocation [default=no]]),
747               [],[enable_client_based_geolocation="no"])
748 AC_MSG_RESULT([$enable_client_based_geolocation])
749
750 # check whether to enable MathML support
751 AC_MSG_CHECKING([whether to enable MathML support])
752 AC_ARG_ENABLE(mathml,
753               AC_HELP_STRING([--enable-mathml],
754                              [enable support for MathML [default=no]]),
755               [],[enable_mathml="no"])
756 AC_MSG_RESULT([$enable_mathml])
757
758 # check whether to enable SVG support
759 AC_MSG_CHECKING([whether to enable SVG support])
760 AC_ARG_ENABLE(svg,
761               AC_HELP_STRING([--enable-svg],
762                              [enable support for SVG [default=yes]]),
763               [],[enable_svg="yes"])
764 AC_MSG_RESULT([$enable_svg])
765
766 # check whether to enable SharedWorkers support
767 AC_MSG_CHECKING([whether to enable SharedWorkers support])
768 AC_ARG_ENABLE(shared_workers,
769               AC_HELP_STRING([--enable-shared-workers],
770                              [enable support for SharedWorkers [default=yes]]),
771               [],[enable_shared_workers="yes"])
772 AC_MSG_RESULT([$enable_shared_workers])
773
774 # check whether to enable Web Workers support
775 AC_MSG_CHECKING([whether to enable Web Workers support])
776 AC_ARG_ENABLE(workers,
777               AC_HELP_STRING([--enable-workers],
778                              [enable support for Web Workers [default=yes]]),
779               [],[enable_workers="yes"])
780 AC_MSG_RESULT([$enable_workers])
781
782 # check whether to enable directory upload support
783 AC_MSG_CHECKING([whether to enable directory upload support])
784 AC_ARG_ENABLE(directory_upload,
785               AC_HELP_STRING([--enable-directory-upload],
786                              [enable support for directory upload [default=no]]),
787               [], [enable_directory_upload="no"])
788 AC_MSG_RESULT([$enable_directory_upload])
789
790 # check whether to enable HTML5 FileSystem API support
791 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
792 AC_ARG_ENABLE(file_system,
793               AC_HELP_STRING([--enable-file-system],
794                              [enable support for HTML5 FileSystem API [default=no]]),
795               [], [enable_file_system="no"])
796 AC_MSG_RESULT([$enable_file_system])
797
798 # check whether to enable Quota API support
799 AC_MSG_CHECKING([whether to enable Quota API support])
800 AC_ARG_ENABLE(quota,
801               AC_HELP_STRING([--enable-quota],
802                              [enable support for Quota API [default=no]]),
803               [], [enable_quota="no"])
804 AC_MSG_RESULT([$enable_quota])
805
806 # turn off svg features if --disable-svg is requested
807 if test "$enable_svg" = "no"; then
808    enable_svg_fonts=no
809 fi
810
811 # check whether to enable support for filters
812 AC_MSG_CHECKING([whether to enable support for filters])
813 AC_ARG_ENABLE(filters,
814               AC_HELP_STRING([--enable-filters],
815                              [enable support for filters (experimental) [default=yes]]),
816               [],[enable_filters="yes"])
817 AC_MSG_RESULT([$enable_filters])
818
819 # check whether to enable support for SVG fonts
820 AC_MSG_CHECKING([whether to enable support for SVG fonts])
821 AC_ARG_ENABLE(svg_fonts,
822               AC_HELP_STRING([--enable-svg-fonts],
823                              [enable support for SVG fonts (experimental) [default=yes]]),
824               [],[enable_svg_fonts="yes"])
825 AC_MSG_RESULT([$enable_svg_fonts])
826
827 # check for SVG features, enabling SVG if necessary
828 if test "$enable_svg_fonts" = "yes"; then
829    svg_flags=yes
830    if test "$enable_svg" = "no"; then
831        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
832        enable_svg=yes
833    fi
834 fi
835
836 # check whether to enable Web Socket support
837 AC_MSG_CHECKING([whether to enable Web Sockets support])
838 AC_ARG_ENABLE(web_sockets,
839               AC_HELP_STRING([--enable-web-sockets],
840                              [enable support for Web Sockets [default=yes]]),
841               [],[enable_web_sockets="yes"])
842 AC_MSG_RESULT([$enable_web_sockets])
843
844 # check whether to enable Web Audio support
845 AC_MSG_CHECKING([whether to enable Web Audio support])
846 AC_ARG_ENABLE(web_audio,
847               AC_HELP_STRING([--enable-web-audio],
848                              [enable support for Web Audio [default=no]]),
849               [],[enable_web_audio="no"])
850 AC_MSG_RESULT([$enable_web_audio])
851
852 # check whether to enable Web Timing support
853 AC_MSG_CHECKING([whether to enable Web Timing support])
854 AC_ARG_ENABLE(web_timing,
855               AC_HELP_STRING([--enable-web-timing],
856                              [enable support for Web Timing [default=no]]),
857               [],[enable_web_timing="no"])
858 AC_MSG_RESULT([$enable_web_timing])
859
860 # check whether to enable Blob support
861 AC_MSG_CHECKING([whether to enable Blob support])
862 AC_ARG_ENABLE(blob,
863               AC_HELP_STRING([--enable-blob],
864                              [enable support for Blob [default=yes]]),
865               [],[enable_blob="yes"])
866 AC_MSG_RESULT([$enable_blob])
867
868 # check whether to enable Fast Mobile Scrolling support
869 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
870 AC_ARG_ENABLE(fast_mobile_scrolling,
871               AC_HELP_STRING([--enable-fast-mobile-scrolling],
872                              [enable support for Fast Mobile Scrolling [default=no]]),
873               [],[enable_fast_mobile_scrolling="no"])
874 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
875
876 # check whether to enable code coverage
877 AC_MSG_CHECKING([whether to enable code coverage support])
878 AC_ARG_ENABLE(coverage,
879               AC_HELP_STRING([--enable-coverage],
880                              [enable code coverage support [default=no]]),
881               [],[enable_coverage="no"])
882 AC_MSG_RESULT([$enable_coverage])
883
884 # check whether to enable FastMalloc
885 AC_MSG_CHECKING([whether to enable optimized memory allocator])
886 AC_ARG_ENABLE(fast_malloc,
887               AC_HELP_STRING([--enable-fast-malloc],
888                              [enable optimized memory allocator default=yes, default=no for debug builds]),
889               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
890 AC_MSG_RESULT([$enable_fast_malloc])
891
892 # check whether to enable debug symbols
893 AC_MSG_CHECKING([whether to enable debug symbols])
894 AC_ARG_ENABLE(debug_symbols,
895               AC_HELP_STRING([--enable-debug-symbols],
896                              [enable debug symbols default=no, default=yes for debug builds]),
897               [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
898 AC_MSG_RESULT([$enable_debug_symbols])
899
900 # check whether to enable debug features
901 AC_MSG_CHECKING([whether to enable debug features])
902 AC_ARG_ENABLE(debug_features,
903               AC_HELP_STRING([--enable-debug-features],
904                              [enable debug features default=no, default=yes for debug builds]),
905               [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
906 AC_MSG_RESULT([$enable_debug_features])
907
908 # Determine JavaScript engine to use.
909 AC_MSG_CHECKING([Javascript engine])
910 AC_ARG_WITH(jsengine,
911             AC_HELP_STRING([--with-jsengine=@<:@jsc@:>@],
912                            [Select Javascript engine [default=jsc]]),
913             [],[with_jsengine="jsc"])
914
915 case "$with_jsengine" in
916      jsc) ;;
917      *) AC_MSG_ERROR([Invalid JS engine: Must be jsc]) ;;
918 esac
919 AC_MSG_RESULT([$with_jsengine])
920
921 if test "$with_jsengine" = "jsc"; then
922     AC_MSG_CHECKING([whether to enable JIT compilation])
923     AC_ARG_ENABLE([jit],
924                   AC_HELP_STRING([--enable-jit],
925                                  [Enable JIT compilation default=yes]),
926                   [],[enable_jit="yes"])
927     if test "$enable_jit" = "yes"; then
928         case "$host_cpu" in
929             arm*)
930                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
931                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
932                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
933             ;;
934             i*86|x86_64)
935                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
936                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
937                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
938                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
939                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
940                 AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
941                 case "$host_cpu" in
942                     i*86)
943                         AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
944                     ;;
945                     x86_64)
946                         AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
947                         AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
948                     ;;
949                 esac
950             ;;
951             sh4)
952                 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
953                 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
954                 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
955                 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
956             ;;
957             *)
958                 enable_jit="no (CPU '$host_cpu' not supported)"
959             ;;
960         esac
961     else
962             AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
963     fi
964 else
965     AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
966     enable_jit="no"
967 fi
968
969 AC_MSG_RESULT([$enable_jit])
970
971 # Opcode stats
972 AC_MSG_CHECKING([whether to enable opcode stats])
973 AC_ARG_ENABLE([opcode-stats],
974   [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
975   [], [enable_opcode_stats=no])
976 AC_MSG_RESULT([$enable_opcode_stats])
977
978 if test "$enable_opcode_stats" = "yes"; then
979   if test "$enable_jit" = "yes"; then
980     AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
981   fi
982   AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
983 fi
984   
985 if test "$with_http_backend" = "curl"; then
986 PKG_CHECK_MODULES(LIBCURL, libcurl)
987 AC_SUBST([LIBCURL_CFLAGS])
988 AC_SUBST([LIBCURL_LIBS])
989 fi
990
991 if test "$with_http_backend" = "soup"; then
992 PKG_CHECK_MODULES([LIBSOUP],
993                      [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
994 AC_SUBST([LIBSOUP_CFLAGS])
995 AC_SUBST([LIBSOUP_LIBS])
996 fi
997    
998 # Link prefetch
999 AC_MSG_CHECKING([whether to enable link prefetch support])
1000 AC_ARG_ENABLE([link-prefetch],
1001   [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
1002   [],[enable_link_prefetch=no])
1003 AC_MSG_RESULT([$enable_link_prefetch])
1004
1005 if test "$enable_link_prefetch" = "yes"; then 
1006   AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
1007 fi
1008
1009 # GObject Introspection
1010 AC_MSG_CHECKING([whether to enable GObject introspection support])
1011 AC_ARG_ENABLE([introspection],
1012   [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
1013   [],[enable_introspection=no])
1014 AC_MSG_RESULT([$enable_introspection])
1015
1016 # check whether to enable animation API
1017 AC_MSG_CHECKING([whether to enable Animation API support])
1018 AC_ARG_ENABLE(animation_api,
1019               AC_HELP_STRING([--enable-animation-api],
1020                              [enable support for Animation API (experimental) [default=no]]),
1021               [], [enable_animation_api="no"])
1022 AC_MSG_RESULT([$enable_animation_api])
1023
1024 # check whether to enable requestAnimationFrame support
1025 AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
1026 AC_ARG_ENABLE(request_animation_frame,
1027               AC_HELP_STRING([--enable-request-animation-frame],
1028                              [enable support for requestAnimationFrame (experimental) [default=no]]),
1029               [],[enable_request_animation_frame="no"])
1030 AC_MSG_RESULT([$enable_request_animation_frame])
1031
1032 # check whether to enable touch icon loading 
1033 AC_MSG_CHECKING([whether to enable touch icon loading])
1034 AC_ARG_ENABLE(touch_icon_loading,
1035               AC_HELP_STRING([--enable-touch-icon-loading],
1036                              [enable support for loading touch icons [default=no]]),
1037               [], [enable_touch_icon_loading="no"])
1038 AC_MSG_RESULT([$enable_touch_icon_loading])
1039
1040 # check whether to enable Register Protocol Handler support
1041 AC_MSG_CHECKING([whether to enable Register Protocol Handler])
1042 AC_ARG_ENABLE(register_protocol_handler,
1043               AC_HELP_STRING([--enable-register-protocol-handler],
1044                              [enable support for Register Protocol Handler (experimental) [default=no]]),
1045               [],[enable_register_protocol_handler="no"])
1046 AC_MSG_RESULT([$enable_register_protocol_handler])
1047
1048 # check whether to enable DeviceOrientation support
1049 AC_MSG_CHECKING([whether to enable DeviceOrientation])
1050 AC_ARG_ENABLE(device_orientation,
1051               AC_HELP_STRING([--enable-device-orientation],
1052                              [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
1053               [],[enable_device_orientation="no"])
1054 AC_MSG_RESULT([$enable_device_orientation])
1055
1056 G_IR_SCANNER=
1057 G_IR_COMPILER=
1058 G_IR_GENERATE=
1059 GIRDIR=
1060 GIRTYPELIBDIR=
1061
1062 if test "$enable_introspection" = "yes"; then
1063   GOBJECT_INTROSPECTION_REQUIRED=0.9.5
1064   PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
1065   
1066   G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
1067   G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
1068   G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
1069   AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
1070 fi
1071
1072 AC_SUBST([G_IR_SCANNER])
1073 AC_SUBST([G_IR_COMPILER])
1074 AC_SUBST([G_IR_GENERATE])
1075
1076 if test "$with_port" = "efl"; then
1077 # check whether to build with glib support
1078 AC_MSG_CHECKING([whether to enable Glib support (adds main loop integration when using EFL)])
1079 AC_ARG_ENABLE(glib_support,
1080               AC_HELP_STRING([--enable-glib-support],
1081                              [enable Glib support [default=yes]]),
1082               [],[enable_glib_support="yes"])
1083 AC_MSG_RESULT([$enable_glib_support])
1084
1085 # check for SVG features, enabling SVG if necessary
1086 if test "$enable_glib_support" = "no" && \
1087    test "$enable_video" = "yes"; then
1088        AC_MSG_ERROR([Video support requires glib-support. See --enable-glib-support configure option.])
1089 fi
1090
1091 AC_MSG_CHECKING([whether to enable GTK plugins support (requires glib support)])
1092 AC_ARG_ENABLE(gtk_plugins_support,
1093               AC_HELP_STRING([--enable-gtk-plugins-support],
1094                              [enable gtk plugins support [default=yes]]),
1095               [],[enable_gtk_plugins_support="auto"])
1096 AC_MSG_RESULT([$enable_gtk_plugins_support])
1097
1098 if test "$enable_gtk_plugins_support" = "yes" -a "$enable_glib_support" = "no"; then
1099    AC_MSG_ERROR([required gtk plugins support, but no glib support.])
1100 fi
1101
1102 if test "$enable_gtk_plugins_support" != "no"; then
1103    PKG_CHECK_MODULES(GTK, [gtk+-2.0], [has_gtk="yes"], [has_gtk="no"])
1104    AC_SUBST([GTK_CFLAGS])
1105    AC_SUBST([GTK_LIBS])
1106 fi
1107
1108 if test "$enable_gtk_plugins_support" = "yes" -a "$has_gtk" = "no"; then
1109    AC_MSG_ERROR([required gtk plugins support but no gtk+-2.0 pkg-config found.])
1110 elif test "$enable_gtk_plugins_support" = "auto" -a "$has_gtk" = "yes"; then
1111    enable_gtk_plugins_support="yes"
1112 fi
1113
1114 fi
1115
1116 # determine the font backend
1117 AC_MSG_CHECKING([the font backend to use])
1118 AC_ARG_WITH(font_backend,
1119             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
1120                            [Select font backend [default=freetype]]),
1121             [],[with_font_backend="freetype"])
1122
1123 case "$with_font_backend" in
1124      freetype|pango) ;;
1125      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
1126 esac
1127 AC_MSG_RESULT([$with_font_backend])
1128
1129 if test "$host_cpu" = "sh4"; then
1130    CXXFLAGS="$CXXFLAGS -mieee -w"
1131    CFLAGS="$CFLAGS -mieee -w"
1132 fi
1133
1134 # Add '-g' flag to gcc to build with debug symbols
1135 if test "$enable_debug_symbols" = "yes"; then
1136    CXXFLAGS="$CXXFLAGS -g"
1137    CFLAGS="$CFLAGS -g"
1138 fi
1139
1140 if test "$enable_debug_features" = "no"; then
1141    AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
1142 fi
1143
1144 # Add the appropriate 'O' level for optimized builds
1145 if test "$enable_optimizations" = "yes"; then
1146    CXXFLAGS="$CXXFLAGS -O2"
1147    CFLAGS="$CFLAGS -O2"
1148 else
1149    CXXFLAGS="$CXXFLAGS -O0"
1150    CFLAGS="$CFLAGS -O0"
1151 fi
1152
1153
1154 # check if FreeType/FontConfig are available
1155 if test "$with_font_backend" = "freetype"; then
1156    if test "$with_target" = "directfb"; then
1157    PKG_CHECK_MODULES([FREETYPE],
1158                      [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1159                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1160    else
1161    PKG_CHECK_MODULES([FREETYPE],
1162                      [cairo-ft
1163                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1164                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1165    fi
1166    AC_SUBST([FREETYPE_CFLAGS])
1167    AC_SUBST([FREETYPE_LIBS])
1168 fi
1169
1170 # check if SQLite3 is available. Error out only if one of the
1171 # features hard-depending on it is enabled while SQLite3 is
1172 # unavailable.
1173 PKG_CHECK_MODULES([SQLITE3],
1174                   [sqlite3 >= $SQLITE_REQUIRED_VERSION],
1175                   [sqlite3_has_pkg_config=yes],
1176                   [sqlite3_has_pkg_config=no])
1177 if test "$sqlite3_has_pkg_config" = "no"; then
1178    AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
1179                   [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
1180                   [sqlite3_found=no])
1181 fi
1182 AC_SUBST([SQLITE3_CFLAGS])
1183 AC_SUBST([SQLITE3_LIBS])
1184
1185 if (test "$sqlite3_found" = "no"); then
1186    AC_MSG_ERROR([SQLite3 is required for the Database related features])
1187 fi
1188
1189 # check if glib is available
1190 if test "$enable_glib_support" = "yes"; then
1191    GLIB_REQUIRED_VERSION=2.0
1192    GTHREAD_REQUIRED_VERSION=2.0
1193    PKG_CHECK_MODULES([GLIB],
1194                      [glib-2.0 >= $GLIB_REQUIRED_VERSION
1195                      gthread-2.0 >= $GTHREAD_REQUIRED_VERSION])
1196    AC_SUBST([GLIB_CFLAGS])
1197    AC_SUBST([GLIB_LIBS])
1198 fi
1199
1200 # check if libxslt is available
1201 if test "$enable_xslt" = "yes"; then
1202    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
1203    AC_SUBST([LIBXSLT_CFLAGS])
1204    AC_SUBST([LIBXSLT_LIBS])
1205 fi
1206
1207 # check if geoclue is available
1208 if test "$enable_geolocation" = "yes"; then
1209     PKG_CHECK_MODULES([GEOCLUE], [geoclue location])
1210     AC_DEFINE([ENABLE_GEOLOCATION], [1], [Define to enable geolocation])
1211     AC_SUBST([GEOCLUE_CFLAGS])
1212     AC_SUBST([GEOCLUE_LIBS])
1213 fi
1214
1215 # check for XRender under Linux/Unix. Some linkers require explicit
1216 # linkage (like GNU Gold), so we cannot rely on GTK+ pulling XRender
1217 if test "$os_win32" = "no"; then
1218    PKG_CHECK_MODULES([XRENDER], [xrender])
1219    AC_SUBST([XRENDER_CFLAGS])
1220    AC_SUBST([XRENDER_LIBS])
1221 fi
1222
1223 # check if gstreamer is available
1224 if test "$enable_video" = "yes"; then
1225    PKG_CHECK_MODULES([GSTREAMER],
1226                      [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
1227                      gstreamer-app-0.10
1228                      gstreamer-base-0.10
1229                      gstreamer-interfaces-0.10
1230                      gstreamer-pbutils-0.10
1231                      gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
1232                      gstreamer-video-0.10],
1233                      [have_gstreamer=yes])
1234
1235    AC_SUBST([GSTREAMER_CFLAGS])
1236    AC_SUBST([GSTREAMER_LIBS])
1237 fi
1238
1239 # check for code coverage support
1240 if test "$enable_coverage" = "yes"; then
1241    COVERAGE_CFLAGS="-MD"
1242    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1243    AC_SUBST([COVERAGE_CFLAGS])
1244    AC_SUBST([COVERAGE_LDFLAGS])
1245 fi
1246
1247 # check for HTML features
1248 if test "$enable_video" = "yes"; then
1249     html_flags=yes
1250 fi
1251
1252 # WebKit2
1253 AC_MSG_CHECKING([whether to build Webkit2])
1254 AC_ARG_ENABLE(webkit2,
1255     AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=no]]),
1256     [], [enable_webkit2="no"])
1257 AC_MSG_RESULT([$enable_webkit2])
1258 if test "$enable_webkit2" = "yes"; then
1259    if test "$GTK_API_VERSION" = "2.0"; then
1260       AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1261    fi
1262 fi
1263
1264 # Plugin Process
1265 AC_MSG_CHECKING([whether to build plugin process for WebKit2])
1266 AC_ARG_ENABLE(plugin_process,
1267             AC_HELP_STRING([--enable-plugin-process], [build plugin process for WebKit2 [default=yes]]),
1268                            [], [enable_plugin_process="yes"])
1269 AC_MSG_RESULT([$enable_plugin_process])
1270
1271 # Build the plugin process only when building Webkit2.
1272 if test "$enable_webkit2" = "no"; then
1273     enable_plugin_process=no
1274 fi
1275
1276 # Make sure we have GTK+ 2.x to build the plugin process.
1277 if test "$enable_plugin_process" = "yes"; then
1278    PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1279 fi
1280 AC_SUBST(GTK2_CFLAGS)
1281 AC_SUBST(GTK2_LIBS)
1282
1283 GTK_DOC_CHECK([1.10])
1284
1285 # OS conditionals
1286 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1287 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1288 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1289 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1290 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1291
1292 # target conditionals
1293 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1294 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1295 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1296 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1297 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "arm"])
1298 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "i386"])
1299
1300 # JS engine conditionals
1301 AM_CONDITIONAL([USE_JSC], [test "$with_jsengine" = "jsc"])
1302
1303 # Unicode backend conditionals
1304 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1305 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1306
1307 # Font backend conditionals
1308 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1309 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1310
1311 # GStreamer feature conditional
1312 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1313
1314 # WebKit feature conditionals
1315 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1316 AM_CONDITIONAL([ENABLE_3D_RENDERING],[test "$enable_3d_rendering" = "yes"])
1317 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1318 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1319 AM_CONDITIONAL([ENABLE_METER_TAG],[test "$enable_meter_tag" = "yes"])
1320 AM_CONDITIONAL([ENABLE_MICRODATA],[test "$enable_microdata" = "yes"])
1321 AM_CONDITIONAL([ENABLE_PAGE_VISIBILITY_API],[test "$enable_page_visibility_api" = "yes"])
1322 AM_CONDITIONAL([ENABLE_PROGRESS_TAG],[test "$enable_progress_tag" = "yes"])
1323 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1324 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1325 AM_CONDITIONAL([ENABLE_TIZEN_SUPPORT_BLUE_RUNNER],[test "$enable_slp_support_blue_runner" = "yes"])
1326 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
1327 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1328 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1329 AM_CONDITIONAL([ENABLE_DATAGRID],[test "$enable_datagrid" = "yes"])
1330 AM_CONDITIONAL([ENABLE_DATA_TRANSFER_ITEMS],[test "$enable_data_transfer_items" = "yes"])
1331 AM_CONDITIONAL([ENABLE_SQL_DATABASE],[test "$enable_sql_database" = "yes"])
1332 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
1333 AM_CONDITIONAL([ENABLE_DETAILS],[test "$enable_details" = "yes"])
1334 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1335 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1336 AM_CONDITIONAL([ENABLE_QUOTA],[test "$enable_quota" = "yes"])
1337 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1338 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
1339 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1340 AM_CONDITIONAL([ENABLE_INPUT_COLOR],[test "$enable_input_color" = "yes"])
1341 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1342 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
1343 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1344 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1345 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1346 AM_CONDITIONAL([ENABLE_CLIENT_BASED_GEOLOCATION], [test "$enable_client_based_geolocation" = "yes"])
1347 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1348 AM_CONDITIONAL([ENABLE_MHTML], [test "$enable_mhtml" = "yes"])
1349 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1350 AM_CONDITIONAL([ENABLE_MEDIA_SOURCE],[test "$enable_media_source" = "yes"])
1351 AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1352 AM_CONDITIONAL([ENABLE_VIDEO_TRACK],[test "$enable_video_track" = "yes"])
1353 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1354 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1355 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1356 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1357 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1358 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1359 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1360 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1361 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1362 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1363 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1364 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1365 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1366 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1367 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1368 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1369 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1370 AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
1371 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1372 AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
1373 AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
1374 AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
1375 AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
1376 AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
1377 AM_CONDITIONAL([ENABLE_MUTATION_OBSERVERS],[test "$enable_mutation_observers" = "yes"])
1378
1379 # Gtk conditionals
1380 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1381
1382 AC_CONFIG_FILES([
1383 GNUmakefile
1384 ])
1385  
1386
1387 AC_CONFIG_FILES([
1388 Source/WebKit/gtk/webkit/webkitversion.h
1389 Source/WebKit/gtk/docs/GNUmakefile
1390 Source/WebKit/gtk/docs/version.xml
1391 Source/WebKit2/UIProcess/API/gtk/docs/GNUmakefile
1392 Source/WebKit2/UIProcess/API/gtk/docs/version.xml
1393 ])
1394
1395 AC_CONFIG_FILES([
1396 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1397 Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1398 Source/WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:Source/WebKit/gtk/org.webkitgtk.gschema.xml.in
1399 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1400 ]
1401 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1402 )
1403
1404
1405 if test "$enable_webkit2" = "yes"; then
1406     AC_CONFIG_FILES([
1407     Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1408     ]
1409     ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1410     )
1411 fi
1412
1413 AC_OUTPUT
1414
1415 echo "
1416 WebKit was configured with the following options:
1417
1418 Build configuration:
1419  Enable debugging (slow)                                  : $enable_debug
1420  Compile with debug symbols (slow)                        : $enable_debug_symbols
1421  Enable debug features (slow)                             : $enable_debug_features
1422  Enable GCC build optimization                            : $enable_optimizations
1423  Code coverage support                                    : $enable_coverage
1424  Unicode backend                                          : $with_unicode_backend
1425  Font backend                                             : $with_font_backend
1426  Optimized memory allocator                               : $enable_fast_malloc
1427  JavaScript Engine                                        : $with_jsengine
1428 Features:
1429  3D Rendering                                             : $enable_3d_rendering
1430  WebGL                                                    : $enable_webgl
1431  Blob support                                             : $enable_blob
1432  DOM mutation observer support                            : $enable_mutation_observers
1433  DeviceOrientation support                                : $enable_device_orientation
1434  Directory upload                                         : $enable_directory_upload
1435  Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
1436  JIT compilation                                          : $enable_jit
1437  Filters support                                          : $enable_filters
1438  Geolocation support                                      : $enable_geolocation
1439  Client-based geolocation support                         : $enable_client_based_geolocation
1440  JavaScript debugger/profiler support                     : $enable_javascript_debugger
1441  Gamepad support                                          : $enable_gamepad
1442  MathML support                                           : $enable_mathml
1443  Media source                                             : $enable_media_source
1444  Media statistics                                         : $enable_media_statistics
1445  HTML5 channel messaging support                          : $enable_channel_messaging
1446  HTML5 meter element support                              : $enable_meter_tag
1447  HTML5 microdata support                                  : $enable_microdata
1448  Page Visibility API support                              : $enable_page_visibility_api
1449  HTML5 progress element support                           : $enable_progress_tag
1450  HTML5 client-side session and persistent storage support : $enable_dom_storage
1451  SQL client-side database storage support                 : $enable_sql_database
1452  HTML5 datagrid support                                   : $enable_datagrid
1453  HTML5 data transfer items support                        : $enable_data_transfer_items
1454  HTML5 FileSystem API support                             : $enable_file_system
1455  Quota API support                                        : $enable_quota
1456  HTML5 sandboxed iframe support                           : $enable_sandbox
1457  HTML5 video element support                              : $enable_video
1458  HTML5 track element support                              : $enable_video_track
1459  Fullscreen API support                                   : $enable_fullscreen_api
1460  Media stream support                                     : $enable_media_stream
1461  Icon database support                                    : $enable_icon_database
1462  Image resizer support                                    : $enable_image_resizer
1463  Link prefetch support                                    : $enable_link_prefetch
1464  Opcode stats                                             : $enable_opcode_stats
1465  SharedWorkers support                                    : $enable_shared_workers
1466  Color input support                                      : $enable_input_color
1467  Speech input support                                     : $enable_input_speech
1468  SVG support                                              : $enable_svg
1469  SVG fonts support                                        : $enable_svg_fonts
1470  Web Audio support                                        : $enable_web_audio
1471  Web Sockets support                                      : $enable_web_sockets
1472  Web Timing support                                       : $enable_web_timing
1473  Web Workers support                                      : $enable_workers
1474  XPATH support                                            : $enable_xpath
1475  XSLT support                                             : $enable_xslt
1476  Spellcheck support                                       : $enable_spellcheck
1477  Animation API                                            : $enable_animation_api
1478  RequestAnimationFrame support                            : $enable_request_animation_frame
1479  Touch Icon Loading support                               : $enable_touch_icon_loading
1480  Register Protocol Handler support                        : $enable_register_protocol_handler
1481  WebKit2 support                                          : $enable_webkit2
1482  WebKit2 plugin process                                   : $enable_plugin_process
1483
1484 GTK+ configuration:
1485  GTK+ version                                             : $with_gtk
1486  GDK target                                               : $with_target
1487  Hildon UI extensions                                     : $with_hildon
1488  Introspection support                                    : $enable_introspection
1489 "
1490 if test "$with_unicode_backend" = "glib"; then
1491    echo "     >> WARNING: the glib-based unicode backend is slow and incomplete <<"
1492    echo
1493    echo
1494 fi