3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [1])
5 m4_define([webkit_micro_version], [18])
7 # This is the version we'll be using as part of our User-Agent string
8 # e.g., AppleWebKit/$(webkit_user_agent_version) ...
10 # Sourced from WebCore/Configurations/Version.xcconfig
11 m4_define([webkit_user_agent_major_version], [531])
12 m4_define([webkit_user_agent_minor_version], [2])
14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
16 AC_CONFIG_MACRO_DIR([autotools])
17 AC_CONFIG_AUX_DIR([autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I autotools")
20 AC_CONFIG_HEADERS([autotoolsconfig.h])
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)
34 AC_CONFIG_SRCDIR([WebCore/config.h])
36 dnl # Libtool library version, not to confuse with API version
37 dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html#Libtool-versioning
38 LIBWEBKITGTK_VERSION=16:0:14
39 AC_SUBST([LIBWEBKITGTK_VERSION])
41 AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar])
43 # Use AM_SILENT_RULES if present
44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
46 # host checking - inspired by the GTK+ configure.in
47 # TODO: move these to webkit.m4?
48 AC_MSG_CHECKING([for native Win32])
57 AC_MSG_RESULT([$os_win32])
72 gnu* | linux* | k*bsd*-gnu)
80 # initialize webkit options
85 # use dolt to speedup the build
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])
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]))
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])
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]))
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])
120 #include <jpeglib.h>],
123 AC_MSG_RESULT($jpeg_ok)
124 if test "$jpeg_ok" = yes; then
126 # should we check for progressive JPEG like GTK+ as well?
128 AC_MSG_ERROR([JPEG library (libjpeg) not found])
131 AC_SUBST([JPEG_LIBS])
133 # Check for libpng the way Gtk+ does it
134 AC_MSG_CHECKING(for libpng12)
135 if $PKG_CONFIG --exists libpng12 ; then
137 PNG_LIBS=`$PKG_CONFIG --libs libpng12`
140 AC_CHECK_LIB(png, png_read_info,
141 [AC_CHECK_HEADER(png.h,
144 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
145 if test "$png_ok" = yes; then
146 AC_MSG_CHECKING([for png_structp in png.h])
147 AC_TRY_COMPILE([#include <png.h>],
148 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
151 AC_MSG_RESULT($png_ok)
152 if test "$png_ok" = yes; then
155 AC_MSG_ERROR([PNG library (libpng) not found])
158 AC_MSG_ERROR([PNG library (libpng) not found])
163 # determine the GDK/GTK+ target
164 AC_MSG_CHECKING([the target windowing system])
166 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
167 [Select webkit target [default=x11]]),
168 [],[with_target="x11"])
170 case "$with_target" in
171 x11|win32|quartz|directfb) ;;
172 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
175 AC_MSG_RESULT([$with_target])
177 AC_MSG_CHECKING([for Hildon UI extensions])
179 AC_HELP_STRING([--with-hildon],
180 [Use Hildon UI extensions [default=no]]),
181 [],[with_hildon="no"])
182 AC_MSG_RESULT([$with_hildon])
184 if test "$with_hildon" = "yes"; then
185 HILDON_CPPFLAGS="-DMAEMO_CHANGES"
186 PKG_CHECK_MODULES([HILDON], [hildon-1])
187 AC_SUBST([HILDON_CPPFLAGS])
188 AC_SUBST([HILDON_CFLAGS])
189 AC_SUBST([HILDON_LIBS])
192 # minimum base dependencies
193 LIBSOUP_REQUIRED_VERSION=2.28.2
194 CAIRO_REQUIRED_VERSION=1.6
195 FONTCONFIG_REQUIRED_VERSION=2.4
196 FREETYPE2_REQUIRED_VERSION=9.0
197 LIBXML_REQUIRED_VERSION=2.6
199 # minimum GTK+ base dependencies
200 PANGO_REQUIRED_VERSION=1.12
201 GTK_REQUIRED_VERSION=2.10
204 LIBXSLT_REQUIRED_VERSION=1.1.7
205 SQLITE_REQUIRED_VERSION=3.0
206 GSTREAMER_REQUIRED_VERSION=0.10
207 ENCHANT_REQUIRED_VERSION=0.22
208 GAIL_REQUIRED_VERSION=1.8
212 # glib - glib and includes gthread
213 # unicode - check and identify which unicode backend to use
216 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
218 GETTEXT_PACKAGE=$PACKAGE
219 AC_SUBST(GETTEXT_PACKAGE)
220 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
221 [The gettext catalog name])
223 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
224 AC_SUBST(LIBXML_CFLAGS)
225 AC_SUBST(LIBXML_LIBS)
227 PKG_CHECK_MODULES(PANGO,
228 [pango >= $PANGO_REQUIRED_VERSION
230 AC_SUBST(PANGO_CFLAGS)
233 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
234 AC_SUBST(ENCHANT_CFLAGS)
235 AC_SUBST(ENCHANT_LIBS)
237 PKG_CHECK_MODULES(GAIL, gail >= $GAIL_REQUIRED_VERSION)
238 AC_SUBST(GAIL_CFLAGS)
241 # check for target-specific dependencies
242 if test "$with_target" = "directfb"; then
243 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
244 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
245 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
247 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
248 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED_VERSION)
250 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
252 PKG_CHECK_MODULES([XT],
254 [xt_has_pkg_config=yes],
255 [xt_has_pkg_config=no])
256 # some old versions of Xt do not provide xt.pc, so try to link against Xt
257 # and if it's installed fall back to just adding -lXt
258 if test "$xt_has_pkg_config" = "no"; then
259 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
260 # we don't care about the XtOpenDisplay symbol but only about the
262 AC_CHECK_LIB([Xt], [XtOpenDisplay],
263 [XT_CFLAGS=""; XT_LIBS="-lXt"],
264 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
266 AC_SUBST([XT_CFLAGS])
268 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
273 AC_SUBST(CAIRO_CFLAGS)
276 # check whether to build with debugging enabled
277 AC_MSG_CHECKING([whether to do a debug build])
279 AC_HELP_STRING([--enable-debug],
280 [turn on debugging [default=no]]),
281 [],[enable_debug="no"])
282 AC_MSG_RESULT([$enable_debug])
284 # check whether to enable optimized builds
285 AC_MSG_CHECKING([whether to enable optimized builds])
286 AC_ARG_ENABLE(optimizations,
287 AC_HELP_STRING([--enable-optimizations],
288 [turn on optimize builds (GCC only)
290 [enable_optimizations=$enableval],
291 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
292 AC_MSG_RESULT([$enable_optimizations])
294 # check whether to enable 3D transforms support
295 AC_MSG_CHECKING([whether to enable support for 3D Transforms])
296 AC_ARG_ENABLE(3D_transforms,
297 AC_HELP_STRING([--enable-3D-transforms],
298 [enable support for 3D transforms [default=no]]),
299 [],[enable_3D_transforms="no"])
300 AC_MSG_RESULT([$enable_3D_transforms])
302 # check whether to enable channel messaging support
303 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
304 AC_ARG_ENABLE(channel_messaging,
305 AC_HELP_STRING([--enable-channel-messaging],
306 [enable HTML5 channel messaging support [default=yes]]),
307 [],[enable_channel_messaging="yes"])
308 AC_MSG_RESULT([$enable_channel_messaging])
310 # check whether to enable JavaScript debugger/profiler support
311 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
312 AC_ARG_ENABLE(javascript_debugger,
313 AC_HELP_STRING([--enable-javascript-debugger],
314 [enable JavaScript debugger/profiler support [default=yes]]),
315 [],[enable_javascript_debugger="yes"])
316 AC_MSG_RESULT([$enable_javascript_debugger])
318 # check whether to enable HTML5 Offline Web Applications support
319 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
320 AC_ARG_ENABLE(offline_web_applications,
321 AC_HELP_STRING([--enable-offline-web-applications],
322 [enable HTML5 offline web applications support [default=yes]]),
323 [],[enable_offline_web_applications="yes"])
324 AC_MSG_RESULT([$enable_offline_web_applications])
326 # check whether to enable HTML5 client-side session and persitent storage support
327 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
328 AC_ARG_ENABLE(dom_storage,
329 AC_HELP_STRING([--enable-dom-storage],
330 [enable HTML5 client-side session and persistent storage support [default=yes]]),
331 [],[enable_dom_storage="yes"])
332 AC_MSG_RESULT([$enable_dom_storage])
334 # check whether to build with database support
335 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
336 AC_ARG_ENABLE(database,
337 AC_HELP_STRING([--enable-database],
338 [enable HTML5 client-side database storage support [default=yes]]),
339 [],[enable_database="yes"])
340 AC_MSG_RESULT([$enable_database])
342 # check whether to build with server-sent events support
343 AC_MSG_CHECKING([whether to enable HTML5 server-sent events support])
344 AC_ARG_ENABLE(eventsource,
345 AC_HELP_STRING([--enable-eventsource],
346 [enable HTML5 server-sent events support [default=yes]]),
347 [],[enable_eventsource="yes"])
348 AC_MSG_RESULT([$enable_eventsource])
350 # check whether to build with icon database support
351 AC_MSG_CHECKING([whether to enable icon database support])
352 AC_ARG_ENABLE(icon_database,
353 AC_HELP_STRING([--enable-icon-database],
354 [enable icon database [default=yes]]),
355 [],[enable_icon_database="yes"])
356 AC_MSG_RESULT([$enable_icon_database])
358 # check whether to enable HTML5 datalist support
359 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
360 AC_ARG_ENABLE(datalist,
361 AC_HELP_STRING([--enable-datalist],
362 [enable HTML5 datalist support [default=yes]]),
363 [],[enable_datalist="yes"])
364 AC_MSG_RESULT([$enable_datalist])
366 # check whether to enable HTML5 audio/video support
367 AC_MSG_CHECKING([whether to enable HTML5 video support])
369 AC_HELP_STRING([--enable-video],
370 [enable HTML5 video support [default=yes]]),
371 [],[enable_video="yes"])
372 AC_MSG_RESULT([$enable_video])
374 # check whether to enable XPath support
375 AC_MSG_CHECKING([whether to enable XPath support])
377 AC_HELP_STRING([--enable-xpath],
378 [enable support for XPath [default=yes]]),
379 [],[enable_xpath="yes"])
380 AC_MSG_RESULT([$enable_xpath])
382 # check whether to enable XSLT support
383 AC_MSG_CHECKING([whether to enable XSLT support])
385 AC_HELP_STRING([--enable-xslt],
386 [enable support for XSLT [default=yes]]),
387 [],[enable_xslt="yes"])
388 AC_MSG_RESULT([$enable_xslt])
390 # check whether to enable geolocation support
391 AC_MSG_CHECKING([whether to enable geolocation support])
392 AC_ARG_ENABLE(geolocation,
393 AC_HELP_STRING([--enable-geolocation],
394 [enable support for geolocation [default=no]]),
395 [],[enable_geolocation="no"])
396 AC_MSG_RESULT([$enable_geolocation])
398 # check whether to enable MathML support
399 AC_MSG_CHECKING([whether to enable MathML support])
400 AC_ARG_ENABLE(mathml,
401 AC_HELP_STRING([--enable-mathml],
402 [enable support for MathML [default=no]]),
403 [],[enable_mathml="no"])
404 AC_MSG_RESULT([$enable_mathml])
406 # check whether to enable SVG support
407 AC_MSG_CHECKING([whether to enable SVG support])
409 AC_HELP_STRING([--enable-svg],
410 [enable support for SVG [default=yes]]),
411 [],[enable_svg="yes"])
412 AC_MSG_RESULT([$enable_svg])
414 # check whether to enable WML support
415 AC_MSG_CHECKING([whether to enable WML support])
417 AC_HELP_STRING([--enable-wml],
418 [enable support for WML [default=no]]),
419 [],[enable_wml="no"])
420 AC_MSG_RESULT([$enable_wml])
422 # check whether to enable SharedWorkers support
423 AC_MSG_CHECKING([whether to enable SharedWorkers support])
424 AC_ARG_ENABLE(shared_workers,
425 AC_HELP_STRING([--enable-shared-workers],
426 [enable support for SharedWorkers [default=no]]),
427 [],[enable_shared_workers="no"])
428 AC_MSG_RESULT([$enable_shared_workers])
430 # check whether to enable Web Workers support
431 AC_MSG_CHECKING([whether to enable Web Workers support])
432 AC_ARG_ENABLE(workers,
433 AC_HELP_STRING([--enable-workers],
434 [enable support for Web Workers [default=yes]]),
435 [],[enable_workers="yes"])
436 AC_MSG_RESULT([$enable_workers])
438 # turn off svg features if --disable-svg is requested
439 if test "$enable_svg" = "no"; then
440 enable_svg_animation=no
442 enable_svg_foreign_object=no
443 enable_svg_as_image=no
447 # check whether to enable support for SVG animation
448 AC_MSG_CHECKING([whether to enable support for SVG animation])
449 AC_ARG_ENABLE(svg_animation,
450 AC_HELP_STRING([--enable-svg-animation],
451 [enable support for SVG animation (experimental) [default=yes]]),
452 [],[enable_svg_animation="yes"])
453 AC_MSG_RESULT([$enable_svg_animation])
455 # check whether to enable support for filters
456 AC_MSG_CHECKING([whether to enable support for filters])
457 AC_ARG_ENABLE(filters,
458 AC_HELP_STRING([--enable-filters],
459 [enable support for filters (experimental) [default=yes]]),
460 [],[enable_filters="yes"])
461 AC_MSG_RESULT([$enable_filters])
463 # check whether to enable support for SVG fonts
464 AC_MSG_CHECKING([whether to enable support for SVG fonts])
465 AC_ARG_ENABLE(svg_fonts,
466 AC_HELP_STRING([--enable-svg-fonts],
467 [enable support for SVG fonts (experimental) [default=yes]]),
468 [],[enable_svg_fonts="yes"])
469 AC_MSG_RESULT([$enable_svg_fonts])
471 # check whether to enable foreign objects support for SVG
472 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
473 AC_ARG_ENABLE(svg_foreign_object,
474 AC_HELP_STRING([--enable-svg-foreign-object],
475 [enable support for SVG foreign objects (experimental) [default=yes]]),
476 [],[enable_svg_foreign_object="yes"])
477 AC_MSG_RESULT([$enable_svg_foreign_object])
479 # check whether to enable SVG As Image support
480 AC_MSG_CHECKING([whether to enable SVG as Image support])
481 AC_ARG_ENABLE(svg_as_image,
482 AC_HELP_STRING([--enable-svg-as-image],
483 [enable SVG as Image support (experimental) [default=yes]]),
484 [],[enable_svg_as_image="yes"])
485 AC_MSG_RESULT([$enable_svg_as_image])
487 # check whether to enable SVG USE element support
488 AC_MSG_CHECKING([whether to enable support for SVG use element])
489 AC_ARG_ENABLE(svg_use,
490 AC_HELP_STRING([--enable-svg-use],
491 [enable SVG use element support (experimental) [default=yes]]),
492 [],[enable_svg_use="yes"])
493 AC_MSG_RESULT([$enable_svg_use])
495 # check for SVG features, enabling SVG if necessary
496 if test "$enable_svg_animation" = "yes" || \
497 test "$enable_svg_fonts" = "yes" || \
498 test "$enable_svg_foreign_object" = "yes" || \
499 test "$enable_svg_as_image" = "yes" || \
500 test "$enable_svg_use" = "yes"; then
502 if test "$enable_svg" = "no"; then
503 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
508 # check whether to enable Web Socket support
509 AC_MSG_CHECKING([whether to enable Web Sockets support])
510 AC_ARG_ENABLE(web_sockets,
511 AC_HELP_STRING([--enable-web-sockets],
512 [enable support for Web Sockets [default=no]]),
513 [],[enable_web_sockets="no"])
514 AC_MSG_RESULT([$enable_web_sockets])
516 # check whether to enable code coverage
517 AC_MSG_CHECKING([whether to enable code coverage support])
518 AC_ARG_ENABLE(coverage,
519 AC_HELP_STRING([--enable-coverage],
520 [enable code coverage support [default=no]]),
521 [],[enable_coverage="no"])
522 AC_MSG_RESULT([$enable_coverage])
524 # check whether to enable FastMalloc
525 AC_MSG_CHECKING([whether to enable optimized memory allocator])
526 AC_ARG_ENABLE(fast_malloc,
527 AC_HELP_STRING([--enable-fast-malloc],
528 [enable optimized memory allocator default=yes, default=no for debug builds]),
529 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
530 AC_MSG_RESULT([$enable_fast_malloc])
532 AC_MSG_CHECKING([whether to enable JIT compilation])
534 AC_HELP_STRING([--enable-jit],
535 [Enable JIT compilation default=yes]),
536 [],[enable_jit="yes"])
537 if test "$enable_jit" = "yes"; then
540 AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
541 AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
542 AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
543 AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
544 AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
545 AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
548 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
551 AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
552 AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
557 enable_jit="no (CPU '$host_cpu' not supported)"
561 AC_MSG_RESULT([$enable_jit])
563 # GObject Introspection
564 AC_MSG_CHECKING([whether to enable GObject introspection support])
565 AC_ARG_ENABLE([introspection],
566 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
567 [],[enable_introspection=no])
568 AC_MSG_RESULT([$enable_introspection])
576 if test "$enable_introspection" = "yes"; then
577 GOBJECT_INTROSPECTION_REQUIRED=0.6.2
578 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
580 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
581 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
582 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
583 GIRDIR="$($PKG_CONFIG --define-variable=prefix=$prefix --variable=girdir gobject-introspection-1.0)"
584 GIRTYPELIBDIR="$($PKG_CONFIG --define-variable=prefix=$prefix --variable=typelibdir gobject-introspection-1.0)"
586 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
589 AC_SUBST([G_IR_SCANNER])
590 AC_SUBST([G_IR_COMPILER])
591 AC_SUBST([G_IR_GENERATE])
593 AC_SUBST([GIRTYPELIBDIR])
595 # determine the font backend
596 AC_MSG_CHECKING([the font backend to use])
597 AC_ARG_WITH(font_backend,
598 AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
599 [Select font backend [default=freetype]]),
600 [],[with_font_backend="freetype"])
602 case "$with_font_backend" in
604 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
606 AC_MSG_RESULT([$with_font_backend])
608 # Add '-g' flag to gcc if it's debug build
609 if test "$enable_debug" = "yes"; then
610 CXXFLAGS="$CXXFLAGS -g"
613 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
616 # Add the appropriate 'O' level for optimized builds
617 if test "$enable_optimizations" = "yes"; then
618 CXXFLAGS="$CXXFLAGS -O2"
621 CXXFLAGS="$CXXFLAGS -O0"
625 PKG_CHECK_MODULES([LIBSOUP],
626 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
627 AC_SUBST([LIBSOUP_CFLAGS])
628 AC_SUBST([LIBSOUP_LIBS])
630 # check if we can use libSoup 2.29.3 features
631 PKG_CHECK_MODULES([LIBSOUP_2_29_3],
632 [libsoup-2.4 >= 2.29.3],
633 [have_libsoup_2_29_3=yes],
634 [have_libsoup_2_29_3=no])
635 if test "$have_libsoup_2_29_3" = "yes"; then
636 AC_DEFINE([HAVE_LIBSOUP_2_29_3], 1, [Whether libSoup 2.29.3 features are available])
639 # check if FreeType/FontConfig are available
640 if test "$with_font_backend" = "freetype"; then
641 if test "$with_target" = "directfb"; then
642 PKG_CHECK_MODULES([FREETYPE],
643 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
644 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
646 PKG_CHECK_MODULES([FREETYPE],
648 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
649 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
651 AC_SUBST([FREETYPE_CFLAGS])
652 AC_SUBST([FREETYPE_LIBS])
655 # check if sqlite 3 is available
656 if test "$enable_icon_database" = "yes" || \
657 test "$enable_database" = "yes" || \
658 test "$enable_offline_web_applications" = "yes" || \
659 test "$enable_dom_storage" = "yes"; then
660 PKG_CHECK_MODULES([SQLITE3],
661 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
662 [sqlite3_has_pkg_config=yes],
663 [sqlite3_has_pkg_config=no])
664 if test "$sqlite3_has_pkg_config" = "no"; then
665 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
666 [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
667 [AC_MSG_ERROR([SQLite3 is required to enable Database support])])
669 AC_SUBST([SQLITE3_CFLAGS])
670 AC_SUBST([SQLITE3_LIBS])
673 # check if libxslt is available
674 if test "$enable_xslt" = "yes"; then
675 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
676 AC_SUBST([LIBXSLT_CFLAGS])
677 AC_SUBST([LIBXSLT_LIBS])
680 # check if geoclue is available
681 if test "$enable_geolocation" = "yes"; then
682 PKG_CHECK_MODULES([GEOCLUE], [geoclue])
683 AC_SUBST([GEOCLUE_CFLAGS])
684 AC_SUBST([GEOCLUE_LIBS])
687 # check if gstreamer is available
688 if test "$enable_video" = "yes"; then
689 PKG_CHECK_MODULES([GSTREAMER],
690 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
692 gstreamer-pbutils-0.10
693 gstreamer-plugins-base-0.10
694 gstreamer-video-0.10])
695 AC_SUBST([GSTREAMER_CFLAGS])
696 AC_SUBST([GSTREAMER_LIBS])
699 # check for code coverage support
700 if test "$enable_coverage" = "yes"; then
701 COVERAGE_CFLAGS="-MD"
702 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
703 AC_SUBST([COVERAGE_CFLAGS])
704 AC_SUBST([COVERAGE_LDFLAGS])
707 # check for HTML features
708 if test "$enable_video" = "yes"; then
712 GTK_DOC_CHECK([1.10])
715 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
716 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
717 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
718 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
719 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
721 # target conditionals
722 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
723 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
724 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
725 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
727 # Unicode backend conditionals
728 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
729 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
731 # Font backend conditionals
732 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
733 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
735 # WebKit feature conditionals
736 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
737 AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3D_transforms" = "yes"])
738 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
739 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
740 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
741 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
742 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
743 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
744 AM_CONDITIONAL([ENABLE_EVENTSOURCE],[test "$enable_eventsource" = "yes"])
745 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
746 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
747 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
748 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
749 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
750 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
751 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
752 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
753 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
754 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
755 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
756 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
757 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
758 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
759 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use" = "yes"])
760 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
761 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
762 AM_CONDITIONAL([ENABLE_WML],[test "$enable_wml" = "yes"])
763 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
764 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
765 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
766 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
767 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
770 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
775 WebKit/gtk/webkit-1.0.pc:WebKit/gtk/webkit.pc.in
776 WebKit/gtk/webkit/webkitversion.h
777 WebKit/gtk/docs/GNUmakefile
778 WebKit/gtk/docs/version.xml
785 WebKit was configured with the following options:
788 Enable debugging (slow) : $enable_debug
789 Enable GCC build optimization : $enable_optimizations
790 Code coverage support : $enable_coverage
791 Unicode backend : $with_unicode_backend
792 Font backend : $with_font_backend
793 Optimized memory allocator : $enable_fast_malloc
795 3D Transforms : $enable_3D_transforms
796 JIT compilation : $enable_jit
797 Filters support : $enable_filters
798 Geolocation support : $enable_geolocation
799 JavaScript debugger/profiler support : $enable_javascript_debugger
800 MathML support : $enable_mathml
801 HTML5 offline web applications support : $enable_offline_web_applications
802 HTML5 channel messaging support : $enable_channel_messaging
803 HTML5 client-side session and persistent storage support : $enable_dom_storage
804 HTML5 client-side database storage support : $enable_database
805 HTML5 server-sent events support : $enable_eventsource
806 HTML5 video element support : $enable_video
807 Icon database support : $enable_icon_database
808 SharedWorkers support : $enable_shared_workers
809 SVG support : $enable_svg
810 SVG animation support : $enable_svg_animation
811 SVG fonts support : $enable_svg_fonts
812 SVG foreign object support : $enable_svg_foreign_object
813 SVG as image support : $enable_svg_as_image
814 SVG use element support : $enable_svg_use
815 WML support : $enable_wml
816 Web Sockets support : $enable_web_sockets
817 Web Workers support : $enable_workers
818 XPATH support : $enable_xpath
819 XSLT support : $enable_xslt
821 GDK target : $with_target
822 Hildon UI extensions : $with_hildon
823 Introspection support : $enable_introspection
825 if test "$with_unicode_backend" = "glib"; then
826 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"