3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [7])
5 m4_define([webkit_micro_version], [0])
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], [4])
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:0:11
39 AC_SUBST([LIBWEBKITGTK_VERSION])
41 AM_INIT_AUTOMAKE([foreign subdir-objects 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
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")
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]))
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])
131 #include <jpeglib.h>],
134 AC_MSG_RESULT($jpeg_ok)
135 if test "$jpeg_ok" = yes; then
137 # should we check for progressive JPEG like GTK+ as well?
139 AC_MSG_ERROR([JPEG library (libjpeg) not found])
142 AC_SUBST([JPEG_LIBS])
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
149 PNG_LIBS=`$PKG_CONFIG --libs $l`
157 if test "$png_ok" != yes; then
158 AC_CHECK_LIB(png, png_read_info,
159 [AC_CHECK_HEADER(png.h,
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;],
169 AC_MSG_RESULT($png_ok)
170 if test "$png_ok" = yes; then
173 AC_MSG_ERROR([PNG library (libpng) not found])
176 AC_MSG_ERROR([PNG library (libpng) not found])
182 if test "$os_win32" = "yes"; then
184 SHLWAPI_LIBS=-lshlwapi
187 AC_SUBST([WINMM_LIBS])
188 AC_SUBST([SHLWAPI_LIBS])
189 AC_SUBST([OLE32_LIBS])
192 # determine the GTK+ version to use
193 AC_MSG_CHECKING([the GTK+ version to use])
195 [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
198 *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
201 AC_MSG_RESULT([$with_gtk])
203 GTK2_REQUIRED_VERSION=2.10
204 GAIL2_REQUIRED_VERSION=1.8
205 GTK3_REQUIRED_VERSION=3.0
206 GAIL3_REQUIRED_VERSION=3.0
209 2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
211 WEBKITGTK_API_MAJOR_VERSION=1
212 WEBKITGTK_API_MINOR_VERSION=0
213 WEBKITGTK_API_VERSION=1.0
214 WEBKITGTK_PC_NAME=webkit
216 GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
218 3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
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
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"])
236 # determine the GDK/GTK+ target
237 AC_MSG_CHECKING([the target windowing system])
239 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
240 [Select webkit target [default=x11]]),
241 [],[with_target="x11"])
243 case "$with_target" in
244 x11|win32|quartz|directfb) ;;
245 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
248 AC_MSG_RESULT([$with_target])
250 AC_MSG_CHECKING([for Hildon UI extensions])
252 AC_HELP_STRING([--with-hildon],
253 [Use Hildon UI extensions [default=no]]),
254 [],[with_hildon="no"])
255 AC_MSG_RESULT([$with_hildon])
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])
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
273 *) AC_MSG_ERROR([Invalid efl target: must be arm, i386.]) ;;
275 AC_MSG_RESULT([$with_efl_target])
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])
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
293 *) AC_MSG_ERROR([Invalid HTTP backend: must be curl, soup.]) ;;
295 AC_MSG_RESULT([$with_http_backend])
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])
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)
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
317 # minimum GTK+ base dependencies
318 PANGO_REQUIRED_VERSION=1.12
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
329 # glib - glib and includes gthread
330 # unicode - check and identify which unicode backend to use
333 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
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])
340 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
341 AC_SUBST(LIBXML_CFLAGS)
342 AC_SUBST(LIBXML_LIBS)
344 PKG_CHECK_MODULES(PANGO,
345 [pango >= $PANGO_REQUIRED_VERSION
347 AC_SUBST(PANGO_CFLAGS)
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])
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)
362 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
363 AC_SUBST(GAIL_CFLAGS)
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])
372 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
373 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
375 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
377 PKG_CHECK_MODULES([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
387 AC_CHECK_LIB([Xt], [XtOpenDisplay],
388 [XT_CFLAGS=""; XT_LIBS="-lXt"],
389 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
391 AC_SUBST([XT_CFLAGS])
393 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
396 if test "$with_port" = "efl"; then
397 AC_DEFINE([WTF_PLATFORM_CAIRO],[1],[Define if platform is Cairo])
402 AC_SUBST(CAIRO_CFLAGS)
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
418 LIBSOUP_REQUIRED_VERSION=2.28.2
419 LIBXSLT_REQUIRED_VERSION=1.1.7
420 SQLITE_REQUIRED_VERSION=3.0
422 WEBKIT_CHECK_DEPENDENCIES_MODULES="unicode"
426 AC_ARG_ENABLE(ecore_x,
429 [disable ecore_x specific support. [[default=enabled]]]
431 [ want_ecore_x=$enableval ]
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],
439 AC_DEFINE(HAVE_ECORE_X, 1, [have ecore_x specific support])
440 AC_SUBST([ECORE_X_CFLAGS])
441 AC_SUBST([ECORE_X_LIBS])
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)])
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
460 AC_SUBST([EFLDEPS_CFLAGS])
461 AC_SUBST([EFLDEPS_LIBS])
464 # check whether to build with debugging enabled
465 AC_MSG_CHECKING([whether to do a debug build])
467 AC_HELP_STRING([--enable-debug],
468 [turn on debugging [default=no]]),
469 [],[enable_debug="no"])
470 AC_MSG_RESULT([$enable_debug])
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)
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])
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])
490 # check whether to enable WebGL support
491 AC_MSG_CHECKING([whether to enable WebGL support])
493 AC_HELP_STRING([--enable-webgl],
494 [enable support for WebGL (experimental) [default=no]]),
495 [], [enable_webgl="no"])
496 AC_MSG_RESULT([$enable_webgl])
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"
503 AC_SUBST([OPENGL_LIBS])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
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])
665 # check whether to enable HTML5 audio/video support
666 AC_MSG_CHECKING([whether to enable HTML5 video support])
668 AC_HELP_STRING([--enable-video],
669 [enable HTML5 video support [default=yes]]),
670 [],[enable_video="yes"])
671 AC_MSG_RESULT([$enable_video])
673 # turn off video features if --disable-video is requested
674 if test "$enable_video" = "no"; then
675 enable_video_track=no
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])
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])
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])
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])
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])
718 # check whether to enable XPath support
719 AC_MSG_CHECKING([whether to enable XPath support])
721 AC_HELP_STRING([--enable-xpath],
722 [enable support for XPath [default=yes]]),
723 [],[enable_xpath="yes"])
724 AC_MSG_RESULT([$enable_xpath])
726 # check whether to enable XSLT support
727 AC_MSG_CHECKING([whether to enable XSLT support])
729 AC_HELP_STRING([--enable-xslt],
730 [enable support for XSLT [default=yes]]),
731 [],[enable_xslt="yes"])
732 AC_MSG_RESULT([$enable_xslt])
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])
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])
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])
758 # check whether to enable SVG support
759 AC_MSG_CHECKING([whether to enable SVG support])
761 AC_HELP_STRING([--enable-svg],
762 [enable support for SVG [default=yes]]),
763 [],[enable_svg="yes"])
764 AC_MSG_RESULT([$enable_svg])
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])
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])
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])
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])
798 # check whether to enable Quota API support
799 AC_MSG_CHECKING([whether to enable Quota API support])
801 AC_HELP_STRING([--enable-quota],
802 [enable support for Quota API [default=no]]),
803 [], [enable_quota="no"])
804 AC_MSG_RESULT([$enable_quota])
806 # turn off svg features if --disable-svg is requested
807 if test "$enable_svg" = "no"; then
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])
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])
827 # check for SVG features, enabling SVG if necessary
828 if test "$enable_svg_fonts" = "yes"; then
830 if test "$enable_svg" = "no"; then
831 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
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])
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])
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])
860 # check whether to enable Blob support
861 AC_MSG_CHECKING([whether to enable Blob support])
863 AC_HELP_STRING([--enable-blob],
864 [enable support for Blob [default=yes]]),
865 [],[enable_blob="yes"])
866 AC_MSG_RESULT([$enable_blob])
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])
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])
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])
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])
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])
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"])
915 case "$with_jsengine" in
917 *) AC_MSG_ERROR([Invalid JS engine: Must be jsc]) ;;
919 AC_MSG_RESULT([$with_jsengine])
921 if test "$with_jsengine" = "jsc"; then
922 AC_MSG_CHECKING([whether to enable JIT compilation])
924 AC_HELP_STRING([--enable-jit],
925 [Enable JIT compilation default=yes]),
926 [],[enable_jit="yes"])
927 if test "$enable_jit" = "yes"; then
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])
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])
943 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
946 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
947 AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
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])
958 enable_jit="no (CPU '$host_cpu' not supported)"
962 AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
965 AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
969 AC_MSG_RESULT([$enable_jit])
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])
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.])
982 AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
985 if test "$with_http_backend" = "curl"; then
986 PKG_CHECK_MODULES(LIBCURL, libcurl)
987 AC_SUBST([LIBCURL_CFLAGS])
988 AC_SUBST([LIBCURL_LIBS])
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])
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])
1005 if test "$enable_link_prefetch" = "yes"; then
1006 AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
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])
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])
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])
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])
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])
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])
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])
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])
1072 AC_SUBST([G_IR_SCANNER])
1073 AC_SUBST([G_IR_COMPILER])
1074 AC_SUBST([G_IR_GENERATE])
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])
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.])
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])
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.])
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])
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"
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"])
1123 case "$with_font_backend" in
1125 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
1127 AC_MSG_RESULT([$with_font_backend])
1129 if test "$host_cpu" = "sh4"; then
1130 CXXFLAGS="$CXXFLAGS -mieee -w"
1131 CFLAGS="$CFLAGS -mieee -w"
1134 # Add '-g' flag to gcc to build with debug symbols
1135 if test "$enable_debug_symbols" = "yes"; then
1136 CXXFLAGS="$CXXFLAGS -g"
1140 if test "$enable_debug_features" = "no"; then
1141 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
1144 # Add the appropriate 'O' level for optimized builds
1145 if test "$enable_optimizations" = "yes"; then
1146 CXXFLAGS="$CXXFLAGS -O2"
1147 CFLAGS="$CFLAGS -O2"
1149 CXXFLAGS="$CXXFLAGS -O0"
1150 CFLAGS="$CFLAGS -O0"
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])
1161 PKG_CHECK_MODULES([FREETYPE],
1163 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1164 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1166 AC_SUBST([FREETYPE_CFLAGS])
1167 AC_SUBST([FREETYPE_LIBS])
1170 # check if SQLite3 is available. Error out only if one of the
1171 # features hard-depending on it is enabled while SQLite3 is
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"],
1182 AC_SUBST([SQLITE3_CFLAGS])
1183 AC_SUBST([SQLITE3_LIBS])
1185 if (test "$sqlite3_found" = "no"); then
1186 AC_MSG_ERROR([SQLite3 is required for the Database related features])
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])
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])
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])
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])
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
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])
1235 AC_SUBST([GSTREAMER_CFLAGS])
1236 AC_SUBST([GSTREAMER_LIBS])
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])
1247 # check for HTML features
1248 if test "$enable_video" = "yes"; then
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])
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])
1271 # Build the plugin process only when building Webkit2.
1272 if test "$enable_webkit2" = "no"; then
1273 enable_plugin_process=no
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)
1280 AC_SUBST(GTK2_CFLAGS)
1283 GTK_DOC_CHECK([1.10])
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"])
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"])
1300 # JS engine conditionals
1301 AM_CONDITIONAL([USE_JSC], [test "$with_jsengine" = "jsc"])
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"])
1307 # Font backend conditionals
1308 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1309 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1311 # GStreamer feature conditional
1312 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
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"])
1380 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
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
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
1401 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1405 if test "$enable_webkit2" = "yes"; then
1407 Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1409 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1416 WebKit was configured with the following options:
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
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
1485 GTK+ version : $with_gtk
1486 GDK target : $with_target
1487 Hildon UI extensions : $with_hildon
1488 Introspection support : $enable_introspection
1490 if test "$with_unicode_backend" = "glib"; then
1491 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"