[GTK] ENABLE_IFRAME_SEAMLESS support
[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 iframe seamless attribute support
738 AC_MSG_CHECKING([whether to enable HTML5 iframe seamless attribute support])
739 AC_ARG_ENABLE(iframe-seamless,
740               AC_HELP_STRING([--enable-iframe-seamless],
741                              [enable HTML5 iframe seamless attribute support [default=yes]]),
742               [],[enable_iframe_seamless="yes"])
743 AC_MSG_RESULT([$enable_sandbox])
744
745 # check whether to enable HTML5 audio/video support
746 AC_MSG_CHECKING([whether to enable HTML5 video support])
747 AC_ARG_ENABLE(video,
748               AC_HELP_STRING([--enable-video],
749                              [enable HTML5 video support [default=yes]]),
750               [],[enable_video="yes"])
751 AC_MSG_RESULT([$enable_video])
752
753 # turn off video features if --disable-video is requested
754 if test "$enable_video" = "no"; then
755    enable_video_track=no
756 fi
757
758 # check whether to enable HTML5 video track support
759 AC_MSG_CHECKING([whether to enable HTML5 video track support])
760 AC_ARG_ENABLE(video_track,
761               AC_HELP_STRING([--enable-video-track],
762                              [enable HTML5 video track support [default=no]]),
763               [],[enable_video_track="no"])
764 AC_MSG_RESULT([$enable_video_track])
765
766 # check whether to enable media source support
767 AC_MSG_CHECKING([whether to enable media source support])
768 AC_ARG_ENABLE(media_source,
769               AC_HELP_STRING([--enable-media-source],
770                              [enable support for media source [default=no]]),
771               [], [enable_media_source="no"])
772 AC_MSG_RESULT([$enable_media_source])
773
774 # check whether to enable media statistics support
775 AC_MSG_CHECKING([whether to enable media statistics support])
776 AC_ARG_ENABLE(media_statistics,
777               AC_HELP_STRING([--enable-media-statistics],
778                              [enable support for media statistics [default=no]]),
779               [], [enable_media_statistics="no"])
780 AC_MSG_RESULT([$enable_media_statistics])
781
782 # check whether to enable Javascript Fullscreen API support
783 AC_MSG_CHECKING([whether to enable Fullscreen API support])
784 AC_ARG_ENABLE(fullscreen_api,
785               AC_HELP_STRING([--enable-fullscreen-api],
786                              [enable the Fullscreen API support [default=yes]]),
787               [],[enable_fullscreen_api="yes"])
788 AC_MSG_RESULT([$enable_fullscreen_api])
789
790 # check whether to enable media stream support
791 AC_MSG_CHECKING([whether to enable media stream support])
792 AC_ARG_ENABLE(media_stream,
793               AC_HELP_STRING([--enable-media-stream],
794                              [enable media stream support (incomplete) [default=no]]),
795               [],[enable_media_stream="no"])
796 AC_MSG_RESULT([$enable_media_stream])
797
798 # check whether to enable XSLT support
799 AC_MSG_CHECKING([whether to enable XSLT support])
800 AC_ARG_ENABLE(xslt,
801               AC_HELP_STRING([--enable-xslt],
802                              [enable support for XSLT [default=yes]]),
803               [],[enable_xslt="yes"])
804 AC_MSG_RESULT([$enable_xslt])
805
806 # check whether to enable geolocation support
807 AC_MSG_CHECKING([whether to enable geolocation support])
808 AC_ARG_ENABLE(geolocation,
809               AC_HELP_STRING([--enable-geolocation],
810                              [enable support for geolocation [default=yes]]),
811               [],[enable_geolocation="yes"])
812 AC_MSG_RESULT([$enable_geolocation])
813
814 # check whether to enable MathML support
815 AC_MSG_CHECKING([whether to enable MathML support])
816 AC_ARG_ENABLE(mathml,
817               AC_HELP_STRING([--enable-mathml],
818                              [enable support for MathML [default=yes]]),
819               [],[enable_mathml="yes"])
820 AC_MSG_RESULT([$enable_mathml])
821
822 # check whether to enable MHTML support
823 AC_MSG_CHECKING([whether to enable MHTML support])
824 AC_ARG_ENABLE(mhtml,
825               AC_HELP_STRING([--enable-mhtml],
826                              [enable support for MHTML [default=no]]),
827               [],[enable_mhtml="no"])
828 AC_MSG_RESULT([$enable_mhtml])
829
830 # check whether to enable SVG support
831 AC_MSG_CHECKING([whether to enable SVG support])
832 AC_ARG_ENABLE(svg,
833               AC_HELP_STRING([--enable-svg],
834                              [enable support for SVG [default=yes]]),
835               [],[enable_svg="yes"])
836 AC_MSG_RESULT([$enable_svg])
837
838 # check whether to enable Shadow DOM support
839 AC_MSG_CHECKING([whether to enable Shadow DOM support])
840 AC_ARG_ENABLE(shadow_dom,
841               AC_HELP_STRING([--enable-shadow-dom],
842                              [enable support for Shadow DOM [default=yes]]),
843               [],[enable_shadow_dom="yes"])
844 AC_MSG_RESULT([$enable_shadow_dom])
845
846 # check whether to enable SharedWorkers support
847 AC_MSG_CHECKING([whether to enable SharedWorkers support])
848 AC_ARG_ENABLE(shared_workers,
849               AC_HELP_STRING([--enable-shared-workers],
850                              [enable support for SharedWorkers [default=yes]]),
851               [],[enable_shared_workers="yes"])
852 AC_MSG_RESULT([$enable_shared_workers])
853
854 # check whether to enable Web Workers support
855 AC_MSG_CHECKING([whether to enable Web Workers support])
856 AC_ARG_ENABLE(workers,
857               AC_HELP_STRING([--enable-workers],
858                              [enable support for Web Workers [default=yes]]),
859               [],[enable_workers="yes"])
860 AC_MSG_RESULT([$enable_workers])
861
862 # check whether to enable directory upload support
863 AC_MSG_CHECKING([whether to enable directory upload support])
864 AC_ARG_ENABLE(directory_upload,
865               AC_HELP_STRING([--enable-directory-upload],
866                              [enable support for directory upload [default=no]]),
867               [], [enable_directory_upload="no"])
868 AC_MSG_RESULT([$enable_directory_upload])
869
870 # check whether to enable HTML5 FileSystem API support
871 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
872 AC_ARG_ENABLE(file_system,
873               AC_HELP_STRING([--enable-file-system],
874                              [enable support for HTML5 FileSystem API [default=no]]),
875               [], [enable_file_system="no"])
876 AC_MSG_RESULT([$enable_file_system])
877
878 # check whether to enable HTML5 <style scoped> support
879 AC_MSG_CHECKING([whether to enable HTML5 <style scoped> support])
880 AC_ARG_ENABLE(style_scoped,
881               AC_HELP_STRING([--enable-style-scoped],
882                              [enable support for HTML5 <style scoped> [default=no]]),
883               [], [enable_style_scoped="no"])
884 AC_MSG_RESULT([$enable_style_scoped])
885
886 # check whether to enable Quota API support
887 AC_MSG_CHECKING([whether to enable Quota API support])
888 AC_ARG_ENABLE(quota,
889               AC_HELP_STRING([--enable-quota],
890                              [enable support for Quota API [default=no]]),
891               [], [enable_quota="no"])
892 AC_MSG_RESULT([$enable_quota])
893
894 # turn off svg features if --disable-svg is requested
895 if test "$enable_svg" = "no"; then
896    enable_svg_fonts=no
897 fi
898
899 # check whether to enable support for filters
900 AC_MSG_CHECKING([whether to enable support for filters])
901 AC_ARG_ENABLE(filters,
902               AC_HELP_STRING([--enable-filters],
903                              [enable support for filters (experimental) [default=yes]]),
904               [],[enable_filters="yes"])
905 AC_MSG_RESULT([$enable_filters])
906
907 # check whether to enable support for SVG fonts
908 AC_MSG_CHECKING([whether to enable support for SVG fonts])
909 AC_ARG_ENABLE(svg_fonts,
910               AC_HELP_STRING([--enable-svg-fonts],
911                              [enable support for SVG fonts (experimental) [default=yes]]),
912               [],[enable_svg_fonts="yes"])
913 AC_MSG_RESULT([$enable_svg_fonts])
914
915 # check for SVG features, enabling SVG if necessary
916 if test "$enable_svg_fonts" = "yes"; then
917    svg_flags=yes
918    if test "$enable_svg" = "no"; then
919        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
920        enable_svg=yes
921    fi
922 fi
923
924 # check whether to enable Web Socket support
925 AC_MSG_CHECKING([whether to enable Web Sockets support])
926 AC_ARG_ENABLE(web_sockets,
927               AC_HELP_STRING([--enable-web-sockets],
928                              [enable support for Web Sockets [default=yes]]),
929               [],[enable_web_sockets="yes"])
930 AC_MSG_RESULT([$enable_web_sockets])
931
932 # check whether to enable Web Audio support
933 AC_MSG_CHECKING([whether to enable Web Audio support])
934 AC_ARG_ENABLE(web_audio,
935               AC_HELP_STRING([--enable-web-audio],
936                              [enable support for Web Audio [default=no]]),
937               [],[enable_web_audio="no"])
938 AC_MSG_RESULT([$enable_web_audio])
939
940 # check whether to enable Web Timing support
941 AC_MSG_CHECKING([whether to enable Web Timing support])
942 AC_ARG_ENABLE(web_timing,
943               AC_HELP_STRING([--enable-web-timing],
944                              [enable support for Web Timing [default=no]]),
945               [],[enable_web_timing="no"])
946 AC_MSG_RESULT([$enable_web_timing])
947
948 # check whether to enable Blob support
949 AC_MSG_CHECKING([whether to enable Blob support])
950 AC_ARG_ENABLE(blob,
951               AC_HELP_STRING([--enable-blob],
952                              [enable support for Blob [default=yes]]),
953               [],[enable_blob="yes"])
954 AC_MSG_RESULT([$enable_blob])
955
956 # check whether to enable Legacy WebKitBlobBuilder support
957 AC_MSG_CHECKING([whether to enable Legacy WebKitBlobBuilder support])
958 AC_ARG_ENABLE(legacy_webkit_blob_builder,
959               AC_HELP_STRING([--enable-legacy-webkit-blob-builder],
960                              [enable support for Legacy WebKitBlobBuilder [default=yes]]),
961               [],[enable_legacy_webkit_blob_builder="yes"])
962 AC_MSG_RESULT([$legacy_webkit_blob_builder])
963
964 # check whether to enable Fast Mobile Scrolling support
965 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
966 AC_ARG_ENABLE(fast_mobile_scrolling,
967               AC_HELP_STRING([--enable-fast-mobile-scrolling],
968                              [enable support for Fast Mobile Scrolling [default=no]]),
969               [],[enable_fast_mobile_scrolling="no"])
970 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
971
972 # check whether to enable code coverage
973 AC_MSG_CHECKING([whether to enable code coverage support])
974 AC_ARG_ENABLE(coverage,
975               AC_HELP_STRING([--enable-coverage],
976                              [enable code coverage support [default=no]]),
977               [],[enable_coverage="no"])
978 AC_MSG_RESULT([$enable_coverage])
979
980 # check whether to enable FastMalloc
981 AC_MSG_CHECKING([whether to enable optimized memory allocator])
982 AC_ARG_ENABLE(fast_malloc,
983               AC_HELP_STRING([--enable-fast-malloc],
984                              [enable optimized memory allocator default=yes, default=no for debug builds]),
985               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
986 AC_MSG_RESULT([$enable_fast_malloc])
987
988 # check whether to enable debug symbols
989 AC_MSG_CHECKING([whether to enable debug symbols])
990 AC_ARG_ENABLE(debug_symbols,
991               AC_HELP_STRING([--enable-debug-symbols],
992                              [enable debug symbols default=no, default=yes for debug builds]),
993               [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
994 AC_MSG_RESULT([$enable_debug_symbols])
995
996 # check whether to enable debug features
997 AC_MSG_CHECKING([whether to enable debug features])
998 AC_ARG_ENABLE(debug_features,
999               AC_HELP_STRING([--enable-debug-features],
1000                              [enable debug features default=no, default=yes for debug builds]),
1001               [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
1002 AC_MSG_RESULT([$enable_debug_features])
1003
1004 AC_MSG_CHECKING([whether to enable JIT compilation])
1005 AC_ARG_ENABLE(jit,
1006               AS_HELP_STRING([--enable-jit],
1007                              [Enable JIT compilation (default: autodetect)]))
1008 case "$enable_jit" in
1009   yes) JSC_CPPFLAGS="-DENABLE_JIT=1" ;;
1010   no) JSC_CPPFLAGS="-DENABLE_JIT=0" ;;
1011   *) enable_jit="autodetect" ;;
1012 esac
1013 AC_SUBST(JSC_CPPFLAGS)
1014 AC_MSG_RESULT([$enable_jit])
1015
1016 # Opcode stats
1017 AC_MSG_CHECKING([whether to enable opcode stats])
1018 AC_ARG_ENABLE([opcode-stats],
1019   [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
1020   [], [enable_opcode_stats=no])
1021 AC_MSG_RESULT([$enable_opcode_stats])
1022
1023 if test "$enable_opcode_stats" = "yes"; then
1024   if test "$enable_jit" = "yes"; then
1025     AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
1026   fi
1027   AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
1028 fi
1029
1030 # Link prefetch
1031 AC_MSG_CHECKING([whether to enable link prefetch support])
1032 AC_ARG_ENABLE([link-prefetch],
1033   [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
1034   [],[enable_link_prefetch=no])
1035 AC_MSG_RESULT([$enable_link_prefetch])
1036
1037 if test "$enable_link_prefetch" = "yes"; then 
1038   AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
1039 fi
1040
1041 # GObject Introspection
1042 AC_MSG_CHECKING([whether to enable GObject introspection support])
1043 AC_ARG_ENABLE([introspection],
1044   [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
1045   [],[enable_introspection=no])
1046 AC_MSG_RESULT([$enable_introspection])
1047
1048 # check whether to enable animation API
1049 AC_MSG_CHECKING([whether to enable Animation API support])
1050 AC_ARG_ENABLE(animation_api,
1051               AC_HELP_STRING([--enable-animation-api],
1052                              [enable support for Animation API (experimental) [default=no]]),
1053               [], [enable_animation_api="no"])
1054 AC_MSG_RESULT([$enable_animation_api])
1055
1056 # check whether to enable requestAnimationFrame support
1057 AC_MSG_CHECKING([whether to enable requestAnimationFrame support])
1058 AC_ARG_ENABLE(request_animation_frame,
1059               AC_HELP_STRING([--enable-request-animation-frame],
1060                              [enable support for requestAnimationFrame (experimental) [default=yes]]),
1061               [],[enable_request_animation_frame="yes"])
1062 AC_MSG_RESULT([$enable_request_animation_frame])
1063
1064 # check whether to enable touch icon loading 
1065 AC_MSG_CHECKING([whether to enable touch icon loading])
1066 AC_ARG_ENABLE(touch_icon_loading,
1067               AC_HELP_STRING([--enable-touch-icon-loading],
1068                              [enable support for loading touch icons [default=no]]),
1069               [], [enable_touch_icon_loading="no"])
1070 AC_MSG_RESULT([$enable_touch_icon_loading])
1071
1072 # check whether to enable Register Protocol Handler support
1073 AC_MSG_CHECKING([whether to enable Register Protocol Handler])
1074 AC_ARG_ENABLE(register_protocol_handler,
1075               AC_HELP_STRING([--enable-register-protocol-handler],
1076                              [enable support for Register Protocol Handler (experimental) [default=no]]),
1077               [],[enable_register_protocol_handler="no"])
1078 AC_MSG_RESULT([$enable_register_protocol_handler])
1079
1080 # check whether to enable DeviceOrientation support
1081 AC_MSG_CHECKING([whether to enable DeviceOrientation])
1082 AC_ARG_ENABLE(device_orientation,
1083               AC_HELP_STRING([--enable-device-orientation],
1084                              [enable support for DeviceOrientation (experimental and incomplete) [default=no]]),
1085               [],[enable_device_orientation="no"])
1086 AC_MSG_RESULT([$enable_device_orientation])
1087
1088 G_IR_SCANNER=
1089 G_IR_COMPILER=
1090 G_IR_GENERATE=
1091 GIRDIR=
1092 GIRTYPELIBDIR=
1093
1094 if test "$enable_introspection" = "yes"; then
1095   GOBJECT_INTROSPECTION_REQUIRED=0.9.5
1096   PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
1097   
1098   G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
1099   G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
1100   G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
1101   AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
1102 fi
1103
1104 AC_SUBST([G_IR_SCANNER])
1105 AC_SUBST([G_IR_COMPILER])
1106 AC_SUBST([G_IR_GENERATE])
1107
1108 # determine the font backend
1109 AC_MSG_CHECKING([the font backend to use])
1110 AC_ARG_WITH(font_backend,
1111             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
1112                            [Select font backend [default=freetype]]),
1113             [],[with_font_backend="freetype"])
1114
1115 case "$with_font_backend" in
1116      freetype|pango) ;;
1117      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
1118 esac
1119 AC_MSG_RESULT([$with_font_backend])
1120
1121 if test "$host_cpu" = "sh4"; then
1122    CXXFLAGS="$CXXFLAGS -mieee -w"
1123    CFLAGS="$CFLAGS -mieee -w"
1124 fi
1125
1126 # Add '-g' flag to gcc to build with debug symbols
1127 if test "$enable_debug_symbols" = "yes"; then
1128    CXXFLAGS="$CXXFLAGS -g"
1129    CFLAGS="$CFLAGS -g"
1130 fi
1131
1132 if test "$enable_debug_features" = "no"; then
1133    AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
1134 fi
1135
1136 # Add the appropriate 'O' level for optimized builds
1137 if test "$enable_optimizations" = "yes"; then
1138    CXXFLAGS="$CXXFLAGS -O2"
1139    CFLAGS="$CFLAGS -O2"
1140 else
1141    CXXFLAGS="$CXXFLAGS -O0"
1142    CFLAGS="$CFLAGS -O0"
1143 fi
1144
1145 PKG_CHECK_MODULES([LIBSOUP],
1146                   [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
1147 AC_SUBST([LIBSOUP_CFLAGS])
1148 AC_SUBST([LIBSOUP_LIBS])
1149
1150 # check if FreeType/FontConfig are available
1151 if test "$with_font_backend" = "freetype"; then
1152    if test "$with_target" = "directfb"; then
1153    PKG_CHECK_MODULES([FREETYPE],
1154                      [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1155                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1156    else
1157    PKG_CHECK_MODULES([FREETYPE],
1158                      [cairo-ft
1159                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
1160                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
1161    fi
1162    AC_SUBST([FREETYPE_CFLAGS])
1163    AC_SUBST([FREETYPE_LIBS])
1164 fi
1165
1166 # check if SQLite3 is available. Error out only if one of the
1167 # features hard-depending on it is enabled while SQLite3 is
1168 # unavailable.
1169 PKG_CHECK_MODULES([SQLITE3],
1170                   [sqlite3 >= $SQLITE_REQUIRED_VERSION],
1171                   [sqlite3_has_pkg_config=yes],
1172                   [sqlite3_has_pkg_config=no])
1173 if test "$sqlite3_has_pkg_config" = "no"; then
1174    AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
1175                   [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
1176                   [sqlite3_found=no])
1177 fi
1178 AC_SUBST([SQLITE3_CFLAGS])
1179 AC_SUBST([SQLITE3_LIBS])
1180
1181 if (test "$sqlite3_found" = "no"); then
1182    AC_MSG_ERROR([SQLite3 is required for the Database related features])
1183 fi
1184
1185 # check if libxslt is available
1186 if test "$enable_xslt" = "yes"; then
1187    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
1188    AC_SUBST([LIBXSLT_CFLAGS])
1189    AC_SUBST([LIBXSLT_LIBS])
1190 fi
1191
1192 # check if geoclue is available
1193 if test "$enable_geolocation" = "yes"; then
1194     PKG_CHECK_MODULES([GEOCLUE], [geoclue])
1195     AC_SUBST([GEOCLUE_CFLAGS])
1196     AC_SUBST([GEOCLUE_LIBS])
1197 fi
1198
1199 # check for XRender under Linux/Unix. Some linkers require explicit
1200 # linkage (like GNU Gold), so we cannot rely on GTK+ pulling XRender
1201 if test "$os_win32" = "no"; then
1202    PKG_CHECK_MODULES([XRENDER], [xrender])
1203    AC_SUBST([XRENDER_CFLAGS])
1204    AC_SUBST([XRENDER_LIBS])
1205 fi
1206
1207 # check if gstreamer is available
1208 if test "$enable_video" = "yes" || test "$enable_web_audio" = "yes"; then
1209     gstreamer_modules="gstreamer-$GST_API_VERSION >= $GSTREAMER_REQUIRED_VERSION
1210                        gstreamer-app-$GST_API_VERSION
1211                        gstreamer-audio-$GST_API_VERSION
1212                        gstreamer-fft-$GST_API_VERSION
1213                        gstreamer-base-$GST_API_VERSION
1214                        gstreamer-pbutils-$GST_API_VERSION
1215                        gstreamer-plugins-base-$GST_API_VERSION >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
1216                        gstreamer-video-$GST_API_VERSION";
1217    if test "$GST_API_VERSION" != "1.0"; then
1218        gstreamer_modules="$gstreamer_modules gstreamer-interfaces-$GST_API_VERSION";
1219    fi
1220    PKG_CHECK_MODULES([GSTREAMER], [$gstreamer_modules], [have_gstreamer=yes])
1221    AC_SUBST([GSTREAMER_CFLAGS])
1222    AC_SUBST([GSTREAMER_LIBS])
1223 fi
1224
1225
1226 if test "$with_accelerated_compositing" = "clutter"; then
1227    PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
1228    PKG_CHECK_MODULES([CLUTTER_GTK],
1229                      [clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED_VERSION])
1230
1231    AC_SUBST(CLUTTER_CFLAGS)
1232    AC_SUBST(CLUTTER_LIBS)
1233    AC_SUBST(CLUTTER_GTK_CFLAGS)
1234    AC_SUBST(CLUTTER_GTK_LIBS)
1235 fi
1236
1237 # check if atspi2 is available (only needed for Webkit2 unit tests)
1238 if test "$enable_webkit2" = "yes"; then
1239    PKG_CHECK_MODULES([ATSPI2],
1240                      [atspi-2 >= $ATSPI2_REQUIRED_VERSION],
1241                      [have_atspi2=yes], [have_atspi2=no])
1242
1243    AC_SUBST([ATSPI2_CFLAGS])
1244    AC_SUBST([ATSPI2_LIBS])
1245 fi
1246
1247 # check for code coverage support
1248 if test "$enable_coverage" = "yes"; then
1249    COVERAGE_CFLAGS="-MD"
1250    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1251    AC_SUBST([COVERAGE_CFLAGS])
1252    AC_SUBST([COVERAGE_LDFLAGS])
1253 fi
1254
1255 # check for HTML features
1256 if test "$enable_video" = "yes"; then
1257     html_flags=yes
1258 fi
1259
1260 # WebKit2
1261 # If you change the default here, please also make sure the assumptions made
1262 # in Tools/Scripts/webkitdirs.pm:buildAutotoolsProject still make sense.
1263 AC_MSG_CHECKING([whether to build Webkit2])
1264 AC_ARG_ENABLE(webkit2,
1265     AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=yes]]),
1266     [], [enable_webkit2="yes"])
1267 AC_MSG_RESULT([$enable_webkit2])
1268 if test "$enable_webkit2" = "yes"; then
1269    if test "$GTK_API_VERSION" = "2.0"; then
1270       AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1271    fi
1272
1273    # Check Unix printing
1274    PKG_CHECK_MODULES(GTK_UNIX_PRINTING, gtk+-unix-print-3.0,
1275                      [have_gtk_unix_printing=yes],
1276                      [have_gtk_unix_printing=no])
1277    AC_SUBST(GTK_UNIX_PRINTING_CFLAGS)
1278    AC_SUBST(GTK_UNIX_PRINTING_LIBS)
1279    if test "$have_gtk_unix_printing" = "yes"; then
1280        AC_DEFINE([HAVE_GTK_UNIX_PRINTING], [1], [Define if GTK+ UNIX Printing is available])
1281    fi
1282 fi
1283
1284 # Plugin Process
1285 AC_MSG_CHECKING([whether to build plugin process for WebKit2])
1286 AC_ARG_ENABLE(plugin_process,
1287             AC_HELP_STRING([--enable-plugin-process], [build plugin process for WebKit2 [default=yes]]),
1288                            [], [enable_plugin_process="yes"])
1289 AC_MSG_RESULT([$enable_plugin_process])
1290
1291 # Build the plugin process only when building Webkit2.
1292 if test "$enable_webkit2" = "no"; then
1293     enable_plugin_process=no
1294 fi
1295
1296 # Make sure we have GTK+ 2.x to build the plugin process.
1297 if test "$enable_plugin_process" = "yes"; then
1298    PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1299 fi
1300 AC_SUBST(GTK2_CFLAGS)
1301 AC_SUBST(GTK2_LIBS)
1302
1303 GTK_DOC_CHECK([1.10])
1304
1305 # OS conditionals
1306 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1307 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1308 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1309 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1310 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1311
1312 # target conditionals
1313 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1314 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1315 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1316 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1317
1318 # Unicode backend conditionals
1319 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1320 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1321
1322 # Font backend conditionals
1323 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
1324 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
1325
1326 # GStreamer feature conditional
1327 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1328 AM_CONDITIONAL([USE_WEBAUDIO_GSTREAMER], [test "$enable_web_audio" = "yes"])
1329
1330 # ATSPI2 conditional
1331 AM_CONDITIONAL([HAVE_ATSPI2], [test "$have_atspi2" = "yes"])
1332
1333 # Accelerated compositing conditional
1334 AM_CONDITIONAL([USE_ACCELERATED_COMPOSITING], [test "$with_accelerated_compositing" = "cairo" || test "$with_accelerated_compositing" = "opengl" || test "$with_accelerated_compositing" = "clutter"])
1335 AM_CONDITIONAL([USE_TEXTURE_MAPPER_CAIRO], [test "$with_accelerated_compositing" = "cairo"])
1336 AM_CONDITIONAL([USE_TEXTURE_MAPPER_GL], [test "$with_accelerated_compositing" = "opengl"])
1337 AM_CONDITIONAL([USE_CLUTTER], [test "$with_accelerated_compositing" = "clutter"])
1338
1339 # These are the same now, but they will soon be separate.
1340 AM_CONDITIONAL([USE_GLX], [test "$with_accelerated_compositing" = "opengl" || test "$enable_webgl" = "yes"])
1341 AM_CONDITIONAL([USE_OPENGL], [test "$with_accelerated_compositing" = "opengl" || test "$enable_webgl" = "yes"])
1342
1343 # WebKit feature conditionals
1344 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1345 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1346 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1347 AM_CONDITIONAL([ENABLE_LEGACY_WEBKIT_BLOB_BUILDER],[test "$enable_legacy_webkit_blob_builder" = "yes"])
1348 AM_CONDITIONAL([ENABLE_METER_TAG],[test "$enable_meter_tag" = "yes"])
1349 AM_CONDITIONAL([ENABLE_MICRODATA],[test "$enable_microdata" = "yes"])
1350 AM_CONDITIONAL([ENABLE_PAGE_VISIBILITY_API],[test "$enable_page_visibility_api" = "yes"])
1351 AM_CONDITIONAL([ENABLE_PROGRESS_TAG],[test "$enable_progress_tag" = "yes"])
1352 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1353 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1354 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1355 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1356 AM_CONDITIONAL([ENABLE_DATAGRID],[test "$enable_datagrid" = "yes"])
1357 AM_CONDITIONAL([ENABLE_DATA_TRANSFER_ITEMS],[test "$enable_data_transfer_items" = "yes"])
1358 AM_CONDITIONAL([ENABLE_SQL_DATABASE],[test "$enable_sql_database" = "yes"])
1359 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
1360 AM_CONDITIONAL([ENABLE_DETAILS],[test "$enable_details" = "yes"])
1361 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1362 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1363 AM_CONDITIONAL([ENABLE_STYLE_SCOPED],[test "$enable_style_scoped" = "yes"])
1364 AM_CONDITIONAL([ENABLE_QUOTA],[test "$enable_quota" = "yes"])
1365 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1366 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
1367 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1368 AM_CONDITIONAL([ENABLE_INPUT_TYPE_COLOR],[test "$enable_input_type_color" = "yes"])
1369 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1370 AM_CONDITIONAL([ENABLE_SCRIPTED_SPEECH],[test "$enable_scripted_speech" = "yes"])
1371 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1372 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1373 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1374 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1375 AM_CONDITIONAL([ENABLE_MHTML], [test "$enable_mhtml" = "yes"])
1376 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1377 AM_CONDITIONAL([ENABLE_MEDIA_SOURCE],[test "$enable_media_source" = "yes"])
1378 AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1379 AM_CONDITIONAL([ENABLE_VIDEO_TRACK],[test "$enable_video_track" = "yes"])
1380 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1381 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1382 AM_CONDITIONAL([ENABLE_LEGACY_NOTIFICATIONS],[test "$enable_legacy_notifications" = "yes"])
1383 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1384 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1385 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1386 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1387 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1388 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1389 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1390 AM_CONDITIONAL([ENABLE_SHADOW_DOM],[test "$enable_shadow_dom" = "yes"])
1391 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1392 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1393 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1394 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1395 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1396 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1397 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1398 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1399 AM_CONDITIONAL([ENABLE_PLUGIN_PROCESS],[test "$enable_plugin_process" = "yes"])
1400 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1401 AM_CONDITIONAL([ENABLE_ANIMATION_API],[test "$enable_animation_api" = "yes"])
1402 AM_CONDITIONAL([ENABLE_REQUEST_ANIMATION_FRAME],[test "$enable_request_animation_frame" = "yes"])
1403 AM_CONDITIONAL([ENABLE_TOUCH_ICON_LOADING],[test "$enable_touch_icon_loading" = "yes"])
1404 AM_CONDITIONAL([ENABLE_REGISTER_PROTOCOL_HANDLER],[test "$enable_register_protocol_handler" = "yes"])
1405 AM_CONDITIONAL([ENABLE_DEVICE_ORIENTATION],[test "$enable_device_orientation" = "yes"])
1406 AM_CONDITIONAL([ENABLE_MUTATION_OBSERVERS],[test "$enable_mutation_observers" = "yes"])
1407 AM_CONDITIONAL([ENABLE_IFRAME_SEAMLESS],[test "$enable_iframe_seamless" = "yes"])
1408
1409 # Gtk conditionals
1410 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1411
1412 AC_CONFIG_FILES([
1413 GNUmakefile
1414 ])
1415  
1416
1417 AC_CONFIG_FILES([
1418 Source/WebKit/gtk/webkit/webkitversion.h
1419 ])
1420
1421 AC_CONFIG_FILES([
1422 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1423 Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1424 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1425 ]
1426 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1427 )
1428
1429
1430 if test "$enable_webkit2" = "yes"; then
1431     AC_CONFIG_FILES([
1432     Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1433     ]
1434     ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1435     )
1436 fi
1437
1438 AC_OUTPUT
1439
1440 echo "
1441 WebKit was configured with the following options:
1442
1443 Build configuration:
1444  Enable debugging (slow)                                  : $enable_debug
1445  Compile with debug symbols (slow)                        : $enable_debug_symbols
1446  Enable debug features (slow)                             : $enable_debug_features
1447  Enable GCC build optimization                            : $enable_optimizations
1448  Code coverage support                                    : $enable_coverage
1449  Unicode backend                                          : $with_unicode_backend
1450  Font backend                                             : $with_font_backend
1451  Optimized memory allocator                               : $enable_fast_malloc
1452  Accelerated Compositing                                  : $with_accelerated_compositing
1453
1454 Features:
1455  WebGL                                                    : $enable_webgl
1456  Blob support                                             : $enable_blob
1457  Legacy WebKitBlobBuilder support                         : $enable_legacy_webkit_blob_builder
1458  DOM mutation observer support                            : $enable_mutation_observers
1459  DeviceOrientation support                                : $enable_device_orientation
1460  Directory upload                                         : $enable_directory_upload
1461  Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
1462  JIT compilation                                          : $enable_jit
1463  Filters support                                          : $enable_filters
1464  Geolocation support                                      : $enable_geolocation
1465  JavaScript debugger/profiler support                     : $enable_javascript_debugger
1466  Gamepad support                                          : $enable_gamepad
1467  MathML support                                           : $enable_mathml
1468  Media source                                             : $enable_media_source
1469  Media statistics                                         : $enable_media_statistics
1470  MHTML support                                            : $enable_mhtml
1471  HTML5 channel messaging support                          : $enable_channel_messaging
1472  HTML5 meter element support                              : $enable_meter_tag
1473  HTML5 microdata support                                  : $enable_microdata
1474  Page Visibility API support                              : $enable_page_visibility_api
1475  HTML5 progress element support                           : $enable_progress_tag
1476  HTML5 client-side session and persistent storage support : $enable_dom_storage
1477  SQL client-side database storage support                 : $enable_sql_database
1478  HTML5 datagrid support                                   : $enable_datagrid
1479  HTML5 data transfer items support                        : $enable_data_transfer_items
1480  HTML5 FileSystem API support                             : $enable_file_system
1481  Quota API support                                        : $enable_quota
1482  HTML5 sandboxed iframe support                           : $enable_sandbox
1483  HTML5 iframe seamless attribute support                  : $enable_iframe_seamless
1484  HTML5 video element support                              : $enable_video
1485  HTML5 track element support                              : $enable_video_track
1486  Fullscreen API support                                   : $enable_fullscreen_api
1487  Media stream support                                     : $enable_media_stream
1488  Icon database support                                    : $enable_icon_database
1489  Image resizer support                                    : $enable_image_resizer
1490  Link prefetch support                                    : $enable_link_prefetch
1491  Opcode stats                                             : $enable_opcode_stats
1492  Shadow DOM support                                       : $enable_shadow_dom
1493  SharedWorkers support                                    : $enable_shared_workers
1494  Color input support                                      : $enable_input_type_color
1495  Speech input support                                     : $enable_input_speech
1496  Scripted speech support                                  : $enable_scripted_speech
1497  SVG support                                              : $enable_svg
1498  SVG fonts support                                        : $enable_svg_fonts
1499  Web Audio support                                        : $enable_web_audio
1500  Web Sockets support                                      : $enable_web_sockets
1501  Web Timing support                                       : $enable_web_timing
1502  Web Workers support                                      : $enable_workers
1503  XSLT support                                             : $enable_xslt
1504  Spellcheck support                                       : $enable_spellcheck
1505  Animation API                                            : $enable_animation_api
1506  RequestAnimationFrame support                            : $enable_request_animation_frame
1507  Touch Icon Loading support                               : $enable_touch_icon_loading
1508  Register Protocol Handler support                        : $enable_register_protocol_handler
1509  WebKit2 support                                          : $enable_webkit2
1510  WebKit2 plugin process                                   : $enable_plugin_process
1511
1512 GTK+ configuration:
1513  GTK+ version                                             : $with_gtk
1514  GDK target                                               : $with_target
1515  GStreamer version                                        : $with_gstreamer
1516  Introspection support                                    : $enable_introspection
1517  Generate documentation                                   : $enable_gtk_doc
1518 "
1519 if test "$with_unicode_backend" = "glib"; then
1520    echo "     >> WARNING: the glib-based unicode backend is slow and incomplete <<"
1521    echo
1522    echo
1523 fi