3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [7])
5 m4_define([webkit_micro_version], [4])
7 # This is the version we'll be using as part of our User-Agent string
8 # e.g., AppleWebKit/$(webkit_user_agent_version) ...
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], [18])
14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
16 AC_CONFIG_MACRO_DIR([Source/autotools])
17 AC_CONFIG_AUX_DIR([Source/autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools")
20 AC_CONFIG_HEADERS([autotoolsconfig.h])
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)
34 AC_CONFIG_SRCDIR([Source/WebCore/config.h])
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:4:11
39 AC_SUBST([LIBWEBKITGTK_VERSION])
41 AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
43 # Use AM_SILENT_RULES if present
44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
46 # host checking - inspired by the GTK+ configure.in
47 # TODO: move these to webkit.m4?
48 AC_MSG_CHECKING([for native Win32])
57 AC_MSG_RESULT([$os_win32])
72 gnu* | linux* | k*bsd*-gnu)
80 # initialize webkit options
85 # use dolt to speedup the build
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])
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]))
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])
102 # Disable C++0x compat warnings for GCC >= 4.6.0 until we build
105 TMPCXXFLAGS=$CXXFLAGS
106 CXXFLAGS="-Wall -Werror"
107 AC_MSG_CHECKING([if we have to disable C++0x compat warnings for GCC >= 4.6.0])
112 extern std::nullptr_t nullptr;
114 CXXFLAGS="$TMPCXXFLAGS", CXXFLAGS="$TMPCXXFLAGS -Wno-c++0x-compat")
117 # pthread (not needed on Windows)
118 if test "$os_win32" = "no"; then
119 AC_CHECK_HEADERS([pthread.h],
120 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
121 AC_MSG_ERROR([pthread support is required to build WebKit]))
122 AC_CHECK_LIB(pthread, pthread_rwlock_init,
123 AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
124 AC_MSG_WARN([pthread rwlock support is not available]))
127 # check for libjpeg the way Gtk does it.
128 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
129 jpeg_ok=yes, jpeg_ok=no
130 AC_MSG_ERROR([JPEG library (libjpeg) not found]))
131 if test "$jpeg_ok" = yes; then
132 AC_MSG_CHECKING([for jpeglib])
138 #include <jpeglib.h>],
141 AC_MSG_RESULT($jpeg_ok)
142 if test "$jpeg_ok" = yes; then
144 # should we check for progressive JPEG like GTK+ as well?
146 AC_MSG_ERROR([JPEG library (libjpeg) not found])
149 AC_SUBST([JPEG_LIBS])
151 # Check for libpng the way Gtk+ does it
152 for l in libpng libpng14 libpng12; do
153 AC_MSG_CHECKING(for $l)
154 if $PKG_CONFIG --exists $l ; then
156 PNG_LIBS=`$PKG_CONFIG --libs $l`
164 if test "$png_ok" != yes; then
165 AC_CHECK_LIB(png, png_read_info,
166 [AC_CHECK_HEADER(png.h,
169 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
170 if test "$png_ok" = yes; then
171 AC_MSG_CHECKING([for png_structp in png.h])
172 AC_TRY_COMPILE([#include <png.h>],
173 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
176 AC_MSG_RESULT($png_ok)
177 if test "$png_ok" = yes; then
180 AC_MSG_ERROR([PNG library (libpng) not found])
183 AC_MSG_ERROR([PNG library (libpng) not found])
189 if test "$os_win32" = "yes"; then
191 SHLWAPI_LIBS=-lshlwapi
194 AC_SUBST([WINMM_LIBS])
195 AC_SUBST([SHLWAPI_LIBS])
196 AC_SUBST([OLE32_LIBS])
199 # determine the GTK+ version to use
200 AC_MSG_CHECKING([the GTK+ version to use])
202 [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
205 *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
208 AC_MSG_RESULT([$with_gtk])
210 GTK2_REQUIRED_VERSION=2.10
211 GAIL2_REQUIRED_VERSION=1.8
212 GTK3_REQUIRED_VERSION=3.0
213 GAIL3_REQUIRED_VERSION=3.0
216 2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
218 WEBKITGTK_API_MAJOR_VERSION=1
219 WEBKITGTK_API_MINOR_VERSION=0
220 WEBKITGTK_API_VERSION=1.0
221 WEBKITGTK_PC_NAME=webkit
223 GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
225 3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
227 WEBKITGTK_API_MAJOR_VERSION=3
228 WEBKITGTK_API_MINOR_VERSION=0
229 WEBKITGTK_API_VERSION=3.0
230 WEBKITGTK_PC_NAME=webkitgtk
231 GAIL_PC_NAME=gail-3.0
232 GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION
236 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
237 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
238 AC_SUBST([WEBKITGTK_API_VERSION])
239 AC_SUBST([WEBKITGTK_PC_NAME])
240 AC_SUBST([GTK_API_VERSION])
241 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
243 # determine the GDK/GTK+ target
244 AC_MSG_CHECKING([the target windowing system])
246 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
247 [Select webkit target [default=x11]]),
248 [],[with_target="x11"])
250 case "$with_target" in
251 x11|win32|quartz|directfb) ;;
252 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
255 AC_MSG_RESULT([$with_target])
257 AC_MSG_CHECKING([for Hildon UI extensions])
259 AC_HELP_STRING([--with-hildon],
260 [Use Hildon UI extensions [default=no]]),
261 [],[with_hildon="no"])
262 AC_MSG_RESULT([$with_hildon])
264 if test "$with_hildon" = "yes"; then
265 HILDON_CPPFLAGS="-DMAEMO_CHANGES"
266 PKG_CHECK_MODULES([HILDON], [hildon-1])
267 AC_SUBST([HILDON_CPPFLAGS])
268 AC_SUBST([HILDON_CFLAGS])
269 AC_SUBST([HILDON_LIBS])
272 # minimum base dependencies
273 LIBSOUP_REQUIRED_VERSION=2.37.2.1
274 CAIRO_REQUIRED_VERSION=1.10
275 FONTCONFIG_REQUIRED_VERSION=2.4
276 FREETYPE2_REQUIRED_VERSION=9.0
277 LIBXML_REQUIRED_VERSION=2.6
279 # minimum GTK+ base dependencies
280 PANGO_REQUIRED_VERSION=1.12
283 LIBXSLT_REQUIRED_VERSION=1.1.7
284 SQLITE_REQUIRED_VERSION=3.0
285 GSTREAMER_REQUIRED_VERSION=0.10
286 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.30
287 ENCHANT_REQUIRED_VERSION=0.22
288 LIBFFTW_REQUIRED_VERSION=3.2.2
289 CLUTTER_REQUIRED_VERSION=1.8.2
290 CLUTTER_GTK_REQUIRED_VERSION=1.0.2
291 ATSPI2_REQUIRED_VERSION=2.2.1
295 # glib - glib and includes gthread
296 # unicode - check and identify which unicode backend to use
299 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
301 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
302 AC_SUBST(GETTEXT_PACKAGE)
303 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
304 [The gettext catalog name])
306 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
307 AC_SUBST(LIBXML_CFLAGS)
308 AC_SUBST(LIBXML_LIBS)
310 PKG_CHECK_MODULES(PANGO,
311 [pango >= $PANGO_REQUIRED_VERSION
313 AC_SUBST(PANGO_CFLAGS)
316 AC_MSG_CHECKING([whether to enable spellcheck support])
317 AC_ARG_ENABLE([spellcheck],
318 [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
319 [],[enable_spellcheck="yes"])
320 AC_MSG_RESULT([$enable_spellcheck])
322 if test "$enable_spellcheck" = "yes"; then
323 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
324 AC_SUBST(ENCHANT_CFLAGS)
325 AC_SUBST(ENCHANT_LIBS)
328 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
329 AC_SUBST(GAIL_CFLAGS)
332 # check for target-specific dependencies
333 if test "$with_target" = "directfb"; then
334 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
335 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
336 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
338 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
339 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
341 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
343 PKG_CHECK_MODULES([XT],
345 [xt_has_pkg_config=yes],
346 [xt_has_pkg_config=no])
347 # some old versions of Xt do not provide xt.pc, so try to link against Xt
348 # and if it's installed fall back to just adding -lXt
349 if test "$xt_has_pkg_config" = "no"; then
350 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
351 # we don't care about the XtOpenDisplay symbol but only about the
353 AC_CHECK_LIB([Xt], [XtOpenDisplay],
354 [XT_CFLAGS=""; XT_LIBS="-lXt"],
355 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
357 AC_SUBST([XT_CFLAGS])
359 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
364 AC_SUBST(CAIRO_CFLAGS)
367 # check whether to build with debugging enabled
368 AC_MSG_CHECKING([whether to do a debug build])
370 AC_HELP_STRING([--enable-debug],
371 [turn on debugging [default=no]]),
372 [],[enable_debug="no"])
373 AC_MSG_RESULT([$enable_debug])
375 # check whether to enable optimized builds
376 AC_MSG_CHECKING([whether to enable optimized builds])
377 AC_ARG_ENABLE(optimizations,
378 AC_HELP_STRING([--enable-optimizations],
379 [turn on optimize builds (GCC only)
381 [enable_optimizations=$enableval],
382 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
383 AC_MSG_RESULT([$enable_optimizations])
385 # check whether to enable WebGL support
386 AC_MSG_CHECKING([whether to enable WebGL support])
388 AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=yes]]),
389 [], [if test "$with_target" = "x11"; then enable_webgl="yes"; else enable_webgl="no"; fi])
390 AC_MSG_RESULT([$enable_webgl])
392 # check whether to enable accelerated compositing support
393 AC_MSG_CHECKING([whether to enable accelerated compositing support])
394 AC_ARG_WITH(accelerated_compositing,
395 AC_HELP_STRING([--with-accelerated-compositing=@<:@no/opengl/cairo/clutter@:>@],
396 [use accelerated compositing (experimental) [default=no]]),
397 [], [with_accelerated_compositing="no"])
398 AC_MSG_RESULT([$with_accelerated_compositing])
400 if test "$enable_webgl" = "yes" || test "$with_accelerated_compositing" = "opengl" ; then
401 AC_CHECK_HEADERS([GL/gl.h], [], AC_MSG_ERROR([OpenGL header not found]))
402 AC_CHECK_HEADERS([GL/glx.h], [], AC_MSG_ERROR([GLX header not found]))
403 OPENGL_LIBS="-lGL -ldl"
405 AC_SUBST([OPENGL_LIBS])
407 if test "$with_accelerated_compositing" = "clutter"; then
408 PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
409 PKG_CHECK_MODULES([CLUTTER_GTK], [clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED_VERSION])
411 AC_SUBST(CLUTTER_CFLAGS)
412 AC_SUBST(CLUTTER_LIBS)
413 AC_SUBST(CLUTTER_GTK_CFLAGS)
414 AC_SUBST(CLUTTER_GTK_LIBS)
417 # check whether to enable channel messaging support
418 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
419 AC_ARG_ENABLE(channel_messaging,
420 AC_HELP_STRING([--enable-channel-messaging],
421 [enable HTML5 channel messaging support [default=yes]]),
422 [],[enable_channel_messaging="yes"])
423 AC_MSG_RESULT([$enable_channel_messaging])
425 # check whether to enable notifications
426 AC_MSG_CHECKING([whether to enable notifications])
427 AC_ARG_ENABLE(notifications,
428 AC_HELP_STRING([--enable-notifications],
429 [enable notifications [default=no]]),
430 [],[enable_notifications="no"])
431 AC_MSG_RESULT([$enable_notifications])
433 # check whether to enable the meter tag
434 AC_MSG_CHECKING([whether to enable HTML5 meter tag])
435 AC_ARG_ENABLE(meter_tag,
436 AC_HELP_STRING([--enable-meter-tag],
437 [enable HTML5 meter [default=yes]]),
438 [],[enable_meter_tag="yes"])
439 AC_MSG_RESULT([$enable_meter_tag])
441 # check whether to enable HTML5 Microdata support
442 AC_MSG_CHECKING([whether to enable HTML5 Microdata support])
443 AC_ARG_ENABLE(microdata,
444 AC_HELP_STRING([--enable-microdata],
445 [enable HTML5 microdata support [default=no]]),
446 [],[enable_microdata="no"])
447 AC_MSG_RESULT([$enable_microdata])
449 # check whether to enable page visibility API.
450 AC_MSG_CHECKING([whether to enable Page Visibility API support])
451 AC_ARG_ENABLE(page_visibility_api,
452 AC_HELP_STRING([--enable-page-visibility-api],
453 [enable page visibility api[default=no]]),
454 [],[enable_page_visibility_api="no"])
455 AC_MSG_RESULT([$enable_page_visibility_api])
457 # check whether to enable the progress tag
458 AC_MSG_CHECKING([whether to enable HTML5 progress tag])
459 AC_ARG_ENABLE(progress_tag,
460 AC_HELP_STRING([--enable-progress-tag],
461 [enable HTML5 progress [default=yes]]),
462 [],[enable_progress_tag="yes"])
463 AC_MSG_RESULT([$enable_progress_tag])
465 # check whether to enable JavaScript debugger/profiler support
466 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
467 AC_ARG_ENABLE(javascript_debugger,
468 AC_HELP_STRING([--enable-javascript-debugger],
469 [enable JavaScript debugger/profiler support [default=yes]]),
470 [],[enable_javascript_debugger="yes"])
471 AC_MSG_RESULT([$enable_javascript_debugger])
473 # check whether to enable Gamepad support
474 AC_MSG_CHECKING([whether to enable Gamepad support])
475 AC_ARG_ENABLE(gamepad,
476 AC_HELP_STRING([--enable-gamepad],
477 [enable Gamepad support [default=no]]),
478 [],[enable_gamepad="no"])
479 AC_MSG_RESULT([$enable_gamepad])
481 # check whether to build with datagrid support
482 AC_MSG_CHECKING([whether to enable HTML5 datagrid support])
483 AC_ARG_ENABLE(datagrid,
484 AC_HELP_STRING([--enable-datagrid],
485 [enable HTML5 datagrid support [default=no]]),
486 [],[enable_datagrid="no"])
487 AC_MSG_RESULT([$enable_datagrid])
489 # check whether to build with data transfer items support
490 AC_MSG_CHECKING([whether to enable HTML5 data transfer items support])
491 AC_ARG_ENABLE(data_transfer_items,
492 AC_HELP_STRING([--enable-data-transfer-items],
493 [enable HTML5 data transfer items support [default=no]]),
494 [],[enable_data_transfer_items="no"])
495 AC_MSG_RESULT([$enable_data_transfer_items])
497 # check whether to enable DOM mutation observer support
498 AC_MSG_CHECKING([whether to enable DOM mutation observer support])
499 AC_ARG_ENABLE(mutation_observers,
500 AC_HELP_STRING([--enable-mutation-observers],
501 [enable DOM mutation observer support [default=no]]),
502 [],[enable_mutation_observers="no"])
503 AC_MSG_RESULT([$enable_mutation_observers])
505 # check whether to enable HTML5 client-side session and persitent storage support
506 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
507 AC_ARG_ENABLE(dom_storage,
508 AC_HELP_STRING([--enable-dom-storage],
509 [enable HTML5 client-side session and persistent storage support [default=yes]]),
510 [],[enable_dom_storage="yes"])
511 AC_MSG_RESULT([$enable_dom_storage])
513 # check whether to enable the indexed database API
514 AC_MSG_CHECKING([whether to enable the indexed database API])
515 AC_ARG_ENABLE(indexed_database,
516 AC_HELP_STRING([--enable-indexed-database],
517 [enable the indexed database API [default=no]]),
518 [],[enable_indexed_database="no"])
519 AC_MSG_RESULT([$enable_indexed_database])
521 # check whether to enable the color input
522 AC_MSG_CHECKING([whether to enable the color input])
523 AC_ARG_ENABLE(input_color,
524 AC_HELP_STRING([--enable-input-color],
525 [enable the color input [default=no]]),
526 [],[enable_input_color="no"])
527 AC_MSG_RESULT([$enable_input_color])
529 # check whether to enable the speech input API
530 AC_MSG_CHECKING([whether to enable the speech input API])
531 AC_ARG_ENABLE(input_speech,
532 AC_HELP_STRING([--enable-input-speech],
533 [enable the speech input API [default=no]]),
534 [],[enable_input_speech="no"])
535 AC_MSG_RESULT([$enable_input_speech])
537 # check whether to build with SQL database support
538 AC_MSG_CHECKING([whether to enable SQL client-side database storage support])
539 AC_ARG_ENABLE(sql_database,
540 AC_HELP_STRING([--enable-sql-database],
541 [enable SQL client-side database storage support [default=yes]]),
542 [],[enable_sql_database="yes"])
543 AC_MSG_RESULT([$enable_sql_database])
545 # check whether to build with icon database support
546 AC_MSG_CHECKING([whether to enable icon database support])
547 AC_ARG_ENABLE(icon_database,
548 AC_HELP_STRING([--enable-icon-database],
549 [enable icon database [default=yes]]),
550 [],[enable_icon_database="yes"])
551 AC_MSG_RESULT([$enable_icon_database])
553 # check whether to build with image resizer API support
554 AC_MSG_CHECKING([whether to enable image resizer API support])
555 AC_ARG_ENABLE(image_resizer,
556 AC_HELP_STRING([--enable-image-resizer],
557 [enable image resizer [default=no]]),
558 [],[enable_image_resizer="no"])
559 AC_MSG_RESULT([$enable_image_resizer])
561 # check whether to enable HTML5 datalist support
562 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
563 AC_ARG_ENABLE(datalist,
564 AC_HELP_STRING([--enable-datalist],
565 [enable HTML5 datalist support [default=yes]]),
566 [],[enable_datalist="yes"])
567 AC_MSG_RESULT([$enable_datalist])
569 # check whether to enable HTML5 sandbox iframe support
570 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
571 AC_ARG_ENABLE(sandbox,
572 AC_HELP_STRING([--enable-sandbox],
573 [enable HTML5 sandboxed iframe support [default=yes]]),
574 [],[enable_sandbox="yes"])
575 AC_MSG_RESULT([$enable_sandbox])
577 # check whether to enable HTML5 audio/video support
578 AC_MSG_CHECKING([whether to enable HTML5 video support])
580 AC_HELP_STRING([--enable-video],
581 [enable HTML5 video support [default=yes]]),
582 [],[enable_video="yes"])
583 AC_MSG_RESULT([$enable_video])
585 # turn off video features if --disable-video is requested
586 if test "$enable_video" = "no"; then
587 enable_video_track=no
590 # check whether to enable HTML5 video track support
591 AC_MSG_CHECKING([whether to enable HTML5 video track support])
592 AC_ARG_ENABLE(video_track,
593 AC_HELP_STRING([--enable-video-track],
594 [enable HTML5 video track support [default=no]]),
595 [],[enable_video_track="no"])
596 AC_MSG_RESULT([$enable_video_track])
598 # check whether to enable media source support
599 AC_MSG_CHECKING([whether to enable media source support])
600 AC_ARG_ENABLE(media_source,
601 AC_HELP_STRING([--enable-media-source],
602 [enable support for media source [default=no]]),
603 [], [enable_media_source="no"])
604 AC_MSG_RESULT([$enable_media_source])
606 # check whether to enable media statistics support
607 AC_MSG_CHECKING([whether to enable media statistics support])
608 AC_ARG_ENABLE(media_statistics,
609 AC_HELP_STRING([--enable-media-statistics],
610 [enable support for media statistics [default=no]]),
611 [], [enable_media_statistics="no"])
612 AC_MSG_RESULT([$enable_media_statistics])
614 # check whether to enable Javascript Fullscreen API support
615 AC_MSG_CHECKING([whether to enable Fullscreen API support])
616 AC_ARG_ENABLE(fullscreen_api,
617 AC_HELP_STRING([--enable-fullscreen-api],
618 [enable the Fullscreen API support [default=yes]]),
619 [],[enable_fullscreen_api="yes"])
620 AC_MSG_RESULT([$enable_fullscreen_api])
622 # check whether to enable media stream support
623 AC_MSG_CHECKING([whether to enable media stream support])
624 AC_ARG_ENABLE(media_stream,
625 AC_HELP_STRING([--enable-media-stream],
626 [enable media stream support (incomplete) [default=no]]),
627 [],[enable_media_stream="no"])
628 AC_MSG_RESULT([$enable_media_stream])
630 # check whether to enable XSLT support
631 AC_MSG_CHECKING([whether to enable XSLT support])
633 AC_HELP_STRING([--enable-xslt],
634 [enable support for XSLT [default=yes]]),
635 [],[enable_xslt="yes"])
636 AC_MSG_RESULT([$enable_xslt])
638 # check whether to enable geolocation support
639 AC_MSG_CHECKING([whether to enable geolocation support])
640 AC_ARG_ENABLE(geolocation,
641 AC_HELP_STRING([--enable-geolocation],
642 [enable support for geolocation [default=no]]),
643 [],[enable_geolocation="no"])
644 AC_MSG_RESULT([$enable_geolocation])
646 # check whether to enable MathML support
647 AC_MSG_CHECKING([whether to enable MathML support])
648 AC_ARG_ENABLE(mathml,
649 AC_HELP_STRING([--enable-mathml],
650 [enable support for MathML [default=yes]]),
651 [],[enable_mathml="yes"])
652 AC_MSG_RESULT([$enable_mathml])
654 # check whether to enable SVG support
655 AC_MSG_CHECKING([whether to enable SVG support])
657 AC_HELP_STRING([--enable-svg],
658 [enable support for SVG [default=yes]]),
659 [],[enable_svg="yes"])
660 AC_MSG_RESULT([$enable_svg])
662 # check whether to enable Shadow DOM support
663 AC_MSG_CHECKING([whether to enable Shadow DOM support])
664 AC_ARG_ENABLE(shadow_dom,
665 AC_HELP_STRING([--enable-shadow-dom],
666 [enable support for Shadow DOM [default=yes]]),
667 [],[enable_shadow_dom="yes"])
668 AC_MSG_RESULT([$enable_shadow_dom])
670 # check whether to enable SharedWorkers support
671 AC_MSG_CHECKING([whether to enable SharedWorkers support])
672 AC_ARG_ENABLE(shared_workers,
673 AC_HELP_STRING([--enable-shared-workers],
674 [enable support for SharedWorkers [default=yes]]),
675 [],[enable_shared_workers="yes"])
676 AC_MSG_RESULT([$enable_shared_workers])
678 # check whether to enable Web Workers support
679 AC_MSG_CHECKING([whether to enable Web Workers support])
680 AC_ARG_ENABLE(workers,
681 AC_HELP_STRING([--enable-workers],
682 [enable support for Web Workers [default=yes]]),
683 [],[enable_workers="yes"])
684 AC_MSG_RESULT([$enable_workers])
686 # check whether to enable directory upload support
687 AC_MSG_CHECKING([whether to enable directory upload support])
688 AC_ARG_ENABLE(directory_upload,
689 AC_HELP_STRING([--enable-directory-upload],
690 [enable support for directory upload [default=no]]),
691 [], [enable_directory_upload="no"])
692 AC_MSG_RESULT([$enable_directory_upload])
694 # check whether to enable HTML5 FileSystem API support
695 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
696 AC_ARG_ENABLE(file_system,
697 AC_HELP_STRING([--enable-file-system],
698 [enable support for HTML5 FileSystem API [default=no]]),
699 [], [enable_file_system="no"])
700 AC_MSG_RESULT([$enable_file_system])
702 # check whether to enable HTML5 <style scoped> support
703 AC_MSG_CHECKING([whether to enable HTML5 <style scoped> support])
704 AC_ARG_ENABLE(file_system,
705 AC_HELP_STRING([--enable-style-scoped],
706 [enable support for HTML5 <style scoped> [default=no]]),
707 [], [enable_style_scoped="no"])
708 AC_MSG_RESULT([$enable_style_scoped])
710 # check whether to enable Quota API support
711 AC_MSG_CHECKING([whether to enable Quota API support])
713 AC_HELP_STRING([--enable-quota],
714 [enable support for Quota API [default=no]]),
715 [], [enable_quota="no"])
716 AC_MSG_RESULT([$enable_quota])
718 # turn off svg features if --disable-svg is requested
719 if test "$enable_svg" = "no"; then
723 # check whether to enable support for filters
724 AC_MSG_CHECKING([whether to enable support for filters])
725 AC_ARG_ENABLE(filters,
726 AC_HELP_STRING([--enable-filters],
727 [enable support for filters (experimental) [default=yes]]),
728 [],[enable_filters="yes"])
729 AC_MSG_RESULT([$enable_filters])
731 # check whether to enable support for SVG fonts
732 AC_MSG_CHECKING([whether to enable support for SVG fonts])
733 AC_ARG_ENABLE(svg_fonts,
734 AC_HELP_STRING([--enable-svg-fonts],
735 [enable support for SVG fonts (experimental) [default=yes]]),
736 [],[enable_svg_fonts="yes"])
737 AC_MSG_RESULT([$enable_svg_fonts])
739 # check for SVG features, enabling SVG if necessary
740 if test "$enable_svg_fonts" = "yes"; then
742 if test "$enable_svg" = "no"; then
743 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
748 # check whether to enable Web Socket support
749 AC_MSG_CHECKING([whether to enable Web Sockets support])
750 AC_ARG_ENABLE(web_sockets,
751 AC_HELP_STRING([--enable-web-sockets],
752 [enable support for Web Sockets [default=yes]]),
753 [],[enable_web_sockets="yes"])
754 AC_MSG_RESULT([$enable_web_sockets])
756 # check whether to enable Web Audio support
758 AC_MSG_RESULT([$enable_web_audio])
760 # check whether to enable Web Timing support
761 AC_MSG_CHECKING([whether to enable Web Timing support])
762 AC_ARG_ENABLE(web_timing,
763 AC_HELP_STRING([--enable-web-timing],
764 [enable support for Web Timing [default=no]]),
765 [],[enable_web_timing="no"])
766 AC_MSG_RESULT([$enable_web_timing])
768 # check whether to enable Blob support
769 AC_MSG_CHECKING([whether to enable Blob support])
771 AC_HELP_STRING([--enable-blob],
772 [enable support for Blob [default=yes]]),
773 [],[enable_blob="yes"])
774 AC_MSG_RESULT([$enable_blob])
776 # check whether to enable Fast Mobile Scrolling support
777 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
778 AC_ARG_ENABLE(fast_mobile_scrolling,
779 AC_HELP_STRING([--enable-fast-mobile-scrolling],
780 [enable support for Fast Mobile Scrolling [default=no]]),
781 [],[enable_fast_mobile_scrolling="no"])
782 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
784 # check whether to enable code coverage
785 AC_MSG_CHECKING([whether to enable code coverage support])
786 AC_ARG_ENABLE(coverage,
787 AC_HELP_STRING([--enable-coverage],
788 [enable code coverage support [default=no]]),
789 [],[enable_coverage="no"])
790 AC_MSG_RESULT([$enable_coverage])
792 # check whether to enable FastMalloc
793 AC_MSG_CHECKING([whether to enable optimized memory allocator])
794 AC_ARG_ENABLE(fast_malloc,
795 AC_HELP_STRING([--enable-fast-malloc],
796 [enable optimized memory allocator default=yes, default=no for debug builds]),
797 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
798 AC_MSG_RESULT([$enable_fast_malloc])
800 # check whether to enable debug symbols
801 AC_MSG_CHECKING([whether to enable debug symbols])
802 AC_ARG_ENABLE(debug_symbols,
803 AC_HELP_STRING([--enable-debug-symbols],
804 [enable debug symbols default=no, default=yes for debug builds]),
805 [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
806 AC_MSG_RESULT([$enable_debug_symbols])
808 # check whether to enable debug features
809 AC_MSG_CHECKING([whether to enable debug features])
810 AC_ARG_ENABLE(debug_features,
811 AC_HELP_STRING([--enable-debug-features],
812 [enable debug features default=no, default=yes for debug builds]),
813 [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
814 AC_MSG_RESULT([$enable_debug_features])
816 # Determine JavaScript engine to use.
817 AC_MSG_CHECKING([Javascript engine])
818 AC_ARG_WITH(jsengine,
819 AC_HELP_STRING([--with-jsengine=@<:@jsc@:>@],
820 [Select Javascript engine [default=jsc]]),
821 [],[with_jsengine="jsc"])
823 case "$with_jsengine" in
825 *) AC_MSG_ERROR([Invalid JS engine: Must be jsc]) ;;
827 AC_MSG_RESULT([$with_jsengine])
829 AC_MSG_CHECKING([whether to enable JIT compilation])
831 AS_HELP_STRING([--enable-jit],
832 [Enable JIT compilation (default: autodetect)]))
833 case "$enable_jit" in
834 yes) JSC_CPPFLAGS="-DENABLE_JIT=1" ;;
835 no) JSC_CPPFLAGS="-DENABLE_JIT=0" ;;
836 *) enable_jit="autodetect" ;;
838 AC_SUBST(JSC_CPPFLAGS)
839 AC_MSG_RESULT([$enable_jit])
842 AC_MSG_CHECKING([whether to enable opcode stats])
843 AC_ARG_ENABLE([opcode-stats],
844 [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
845 [], [enable_opcode_stats=no])
846 AC_MSG_RESULT([$enable_opcode_stats])
848 if test "$enable_opcode_stats" = "yes"; then
849 if test "$enable_jit" = "yes"; then
850 AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
852 AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
856 AC_MSG_CHECKING([whether to enable link prefetch support])
857 AC_ARG_ENABLE([link-prefetch],
858 [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
859 [],[enable_link_prefetch=no])
860 AC_MSG_RESULT([$enable_link_prefetch])
862 if test "$enable_link_prefetch" = "yes"; then
863 AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
866 # GObject Introspection
867 AC_MSG_CHECKING([whether to enable GObject introspection support])
868 AC_ARG_ENABLE([introspection],
869 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
870 [],[enable_introspection=no])
871 AC_MSG_RESULT([$enable_introspection])
873 # check whether to enable animation API
874 AC_MSG_CHECKING([whether to enable Animation API support])
875 AC_ARG_ENABLE(animation_api,
876 AC_HELP_STRING([--enable-animation-api],
877 [enable support for Animation API (experimental) [default=no]]),
878 [], [enable_animation_api="no"])
879 AC_MSG_RESULT([$enable_animation_api])
881 # check whether to enable requestAnimationFrame support
882 AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
883 AC_ARG_ENABLE(request_animation_frame,
884 AC_HELP_STRING([--enable-request-animation-frame],
885 [enable support for requestAnimationFrame (experimental) [default=no]]),
886 [],[enable_request_animation_frame="no"])
887 AC_MSG_RESULT([$enable_request_animation_frame])
889 # check whether to enable touch icon loading
890 AC_MSG_CHECKING([whether to enable touch icon loading])
891 AC_ARG_ENABLE(touch_icon_loading,
892 AC_HELP_STRING([--enable-touch-icon-loading],
893 [enable support for loading touch icons [default=no]]),
894 [], [enable_touch_icon_loading="no"])
895 AC_MSG_RESULT([$enable_touch_icon_loading])
897 # check whether to enable Register Protocol Handler support
898 AC_MSG_CHECKING([whether to enable Register Protocol Handler])
899 AC_ARG_ENABLE(register_protocol_handler,
900 AC_HELP_STRING([--enable-register-protocol-handler],
901 [enable support for Register Protocol Handler (experimental) [default=no]]),
902 [],[enable_register_protocol_handler="no"])
903 AC_MSG_RESULT([$enable_register_protocol_handler])
905 # check whether to enable DeviceOrientation support
906 AC_MSG_CHECKING([whether to enable DeviceOrientation])
907 AC_ARG_ENABLE(device_orientation,
908 AC_HELP_STRING([--enable-device-orientation],
909 [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
910 [],[enable_device_orientation="no"])
911 AC_MSG_RESULT([$enable_device_orientation])
919 if test "$enable_introspection" = "yes"; then
920 GOBJECT_INTROSPECTION_REQUIRED=0.9.5
921 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
923 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
924 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
925 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
926 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
929 AC_SUBST([G_IR_SCANNER])
930 AC_SUBST([G_IR_COMPILER])
931 AC_SUBST([G_IR_GENERATE])
933 # determine the font backend
934 AC_MSG_CHECKING([the font backend to use])
935 AC_ARG_WITH(font_backend,
936 AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
937 [Select font backend [default=freetype]]),
938 [],[with_font_backend="freetype"])
940 case "$with_font_backend" in
942 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
944 AC_MSG_RESULT([$with_font_backend])
946 if test "$host_cpu" = "sh4"; then
947 CXXFLAGS="$CXXFLAGS -mieee -w"
948 CFLAGS="$CFLAGS -mieee -w"
951 # Add '-g' flag to gcc to build with debug symbols
952 if test "$enable_debug_symbols" = "yes"; then
953 CXXFLAGS="$CXXFLAGS -g"
957 if test "$enable_debug_features" = "no"; then
958 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
961 # Add the appropriate 'O' level for optimized builds
962 if test "$enable_optimizations" = "yes"; then
963 CXXFLAGS="$CXXFLAGS -O2"
966 CXXFLAGS="$CXXFLAGS -O0"
970 PKG_CHECK_MODULES([LIBSOUP],
971 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
972 AC_SUBST([LIBSOUP_CFLAGS])
973 AC_SUBST([LIBSOUP_LIBS])
975 # check if FreeType/FontConfig are available
976 if test "$with_font_backend" = "freetype"; then
977 if test "$with_target" = "directfb"; then
978 PKG_CHECK_MODULES([FREETYPE],
979 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
980 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
982 PKG_CHECK_MODULES([FREETYPE],
984 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
985 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
987 AC_SUBST([FREETYPE_CFLAGS])
988 AC_SUBST([FREETYPE_LIBS])
991 # check if SQLite3 is available. Error out only if one of the
992 # features hard-depending on it is enabled while SQLite3 is
994 PKG_CHECK_MODULES([SQLITE3],
995 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
996 [sqlite3_has_pkg_config=yes],
997 [sqlite3_has_pkg_config=no])
998 if test "$sqlite3_has_pkg_config" = "no"; then
999 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
1000 [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
1003 AC_SUBST([SQLITE3_CFLAGS])
1004 AC_SUBST([SQLITE3_LIBS])
1006 if (test "$sqlite3_found" = "no"); then
1007 AC_MSG_ERROR([SQLite3 is required for the Database related features])
1010 # check if libxslt is available
1011 if test "$enable_xslt" = "yes"; then
1012 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
1013 AC_SUBST([LIBXSLT_CFLAGS])
1014 AC_SUBST([LIBXSLT_LIBS])
1017 # check if geoclue is available
1018 if test "$enable_geolocation" = "yes"; then
1019 PKG_CHECK_MODULES([GEOCLUE], [geoclue])
1020 AC_SUBST([GEOCLUE_CFLAGS])
1021 AC_SUBST([GEOCLUE_LIBS])
1024 # check for XRender under Linux/Unix. Some linkers require explicit
1025 # linkage (like GNU Gold), so we cannot rely on GTK+ pulling XRender
1026 if test "$os_win32" = "no"; then
1027 PKG_CHECK_MODULES([XRENDER], [xrender])
1028 AC_SUBST([XRENDER_CFLAGS])
1029 AC_SUBST([XRENDER_LIBS])
1032 # check if gstreamer is available
1033 if test "$enable_video" = "yes" || test "$enable_web_audio" = "yes"; then
1034 PKG_CHECK_MODULES([GSTREAMER],
1035 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
1037 gstreamer-audio-0.10
1039 gstreamer-interfaces-0.10
1040 gstreamer-pbutils-0.10
1041 gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
1042 gstreamer-video-0.10],
1043 [have_gstreamer=yes])
1045 AC_SUBST([GSTREAMER_CFLAGS])
1046 AC_SUBST([GSTREAMER_LIBS])
1049 # check if libfftw is available
1050 if test "$enable_web_audio" = "yes"; then
1051 PKG_CHECK_MODULES([LIBFFTW],
1052 [fftw3 >= $LIBFFTW_REQUIRED_VERSION
1053 fftw3f >= $LIBFFTW_REQUIRED_VERSION],
1056 AC_SUBST([LIBFFTW_CFLAGS])
1057 AC_SUBST([LIBFFTW_LIBS])
1060 if test "$with_accelerated_compositing" = "clutter"; then
1061 PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
1062 PKG_CHECK_MODULES([CLUTTER_GTK],
1063 [clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED_VERSION])
1065 AC_SUBST(CLUTTER_CFLAGS)
1066 AC_SUBST(CLUTTER_LIBS)
1067 AC_SUBST(CLUTTER_GTK_CFLAGS)
1068 AC_SUBST(CLUTTER_GTK_LIBS)
1071 # check if atspi2 is available (only needed for Webkit2 unit tests)
1072 if test "$enable_webkit2" = "yes"; then
1073 PKG_CHECK_MODULES([ATSPI2],
1074 [atspi-2 >= $ATSPI2_REQUIRED_VERSION],
1075 [have_atspi2=yes], [have_atspi2=no])
1077 AC_SUBST([ATSPI2_CFLAGS])
1078 AC_SUBST([ATSPI2_LIBS])
1081 # check for code coverage support
1082 if test "$enable_coverage" = "yes"; then
1083 COVERAGE_CFLAGS="-MD"
1084 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1085 AC_SUBST([COVERAGE_CFLAGS])
1086 AC_SUBST([COVERAGE_LDFLAGS])
1089 # check for HTML features
1090 if test "$enable_video" = "yes"; then
1095 AC_MSG_CHECKING([whether to build Webkit2])
1096 AC_ARG_ENABLE(webkit2,
1097 AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=no]]),
1098 [], [enable_webkit2="no"])
1099 AC_MSG_RESULT([$enable_webkit2])
1100 if test "$enable_webkit2" = "yes"; then
1101 if test "$GTK_API_VERSION" = "2.0"; then
1102 AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1105 # Check Unix printing
1106 PKG_CHECK_MODULES(GTK_UNIX_PRINTING, gtk+-unix-print-3.0,
1107 [have_gtk_unix_printing=yes],
1108 [have_gtk_unix_printing=no])
1109 AC_SUBST(GTK_UNIX_PRINTING_CFLAGS)
1110 AC_SUBST(GTK_UNIX_PRINTING_LIBS)
1111 if test "$have_gtk_unix_printing" = "yes"; then
1112 AC_DEFINE([HAVE_GTK_UNIX_PRINTING], [1], [Define if GTK+ UNIX Printing is available])
1117 AC_MSG_CHECKING([whether to build plugin process for WebKit2])
1118 AC_ARG_ENABLE(plugin_process,
1119 AC_HELP_STRING([--enable-plugin-process], [build plugin process for WebKit2 [default=yes]]),
1120 [], [enable_plugin_process="yes"])
1121 AC_MSG_RESULT([$enable_plugin_process])
1123 # Build the plugin process only when building Webkit2.
1124 if test "$enable_webkit2" = "no"; then
1125 enable_plugin_process=no
1128 # Make sure we have GTK+ 2.x to build the plugin process.
1129 if test "$enable_plugin_process" = "yes"; then
1130 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1132 AC_SUBST(GTK2_CFLAGS)
1135 GTK_DOC_CHECK([1.10])
1138 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1139 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1140 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1141 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1142 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1144 # target conditionals
1145 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1146 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1147 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1148 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1150 # JS engine conditionals
1151 AM_CONDITIONAL([USE_JSC], [test "$with_jsengine" = "jsc"])
1153 # Unicode backend conditionals
1154 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1155 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1157 # Font backend conditionals
1158 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1159 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1161 # GStreamer feature conditional
1162 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1164 # ATSPI2 conditional
1165 AM_CONDITIONAL([HAVE_ATSPI2], [test "$have_atspi2" = "yes"])
1167 # Accelerated compositing conditional
1168 AM_CONDITIONAL([USE_ACCELERATED_COMPOSITING], [test "$with_accelerated_compositing" = "cairo" || test "$with_accelerated_compositing" = "opengl" || test "$with_accelerated_compositing" = "clutter"])
1169 AM_CONDITIONAL([USE_TEXTURE_MAPPER_CAIRO], [test "$with_accelerated_compositing" = "cairo"])
1170 AM_CONDITIONAL([USE_TEXTURE_MAPPER_GL], [test "$with_accelerated_compositing" = "opengl"])
1171 AM_CONDITIONAL([USE_CLUTTER], [test "$with_accelerated_compositing" = "clutter"])
1173 # WebKit feature conditionals
1174 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1175 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1176 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1177 AM_CONDITIONAL([ENABLE_METER_TAG],[test "$enable_meter_tag" = "yes"])
1178 AM_CONDITIONAL([ENABLE_MICRODATA],[test "$enable_microdata" = "yes"])
1179 AM_CONDITIONAL([ENABLE_PAGE_VISIBILITY_API],[test "$enable_page_visibility_api" = "yes"])
1180 AM_CONDITIONAL([ENABLE_PROGRESS_TAG],[test "$enable_progress_tag" = "yes"])
1181 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1182 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1183 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1184 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1185 AM_CONDITIONAL([ENABLE_DATAGRID],[test "$enable_datagrid" = "yes"])
1186 AM_CONDITIONAL([ENABLE_DATA_TRANSFER_ITEMS],[test "$enable_data_transfer_items" = "yes"])
1187 AM_CONDITIONAL([ENABLE_SQL_DATABASE],[test "$enable_sql_database" = "yes"])
1188 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
1189 AM_CONDITIONAL([ENABLE_DETAILS],[test "$enable_details" = "yes"])
1190 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1191 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1192 AM_CONDITIONAL([ENABLE_STYLE_SCOPED],[test "$enable_style_scoped" = "yes"])
1193 AM_CONDITIONAL([ENABLE_QUOTA],[test "$enable_quota" = "yes"])
1194 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1195 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
1196 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1197 AM_CONDITIONAL([ENABLE_INPUT_COLOR],[test "$enable_input_color" = "yes"])
1198 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1199 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1200 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1201 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1202 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1203 AM_CONDITIONAL([ENABLE_MHTML], [test "$enable_mhtml" = "yes"])
1204 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1205 AM_CONDITIONAL([ENABLE_MEDIA_SOURCE],[test "$enable_media_source" = "yes"])
1206 AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1207 AM_CONDITIONAL([ENABLE_VIDEO_TRACK],[test "$enable_video_track" = "yes"])
1208 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1209 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1210 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1211 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1212 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1213 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1214 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1215 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1216 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1217 AM_CONDITIONAL([ENABLE_SHADOW_DOM],[test "$enable_shadow_dom" = "yes"])
1218 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1219 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1220 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1221 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1222 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1223 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1224 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1225 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1226 AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
1227 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1228 AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
1229 AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
1230 AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
1231 AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
1232 AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
1233 AM_CONDITIONAL([ENABLE_MUTATION_OBSERVERS],[test "$enable_mutation_observers" = "yes"])
1236 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1244 Source/WebKit/gtk/webkit/webkitversion.h
1248 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1249 Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1250 Source/WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:Source/WebKit/gtk/org.webkitgtk.gschema.xml.in
1251 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1253 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1257 if test "$enable_webkit2" = "yes"; then
1259 Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1261 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1268 WebKit was configured with the following options:
1270 Build configuration:
1271 Enable debugging (slow) : $enable_debug
1272 Compile with debug symbols (slow) : $enable_debug_symbols
1273 Enable debug features (slow) : $enable_debug_features
1274 Enable GCC build optimization : $enable_optimizations
1275 Code coverage support : $enable_coverage
1276 Unicode backend : $with_unicode_backend
1277 Font backend : $with_font_backend
1278 Optimized memory allocator : $enable_fast_malloc
1279 JavaScript Engine : $with_jsengine
1280 Accelerated Compositing : $with_accelerated_compositing
1283 WebGL : $enable_webgl
1284 Blob support : $enable_blob
1285 DOM mutation observer support : $enable_mutation_observers
1286 DeviceOrientation support : $enable_device_orientation
1287 Directory upload : $enable_directory_upload
1288 Fast Mobile Scrolling : $enable_fast_mobile_scrolling
1289 JIT compilation : $enable_jit
1290 Filters support : $enable_filters
1291 Geolocation support : $enable_geolocation
1292 JavaScript debugger/profiler support : $enable_javascript_debugger
1293 Gamepad support : $enable_gamepad
1294 MathML support : $enable_mathml
1295 Media source : $enable_media_source
1296 Media statistics : $enable_media_statistics
1297 HTML5 channel messaging support : $enable_channel_messaging
1298 HTML5 meter element support : $enable_meter_tag
1299 HTML5 microdata support : $enable_microdata
1300 Page Visibility API support : $enable_page_visibility_api
1301 HTML5 progress element support : $enable_progress_tag
1302 HTML5 client-side session and persistent storage support : $enable_dom_storage
1303 SQL client-side database storage support : $enable_sql_database
1304 HTML5 datagrid support : $enable_datagrid
1305 HTML5 data transfer items support : $enable_data_transfer_items
1306 HTML5 FileSystem API support : $enable_file_system
1307 Quota API support : $enable_quota
1308 HTML5 sandboxed iframe support : $enable_sandbox
1309 HTML5 video element support : $enable_video
1310 HTML5 track element support : $enable_video_track
1311 Fullscreen API support : $enable_fullscreen_api
1312 Media stream support : $enable_media_stream
1313 Icon database support : $enable_icon_database
1314 Image resizer support : $enable_image_resizer
1315 Link prefetch support : $enable_link_prefetch
1316 Opcode stats : $enable_opcode_stats
1317 Shadow DOM support : $enable_shadow_dom
1318 SharedWorkers support : $enable_shared_workers
1319 Color input support : $enable_input_color
1320 Speech input support : $enable_input_speech
1321 SVG support : $enable_svg
1322 SVG fonts support : $enable_svg_fonts
1323 Web Audio support : $enable_web_audio
1324 Web Sockets support : $enable_web_sockets
1325 Web Timing support : $enable_web_timing
1326 Web Workers support : $enable_workers
1327 XSLT support : $enable_xslt
1328 Spellcheck support : $enable_spellcheck
1329 Animation API : $enable_animation_api
1330 RequestAnimationFrame support : $enable_request_animation_frame
1331 Touch Icon Loading support : $enable_touch_icon_loading
1332 Register Protocol Handler support : $enable_register_protocol_handler
1333 WebKit2 support : $enable_webkit2
1334 WebKit2 plugin process : $enable_plugin_process
1337 GTK+ version : $with_gtk
1338 GDK target : $with_target
1339 Hildon UI extensions : $with_hildon
1340 Introspection support : $enable_introspection
1341 Generate documentation : $enable_gtk_doc
1343 if test "$with_unicode_backend" = "glib"; then
1344 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"