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