2010-08-17 Martin Robinson <mrobinson@igalia.com>
[WebKit-https.git] / configure.ac
1 AC_PREREQ(2.59)
2
3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [3])
5 m4_define([webkit_micro_version], [3])
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 WebCore/Configurations/Version.xcconfig
11 m4_define([webkit_user_agent_major_version], [531])
12 m4_define([webkit_user_agent_minor_version], [2])
13
14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
15
16 AC_CONFIG_MACRO_DIR([autotools])
17 AC_CONFIG_AUX_DIR([autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I 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([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#Libtool-versioning
38 LIBWEBKITGTK_VERSION=0:1:0
39 AC_SUBST([LIBWEBKITGTK_VERSION])
40
41 AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar])
42
43 # Use AM_SILENT_RULES if present
44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
45
46 # host checking - inspired by the GTK+ configure.in
47 # TODO: move these to webkit.m4?
48 AC_MSG_CHECKING([for native Win32])
49 case "$host" in
50      *-*-mingw*)
51        os_win32=yes
52        ;;
53      *)
54        os_win32=no
55        ;;
56 esac
57 AC_MSG_RESULT([$os_win32])
58
59 case "$host" in
60      *-*-linux*)
61        os_linux=yes
62        ;;
63      *-*-freebsd*)
64        os_freebsd=yes
65        ;;
66      *-*-darwin*)
67        os_darwin=yes
68        ;;
69 esac
70
71 case "$host_os" in
72      gnu* | linux* | k*bsd*-gnu)
73        os_gnu=yes
74        ;;
75      *)
76        os_gnu=no
77        ;;
78 esac
79
80 # initialize webkit options
81 WEBKIT_INIT
82 AC_DISABLE_STATIC
83 AC_LIBTOOL_WIN32_DLL
84 AC_PROG_LIBTOOL
85 # use dolt to speedup the build
86 DOLT
87
88 AC_PATH_PROG(FLEX, flex)
89 if test -z "$FLEX"; then
90    AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
91 else
92    FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
93    AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
94       AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
95 fi
96
97 AC_PATH_PROG(GPERF, gperf)
98 if test -z "$GPERF"; then
99    AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
100 fi
101
102 # pthread (not needed on Windows)
103 if test "$os_win32" = "no"; then
104 AC_CHECK_HEADERS([pthread.h],
105                  AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
106                  AC_MSG_ERROR([pthread support is required to build WebKit]))
107 fi
108
109 # check for libjpeg the way Gtk does it.
110 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
111                    jpeg_ok=yes, jpeg_ok=no
112                    AC_MSG_ERROR([JPEG library (libjpeg) not found]))
113 if test "$jpeg_ok" = yes; then
114    AC_MSG_CHECKING([for jpeglib])
115    AC_TRY_CPP(
116 [#include <stdio.h>
117 #undef PACKAGE
118 #undef VERSION
119 #undef HAVE_STDLIB_H
120 #include <jpeglib.h>],
121          jpeg_ok=yes,
122          jpeg_ok=no)
123    AC_MSG_RESULT($jpeg_ok)
124    if test "$jpeg_ok" = yes; then
125       JPEG_LIBS="-ljpeg"
126       # should we check for progressive JPEG like GTK+ as well?
127    else
128       AC_MSG_ERROR([JPEG library (libjpeg) not found])
129    fi
130 fi
131 AC_SUBST([JPEG_LIBS])
132
133 # Check for libpng the way Gtk+ does it
134 for l in libpng libpng14 libpng12; do
135   AC_MSG_CHECKING(for $l)
136   if $PKG_CONFIG --exists $l ; then
137     AC_MSG_RESULT(yes)
138     PNG_LIBS=`$PKG_CONFIG --libs $l`
139     png_ok=yes
140     break
141   else
142     AC_MSG_RESULT(no)
143     png_ok=no
144   fi
145 done
146 if test "$png_ok" != yes; then
147   AC_CHECK_LIB(png, png_read_info,
148     [AC_CHECK_HEADER(png.h,
149       png_ok=yes,
150       png_ok=no)],
151     AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
152   if test "$png_ok" = yes; then
153     AC_MSG_CHECKING([for png_structp in png.h])
154     AC_TRY_COMPILE([#include <png.h>],
155       [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
156       png_ok=yes,
157       png_ok=no)
158     AC_MSG_RESULT($png_ok)
159     if test "$png_ok" = yes; then
160       PNG_LIBS='-lpng -lz'
161     else
162       AC_MSG_ERROR([PNG library (libpng) not found])
163     fi
164   else
165     AC_MSG_ERROR([PNG library (libpng) not found])
166   fi
167 fi
168 AC_SUBST([PNG_LIBS])
169
170 # determine the GTK+ version to use
171 AC_MSG_CHECKING([the GTK+ version to use])
172 AC_ARG_WITH([gtk],
173         [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 2.0)])],
174         [case "$with_gtk" in
175         2.0|3.0) ;;
176         *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
177         esac],
178         [with_gtk=2.0])
179 AC_MSG_RESULT([$with_gtk])
180
181 case "$with_gtk" in
182      2.0) GTK_REQUIRED_VERSION=2.10
183           GTK_API_VERSION=2.0
184           WEBKITGTK_API_MAJOR_VERSION=1
185           WEBKITGTK_API_MINOR_VERSION=0
186           WEBKITGTK_API_VERSION=1.0
187           WEBKITGTK_PC_NAME=webkit
188           GAIL_PC_NAME=gail
189           GAIL_REQUIRED_VERSION=1.8
190           ;;
191      3.0) GTK_REQUIRED_VERSION=2.90
192           GTK_API_VERSION=3.0
193           WEBKITGTK_API_MAJOR_VERSION=3
194           WEBKITGTK_API_MINOR_VERSION=0
195           WEBKITGTK_API_VERSION=3.0
196           WEBKITGTK_PC_NAME=webkitgtk
197           GAIL_PC_NAME=gail-3.0
198           GAIL_REQUIRED_VERSION=2.90.4
199           ;;
200 esac
201
202 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
203 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
204 AC_SUBST([WEBKITGTK_API_VERSION])
205 AC_SUBST([WEBKITGTK_PC_NAME])
206 AC_SUBST([GTK_API_VERSION])
207 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
208
209 # determine the GDK/GTK+ target
210 AC_MSG_CHECKING([the target windowing system])
211 AC_ARG_WITH(target,
212             AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
213                            [Select webkit target [default=x11]]),
214             [],[with_target="x11"])
215
216 case "$with_target" in
217      x11|win32|quartz|directfb) ;;
218      *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
219 esac
220
221 AC_MSG_RESULT([$with_target])
222
223 AC_MSG_CHECKING([for Hildon UI extensions])
224 AC_ARG_WITH(hildon,
225             AC_HELP_STRING([--with-hildon],
226                            [Use Hildon UI extensions [default=no]]),
227             [],[with_hildon="no"])
228 AC_MSG_RESULT([$with_hildon])
229
230 if test "$with_hildon" = "yes"; then
231     HILDON_CPPFLAGS="-DMAEMO_CHANGES"
232     PKG_CHECK_MODULES([HILDON], [hildon-1])
233     AC_SUBST([HILDON_CPPFLAGS])
234     AC_SUBST([HILDON_CFLAGS])
235     AC_SUBST([HILDON_LIBS])
236 fi
237
238 # minimum base dependencies
239 LIBSOUP_REQUIRED_VERSION=2.28.2
240 CAIRO_REQUIRED_VERSION=1.6
241 FONTCONFIG_REQUIRED_VERSION=2.4
242 FREETYPE2_REQUIRED_VERSION=9.0
243 LIBXML_REQUIRED_VERSION=2.6
244
245 # minimum GTK+ base dependencies
246 PANGO_REQUIRED_VERSION=1.12
247
248 # optional modules
249 LIBXSLT_REQUIRED_VERSION=1.1.7
250 SQLITE_REQUIRED_VERSION=3.0
251 GSTREAMER_REQUIRED_VERSION=0.10
252 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.25
253 ENCHANT_REQUIRED_VERSION=0.22
254
255 # Available modules
256 #
257 # glib - glib and includes gthread
258 # unicode - check and identify which unicode backend to use
259 #
260 # todo: webcore gtk
261 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
262
263 # Check if we can use GSettings
264 PKG_CHECK_MODULES([GSETTINGS],
265                   [gio-2.0 >= 2.25.0],
266                   [have_gsettings=yes],
267                   [have_gsettings=no])
268 if test "$have_gsettings" = "yes"; then
269    AC_DEFINE([HAVE_GSETTINGS], 1, [Whether we can use GSettings])
270    GLIB_GSETTINGS
271 fi
272
273 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
274 AC_SUBST(GETTEXT_PACKAGE)
275 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
276                    [The gettext catalog name])
277
278 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
279 AC_SUBST(LIBXML_CFLAGS)
280 AC_SUBST(LIBXML_LIBS)
281
282 PKG_CHECK_MODULES(PANGO, 
283                   [pango >= $PANGO_REQUIRED_VERSION
284                    pangoft2])
285 AC_SUBST(PANGO_CFLAGS)
286 AC_SUBST(PANGO_LIBS)
287
288 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
289 AC_SUBST(ENCHANT_CFLAGS)
290 AC_SUBST(ENCHANT_LIBS)
291
292 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
293 AC_SUBST(GAIL_CFLAGS)
294 AC_SUBST(GAIL_LIBS)
295
296 # check for target-specific dependencies
297 if test "$with_target" = "directfb"; then
298    PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
299    PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
300    AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
301 else
302    PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
303    PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
304
305    if test "$with_target" = "x11" && test "$os_win32" = "no"; then
306       # check for XT
307       PKG_CHECK_MODULES([XT],
308                         [xt],
309                         [xt_has_pkg_config=yes],
310                         [xt_has_pkg_config=no])
311       # some old versions of Xt do not provide xt.pc, so try to link against Xt
312       # and if it's installed fall back to just adding -lXt
313       if test "$xt_has_pkg_config" = "no"; then
314          # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
315          # we don't care about the XtOpenDisplay symbol but only about the
316          # existence of libXt
317          AC_CHECK_LIB([Xt], [XtOpenDisplay],
318                       [XT_CFLAGS=""; XT_LIBS="-lXt"],
319                       [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
320       fi
321       AC_SUBST([XT_CFLAGS])
322       AC_SUBST([XT_LIBS])
323       AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
324    fi
325 fi
326 AC_SUBST(GTK_CFLAGS)
327 AC_SUBST(GTK_LIBS)
328 AC_SUBST(CAIRO_CFLAGS)
329 AC_SUBST(CAIRO_LIBS)
330
331 # check whether to build with debugging enabled
332 AC_MSG_CHECKING([whether to do a debug build])
333 AC_ARG_ENABLE(debug,
334               AC_HELP_STRING([--enable-debug],
335                              [turn on debugging [default=no]]),
336               [],[enable_debug="no"])
337 AC_MSG_RESULT([$enable_debug])
338
339 # check whether to enable optimized builds
340 AC_MSG_CHECKING([whether to enable optimized builds])
341 AC_ARG_ENABLE(optimizations,
342               AC_HELP_STRING([--enable-optimizations],
343                              [turn on optimize builds (GCC only)
344                              [default=yes]]),
345               [enable_optimizations=$enableval],
346               [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
347 AC_MSG_RESULT([$enable_optimizations])
348
349 # check whether to enable 3D transforms support
350 AC_MSG_CHECKING([whether to enable support for 3D Transforms])
351 AC_ARG_ENABLE(3D_transforms,
352               AC_HELP_STRING([--enable-3D-transforms],
353                              [enable support for 3D transforms [default=no]]),
354               [],[enable_3D_transforms="no"])
355 AC_MSG_RESULT([$enable_3D_transforms])
356
357 # check whether to enable channel messaging support
358 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
359 AC_ARG_ENABLE(channel_messaging,
360               AC_HELP_STRING([--enable-channel-messaging],
361                              [enable HTML5 channel messaging support [default=yes]]),
362               [],[enable_channel_messaging="yes"])
363 AC_MSG_RESULT([$enable_channel_messaging])
364
365 # check whether to enable JavaScript debugger/profiler support
366 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
367 AC_ARG_ENABLE(javascript_debugger,
368               AC_HELP_STRING([--enable-javascript-debugger],
369                              [enable JavaScript debugger/profiler support [default=yes]]),
370               [],[enable_javascript_debugger="yes"])
371 AC_MSG_RESULT([$enable_javascript_debugger])
372
373 # check whether to enable HTML5 Offline Web Applications support
374 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
375 AC_ARG_ENABLE(offline_web_applications,
376               AC_HELP_STRING([--enable-offline-web-applications],
377                              [enable HTML5 offline web applications support [default=yes]]),
378               [],[enable_offline_web_applications="yes"])
379 AC_MSG_RESULT([$enable_offline_web_applications])
380
381 # check whether to enable HTML5 client-side session and persitent storage support
382 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
383 AC_ARG_ENABLE(dom_storage,
384               AC_HELP_STRING([--enable-dom-storage],
385                              [enable HTML5 client-side session and persistent storage support [default=yes]]),
386               [],[enable_dom_storage="yes"])
387 AC_MSG_RESULT([$enable_dom_storage])
388
389 # check whether to enable the indexed database API
390 AC_MSG_CHECKING([whether to enable the indexed database API])
391 AC_ARG_ENABLE(indexed_database,
392               AC_HELP_STRING([--enable-indexeddb],
393                              [enable the indexed database API [default=no]]),
394               [],[enable_indexed_database="no"])
395 AC_MSG_RESULT([$enable_indexed_database])
396
397 # check whether to enable the speech input API
398 AC_MSG_CHECKING([whether to enable the speech input API])
399 AC_ARG_ENABLE(input_speech,
400               AC_HELP_STRING([--enable-input-speech],
401                              [enable the speech input API [default=no]]),
402               [],[enable_input_speech="no"])
403 AC_MSG_RESULT([$enable_input_speech])
404
405 # check whether to build with database support
406 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
407 AC_ARG_ENABLE(database,
408               AC_HELP_STRING([--enable-database],
409                              [enable HTML5 client-side database storage support [default=yes]]),
410               [],[enable_database="yes"])
411 AC_MSG_RESULT([$enable_database])
412
413 # check whether to build with server-sent events support
414 AC_MSG_CHECKING([whether to enable HTML5 server-sent events support])
415 AC_ARG_ENABLE(eventsource,
416               AC_HELP_STRING([--enable-eventsource],
417                              [enable HTML5 server-sent events support [default=yes]]),
418               [],[enable_eventsource="yes"])
419 AC_MSG_RESULT([$enable_eventsource])
420
421 # check whether to build with icon database support
422 AC_MSG_CHECKING([whether to enable icon database support])
423 AC_ARG_ENABLE(icon_database,
424               AC_HELP_STRING([--enable-icon-database],
425                              [enable icon database [default=yes]]),
426               [],[enable_icon_database="yes"])
427 AC_MSG_RESULT([$enable_icon_database])
428
429 # check whether to build with image resizer API support
430 AC_MSG_CHECKING([whether to enable image resizer API support])
431 AC_ARG_ENABLE(image_resizer,
432               AC_HELP_STRING([--enable-image-resizer],
433                              [enable image resizer [default=no]]),
434               [],[enable_image_resizer="no"])
435 AC_MSG_RESULT([$enable_image_resizer])
436
437 # check whether to enable HTML5 datalist support
438 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
439 AC_ARG_ENABLE(datalist,
440               AC_HELP_STRING([--enable-datalist],
441                              [enable HTML5 datalist support [default=yes]]),
442               [],[enable_datalist="yes"])
443 AC_MSG_RESULT([$enable_datalist])
444
445 # check whether to enable HTML5 ruby support
446 AC_MSG_CHECKING([whether to enable HTML5 ruby support])
447 AC_ARG_ENABLE(ruby,
448               AC_HELP_STRING([--enable-ruby],
449                              [enable HTML5 ruby support [default=yes]]),
450               [],[enable_ruby="yes"])
451 AC_MSG_RESULT([$enable_ruby])
452
453 # check whether to enable HTML5 sandbox iframe support
454 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
455 AC_ARG_ENABLE(sandbox,
456               AC_HELP_STRING([--enable-sandbox],
457                              [enable HTML5 sandboxed iframe support [default=yes]]),
458               [],[enable_sandbox="yes"])
459 AC_MSG_RESULT([$enable_sandbox])
460
461 # check whether to enable HTML5 audio/video support
462 AC_MSG_CHECKING([whether to enable HTML5 video support])
463 AC_ARG_ENABLE(video,
464               AC_HELP_STRING([--enable-video],
465                              [enable HTML5 video support [default=yes]]),
466               [],[enable_video="yes"])
467 AC_MSG_RESULT([$enable_video])
468
469 # check whether to enable XHTML-MP support
470 AC_MSG_CHECKING([whether to enable XHTML-MP support])
471 AC_ARG_ENABLE(xhtmlmp,
472               AC_HELP_STRING([--enable-xhtmlmp],
473                              [enable support for XHTML-MP [default=no]]),
474               [],[enable_xhtmlmp="no"])
475 AC_MSG_RESULT([$enable_xhtmlmp])
476
477 # check whether to enable XPath support
478 AC_MSG_CHECKING([whether to enable XPath support])
479 AC_ARG_ENABLE(xpath,
480               AC_HELP_STRING([--enable-xpath],
481                              [enable support for XPath [default=yes]]),
482               [],[enable_xpath="yes"])
483 AC_MSG_RESULT([$enable_xpath])
484
485 # check whether to enable XSLT support
486 AC_MSG_CHECKING([whether to enable XSLT support])
487 AC_ARG_ENABLE(xslt,
488               AC_HELP_STRING([--enable-xslt],
489                              [enable support for XSLT [default=yes]]),
490               [],[enable_xslt="yes"])
491 AC_MSG_RESULT([$enable_xslt])
492
493 # check whether to enable geolocation support
494 AC_MSG_CHECKING([whether to enable geolocation support])
495 AC_ARG_ENABLE(geolocation,
496               AC_HELP_STRING([--enable-geolocation],
497                              [enable support for geolocation [default=no]]),
498               [],[enable_geolocation="no"])
499 AC_MSG_RESULT([$enable_geolocation])
500
501 # check whether to enable MathML support
502 AC_MSG_CHECKING([whether to enable MathML support])
503 AC_ARG_ENABLE(mathml,
504               AC_HELP_STRING([--enable-mathml],
505                              [enable support for MathML [default=no]]),
506               [],[enable_mathml="no"])
507 AC_MSG_RESULT([$enable_mathml])
508
509 # check whether to enable SVG support
510 AC_MSG_CHECKING([whether to enable SVG support])
511 AC_ARG_ENABLE(svg,
512               AC_HELP_STRING([--enable-svg],
513                              [enable support for SVG [default=yes]]),
514               [],[enable_svg="yes"])
515 AC_MSG_RESULT([$enable_svg])
516
517 # check whether to enable WML support
518 AC_MSG_CHECKING([whether to enable WML support])
519 AC_ARG_ENABLE(wml,
520               AC_HELP_STRING([--enable-wml],
521                              [enable support for WML [default=no]]),
522               [],[enable_wml="no"])
523 AC_MSG_RESULT([$enable_wml])
524
525 # check whether to enable SharedWorkers support
526 AC_MSG_CHECKING([whether to enable SharedWorkers support])
527 AC_ARG_ENABLE(shared_workers,
528               AC_HELP_STRING([--enable-shared-workers],
529                              [enable support for SharedWorkers [default=yes]]),
530               [],[enable_shared_workers="yes"])
531 AC_MSG_RESULT([$enable_shared_workers])
532
533 # check whether to enable Web Workers support
534 AC_MSG_CHECKING([whether to enable Web Workers support])
535 AC_ARG_ENABLE(workers,
536               AC_HELP_STRING([--enable-workers],
537                              [enable support for Web Workers [default=yes]]),
538               [],[enable_workers="yes"])
539 AC_MSG_RESULT([$enable_workers])
540
541 # check whether to enable directory upload support
542 AC_MSG_CHECKING([whether to enable directory upload support])
543 AC_ARG_ENABLE(directory_upload,
544               AC_HELP_STRING([--enable-directory-upload],
545                              [enable support for directory upload [default=no]]),
546               [], [enable_directory_upload="no"])
547 AC_MSG_RESULT([$enable_directory_upload])
548
549 # check whether to enable HTML5 FileSystem API support
550 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
551 AC_ARG_ENABLE(file_system,
552               AC_HELP_STRING([--enable-file-system],
553                              [enable support for HTML5 FileSystem API [default=no]]),
554               [], [enable_file_system="no"])
555 AC_MSG_RESULT([$enable_file_system])
556
557 # turn off svg features if --disable-svg is requested
558 if test "$enable_svg" = "no"; then
559    enable_svg_animation=no
560    enable_svg_fonts=no
561    enable_svg_foreign_object=no
562    enable_svg_as_image=no
563    enable_svg_use=no
564 fi
565
566 # check whether to enable support for SVG animation
567 AC_MSG_CHECKING([whether to enable support for SVG animation])
568 AC_ARG_ENABLE(svg_animation,
569               AC_HELP_STRING([--enable-svg-animation],
570                              [enable support for SVG animation (experimental) [default=yes]]),
571               [],[enable_svg_animation="yes"])
572 AC_MSG_RESULT([$enable_svg_animation])
573
574 # check whether to enable support for filters
575 AC_MSG_CHECKING([whether to enable support for filters])
576 AC_ARG_ENABLE(filters,
577               AC_HELP_STRING([--enable-filters],
578                              [enable support for filters (experimental) [default=yes]]),
579               [],[enable_filters="yes"])
580 AC_MSG_RESULT([$enable_filters])
581
582 # check whether to enable support for SVG fonts
583 AC_MSG_CHECKING([whether to enable support for SVG fonts])
584 AC_ARG_ENABLE(svg_fonts,
585               AC_HELP_STRING([--enable-svg-fonts],
586                              [enable support for SVG fonts (experimental) [default=yes]]),
587               [],[enable_svg_fonts="yes"])
588 AC_MSG_RESULT([$enable_svg_fonts])
589
590 # check whether to enable foreign objects support for SVG
591 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
592 AC_ARG_ENABLE(svg_foreign_object,
593               AC_HELP_STRING([--enable-svg-foreign-object],
594                              [enable support for SVG foreign objects (experimental) [default=yes]]),
595               [],[enable_svg_foreign_object="yes"])
596 AC_MSG_RESULT([$enable_svg_foreign_object])
597
598 # check whether to enable SVG As Image support
599 AC_MSG_CHECKING([whether to enable SVG as Image support])
600 AC_ARG_ENABLE(svg_as_image,
601               AC_HELP_STRING([--enable-svg-as-image],
602                              [enable SVG as Image support (experimental) [default=yes]]),
603               [],[enable_svg_as_image="yes"])
604 AC_MSG_RESULT([$enable_svg_as_image])
605
606 # check whether to enable SVG USE element support
607 AC_MSG_CHECKING([whether to enable support for SVG use element])
608 AC_ARG_ENABLE(svg_use,
609               AC_HELP_STRING([--enable-svg-use],
610                              [enable SVG use element support (experimental) [default=yes]]),
611               [],[enable_svg_use="yes"])
612 AC_MSG_RESULT([$enable_svg_use])
613
614 # check for SVG features, enabling SVG if necessary
615 if test "$enable_svg_animation" = "yes" || \
616    test "$enable_svg_fonts" = "yes" || \
617    test "$enable_svg_foreign_object" = "yes" || \
618    test "$enable_svg_as_image" = "yes" || \
619    test "$enable_svg_use" = "yes"; then
620    svg_flags=yes
621    if test "$enable_svg" = "no"; then
622        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
623        enable_svg=yes
624    fi
625 fi
626
627 # check whether to enable Web Socket support
628 AC_MSG_CHECKING([whether to enable Web Sockets support])
629 AC_ARG_ENABLE(web_sockets,
630               AC_HELP_STRING([--enable-web-sockets],
631                              [enable support for Web Sockets [default=no]]),
632               [],[enable_web_sockets="no"])
633 AC_MSG_RESULT([$enable_web_sockets])
634
635 # check whether to enable Web Timing support
636 AC_MSG_CHECKING([whether to enable Web Timing support])
637 AC_ARG_ENABLE(web_timing,
638               AC_HELP_STRING([--enable-web-timing],
639                              [enable support for Web Timing [default=no]]),
640               [],[enable_web_timing="no"])
641 AC_MSG_RESULT([$enable_web_timing])
642
643 # check whether to enable Blob support
644 AC_MSG_CHECKING([whether to enable Blob support])
645 AC_ARG_ENABLE(blob,
646               AC_HELP_STRING([--enable-blob],
647                              [enable support for Blob [default=no]]),
648               [],[enable_blob="no"])
649 AC_MSG_RESULT([$enable_blob])
650
651 # check whether to enable Fast Mobile Scrolling support
652 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
653 AC_ARG_ENABLE(fast_mobile_scrolling,
654               AC_HELP_STRING([--enable-fast-mobile-scrolling],
655                              [enable support for Fast Mobile Scrolling [default=no]]),
656               [],[enable_fast_mobile_scrolling="no"])
657 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
658
659 # check whether to enable FileWriter support
660 AC_MSG_CHECKING([whether to enable FileWriter support])
661 AC_ARG_ENABLE(file_writer,
662               AC_HELP_STRING([--enable-file-writer],
663                              [enable support for FileWriter [default=no]]),
664               [],[enable_file_writer="no"])
665 AC_MSG_RESULT([$enable_file_writer])
666
667 # check whether to enable code coverage
668 AC_MSG_CHECKING([whether to enable code coverage support])
669 AC_ARG_ENABLE(coverage,
670               AC_HELP_STRING([--enable-coverage],
671                              [enable code coverage support [default=no]]),
672               [],[enable_coverage="no"])
673 AC_MSG_RESULT([$enable_coverage])
674
675 # check whether to enable FastMalloc
676 AC_MSG_CHECKING([whether to enable optimized memory allocator])
677 AC_ARG_ENABLE(fast_malloc,
678               AC_HELP_STRING([--enable-fast-malloc],
679                              [enable optimized memory allocator default=yes, default=no for debug builds]),
680               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
681 AC_MSG_RESULT([$enable_fast_malloc])
682
683 AC_MSG_CHECKING([whether to enable JIT compilation])
684 AC_ARG_ENABLE([jit],
685               AC_HELP_STRING([--enable-jit],
686                              [Enable JIT compilation default=yes]),
687               [],[enable_jit="yes"])
688 if test "$enable_jit" = "yes"; then
689     case "$host_cpu" in
690         arm*)
691             AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
692             AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
693             AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
694         ;;
695         i*86|x86_64)
696             AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
697             AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
698             AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
699             AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
700             AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
701             AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
702             case "$host_cpu" in
703                 i*86)
704                     AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
705                 ;;
706                 x86_64)
707                     AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
708                     AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
709                 ;;
710             esac
711         ;;
712         *)
713             enable_jit="no (CPU '$host_cpu' not supported)"
714         ;;
715     esac
716 fi
717 AC_MSG_RESULT([$enable_jit])
718
719 # GObject Introspection
720 AC_MSG_CHECKING([whether to enable GObject introspection support])
721 AC_ARG_ENABLE([introspection],
722   [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
723   [],[enable_introspection=no])
724 AC_MSG_RESULT([$enable_introspection])
725
726 G_IR_SCANNER=
727 G_IR_COMPILER=
728 G_IR_GENERATE=
729 GIRDIR=
730 GIRTYPELIBDIR=
731
732 if test "$enable_introspection" = "yes"; then
733   GOBJECT_INTROSPECTION_REQUIRED=0.6.15
734   PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
735   
736   G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
737   G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
738   G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
739   AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
740 fi
741
742 AC_SUBST([G_IR_SCANNER])
743 AC_SUBST([G_IR_COMPILER])
744 AC_SUBST([G_IR_GENERATE])
745
746 # determine the font backend
747 AC_MSG_CHECKING([the font backend to use])
748 AC_ARG_WITH(font_backend,
749             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
750                            [Select font backend [default=freetype]]),
751             [],[with_font_backend="freetype"])
752
753 case "$with_font_backend" in
754      freetype|pango) ;;
755      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
756 esac
757 AC_MSG_RESULT([$with_font_backend])
758
759 # Add '-g' flag to gcc if it's debug build
760 if test "$enable_debug" = "yes"; then
761    CXXFLAGS="$CXXFLAGS -g"
762    CFLAGS="$CFLAGS -g"
763 else
764    AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
765 fi
766
767 # Add the appropriate 'O' level for optimized builds
768 if test "$enable_optimizations" = "yes"; then
769    CXXFLAGS="$CXXFLAGS -O2"
770    CFLAGS="$CFLAGS -O2"
771 else
772    CXXFLAGS="$CXXFLAGS -O0"
773    CFLAGS="$CFLAGS -O0"
774 fi
775
776 PKG_CHECK_MODULES([LIBSOUP],
777                   [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
778 AC_SUBST([LIBSOUP_CFLAGS])
779 AC_SUBST([LIBSOUP_LIBS])
780
781 # check if we can use libSoup 2.29.90 features
782 PKG_CHECK_MODULES([LIBSOUP_2_29_90],
783                   [libsoup-2.4 >= 2.29.90],
784                   [have_libsoup_2_29_90=yes],
785                   [have_libsoup_2_29_90=no])
786 if test "$have_libsoup_2_29_90" = "yes"; then
787    AC_DEFINE([HAVE_LIBSOUP_2_29_90], 1, [Whether libSoup 2.29.90 features are available])
788 fi
789
790 # check if FreeType/FontConfig are available
791 if test "$with_font_backend" = "freetype"; then
792    if test "$with_target" = "directfb"; then
793    PKG_CHECK_MODULES([FREETYPE],
794                      [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
795                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
796    else
797    PKG_CHECK_MODULES([FREETYPE],
798                      [cairo-ft
799                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
800                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
801    fi
802    AC_SUBST([FREETYPE_CFLAGS])
803    AC_SUBST([FREETYPE_LIBS])
804 fi
805
806 # check if sqlite 3 is available
807 if test "$enable_icon_database" = "yes" || \
808    test "$enable_database" = "yes" || \
809    test "$enable_offline_web_applications" = "yes" || \
810    test "$enable_dom_storage" = "yes"; then
811    PKG_CHECK_MODULES([SQLITE3],
812                      [sqlite3 >= $SQLITE_REQUIRED_VERSION],
813                      [sqlite3_has_pkg_config=yes],
814                      [sqlite3_has_pkg_config=no])
815    if test "$sqlite3_has_pkg_config" = "no"; then
816       AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
817                      [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
818                      [AC_MSG_ERROR([SQLite3 is required to enable Database support])])
819    fi
820    AC_SUBST([SQLITE3_CFLAGS])
821    AC_SUBST([SQLITE3_LIBS])
822 fi
823
824 # check if libxslt is available
825 if test "$enable_xslt" = "yes"; then
826    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
827    AC_SUBST([LIBXSLT_CFLAGS])
828    AC_SUBST([LIBXSLT_LIBS])
829 fi
830
831 # check if geoclue is available
832 if test "$enable_geolocation" = "yes"; then
833     PKG_CHECK_MODULES([GEOCLUE], [geoclue])
834     AC_SUBST([GEOCLUE_CFLAGS])
835     AC_SUBST([GEOCLUE_LIBS])
836 fi
837
838 # check if gstreamer is available
839 if test "$enable_video" = "yes"; then
840    PKG_CHECK_MODULES([GSTREAMER],
841                      [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
842                      gstreamer-app-0.10
843                      gstreamer-base-0.10
844                      gstreamer-pbutils-0.10
845                      gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
846                      gstreamer-video-0.10])
847    AC_SUBST([GSTREAMER_CFLAGS])
848    AC_SUBST([GSTREAMER_LIBS])
849 fi
850
851 # check for code coverage support
852 if test "$enable_coverage" = "yes"; then
853    COVERAGE_CFLAGS="-MD"
854    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
855    AC_SUBST([COVERAGE_CFLAGS])
856    AC_SUBST([COVERAGE_LDFLAGS])
857 fi
858
859 # check for HTML features
860 if test "$enable_video" = "yes"; then
861     html_flags=yes
862 fi
863
864 GTK_DOC_CHECK([1.10])
865
866 # OS conditionals
867 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
868 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
869 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
870 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
871 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
872
873 # target conditionals
874 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
875 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
876 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
877 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
878
879 # Unicode backend conditionals
880 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
881 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
882
883 # Font backend conditionals
884 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
885 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
886
887 # GLib/GIO feature conditionals
888 AM_CONDITIONAL([USE_GSETTINGS], [test "$have_gsettings" = "yes"])
889
890 # WebKit feature conditionals
891 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
892 AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3D_transforms" = "yes"])
893 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
894 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
895 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
896 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
897 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
898 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
899 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
900 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
901 AM_CONDITIONAL([ENABLE_EVENTSOURCE],[test "$enable_eventsource" = "yes"])
902 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
903 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
904 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
905 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
906 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
907 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
908 AM_CONDITIONAL([ENABLE_XHTMLMP],[test "$enable_xhtmlmp" = "yes"])
909 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
910 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
911 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
912 AM_CONDITIONAL([ENABLE_FILE_WRITER],[test "$enable_file_writer" = "yes"])
913 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
914 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
915 AM_CONDITIONAL([ENABLE_RUBY],[test "$enable_ruby" = "yes"])
916 AM_CONDITIONAL([ENABLE_SANDBOX],[test "$enable_sandbox" = "yes"])
917 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
918 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
919 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
920 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
921 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
922 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
923 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
924 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
925 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use" = "yes"])
926 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
927 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
928 AM_CONDITIONAL([ENABLE_WML],[test "$enable_wml" = "yes"])
929 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
930 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
931 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
932 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
933 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
934 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
935
936 # Gtk conditionals
937 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
938
939
940 AC_CONFIG_FILES([
941 GNUmakefile
942 WebKit/gtk/webkit/webkitversion.h
943 WebKit/gtk/docs/GNUmakefile
944 WebKit/gtk/docs/version.xml
945 ]
946 )
947
948 AC_CONFIG_FILES([
949 WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:WebKit/gtk/webkit.pc.in
950 WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:WebKit/gtk/JSCore.gir.in
951 WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:WebKit/gtk/org.webkitgtk.gschema.xml.in
952 ]
953 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
954 )
955
956 AC_OUTPUT
957
958 echo "
959 WebKit was configured with the following options:
960
961 Build configuration:
962  Enable debugging (slow)                                  : $enable_debug
963  Enable GCC build optimization                            : $enable_optimizations
964  Code coverage support                                    : $enable_coverage
965  Unicode backend                                          : $with_unicode_backend
966  Font backend                                             : $with_font_backend
967  Optimized memory allocator                               : $enable_fast_malloc
968 Features:
969  3D Transforms                                            : $enable_3D_transforms
970  Blob support                                             : $enable_blob
971  Directory upload                                         : $enable_directory_upload
972  Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
973  JIT compilation                                          : $enable_jit
974  Filters support                                          : $enable_filters
975  FileWriter support                                       : $enable_file_writer
976  Geolocation support                                      : $enable_geolocation
977  JavaScript debugger/profiler support                     : $enable_javascript_debugger
978  MathML support                                           : $enable_mathml
979  HTML5 offline web applications support                   : $enable_offline_web_applications
980  HTML5 channel messaging support                          : $enable_channel_messaging
981  HTML5 client-side session and persistent storage support : $enable_dom_storage
982  HTML5 client-side database storage support               : $enable_database
983  HTML5 FileSystem API support                             : $enable_file_system
984  HTML5 ruby support                                       : $enable_ruby
985  HTML5 sandboxed iframe support                           : $enable_sandbox
986  HTML5 server-sent events support                         : $enable_eventsource
987  HTML5 video element support                              : $enable_video
988  Icon database support                                    : $enable_icon_database
989  Image resizer support                                    : $enable_image_resizer
990  SharedWorkers support                                    : $enable_shared_workers
991  Speech input support                                     : $enable_input_speech
992  SVG support                                              : $enable_svg
993  SVG animation support                                    : $enable_svg_animation
994  SVG fonts support                                        : $enable_svg_fonts
995  SVG foreign object support                               : $enable_svg_foreign_object
996  SVG as image support                                     : $enable_svg_as_image
997  SVG use element support                                  : $enable_svg_use
998  WML support                                              : $enable_wml
999  Web Sockets support                                      : $enable_web_sockets
1000  Web Timing support                                       : $enable_web_timing
1001  Web Workers support                                      : $enable_workers
1002  XHTML-MP support                                         : $enable_xhtmlmp
1003  XPATH support                                            : $enable_xpath
1004  XSLT support                                             : $enable_xslt
1005 GTK+ configuration:
1006  GTK+ version                                             : $with_gtk
1007  GDK target                                               : $with_target
1008  Hildon UI extensions                                     : $with_hildon
1009  Introspection support                                    : $enable_introspection
1010 "
1011 if test "$with_unicode_backend" = "glib"; then
1012    echo "     >> WARNING: the glib-based unicode backend is slow and incomplete <<"
1013    echo
1014    echo
1015 fi