3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [11])
5 m4_define([webkit_micro_version], [2])
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 Source/WebCore/Configurations/Version.xcconfig
11 m4_define([webkit_user_agent_major_version], [537])
12 m4_define([webkit_user_agent_minor_version], [20])
14 AC_INIT([WebKitGTK],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
16 AC_CONFIG_MACRO_DIR([Source/autotools])
17 AC_CONFIG_AUX_DIR([Source/autotools])
18 AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/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([Source/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
38 LIBWEBKITGTK_VERSION=17:1:17
39 AC_SUBST([LIBWEBKITGTK_VERSION])
41 LIBJAVASCRIPTCOREGTK_VERSION=13:7:13
42 AC_SUBST([LIBJAVASCRIPTCOREGTK_VERSION])
44 LIBWEBKIT2GTK_VERSION=19:0:19
45 AC_SUBST([LIBWEBKIT2GTK_VERSION])
47 AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
49 # Use AM_SILENT_RULES if present
50 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
52 # host checking - inspired by the GTK+ configure.in
53 # TODO: move these to webkit.m4?
54 AC_MSG_CHECKING([for native Win32])
63 AC_MSG_RESULT([$os_win32])
78 gnu* | linux* | k*bsd*-gnu)
86 # If CFLAGS and CXXFLAGS are unset, default to empty.
87 # This is to tell automake not to include '-g' if C{XX,}FLAGS is not set
88 # For more info - http://www.gnu.org/software/automake/manual/autoconf.html#C_002b_002b-Compiler
89 if test -z "$CXXFLAGS"; then
92 if test -z "$CFLAGS"; then
98 AC_PATH_PROG(PERL, perl)
99 if test -z "$PERL"; then
100 AC_MSG_ERROR([You need 'perl' to compile WebKit])
103 AC_PATH_PROG(PYTHON, python)
104 if test -z "$PYTHON"; then
105 AC_MSG_ERROR([You need 'python' to compile WebKit])
108 AC_PATH_PROG(RUBY, ruby)
109 if test -z "$RUBY"; then
110 AC_MSG_ERROR([You need 'ruby' to compile WebKit])
113 AC_PATH_PROG(BISON, bison)
114 if test -z "$BISON"; then
115 AC_MSG_ERROR([You need the 'bison' parser generator to compile WebKit])
119 if test -z "$MV"; then
120 AC_MSG_ERROR([You need 'mv' to compile WebKit])
129 # Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it
132 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
135 # C/C++ Language Features
148 # use dolt to speedup the build
151 AC_PATH_PROG(FLEX, flex)
152 if test -z "$FLEX"; then
153 AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
155 FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
156 AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
157 AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
160 AC_PATH_PROG(GPERF, gperf)
161 if test -z "$GPERF"; then
162 AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
165 # check for -fvisibility=hidden compiler support (GCC >= 4)
166 saved_CFLAGS="$CFLAGS"
167 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
168 AC_MSG_CHECKING([if ${CXX} supports -fvisibility=hidden -fvisibility-inlines-hidden])
169 AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
170 [ AC_MSG_RESULT([yes])
171 SYMBOL_VISIBILITY="-fvisibility=hidden" SYMBOL_VISIBILITY_INLINES="-fvisibility-inlines-hidden" ],
173 CFLAGS="$saved_CFLAGS"
174 AC_SUBST(SYMBOL_VISIBILITY)
175 AC_SUBST(SYMBOL_VISIBILITY_INLINES)
177 # Disable C++0x compat warnings for GCC >= 4.6.0 until we build
180 TMPCXXFLAGS=$CXXFLAGS
181 CXXFLAGS="-Wall -Werror"
182 AC_MSG_CHECKING([if we have to disable C++0x compat warnings for GCC >= 4.6.0])
187 extern std::nullptr_t nullptr;
189 disable_cxx0x_compat=no,
190 disable_cxx0x_compat=yes)
191 AC_MSG_RESULT($disable_cxx0x_compat)
192 if test "$disable_cxx0x_compat" = yes; then
193 CXXFLAGS="$TMPCXXFLAGS -Wno-c++0x-compat"
195 CXXFLAGS="$TMPCXXFLAGS"
199 # pthread (not needed on Windows)
200 if test "$os_win32" = "no"; then
201 AC_CHECK_HEADERS([pthread.h],
202 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
203 AC_MSG_ERROR([pthread support is required to build WebKit]))
204 AC_CHECK_LIB(pthread, pthread_rwlock_init,
205 AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
206 AC_MSG_WARN([pthread rwlock support is not available]))
209 # check for libjpeg the way Gtk does it.
210 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
211 jpeg_ok=yes, jpeg_ok=no
212 AC_MSG_ERROR([JPEG library (libjpeg) not found]))
213 if test "$jpeg_ok" = yes; then
214 AC_MSG_CHECKING([for jpeglib])
220 #include <jpeglib.h>],
223 AC_MSG_RESULT($jpeg_ok)
224 if test "$jpeg_ok" = yes; then
226 # should we check for progressive JPEG like GTK+ as well?
228 AC_MSG_ERROR([JPEG library (libjpeg) not found])
231 AC_SUBST([JPEG_LIBS])
233 # Check for libpng the way Gtk+ does it
234 for l in libpng libpng14 libpng12; do
235 AC_MSG_CHECKING(for $l)
236 if $PKG_CONFIG --exists $l ; then
238 PNG_LIBS=`$PKG_CONFIG --libs $l`
246 if test "$png_ok" != yes; then
247 AC_CHECK_LIB(png, png_read_info,
248 [AC_CHECK_HEADER(png.h,
251 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
252 if test "$png_ok" = yes; then
253 AC_MSG_CHECKING([for png_structp in png.h])
254 AC_TRY_COMPILE([#include <png.h>],
255 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
258 AC_MSG_RESULT($png_ok)
259 if test "$png_ok" = yes; then
262 AC_MSG_ERROR([PNG library (libpng) not found])
265 AC_MSG_ERROR([PNG library (libpng) not found])
270 # Check for WEBP Image support
271 AC_CHECK_HEADERS([webp/decode.h], [WEBP_LIBS='-lwebp'], [AC_MSG_ERROR([WebP library (libwebp) not found])])
272 AC_SUBST([WEBP_LIBS])
274 if test "$os_win32" = "yes"; then
276 SHLWAPI_LIBS=-lshlwapi
279 AC_SUBST([WINMM_LIBS])
280 AC_SUBST([SHLWAPI_LIBS])
281 AC_SUBST([OLE32_LIBS])
284 # determine the GTK+ version to use
285 AC_MSG_CHECKING([the GTK+ version to use])
287 [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])],
290 *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
293 AC_MSG_RESULT([$with_gtk])
295 GTK2_REQUIRED_VERSION=2.10
296 GAIL2_REQUIRED_VERSION=1.8
297 GTK3_REQUIRED_VERSION=3.4.0
298 GAIL3_REQUIRED_VERSION=3.0
301 2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION
303 WEBKITGTK_API_MAJOR_VERSION=1
304 WEBKITGTK_API_MINOR_VERSION=0
305 WEBKITGTK_API_VERSION=1.0
306 WEBKITGTK_PC_NAME=webkit
308 GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION
310 3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION
312 WEBKITGTK_API_MAJOR_VERSION=3
313 WEBKITGTK_API_MINOR_VERSION=0
314 WEBKITGTK_API_VERSION=3.0
315 WEBKITGTK_PC_NAME=webkitgtk
316 GAIL_PC_NAME=gail-3.0
317 GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION
321 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
322 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
323 AC_SUBST([WEBKITGTK_API_VERSION])
324 AC_SUBST([WEBKITGTK_PC_NAME])
325 AC_SUBST([GTK_API_VERSION])
326 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
328 # determine the GDK/GTK+ target
329 AC_MSG_CHECKING([the target windowing system])
331 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
332 [Select webkit target [default=x11]]),
333 [],[with_target="x11"])
335 case "$with_target" in
336 x11|win32|quartz|directfb) ;;
337 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
340 AC_MSG_RESULT([$with_target])
342 # minimum base dependencies
343 CAIRO_REQUIRED_VERSION=1.10
344 FONTCONFIG_REQUIRED_VERSION=2.4
345 FREETYPE2_REQUIRED_VERSION=9.0
346 GLIB_REQUIRED_VERSION=2.32.0
347 LIBSOUP_REQUIRED_VERSION=2.40.0
348 LIBXML_REQUIRED_VERSION=2.6
349 PANGO_REQUIRED_VERSION=1.21.0
352 LIBXSLT_REQUIRED_VERSION=1.1.7
353 SQLITE_REQUIRED_VERSION=3.0
354 ENCHANT_REQUIRED_VERSION=0.22
355 CLUTTER_REQUIRED_VERSION=1.8.2
356 CLUTTER_GTK_REQUIRED_VERSION=1.0.2
357 ATSPI2_REQUIRED_VERSION=2.2.1
359 # Check for glib and required utilities
360 AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :, :, gmodule gobject gthread gio)
361 if test -z "$GLIB_GENMARSHAL" || test -z "$GLIB_MKENUMS"; then
362 AC_MSG_ERROR([You need the GLib dev tools in your path])
366 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
367 AC_SUBST(GLIB_COMPILE_RESOURCES)
371 # Check and identify which unicode backend to use
372 AC_MSG_CHECKING([which Unicode backend to use])
373 AC_ARG_WITH(unicode_backend,
374 AC_HELP_STRING([--with-unicode-backend=@<:@icu/glib@:>@],
375 [Select Unicode backend (WARNING: the glib-based backend is slow, and incomplete) [default=icu]]),
376 [],[with_unicode_backend="icu"])
378 case "$with_unicode_backend" in
380 *) AC_MSG_ERROR([Invalid Unicode backend: must be icu or glib.]) ;;
383 AC_MSG_RESULT([$with_unicode_backend])
385 if test "$with_unicode_backend" = "icu"; then
386 # TODO: use pkg-config (after CFLAGS in their .pc files are cleaned up)
389 UNICODE_CFLAGS="-I$srcdir/Source/JavaScriptCore/icu -I$srcdir/Source/WebCore/icu"
390 UNICODE_LIBS="-licucore"
394 UNICODE_LIBS="-licui18n -licuuc"
397 AC_PATH_PROG(icu_config, icu-config, no)
398 if test "$icu_config" = "no"; then
399 AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.])
402 # We don't use --cflags as this gives us a lot of things that we don't
403 # necessarily want, like debugging and optimization flags
404 # See man (1) icu-config for more info.
405 UNICODE_CFLAGS=`$icu_config --cppflags`
406 UNICODE_LIBS=`$icu_config --ldflags-libsonly`
411 if test "$with_unicode_backend" = "glib"; then
412 PKG_CHECK_MODULES([UNICODE], [glib-2.0 pango >= $PANGO_REQUIRED_VERSION])
415 AC_SUBST([UNICODE_CFLAGS])
416 AC_SUBST([UNICODE_LIBS])
418 PKG_CHECK_MODULES([ZLIB], [zlib])
419 AC_SUBST([ZLIB_CFLAGS])
420 AC_SUBST([ZLIB_LIBS])
422 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
423 AC_SUBST(GETTEXT_PACKAGE)
424 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
425 [The gettext catalog name])
427 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
428 AC_SUBST(LIBXML_CFLAGS)
429 AC_SUBST(LIBXML_LIBS)
431 PKG_CHECK_MODULES(PANGO,
432 [pango >= $PANGO_REQUIRED_VERSION
434 AC_SUBST(PANGO_CFLAGS)
437 AC_MSG_CHECKING([whether to enable spellcheck support])
438 AC_ARG_ENABLE([spellcheck],
439 [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])],
440 [],[enable_spellcheck="yes"])
441 AC_MSG_RESULT([$enable_spellcheck])
443 if test "$enable_spellcheck" = "yes"; then
444 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"])
445 AC_SUBST(ENCHANT_CFLAGS)
446 AC_SUBST(ENCHANT_LIBS)
449 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
450 AC_SUBST(GAIL_CFLAGS)
453 # check for target-specific dependencies
454 if test "$with_target" = "directfb"; then
455 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
456 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
457 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
459 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
460 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
462 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
464 PKG_CHECK_MODULES([XT],
466 [xt_has_pkg_config=yes],
467 [xt_has_pkg_config=no])
468 # some old versions of Xt do not provide xt.pc, so try to link against Xt
469 # and if it's installed fall back to just adding -lXt
470 if test "$xt_has_pkg_config" = "no"; then
471 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
472 # we don't care about the XtOpenDisplay symbol but only about the
474 AC_CHECK_LIB([Xt], [XtOpenDisplay],
475 [XT_CFLAGS=""; XT_LIBS="-lXt"],
476 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
478 AC_SUBST([XT_CFLAGS])
480 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
485 AC_SUBST(CAIRO_CFLAGS)
488 # check whether to build with debugging enabled
489 AC_MSG_CHECKING([whether to do a debug build])
491 AC_HELP_STRING([--enable-debug],
492 [turn on debugging [default=no]]),
493 [],[enable_debug="no"])
494 AC_MSG_RESULT([$enable_debug])
496 # check whether to enable optimized builds
497 AC_MSG_CHECKING([whether to enable optimized builds])
498 AC_ARG_ENABLE(optimizations,
499 AC_HELP_STRING([--enable-optimizations],
500 [turn on optimize builds (GCC only)
502 [enable_optimizations=$enableval],
503 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
504 AC_MSG_RESULT([$enable_optimizations])
508 AC_HELP_STRING([--enable-glx], [enable support for GLX [default=auto]]),
509 [], [enable_glx="auto"])
511 AC_HELP_STRING([--enable-egl], [enable support for EGL [default=auto]]),
512 [], [enable_egl="auto"])
514 AC_HELP_STRING([--enable-gles2], [enable support for OpenGL ES 2 [default=auto]]),
515 [], [enable_gles2="auto"])
518 AC_CHECK_HEADERS([GL/glx.h], [have_glx="yes"], [have_glx="no"])
519 AC_MSG_CHECKING([whether to enable GLX support])
520 if test "$enable_glx" != "no"; then
521 if test "$have_glx" = "no"; then
522 if test "$enable_glx" = "yes"; then
523 AC_MSG_ERROR([--enable-glx specified, but not available])
527 elif test "$enable_gles2" != "yes"; then
531 AC_MSG_RESULT([$enable_glx])
534 AC_CHECK_HEADERS([EGL/egl.h], [have_egl="yes"], [have_egl="no"])
535 AC_MSG_CHECKING([whether to enable EGL support])
536 if test "$enable_egl" != "no"; then
537 if test "$have_egl" = "no"; then
538 if test "$enable_egl" = "yes"; then
539 AC_MSG_ERROR([--enable-egl specified, but not available])
547 AC_MSG_RESULT([$enable_egl])
550 AC_CHECK_HEADERS([GLES2/gl2.h], [have_gles2="yes"], [have_gles2="no"])
551 AC_MSG_CHECKING([whether to use OpenGL ES 2 support])
552 if test "$enable_glx" = "yes"; then
553 if test "$enable_gles2" = "yes"; then
554 AC_MSG_ERROR([Cannot enable OpenGL ES 2 support with GLX])
559 if test "$enable_egl" = "no"; then
560 if test "$enable_gles2" = "yes"; then
561 AC_MSG_ERROR([Cannot enable OpenGL ES 2 support without EGL])
566 if test "$enable_gles2" != "no"; then
567 if test "$have_gles2" = "no"; then
568 if test "$enable_gles2" = "yes"; then
569 AC_MSG_ERROR([--enable-gles2 specified, but not available])
578 AC_MSG_RESULT([$enable_gles2])
580 if test "$enable_gles2" != "yes"; then
581 AC_CHECK_HEADERS([GL/gl.h], [found_opengl="yes"], [])
584 AC_MSG_CHECKING([which GPU acceleration backend to use])
585 AC_ARG_WITH(acceleration_backend,
586 AC_HELP_STRING([--with-acceleration-backend=@<:@opengl/clutter/none@:>@],
587 [Select accelerated backend (Clutter currently unsupported, OpenGL autodetected) [default=autodetect]]), [],
589 if test "$found_opengl" = "yes"; then
590 with_acceleration_backend="opengl";
592 with_acceleration_backend="none";
595 AC_MSG_RESULT([$with_acceleration_backend])
597 if test "$with_acceleration_backend" = "opengl"; then
598 PKG_CHECK_MODULES([XCOMPOSITE], [xcomposite]);
599 PKG_CHECK_MODULES([XDAMAGE], [xdamage]);
600 AC_SUBST(XCOMPOSITE_CFLAGS)
601 AC_SUBST(XCOMPOSITE_LIBS)
602 AC_SUBST(XDAMAGE_CFLAGS)
603 AC_SUBST(XDAMAGE_LIBS)
606 # OpenGL is turned on by default (along with WebGL and accelerated compositing), but if
607 # Clutter is chosen as the accelerated drawing backend, we want to disable it. COGL does
608 # not play well with OpenGL.
609 AC_MSG_CHECKING([whether to enable WebGL support])
611 AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=check]]), [],
613 if test "$with_acceleration_backend" = "opengl"; then
619 AC_MSG_RESULT([$enable_webgl])
620 if test "$enable_webgl" = "yes" && test "$with_acceleration_backend" != "opengl"; then
621 AC_MSG_ERROR([OpenGL must be active (and Clutter disabled) to use WebGL.])
624 AC_MSG_CHECKING([whether to enable accelerated compositing support])
625 AC_ARG_ENABLE(accelerated_compositing,
626 AC_HELP_STRING([--enable-accelerated-compositing], [enable support for accelerated compositing [default=check]]),
628 if test "$enableval" = "yes" && test "$with_acceleration_backend" = "none"; then
629 AC_MSG_ERROR([OpenGL or Clutter must be active to use accelerated compositing.])
631 enable_accelerated_compositing=$enableval;
634 if test "$with_acceleration_backend" != "none"; then
635 enable_accelerated_compositing="yes";
637 enable_accelerated_compositing="no";
640 AC_MSG_RESULT([$enable_accelerated_compositing])
642 # check whether to enable Gamepad support
643 AC_MSG_CHECKING([whether to enable Gamepad support])
644 AC_ARG_ENABLE(gamepad,
645 AC_HELP_STRING([--enable-gamepad],
646 [enable Gamepad support [default=no]]),
647 [],[enable_gamepad="no"])
648 AC_MSG_RESULT([$enable_gamepad])
650 if test "$enable_gamepad" = "yes" && test "$os_linux" = no; then
651 AC_MSG_WARN([Gamepad support is only available on Linux. Disabling Gamepad support.])
655 # check whether to enable HTML5 audio/video support
656 AC_MSG_CHECKING([whether to enable HTML5 video support])
658 AC_HELP_STRING([--enable-video],
659 [enable HTML5 video support [default=yes]]),
660 [],[enable_video="yes"])
661 AC_MSG_RESULT([$enable_video])
663 # check whether to enable media stream support
664 AC_MSG_CHECKING([whether to enable media stream support])
665 AC_ARG_ENABLE(media_stream,
666 AC_HELP_STRING([--enable-media-stream],
667 [enable media stream support (incomplete) [default=no]]),
668 [],[enable_media_stream="no"])
669 AC_MSG_RESULT([$enable_media_stream])
671 # check whether to enable XSLT support
672 AC_MSG_CHECKING([whether to enable XSLT support])
674 AC_HELP_STRING([--enable-xslt],
675 [enable support for XSLT [default=yes]]),
676 [],[enable_xslt="yes"])
677 AC_MSG_RESULT([$enable_xslt])
679 # check whether to enable geolocation support
680 AC_MSG_CHECKING([whether to enable geolocation support])
681 AC_ARG_ENABLE(geolocation,
682 AC_HELP_STRING([--enable-geolocation],
683 [enable support for geolocation [default=yes]]),
684 [],[enable_geolocation="yes"])
685 AC_MSG_RESULT([$enable_geolocation])
687 # check whether to enable SVG support
688 AC_MSG_CHECKING([whether to enable SVG support])
690 AC_HELP_STRING([--enable-svg],
691 [enable support for SVG [default=yes]]),
692 [],[enable_svg="yes"])
693 AC_MSG_RESULT([$enable_svg])
695 # turn off svg features if --disable-svg is requested
696 if test "$enable_svg" = "no"; then
700 # check whether to enable support for SVG fonts
701 AC_MSG_CHECKING([whether to enable support for SVG fonts])
702 AC_ARG_ENABLE(svg_fonts,
703 AC_HELP_STRING([--enable-svg-fonts],
704 [enable support for SVG fonts (experimental) [default=yes]]),
705 [],[enable_svg_fonts="yes"])
706 AC_MSG_RESULT([$enable_svg_fonts])
708 # check for SVG features, enabling SVG if necessary
709 if test "$enable_svg_fonts" = "yes" && test "$enable_svg" = "no"; then
710 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
714 # check whether to enable Web Audio support
715 AC_MSG_CHECKING([whether to enable Web Audio support])
716 AC_ARG_ENABLE(web_audio,
717 AC_HELP_STRING([--enable-web-audio],
718 [enable support for Web Audio [default=no]]),
719 [],[enable_web_audio="no"])
720 AC_MSG_RESULT([$enable_web_audio])
722 # check whether to enable code coverage
723 AC_MSG_CHECKING([whether to enable code coverage support])
724 AC_ARG_ENABLE(coverage,
725 AC_HELP_STRING([--enable-coverage],
726 [enable code coverage support [default=no]]),
727 [],[enable_coverage="no"])
728 AC_MSG_RESULT([$enable_coverage])
730 # check whether to enable FastMalloc
731 AC_MSG_CHECKING([whether to enable optimized memory allocator])
732 AC_ARG_ENABLE(fast_malloc,
733 AC_HELP_STRING([--enable-fast-malloc],
734 [enable optimized memory allocator default=yes, default=no for debug builds]),
735 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
736 AC_MSG_RESULT([$enable_fast_malloc])
738 # check whether to enable debug symbols
739 AC_MSG_CHECKING([whether to enable debug symbols])
740 AC_ARG_ENABLE(debug_symbols,
741 AC_HELP_STRING([--enable-debug-symbols=yes|no|min|full],
742 [enable debug symbols default=no, default=yes for debug builds]),
743 [],[if test "$enable_debug" = "yes"; then enable_debug_symbols="yes"; else enable_debug_symbols="no"; fi])
745 case "$enable_debug_symbols" in
746 yes) enable_debug_symbols="full" ;;
748 *) AC_MSG_ERROR([Invalid debug symbols option: must be yes, no, min or full.]) ;;
750 AC_MSG_RESULT([$enable_debug_symbols])
752 #selecting GStreamer version
753 AC_MSG_CHECKING([the GStreamer version to use])
754 AC_ARG_WITH([gstreamer],
755 [AS_HELP_STRING([--with-gstreamer=1.0|0.10|auto], [the GStreamer version to use (default: auto, tries 1.0 first, 0.10 is fallback)])],
756 [case "$with_gstreamer" in
758 *) AC_MSG_ERROR([invalid GStreamer version specified]) ;;
760 [with_gstreamer=auto])
761 AC_MSG_RESULT([$with_gstreamer])
763 GSTREAMER_0_10_REQUIRED_VERSION=0.10
764 GSTREAMER_0_10_PLUGINS_BASE_REQUIRED_VERSION=0.10.30
765 GSTREAMER_1_0_REQUIRED_VERSION=1.0.3
766 GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION=1.0.3
768 if test "$enable_video" = "yes" || test "$enable_web_audio" = "yes"; then
769 if test "$with_gstreamer" = "auto"; then
770 gstreamer_modules="gstreamer-1.0 >= $GSTREAMER_1_0_REQUIRED_VERSION
775 gstreamer-pbutils-1.0
776 gstreamer-plugins-base-1.0 >= $GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION
777 gstreamer-video-1.0";
778 PKG_CHECK_MODULES([GSTREAMER_1_0], [$gstreamer_modules], [with_gstreamer=1.0], [with_gstreamer=0.10])
779 AC_MSG_NOTICE([Selected GStreamer $with_gstreamer])
782 if test "$with_gstreamer" != "auto"; then
783 AC_MSG_WARN([You have specified GStreamer $with_gstreamer version but it will not be used because neither HTML5 Video nor Web Audio are enabled])
787 case "$with_gstreamer" in
788 0.10) GSTREAMER_REQUIRED_VERSION=$GSTREAMER_0_10_REQUIRED_VERSION
789 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=$GSTREAMER_0_10_PLUGINS_BASE_REQUIRED_VERSION
792 1.0) GSTREAMER_REQUIRED_VERSION=$GSTREAMER_1_0_REQUIRED_VERSION
793 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=$GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION
798 AC_SUBST([GST_API_VERSION])
799 if test "$GST_API_VERSION" = "1.0"; then
800 AC_DEFINE([GST_API_VERSION_1],[1], [Using GStreamer 1.0])
803 # check whether to enable debug features
804 AC_MSG_CHECKING([whether to enable debug features])
805 AC_ARG_ENABLE(debug_features,
806 AC_HELP_STRING([--enable-debug-features],
807 [enable debug features default=no, default=yes for debug builds]),
808 [],[if test "$enable_debug" = "yes"; then enable_debug_features="yes"; else enable_debug_features="no"; fi])
809 AC_MSG_RESULT([$enable_debug_features])
811 AC_MSG_CHECKING([whether to enable JIT compilation])
813 AS_HELP_STRING([--enable-jit],
814 [Enable JIT compilation (default: autodetect)]))
815 case "$enable_jit" in
816 yes) JSC_CPPFLAGS="-DENABLE_JIT=1" ;;
817 no) JSC_CPPFLAGS="-DENABLE_JIT=0" ;;
818 *) enable_jit="autodetect" ;;
820 AC_SUBST(JSC_CPPFLAGS)
821 AC_MSG_RESULT([$enable_jit])
824 AC_MSG_CHECKING([whether to enable opcode stats])
825 AC_ARG_ENABLE([opcode-stats],
826 [AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)])],
827 [], [enable_opcode_stats=no])
828 AC_MSG_RESULT([$enable_opcode_stats])
830 if test "$enable_opcode_stats" = "yes"; then
831 if test "$enable_jit" = "yes"; then
832 AC_MSG_ERROR([JIT must be disabled for Opcode stats to work.])
834 AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
837 # GObject Introspection
838 AC_MSG_CHECKING([whether to enable GObject introspection support])
839 AC_ARG_ENABLE([introspection],
840 [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
841 [],[enable_introspection=no])
842 AC_MSG_RESULT([$enable_introspection])
844 # Enable CSS Filters and Shaders if accelerated_compositing is turned on.
845 enable_css_filters=no;
846 enable_css_shaders=no;
847 AC_MSG_CHECKING([whether to enable CSS Filters and Shaders])
848 if test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "opengl"; then
849 enable_css_filters=yes;
850 enable_css_shaders=yes;
852 AC_MSG_RESULT([$enable_css_filters])
860 if test "$enable_introspection" = "yes"; then
861 GOBJECT_INTROSPECTION_REQUIRED=0.9.5
862 PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
864 G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
865 G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
866 G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
867 AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
870 AC_SUBST([G_IR_SCANNER])
871 AC_SUBST([G_IR_COMPILER])
872 AC_SUBST([G_IR_GENERATE])
874 if test "$host_cpu" = "sh4"; then
875 CXXFLAGS="$CXXFLAGS -mieee -w"
876 CFLAGS="$CFLAGS -mieee -w"
879 # Add '-g' flag to gcc to build with debug symbols
880 if test "$enable_debug_symbols" = "min"; then
881 CXXFLAGS="$CXXFLAGS -g1"
883 elif test "$enable_debug_symbols" != "no"; then
884 CXXFLAGS="$CXXFLAGS -g"
888 if test "$enable_debug_features" = "no"; then
889 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
892 # Add the appropriate 'O' level for optimized builds
893 if test "$enable_optimizations" = "yes"; then
894 CXXFLAGS="$CXXFLAGS -O2"
897 CXXFLAGS="$CXXFLAGS -O0"
901 PKG_CHECK_MODULES([LIBSOUP],
902 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
903 AC_SUBST([LIBSOUP_CFLAGS])
904 AC_SUBST([LIBSOUP_LIBS])
906 PKG_CHECK_MODULES([LIBSECRET], [libsecret-1])
907 AC_SUBST([LIBSECRET_CFLAGS])
908 AC_SUBST([LIBSECRET_LIBS])
910 # check if FreeType/FontConfig are available
911 if test "$with_target" = "directfb"; then
912 PKG_CHECK_MODULES([FREETYPE],
913 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
914 freetype2 >= $FREETYPE2_REQUIRED_VERSION
917 PKG_CHECK_MODULES([FREETYPE],
919 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
920 freetype2 >= $FREETYPE2_REQUIRED_VERSION
923 AC_SUBST([FREETYPE_CFLAGS])
924 AC_SUBST([FREETYPE_LIBS])
926 # check if SQLite3 is available. Error out only if one of the
927 # features hard-depending on it is enabled while SQLite3 is
929 PKG_CHECK_MODULES([SQLITE3],
930 [sqlite3 >= $SQLITE_REQUIRED_VERSION],
931 [sqlite3_has_pkg_config=yes],
932 [sqlite3_has_pkg_config=no])
933 if test "$sqlite3_has_pkg_config" = "no"; then
934 AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
935 [sqlite3_found=yes;SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
938 AC_SUBST([SQLITE3_CFLAGS])
939 AC_SUBST([SQLITE3_LIBS])
941 if (test "$sqlite3_found" = "no"); then
942 AC_MSG_ERROR([SQLite3 is required for the Database related features])
945 # check if libxslt is available
946 if test "$enable_xslt" = "yes"; then
947 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
948 AC_SUBST([LIBXSLT_CFLAGS])
949 AC_SUBST([LIBXSLT_LIBS])
952 # check if geoclue is available
953 if test "$enable_geolocation" = "yes"; then
954 PKG_CHECK_MODULES([GEOCLUE], [geoclue])
955 AC_SUBST([GEOCLUE_CFLAGS])
956 AC_SUBST([GEOCLUE_LIBS])
959 # check for XRender under Linux/Unix. Some linkers require explicit
960 # linkage (like GNU Gold), so we cannot rely on GTK+ pulling XRender
961 if test "$os_win32" = "no"; then
962 PKG_CHECK_MODULES([XRENDER], [xrender])
963 AC_SUBST([XRENDER_CFLAGS])
964 AC_SUBST([XRENDER_LIBS])
967 # check if gstreamer is available
968 if test "$enable_video" = "yes" || test "$enable_web_audio" = "yes"; then
969 gstreamer_modules="gstreamer-$GST_API_VERSION >= $GSTREAMER_REQUIRED_VERSION
970 gstreamer-app-$GST_API_VERSION
971 gstreamer-audio-$GST_API_VERSION
972 gstreamer-fft-$GST_API_VERSION
973 gstreamer-base-$GST_API_VERSION
974 gstreamer-pbutils-$GST_API_VERSION
975 gstreamer-plugins-base-$GST_API_VERSION >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
976 gstreamer-video-$GST_API_VERSION";
977 if test "$GST_API_VERSION" != "1.0"; then
978 gstreamer_modules="$gstreamer_modules gstreamer-interfaces-$GST_API_VERSION";
980 PKG_CHECK_MODULES([GSTREAMER], [$gstreamer_modules], [have_gstreamer=yes])
981 AC_SUBST([GSTREAMER_CFLAGS])
982 AC_SUBST([GSTREAMER_LIBS])
985 # farstream-0.1 depends on gstreamer 0.10 currently. Disable
986 # media_stream if gstreamer 1.0 build support is enabled.
987 if test "$have_gstreamer" != "yes" || test "$GST_API_VERSION" = "1.0"; then
988 if test "$enable_media_stream" = "yes"; then
989 AC_MSG_WARN([Disabling Media Stream because no GStreamer 0.10 support is enabled])
991 enable_media_stream=false
993 if test "$enable_media_stream" = "yes"; then
994 PKG_CHECK_MODULES([FARSTREAM], [farstream-0.1],
995 [have_farstream=yes], [enable_media_stream=false])
996 AC_SUBST([FARSTREAM_CFLAGS])
997 AC_SUBST([FARSTREAM_LIBS])
1000 acceleration_backend_description=$with_acceleration_backend
1001 if test "$with_acceleration_backend" = "clutter"; then
1002 PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
1003 PKG_CHECK_MODULES([CLUTTER_GTK],
1004 [clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED_VERSION])
1006 AC_SUBST(CLUTTER_CFLAGS)
1007 AC_SUBST(CLUTTER_LIBS)
1008 AC_SUBST(CLUTTER_GTK_CFLAGS)
1009 AC_SUBST(CLUTTER_GTK_LIBS)
1016 if test "$with_acceleration_backend" = "opengl"; then
1017 if test "$enable_gles2" = "yes"; then
1018 acceleration_backend_description+= "(gles2"
1019 OPENGL_LIBS="-lGLESv2"
1021 acceleration_backend_description+="(gl"
1024 if test "$enable_egl" = "yes"; then
1025 acceleration_backend_description+=", egl"
1026 OPENGL_LIBS+=" -lEGL"
1028 if test "$enable_glx" = "yes"; then
1029 acceleration_backend_description+=", glx"
1031 OPENGL_LIBS+=" -ldl"
1032 acceleration_backend_description+=")"
1034 AC_SUBST([OPENGL_LIBS])
1036 if test "$enable_gamepad" = "yes"; then
1037 PKG_CHECK_MODULES([GAMEPAD], [gio-unix-2.0 gudev-1.0])
1039 AC_SUBST(GAMEPAD_CFLAGS)
1040 AC_SUBST(GAMEPAD_LIBS)
1043 # check for code coverage support
1044 if test "$enable_coverage" = "yes"; then
1045 COVERAGE_CFLAGS="-MD"
1046 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
1047 AC_SUBST([COVERAGE_CFLAGS])
1048 AC_SUBST([COVERAGE_LDFLAGS])
1052 # If you change the default here, please also make sure the assumptions made
1053 # in Tools/Scripts/webkitdirs.pm:buildAutotoolsProject still make sense.
1054 AC_MSG_CHECKING([whether to build Webkit2])
1055 AC_ARG_ENABLE(webkit2,
1056 AC_HELP_STRING([--enable-webkit2], [build webkit2 [default=yes]]),
1057 [], [enable_webkit2="yes"])
1058 AC_MSG_RESULT([$enable_webkit2])
1059 if test "$enable_webkit2" = "yes"; then
1060 if test "$GTK_API_VERSION" = "2.0"; then
1061 AC_MSG_ERROR([WebKit2 requires GTK+ 3.x, use --with-gtk=3.0])
1064 # Make sure we have GTK+ 2.x to build the plugin process.
1065 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= $GTK2_REQUIRED_VERSION gail >= $GAIL2_REQUIRED_VERSION)
1066 AC_SUBST(GTK2_CFLAGS)
1069 # Check Unix printing
1070 PKG_CHECK_MODULES(GTK_UNIX_PRINTING, gtk+-unix-print-3.0,
1071 [have_gtk_unix_printing=yes],
1072 [have_gtk_unix_printing=no])
1073 AC_SUBST(GTK_UNIX_PRINTING_CFLAGS)
1074 AC_SUBST(GTK_UNIX_PRINTING_LIBS)
1075 if test "$have_gtk_unix_printing" = "yes"; then
1076 AC_DEFINE([HAVE_GTK_UNIX_PRINTING], [1], [Define if GTK+ UNIX Printing is available])
1079 # On some Linux/Unix platforms, shm_* may only be available if linking
1081 if test "$os_win32" = "no"; then
1082 AC_SEARCH_LIBS([shm_open], [rt], [SHM_LIBS="-lrt"])
1087 GTK_DOC_CHECK([1.10])
1089 # We need atspi2 for Webkit2 unit tests
1090 if test "$enable_webkit2" = "yes"; then
1091 PKG_CHECK_MODULES([ATSPI2],
1092 [atspi-2 >= $ATSPI2_REQUIRED_VERSION],
1093 [have_atspi2=yes], [have_atspi2=no])
1095 AC_SUBST([ATSPI2_CFLAGS])
1096 AC_SUBST([ATSPI2_LIBS])
1100 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
1101 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
1102 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
1103 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
1104 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
1106 # target conditionals
1107 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
1108 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
1109 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
1110 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
1112 # Unicode backend conditionals
1113 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
1114 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
1116 # GStreamer feature conditional
1117 AM_CONDITIONAL([USE_GSTREAMER], [test "$have_gstreamer" = "yes"])
1118 AM_CONDITIONAL([USE_WEBAUDIO_GSTREAMER], [test "$enable_web_audio" = "yes"])
1120 # ATSPI2 conditional
1121 AM_CONDITIONAL([HAVE_ATSPI2], [test "$have_atspi2" = "yes"])
1123 # Accelerated compositing conditional
1124 AM_CONDITIONAL([USE_ACCELERATED_COMPOSITING], [test "$enable_accelerated_compositing" = "yes"])
1125 AM_CONDITIONAL([USE_TEXTURE_MAPPER_CAIRO], [test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "none"])
1126 AM_CONDITIONAL([USE_TEXTURE_MAPPER_GL], [test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "opengl"])
1127 AM_CONDITIONAL([USE_CLUTTER], [test "$with_acceleration_backend" = "clutter"])
1129 # These are the same now, but they will soon be separate.
1130 AM_CONDITIONAL([USE_OPENGL], [test "$with_acceleration_backend" = "opengl"])
1131 AM_CONDITIONAL([USE_EGL], [test "$enable_egl" = "yes"])
1132 AM_CONDITIONAL([USE_GLES2], [test "$enable_gles2" = "yes"])
1133 AM_CONDITIONAL([USE_GLX], [test "$enable_glx" = "yes"])
1135 # Farstream feature conditional
1136 AM_CONDITIONAL([USE_FARSTREAM], [test "$have_farstream" = "yes"])
1138 # WebKit feature conditionals
1139 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug_features" = "yes"])
1140 AM_CONDITIONAL([ENABLE_WEBGL],[test "$enable_webgl" = "yes"])
1141 AM_CONDITIONAL([ENABLE_GAMEPAD],[test "$enable_gamepad" = "yes"])
1142 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
1143 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
1144 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
1145 AM_CONDITIONAL([ENABLE_MEDIA_STREAM],[test "$enable_media_stream" = "yes"])
1146 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
1147 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
1148 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
1149 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
1150 AM_CONDITIONAL([ENABLE_WEB_AUDIO],[test "$enable_web_audio" = "yes"])
1151 AM_CONDITIONAL([ENABLE_OPCODE_STATS],[test "$enable_opcode_stats" = "yes"])
1152 AM_CONDITIONAL([ENABLE_WEBKIT2],[test "$enable_webkit2" = "yes"])
1153 AM_CONDITIONAL([ENABLE_SPELLCHECK],[test "$enable_spellcheck" = "yes"])
1154 AM_CONDITIONAL([ENABLE_CSS_FILTERS],[test "$enable_css_filters" = "yes"])
1155 AM_CONDITIONAL([ENABLE_CSS_SHADERS],[test "$enable_css_shaders" = "yes"])
1158 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
1166 Source/WebKit/gtk/webkit/webkitversion.h
1167 Source/WebKit/gtk/po/POTFILES
1168 DerivedSources/WebCore/UserAgentGtk.h:Source/WebCore/platform/gtk/UserAgentGtk.h.in
1172 Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in
1173 Source/WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:Source/WebKit/gtk/JSCore.gir.in
1174 Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
1176 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1180 if test "$enable_webkit2" = "yes"; then
1182 DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitVersion.h:Source/WebKit2/UIProcess/API/gtk/WebKitVersion.h.in
1186 Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in
1188 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
1195 WebKit was configured with the following options:
1197 Build configuration:
1198 Enable debugging (slow) : $enable_debug
1199 Compile with debug symbols (slow) : $enable_debug_symbols
1200 Enable debug features (slow) : $enable_debug_features
1201 Enable GCC build optimization : $enable_optimizations
1202 Code coverage support : $enable_coverage
1203 Unicode backend : $with_unicode_backend
1204 Optimized memory allocator : $enable_fast_malloc
1205 Accelerated rendering backend : $acceleration_backend_description
1209 WebKit2 support : $enable_webkit2
1210 Accelerated Compositing : $enable_accelerated_compositing
1211 Gamepad support : $enable_gamepad
1212 Geolocation support : $enable_geolocation
1213 HTML5 video element support : $enable_video
1214 JIT compilation : $enable_jit
1215 Media stream support : $enable_media_stream
1216 Opcode stats : $enable_opcode_stats
1217 SVG fonts support : $enable_svg_fonts
1218 SVG support : $enable_svg
1219 Spellcheck support : $enable_spellcheck
1220 Web Audio support : $enable_web_audio
1221 WebGL : $enable_webgl
1222 XSLT support : $enable_xslt
1226 GTK+ version : $with_gtk
1227 GDK target : $with_target
1228 GStreamer version : $with_gstreamer
1229 Introspection support : $enable_introspection
1230 Generate documentation : $enable_gtk_doc
1232 if test "$with_unicode_backend" = "glib"; then
1233 echo " >> WARNING: the glib-based unicode backend is slow and incomplete <<"