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