2011-02-22 Philippe Normand <pnormand@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], [12])
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], [534])
12 m4_define([webkit_user_agent_minor_version], [21])
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=5:4:5
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
171 if test "$os_win32" = "yes"; then
172   WINMM_LIBS=-lwinmm
173   SHLWAPI_LIBS=-lshlwapi
174   OLE32_LIBS=-lole32
175 fi
176 AC_SUBST([WINMM_LIBS])
177 AC_SUBST([SHLWAPI_LIBS])
178 AC_SUBST([OLE32_LIBS])
179
180
181 # determine the GTK+ version to use
182 AC_MSG_CHECKING([the GTK+ version to use])
183 AC_ARG_WITH([gtk],
184         [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 2.0)])],
185         [case "$with_gtk" in
186         2.0|3.0) ;;
187         *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
188         esac],
189         [with_gtk=2.0])
190 AC_MSG_RESULT([$with_gtk])
191
192 case "$with_gtk" in
193      2.0) GTK_REQUIRED_VERSION=2.10
194           GTK_API_VERSION=2.0
195           WEBKITGTK_API_MAJOR_VERSION=1
196           WEBKITGTK_API_MINOR_VERSION=0
197           WEBKITGTK_API_VERSION=1.0
198           WEBKITGTK_PC_NAME=webkit
199           GAIL_PC_NAME=gail
200           GAIL_REQUIRED_VERSION=1.8
201           ;;
202      3.0) GTK_REQUIRED_VERSION=3.0
203           GTK_API_VERSION=3.0
204           WEBKITGTK_API_MAJOR_VERSION=3
205           WEBKITGTK_API_MINOR_VERSION=0
206           WEBKITGTK_API_VERSION=3.0
207           WEBKITGTK_PC_NAME=webkitgtk
208           GAIL_PC_NAME=gail-3.0
209           GAIL_REQUIRED_VERSION=3.0
210           ;;
211 esac
212
213 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
214 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
215 AC_SUBST([WEBKITGTK_API_VERSION])
216 AC_SUBST([WEBKITGTK_PC_NAME])
217 AC_SUBST([GTK_API_VERSION])
218 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
219
220 # determine the GDK/GTK+ target
221 AC_MSG_CHECKING([the target windowing system])
222 AC_ARG_WITH(target,
223             AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
224                            [Select webkit target [default=x11]]),
225             [],[with_target="x11"])
226
227 case "$with_target" in
228      x11|win32|quartz|directfb) ;;
229      *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
230 esac
231
232 AC_MSG_RESULT([$with_target])
233
234 AC_MSG_CHECKING([for Hildon UI extensions])
235 AC_ARG_WITH(hildon,
236             AC_HELP_STRING([--with-hildon],
237                            [Use Hildon UI extensions [default=no]]),
238             [],[with_hildon="no"])
239 AC_MSG_RESULT([$with_hildon])
240
241 if test "$with_hildon" = "yes"; then
242     HILDON_CPPFLAGS="-DMAEMO_CHANGES"
243     PKG_CHECK_MODULES([HILDON], [hildon-1])
244     AC_SUBST([HILDON_CPPFLAGS])
245     AC_SUBST([HILDON_CFLAGS])
246     AC_SUBST([HILDON_LIBS])
247 fi
248
249 # minimum base dependencies
250 LIBSOUP_REQUIRED_VERSION=2.33.6
251 CAIRO_REQUIRED_VERSION=1.6
252 FONTCONFIG_REQUIRED_VERSION=2.4
253 FREETYPE2_REQUIRED_VERSION=9.0
254 LIBXML_REQUIRED_VERSION=2.6
255
256 # minimum GTK+ base dependencies
257 PANGO_REQUIRED_VERSION=1.12
258
259 # optional modules
260 LIBXSLT_REQUIRED_VERSION=1.1.7
261 SQLITE_REQUIRED_VERSION=3.0
262 GSTREAMER_REQUIRED_VERSION=0.10
263 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.25
264 ENCHANT_REQUIRED_VERSION=0.22
265
266 # Available modules
267 #
268 # glib - glib and includes gthread
269 # unicode - check and identify which unicode backend to use
270 #
271 # todo: webcore gtk
272 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
273
274 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
275 AC_SUBST(GETTEXT_PACKAGE)
276 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
277                    [The gettext catalog name])
278
279 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
280 AC_SUBST(LIBXML_CFLAGS)
281 AC_SUBST(LIBXML_LIBS)
282
283 PKG_CHECK_MODULES(PANGO, 
284                   [pango >= $PANGO_REQUIRED_VERSION
285                    pangoft2])
286 AC_SUBST(PANGO_CFLAGS)
287 AC_SUBST(PANGO_LIBS)
288
289 AC_MSG_CHECKING([whether to enable spellcheck support])
290 AC_ARG_ENABLE([spellcheck],
291   [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
292   [],[enable_spellcheck="yes"])
293 AC_MSG_RESULT([$enable_spellcheck])
294
295 if test "$enable_spellcheck" = "yes"; then
296 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
297 AC_SUBST(ENCHANT_CFLAGS)
298 AC_SUBST(ENCHANT_LIBS)
299 fi
300
301 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
302 AC_SUBST(GAIL_CFLAGS)
303 AC_SUBST(GAIL_LIBS)
304
305 # check for target-specific dependencies
306 if test "$with_target" = "directfb"; then
307    PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
308    PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
309    AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
310 else
311    PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
312    PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
313
314    if test "$with_target" = "x11" && test "$os_win32" = "no"; then
315       # check for XT
316       PKG_CHECK_MODULES([XT],
317                         [xt],
318                         [xt_has_pkg_config=yes],
319                         [xt_has_pkg_config=no])
320       # some old versions of Xt do not provide xt.pc, so try to link against Xt
321       # and if it's installed fall back to just adding -lXt
322       if test "$xt_has_pkg_config" = "no"; then
323          # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
324          # we don't care about the XtOpenDisplay symbol but only about the
325          # existence of libXt
326          AC_CHECK_LIB([Xt], [XtOpenDisplay],
327                       [XT_CFLAGS=""; XT_LIBS="-lXt"],
328                       [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
329       fi
330       AC_SUBST([XT_CFLAGS])
331       AC_SUBST([XT_LIBS])
332       AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
333    fi
334 fi
335 AC_SUBST(GTK_CFLAGS)
336 AC_SUBST(GTK_LIBS)
337 AC_SUBST(CAIRO_CFLAGS)
338 AC_SUBST(CAIRO_LIBS)
339
340 # check whether to build with debugging enabled
341 AC_MSG_CHECKING([whether to do a debug build])
342 AC_ARG_ENABLE(debug,
343               AC_HELP_STRING([--enable-debug],
344                              [turn on debugging [default=no]]),
345               [],[enable_debug="no"])
346 AC_MSG_RESULT([$enable_debug])
347
348 # check whether to enable optimized builds
349 AC_MSG_CHECKING([whether to enable optimized builds])
350 AC_ARG_ENABLE(optimizations,
351               AC_HELP_STRING([--enable-optimizations],
352                              [turn on optimize builds (GCC only)
353                              [default=yes]]),
354               [enable_optimizations=$enableval],
355               [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
356 AC_MSG_RESULT([$enable_optimizations])
357
358 # check whether to enable 3D transforms support
359 AC_MSG_CHECKING([whether to enable support for 3D Transforms])
360 AC_ARG_ENABLE(3d_transforms,
361               AC_HELP_STRING([--enable-3d-transforms],
362                              [enable support for 3D transforms [default=no]]),
363               [],[enable_3d_transforms="no"])
364 AC_MSG_RESULT([$enable_3d_transforms])
365
366 # check whether to enable WebGL support
367 AC_MSG_CHECKING([whether to enable WebGL support])
368 AC_ARG_ENABLE(webgl,
369               AC_HELP_STRING([--enable-webgl],
370                              [enable support for (WebGL [default=yes]]),
371               [], [enable_webgl="no"])
372 AC_MSG_RESULT([$enable_webgl])
373
374 # check whether to enable channel messaging support
375 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
376 AC_ARG_ENABLE(channel_messaging,
377               AC_HELP_STRING([--enable-channel-messaging],
378                              [enable HTML5 channel messaging support [default=yes]]),
379               [],[enable_channel_messaging="yes"])
380 AC_MSG_RESULT([$enable_channel_messaging])
381
382 # check whether to enable notifications
383 AC_MSG_CHECKING([whether to enable notifications])
384 AC_ARG_ENABLE(notifications,
385               AC_HELP_STRING([--enable-notifications],
386                              [enable notifications [default=no]]),
387               [],[enable_notifications="no"])
388 AC_MSG_RESULT([$enable_notifications])
389
390 # check whether to enable the meter tag
391 AC_MSG_CHECKING([whether to enable HTML5 meter tag])
392 AC_ARG_ENABLE(meter_tag,
393               AC_HELP_STRING([--enable-meter-tag],
394                              [enable HTML5 meter [default=yes]]),
395               [],[enable_meter_tag="yes"])
396 AC_MSG_RESULT([$enable_meter_tag])
397
398 # check whether to enable the progress tag
399 AC_MSG_CHECKING([whether to enable HTML5 progress tag])
400 AC_ARG_ENABLE(progress_tag,
401               AC_HELP_STRING([--enable-progress-tag],
402                              [enable HTML5 progress [default=yes]]),
403               [],[enable_progress_tag="yes"])
404 AC_MSG_RESULT([$enable_progress_tag])
405
406 # check whether to enable JavaScript debugger/profiler support
407 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
408 AC_ARG_ENABLE(javascript_debugger,
409               AC_HELP_STRING([--enable-javascript-debugger],
410                              [enable JavaScript debugger/profiler support [default=yes]]),
411               [],[enable_javascript_debugger="yes"])
412 AC_MSG_RESULT([$enable_javascript_debugger])
413
414 # check whether to build with datagrid support
415 AC_MSG_CHECKING([whether to enable HTML5 datagrid support])
416 AC_ARG_ENABLE(datagrid,
417               AC_HELP_STRING([--enable-datagrid],
418                              [enable HTML5 datagrid support [default=no]]),
419               [],[enable_datagrid="no"])
420 AC_MSG_RESULT([$enable_datagrid])
421
422 # check whether to enable HTML5 Offline Web Applications support
423 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
424 AC_ARG_ENABLE(offline_web_applications,
425               AC_HELP_STRING([--enable-offline-web-applications],
426                              [enable HTML5 offline web applications support [default=yes]]),
427               [],[enable_offline_web_applications="yes"])
428 AC_MSG_RESULT([$enable_offline_web_applications])
429
430 # check whether to enable HTML5 client-side session and persitent storage support
431 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
432 AC_ARG_ENABLE(dom_storage,
433               AC_HELP_STRING([--enable-dom-storage],
434                              [enable HTML5 client-side session and persistent storage support [default=yes]]),
435               [],[enable_dom_storage="yes"])
436 AC_MSG_RESULT([$enable_dom_storage])
437
438 # check whether to enable the indexed database API
439 AC_MSG_CHECKING([whether to enable the indexed database API])
440 AC_ARG_ENABLE(indexed_database,
441               AC_HELP_STRING([--enable-indexed-database],
442                              [enable the indexed database API [default=no]]),
443               [],[enable_indexed_database="no"])
444 AC_MSG_RESULT([$enable_indexed_database])
445
446 # check whether to enable the speech input API
447 AC_MSG_CHECKING([whether to enable the speech input API])
448 AC_ARG_ENABLE(input_speech,
449               AC_HELP_STRING([--enable-input-speech],
450                              [enable the speech input API [default=no]]),
451               [],[enable_input_speech="no"])
452 AC_MSG_RESULT([$enable_input_speech])
453
454 # check whether to build with database support
455 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
456 AC_ARG_ENABLE(database,
457               AC_HELP_STRING([--enable-database],
458                              [enable HTML5 client-side database storage support [default=yes]]),
459               [],[enable_database="yes"])
460 AC_MSG_RESULT([$enable_database])
461
462 # check whether to build with server-sent events support
463 AC_MSG_CHECKING([whether to enable HTML5 server-sent events support])
464 AC_ARG_ENABLE(eventsource,
465               AC_HELP_STRING([--enable-eventsource],
466                              [enable HTML5 server-sent events support [default=yes]]),
467               [],[enable_eventsource="yes"])
468 AC_MSG_RESULT([$enable_eventsource])
469
470 # check whether to build with icon database support
471 AC_MSG_CHECKING([whether to enable icon database support])
472 AC_ARG_ENABLE(icon_database,
473               AC_HELP_STRING([--enable-icon-database],
474                              [enable icon database [default=yes]]),
475               [],[enable_icon_database="yes"])
476 AC_MSG_RESULT([$enable_icon_database])
477
478 # check whether to build with image resizer API support
479 AC_MSG_CHECKING([whether to enable image resizer API support])
480 AC_ARG_ENABLE(image_resizer,
481               AC_HELP_STRING([--enable-image-resizer],
482                              [enable image resizer [default=no]]),
483               [],[enable_image_resizer="no"])
484 AC_MSG_RESULT([$enable_image_resizer])
485
486 # check whether to enable HTML5 datalist support
487 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
488 AC_ARG_ENABLE(datalist,
489               AC_HELP_STRING([--enable-datalist],
490                              [enable HTML5 datalist support [default=yes]]),
491               [],[enable_datalist="yes"])
492 AC_MSG_RESULT([$enable_datalist])
493
494 # check whether to enable HTML5 sandbox iframe support
495 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
496 AC_ARG_ENABLE(sandbox,
497               AC_HELP_STRING([--enable-sandbox],
498                              [enable HTML5 sandboxed iframe support [default=yes]]),
499               [],[enable_sandbox="yes"])
500 AC_MSG_RESULT([$enable_sandbox])
501
502 # check whether to enable HTML5 audio/video support
503 AC_MSG_CHECKING([whether to enable HTML5 video support])
504 AC_ARG_ENABLE(video,
505               AC_HELP_STRING([--enable-video],
506                              [enable HTML5 video support [default=yes]]),
507               [],[enable_video="yes"])
508 AC_MSG_RESULT([$enable_video])
509
510 # check whether to enable media statistics support
511 AC_MSG_CHECKING([whether to enable media statistics support])
512 AC_ARG_ENABLE(media_statistics,
513               AC_HELP_STRING([--enable-media-statistics],
514                              [enable support for media statistics [default=no]]),
515               [], [enable_media_statistics="no"])
516 AC_MSG_RESULT([$enable_media_statistics])
517
518 # check whether to enable Javascript Fullscreen API support
519 AC_MSG_CHECKING([whether to enable Fullscreen API support])
520 AC_ARG_ENABLE(fullscreen_api,
521               AC_HELP_STRING([--enable-fullscreen-api],
522                              [enable the Fullscreen API support [default=yes]]),
523               [],[enable_fullscreen_api="yes"])
524 AC_MSG_RESULT([$enable_fullscreen_api])
525
526 # check whether to enable XHTML-MP support
527 AC_MSG_CHECKING([whether to enable XHTML-MP support])
528 AC_ARG_ENABLE(xhtmlmp,
529               AC_HELP_STRING([--enable-xhtmlmp],
530                              [enable support for XHTML-MP [default=no]]),
531               [],[enable_xhtmlmp="no"])
532 AC_MSG_RESULT([$enable_xhtmlmp])
533
534 # check whether to enable XPath support
535 AC_MSG_CHECKING([whether to enable XPath support])
536 AC_ARG_ENABLE(xpath,
537               AC_HELP_STRING([--enable-xpath],
538                              [enable support for XPath [default=yes]]),
539               [],[enable_xpath="yes"])
540 AC_MSG_RESULT([$enable_xpath])
541
542 # check whether to enable XSLT support
543 AC_MSG_CHECKING([whether to enable XSLT support])
544 AC_ARG_ENABLE(xslt,
545               AC_HELP_STRING([--enable-xslt],
546                              [enable support for XSLT [default=yes]]),
547               [],[enable_xslt="yes"])
548 AC_MSG_RESULT([$enable_xslt])
549
550 # check whether to enable geolocation support
551 AC_MSG_CHECKING([whether to enable geolocation support])
552 AC_ARG_ENABLE(geolocation,
553               AC_HELP_STRING([--enable-geolocation],
554                              [enable support for geolocation [default=no]]),
555               [],[enable_geolocation="no"])
556 AC_MSG_RESULT([$enable_geolocation])
557
558 # check whether to enable client-based geolocation support
559 AC_MSG_CHECKING([whether to enable client-based geolocation support])
560 AC_ARG_ENABLE(client_based_geolocation,
561               AC_HELP_STRING([--enable-client-based-geolocation],
562                              [enable support for client-based geolocation [default=no]]),
563               [],[enable_client_based_geolocation="no"])
564 AC_MSG_RESULT([$enable_client_based_geolocation])
565
566 # check whether to enable MathML support
567 AC_MSG_CHECKING([whether to enable MathML support])
568 AC_ARG_ENABLE(mathml,
569               AC_HELP_STRING([--enable-mathml],
570                              [enable support for MathML [default=no]]),
571               [],[enable_mathml="no"])
572 AC_MSG_RESULT([$enable_mathml])
573
574 # check whether to enable SVG support
575 AC_MSG_CHECKING([whether to enable SVG support])
576 AC_ARG_ENABLE(svg,
577               AC_HELP_STRING([--enable-svg],
578                              [enable support for SVG [default=yes]]),
579               [],[enable_svg="yes"])
580 AC_MSG_RESULT([$enable_svg])
581
582 # check whether to enable WML support
583 AC_MSG_CHECKING([whether to enable WML support])
584 AC_ARG_ENABLE(wml,
585               AC_HELP_STRING([--enable-wml],
586                              [enable support for WML [default=no]]),
587               [],[enable_wml="no"])
588 AC_MSG_RESULT([$enable_wml])
589
590 # check whether to enable WCSS support
591 AC_MSG_CHECKING([whether to enable WCSS support])
592 AC_ARG_ENABLE(wcss,
593               AC_HELP_STRING([--enable-wcss],
594                              [enable support for WCSS [default=no]]),
595               [],[enable_wcss="no"])
596 AC_MSG_RESULT([$enable_wcss])
597
598 # check whether to enable SharedWorkers support
599 AC_MSG_CHECKING([whether to enable SharedWorkers support])
600 AC_ARG_ENABLE(shared_workers,
601               AC_HELP_STRING([--enable-shared-workers],
602                              [enable support for SharedWorkers [default=yes]]),
603               [],[enable_shared_workers="yes"])
604 AC_MSG_RESULT([$enable_shared_workers])
605
606 # check whether to enable Web Workers support
607 AC_MSG_CHECKING([whether to enable Web Workers support])
608 AC_ARG_ENABLE(workers,
609               AC_HELP_STRING([--enable-workers],
610                              [enable support for Web Workers [default=yes]]),
611               [],[enable_workers="yes"])
612 AC_MSG_RESULT([$enable_workers])
613
614 # check whether to enable directory upload support
615 AC_MSG_CHECKING([whether to enable directory upload support])
616 AC_ARG_ENABLE(directory_upload,
617               AC_HELP_STRING([--enable-directory-upload],
618                              [enable support for directory upload [default=no]]),
619               [], [enable_directory_upload="no"])
620 AC_MSG_RESULT([$enable_directory_upload])
621
622 # check whether to enable HTML5 FileSystem API support
623 AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support])
624 AC_ARG_ENABLE(file_system,
625               AC_HELP_STRING([--enable-file-system],
626                              [enable support for HTML5 FileSystem API [default=no]]),
627               [], [enable_file_system="no"])
628 AC_MSG_RESULT([$enable_file_system])
629
630 # turn off svg features if --disable-svg is requested
631 if test "$enable_svg" = "no"; then
632    enable_svg_animation=no
633    enable_svg_fonts=no
634    enable_svg_foreign_object=no
635    enable_svg_as_image=no
636    enable_svg_use=no
637 fi
638
639 # check whether to enable support for SVG animation
640 AC_MSG_CHECKING([whether to enable support for SVG animation])
641 AC_ARG_ENABLE(svg_animation,
642               AC_HELP_STRING([--enable-svg-animation],
643                              [enable support for SVG animation (experimental) [default=yes]]),
644               [],[enable_svg_animation="yes"])
645 AC_MSG_RESULT([$enable_svg_animation])
646
647 # check whether to enable support for filters
648 AC_MSG_CHECKING([whether to enable support for filters])
649 AC_ARG_ENABLE(filters,
650               AC_HELP_STRING([--enable-filters],
651                              [enable support for filters (experimental) [default=yes]]),
652               [],[enable_filters="yes"])
653 AC_MSG_RESULT([$enable_filters])
654
655 # check whether to enable support for SVG fonts
656 AC_MSG_CHECKING([whether to enable support for SVG fonts])
657 AC_ARG_ENABLE(svg_fonts,
658               AC_HELP_STRING([--enable-svg-fonts],
659                              [enable support for SVG fonts (experimental) [default=yes]]),
660               [],[enable_svg_fonts="yes"])
661 AC_MSG_RESULT([$enable_svg_fonts])
662
663 # check whether to enable foreign objects support for SVG
664 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
665 AC_ARG_ENABLE(svg_foreign_object,
666               AC_HELP_STRING([--enable-svg-foreign-object],
667                              [enable support for SVG foreign objects (experimental) [default=yes]]),
668               [],[enable_svg_foreign_object="yes"])
669 AC_MSG_RESULT([$enable_svg_foreign_object])
670
671 # check whether to enable SVG As Image support
672 AC_MSG_CHECKING([whether to enable SVG as Image support])
673 AC_ARG_ENABLE(svg_as_image,
674               AC_HELP_STRING([--enable-svg-as-image],
675                              [enable SVG as Image support (experimental) [default=yes]]),
676               [],[enable_svg_as_image="yes"])
677 AC_MSG_RESULT([$enable_svg_as_image])
678
679 # check whether to enable SVG USE element support
680 AC_MSG_CHECKING([whether to enable support for SVG use element])
681 AC_ARG_ENABLE(svg_use,
682               AC_HELP_STRING([--enable-svg-use],
683                              [enable SVG use element support (experimental) [default=yes]]),
684               [],[enable_svg_use="yes"])
685 AC_MSG_RESULT([$enable_svg_use])
686
687 # check for SVG features, enabling SVG if necessary
688 if test "$enable_svg_animation" = "yes" || \
689    test "$enable_svg_fonts" = "yes" || \
690    test "$enable_svg_foreign_object" = "yes" || \
691    test "$enable_svg_as_image" = "yes" || \
692    test "$enable_svg_use" = "yes"; then
693    svg_flags=yes
694    if test "$enable_svg" = "no"; then
695        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
696        enable_svg=yes
697    fi
698 fi
699
700 # check whether to enable Web Socket support
701 AC_MSG_CHECKING([whether to enable Web Sockets support])
702 AC_ARG_ENABLE(web_sockets,
703               AC_HELP_STRING([--enable-web-sockets],
704                              [enable support for Web Sockets [default=yes]]),
705               [],[enable_web_sockets="yes"])
706 AC_MSG_RESULT([$enable_web_sockets])
707
708 # check whether to enable Web Audio support
709 AC_MSG_CHECKING([whether to enable Web Audio support])
710 AC_ARG_ENABLE(web_audio,
711               AC_HELP_STRING([--enable-web-audio],
712                              [enable support for Web Audio [default=no]]),
713               [],[enable_web_audio="no"])
714 AC_MSG_RESULT([$enable_web_audio])
715
716 # check whether to enable Web Timing support
717 AC_MSG_CHECKING([whether to enable Web Timing support])
718 AC_ARG_ENABLE(web_timing,
719               AC_HELP_STRING([--enable-web-timing],
720                              [enable support for Web Timing [default=no]]),
721               [],[enable_web_timing="no"])
722 AC_MSG_RESULT([$enable_web_timing])
723
724 # check whether to enable Blob support
725 AC_MSG_CHECKING([whether to enable Blob support])
726 AC_ARG_ENABLE(blob,
727               AC_HELP_STRING([--enable-blob],
728                              [enable support for Blob [default=yes]]),
729               [],[enable_blob="yes"])
730 AC_MSG_RESULT([$enable_blob])
731
732 # check whether to enable Fast Mobile Scrolling support
733 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
734 AC_ARG_ENABLE(fast_mobile_scrolling,
735               AC_HELP_STRING([--enable-fast-mobile-scrolling],
736                              [enable support for Fast Mobile Scrolling [default=no]]),
737               [],[enable_fast_mobile_scrolling="no"])
738 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
739
740 # check whether to enable code coverage
741 AC_MSG_CHECKING([whether to enable code coverage support])
742 AC_ARG_ENABLE(coverage,
743               AC_HELP_STRING([--enable-coverage],
744                              [enable code coverage support [default=no]]),
745               [],[enable_coverage="no"])
746 AC_MSG_RESULT([$enable_coverage])
747
748 # check whether to enable FastMalloc
749 AC_MSG_CHECKING([whether to enable optimized memory allocator])
750 AC_ARG_ENABLE(fast_malloc,
751               AC_HELP_STRING([--enable-fast-malloc],
752                              [enable optimized memory allocator default=yes, default=no for debug builds]),
753               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
754 AC_MSG_RESULT([$enable_fast_malloc])
755
756 AC_MSG_CHECKING([whether to enable JIT compilation])
757 AC_ARG_ENABLE([jit],
758               AC_HELP_STRING([--enable-jit],
759                              [Enable JIT compilation default=yes]),
760               [],[enable_jit="yes"])
761 if test "$enable_jit" = "yes"; then
762     case "$host_cpu" in
763         arm*)
764             AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
765             AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
766             AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
767         ;;
768         i*86|x86_64)
769             AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
770             AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
771             AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
772             AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
773             AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
774             AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
775             case "$host_cpu" in
776                 i*86)
777                     AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
778                 ;;
779                 x86_64)
780                     AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
781                     AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
782                 ;;
783             esac
784         ;;
785         *)
786             enable_jit="no (CPU '$host_cpu' not supported)"
787         ;;
788     esac
789 else
790         AC_DEFINE([ENABLE_JIT], [0], [Define to enable JIT])
791 fi
792 AC_MSG_RESULT([$enable_jit])
793
794 # Opcode stats
795 AC_MSG_CHECKING([whether to enable opcode stats])
796 AC_ARG_ENABLE([opcode-stats],
797   [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
798   [], [enable_opcode_stats=no])
799 AC_MSG_RESULT([$enable_opcode_stats])
800
801 if test "$enable_opcode_stats" = "yes"; then
802   if test "$enable_jit" = "yes"; then
803     AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
804   fi
805   AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
806 fi
807
808 # Link prefetch
809 AC_MSG_CHECKING([whether to enable link prefetch support])
810 AC_ARG_ENABLE([link-prefetch],
811   [AS_HELP_STRING([--enable-link-prefetch], [Enable Link prefetch support (default: disabled)])],
812   [],[enable_link_prefetch=no])
813 AC_MSG_RESULT([$enable_link_prefetch])
814
815 if test "$enable_link_prefetch" = "yes"; then 
816   AC_DEFINE([ENABLE_LINK_PREFETCH], [1], [Define to enable link prefetch support])
817 fi
818
819 # GObject Introspection
820 AC_MSG_CHECKING([whether to enable GObject introspection support])
821 AC_ARG_ENABLE([introspection],
822   [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
823   [],[enable_introspection=no])
824 AC_MSG_RESULT([$enable_introspection])
825
826 G_IR_SCANNER=
827 G_IR_COMPILER=
828 G_IR_GENERATE=
829 GIRDIR=
830 GIRTYPELIBDIR=
831
832 if test "$enable_introspection" = "yes"; then
833   GOBJECT_INTROSPECTION_REQUIRED=0.9.5
834   PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
835   
836   G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
837   G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
838   G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
839   AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
840 fi
841
842 AC_SUBST([G_IR_SCANNER])
843 AC_SUBST([G_IR_COMPILER])
844 AC_SUBST([G_IR_GENERATE])
845
846 # determine the font backend
847 AC_MSG_CHECKING([the font backend to use])
848 AC_ARG_WITH(font_backend,
849             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
850                            [Select font backend [default=freetype]]),
851             [],[with_font_backend="freetype"])
852
853 case "$with_font_backend" in
854      freetype|pango) ;;
855      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
856 esac
857 AC_MSG_RESULT([$with_font_backend])
858
859 # Add '-g' flag to gcc if it's debug build
860 if test "$enable_debug" = "yes"; then
861    CXXFLAGS="$CXXFLAGS -g"
862    CFLAGS="$CFLAGS -g"
863 else
864    AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
865 fi
866
867 # Add the appropriate 'O' level for optimized builds
868 if test "$enable_optimizations" = "yes"; then
869    CXXFLAGS="$CXXFLAGS -O2"
870    CFLAGS="$CFLAGS -O2"
871 else
872    CXXFLAGS="$CXXFLAGS -O0"
873    CFLAGS="$CFLAGS -O0"
874 fi
875
876 PKG_CHECK_MODULES([LIBSOUP],
877                   [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
878 AC_SUBST([LIBSOUP_CFLAGS])
879 AC_SUBST([LIBSOUP_LIBS])
880
881 # check if FreeType/FontConfig are available
882 if test "$with_font_backend" = "freetype"; then
883    if test "$with_target" = "directfb"; then
884    PKG_CHECK_MODULES([FREETYPE],
885                      [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
886                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
887    else
888    PKG_CHECK_MODULES([FREETYPE],
889                      [cairo-ft
890                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
891                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
892    fi
893    AC_SUBST([FREETYPE_CFLAGS])
894    AC_SUBST([FREETYPE_LIBS])
895 fi
896
897 # check if SQLite3 is available. Error out only if one of the
898 # features hard-depending on it is enabled while SQLite3 is
899 # unavailable.
900 PKG_CHECK_MODULES([SQLITE3],
901                   [sqlite3 >= $SQLITE_REQUIRED_VERSION],
902                   [sqlite3_has_pkg_config=yes],
903                   [sqlite3_has_pkg_config=no])
904 if test "$sqlite3_has_pkg_config" = "no"; then
905    AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
906                   [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
907                   [sqlite3_found=no])
908 fi
909 AC_SUBST([SQLITE3_CFLAGS])
910 AC_SUBST([SQLITE3_LIBS])
911
912 if (test "$sqlite3_found" = "no") && (test "$enable_icon_database" = "yes" || \
913    test "$enable_database" = "yes" || \
914    test "$enable_offline_web_applications" = "yes" || \
915    test "$enable_dom_storage" = "yes"); then
916    AC_MSG_ERROR([SQLite3 is required for the Database related features])
917 fi
918
919 # check if libxslt is available
920 if test "$enable_xslt" = "yes"; then
921    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
922    AC_SUBST([LIBXSLT_CFLAGS])
923    AC_SUBST([LIBXSLT_LIBS])
924 fi
925
926 # check if geoclue is available
927 if test "$enable_geolocation" = "yes"; then
928     PKG_CHECK_MODULES([GEOCLUE], [geoclue])
929     AC_SUBST([GEOCLUE_CFLAGS])
930     AC_SUBST([GEOCLUE_LIBS])
931 fi
932
933 # check if gstreamer is available
934 if test "$enable_video" = "yes"; then
935    PKG_CHECK_MODULES([GSTREAMER],
936                      [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
937                      gstreamer-app-0.10
938                      gstreamer-base-0.10
939                      gstreamer-interfaces-0.10
940                      gstreamer-pbutils-0.10
941                      gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
942                      gstreamer-video-0.10],
943                      [have_gstreamer=yes])
944
945    AC_SUBST([GSTREAMER_CFLAGS])
946    AC_SUBST([GSTREAMER_LIBS])
947 fi
948
949 # check for code coverage support
950 if test "$enable_coverage" = "yes"; then
951    COVERAGE_CFLAGS="-MD"
952    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
953    AC_SUBST([COVERAGE_CFLAGS])
954    AC_SUBST([COVERAGE_LDFLAGS])
955 fi
956
957 # check for HTML features
958 if test "$enable_video" = "yes"; then
959     html_flags=yes
960 fi
961
962 # WebKit2
963 AC_MSG_CHECKING([whether to build Webkit2])
964 AC_ARG_ENABLE(webkit2,
965             AC_HELP_STRING([--enable-webkit2],
966                 [build webkit2 [default=no]]),
967                 [], [enable_webkit2="no"])
968 AC_MSG_RESULT([$enable_webkit2])
969 if test "$enable_webkit2" = "yes"; then
970     WEBKITGTK_PC_NAME=${WEBKITGTK_PC_NAME}2
971     AC_SUBST([WEBKITGTK_PC_NAME])
972 fi
973
974 GTK_DOC_CHECK([1.10])
975
976 # OS conditionals
977 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
978 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
979 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
980 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
981 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
982
983 # target conditionals
984 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
985 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
986 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
987 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
988
989 # Unicode backend conditionals
990 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
991 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
992
993 # Font backend conditionals
994 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
995 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
996
997 # GStreamer feature conditional
998 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
999
1000 # WebKit feature conditionals
1001 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
1002 AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3d_transforms" = "yes"])
1003 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1004 AM_CONDITIONAL([ENABLE_BLOB],[test "$enable_blob" = "yes"])
1005 AM_CONDITIONAL([ENABLE_METER_TAG],[test "$enable_meter_tag" = "yes"])
1006 AM_CONDITIONAL([ENABLE_PROGRESS_TAG],[test "$enable_progress_tag" = "yes"])
1007 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
1008 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
1009 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
1010 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
1011 AM_CONDITIONAL([ENABLE_DATAGRID],[test "$enable_datagrid" = "yes"])
1012 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
1013 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
1014 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
1015 AM_CONDITIONAL([ENABLE_EVENTSOURCE],[test "$enable_eventsource" = "yes"])
1016 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
1017 AM_CONDITIONAL([ENABLE_FILE_SYSTEM],[test "$enable_file_system" = "yes"])
1018 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
1019 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
1020 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
1021 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
1022 AM_CONDITIONAL([ENABLE_XHTMLMP],[test "$enable_xhtmlmp" = "yes"])
1023 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
1024 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1025 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
1026 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1027 AM_CONDITIONAL([ENABLE_CLIENT_BASED_GEOLOCATION], [test "$enable_client_based_geolocation" = "yes"])
1028 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
1029 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1030 AM_CONDITIONAL([ENABLE_MEDIA_STATISTICS],[test "$enable_media_statistics" = "yes"])
1031 AM_CONDITIONAL([ENABLE_FULLSCREEN_API],[test "$enable_fullscreen_api" = "yes"])
1032 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
1033 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
1034 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1035 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
1036 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1037 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
1038 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
1039 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use" = "yes"])
1040 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1041 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1042 AM_CONDITIONAL([ENABLE_WML],[test "$enable_wml" = "yes"])
1043 AM_CONDITIONAL([ENABLE_WCSS],[test "$enable_wcss" = "yes"])
1044 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
1045 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
1046 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
1047 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
1048 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
1049 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1050 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
1051 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1052 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1053 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1054
1055 # Gtk conditionals
1056 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1057
1058 AC_CONFIG_FILES([
1059 GNUmakefile
1060 ])
1061  
1062 if test "$enable_webkit2" = "no"; then
1063     AC_CONFIG_FILES([
1064     Source/WebKit/gtk/webkit/webkitversion.h
1065     Source/WebKit/gtk/docs/GNUmakefile
1066     Source/WebKit/gtk/docs/version.xml
1067     ]
1068     )
1069
1070     AC_CONFIG_FILES([
1071     Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1072     Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1073     Source/WebKit/gtk/org.webkitgtk-${WEBKITGTK_API_VERSION}.gschema.xml:Source/WebKit/gtk/org.webkitgtk.gschema.xml.in
1074     ]
1075     ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1076     )
1077 else
1078     AC_CONFIG_FILES([
1079     Source/WebKit2/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/gtk/webkit2.pc.in
1080     ]
1081     ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1082     )
1083 fi
1084
1085 AC_OUTPUT
1086
1087 echo "
1088 WebKit was configured with the following options:
1089
1090 Build configuration:
1091  Enable debugging (slow)                                  : $enable_debug
1092  Enable GCC build optimization                            : $enable_optimizations
1093  Code coverage support                                    : $enable_coverage
1094  Unicode backend                                          : $with_unicode_backend
1095  Font backend                                             : $with_font_backend
1096  Optimized memory allocator                               : $enable_fast_malloc
1097 Features:
1098  3D Transforms                                            : $enable_3d_transforms
1099  WebGL                                                    : $enable_webgl
1100  Blob support                                             : $enable_blob
1101  Directory upload                                         : $enable_directory_upload
1102  Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
1103  JIT compilation                                          : $enable_jit
1104  Filters support                                          : $enable_filters
1105  Geolocation support                                      : $enable_geolocation
1106  Client-based geolocation support                         : $enable_client_based_geolocation
1107  JavaScript debugger/profiler support                     : $enable_javascript_debugger
1108  MathML support                                           : $enable_mathml
1109  Media statistics                                         : $enable_media_statistics
1110  HTML5 offline web applications support                   : $enable_offline_web_applications
1111  HTML5 channel messaging support                          : $enable_channel_messaging
1112  HTML5 meter element support                              : $enable_meter_tag
1113  HTML5 progress element support                           : $enable_progress_tag
1114  HTML5 client-side session and persistent storage support : $enable_dom_storage
1115  HTML5 client-side database storage support               : $enable_database
1116  HTML5 datagrid support                                   : $enable_datagrid
1117  HTML5 FileSystem API support                             : $enable_file_system
1118  HTML5 sandboxed iframe support                           : $enable_sandbox
1119  HTML5 server-sent events support                         : $enable_eventsource
1120  HTML5 video element support                              : $enable_video
1121  Fullscreen API support                                   : $enable_fullscreen_api
1122  Icon database support                                    : $enable_icon_database
1123  Image resizer support                                    : $enable_image_resizer
1124  Link prefetch support                                    : $enable_link_prefetch
1125  Opcode stats                                             : $enable_opcode_stats
1126  SharedWorkers support                                    : $enable_shared_workers
1127  Speech input support                                     : $enable_input_speech
1128  SVG support                                              : $enable_svg
1129  SVG animation support                                    : $enable_svg_animation
1130  SVG fonts support                                        : $enable_svg_fonts
1131  SVG foreign object support                               : $enable_svg_foreign_object
1132  SVG as image support                                     : $enable_svg_as_image
1133  SVG use element support                                  : $enable_svg_use
1134  WML support                                              : $enable_wml
1135  WCSS support                                             : $enable_wcss
1136  Web Audio support                                        : $enable_web_audio
1137  Web Sockets support                                      : $enable_web_sockets
1138  Web Timing support                                       : $enable_web_timing
1139  Web Workers support                                      : $enable_workers
1140  XHTML-MP support                                         : $enable_xhtmlmp
1141  XPATH support                                            : $enable_xpath
1142  XSLT support                                             : $enable_xslt
1143  Spellcheck support                                       : $enable_spellcheck
1144
1145 GTK+ configuration:
1146  GTK+ version                                             : $with_gtk
1147  GDK target                                               : $with_target
1148  Hildon UI extensions                                     : $with_hildon
1149  Introspection support                                    : $enable_introspection
1150  WebKit2 support                                          : $enable_webkit2
1151 "
1152 if test "$with_unicode_backend" = "glib"; then
1153    echo "     >> WARNING: the glib-based unicode backend is slow and incomplete <<"
1154    echo
1155    echo
1156 fi