3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [0])
5 m4_define([webkit_micro_version], [3])
7 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
9 AC_CONFIG_HEADERS([autotoolsconfig.h])
12 WEBKIT_MAJOR_VERSION=webkit_major_version
13 WEBKIT_MINOR_VERSION=webkit_minor_version
14 WEBKIT_MICRO_VERSION=webkit_micro_version
15 AC_SUBST(WEBKIT_MAJOR_VERSION)
16 AC_SUBST(WEBKIT_MINOR_VERSION)
17 AC_SUBST(WEBKIT_MICRO_VERSION)
19 AC_CONFIG_SRCDIR([WebCore/config.h])
21 dnl # Libtool library version, not to confuse with API version
22 dnl # see http://www.gnu.org/software/libtool/manual.html#Versioning
23 LIBWEBKITGTK_VERSION=1:0:0
24 AC_SUBST([LIBWEBKITGTK_VERSION])
26 AM_INIT_AUTOMAKE([foreign subdir-objects])
28 # host checking - inspired by the GTK+ configure.in
29 # TODO: os_mac, os_bsd
30 AC_MSG_CHECKING([for native Win32])
39 AC_MSG_RESULT([$os_win32])
54 gnu* | linux* | k*bsd*-gnu)
62 # If CXXFLAGS and CFLAGS are unset, default to empty.
63 # This is to tell automake not to include '-g' if CXXFLAGS is not set
64 # For more info - http://www.gnu.org/software/automake/manual/autoconf.html#C_002b_002b-Compiler
65 if test -z "$CXXFLAGS"; then
68 if test -z "$CFLAGS"; then
82 # check for -fvisibility=hidden compiler support (GCC >= 4)
83 saved_CFLAGS="$CFLAGS"
84 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
85 AC_MSG_CHECKING([if ${CXX} supports -fvisibility=hidden -fvisibility-inlines-hidden])
86 AC_COMPILE_IFELSE([char foo;],
87 [ AC_MSG_RESULT([yes])
88 SYMBOL_VISIBILITY="-fvisibility=hidden" SYMBOL_VISIBILITY_INLINES="-fvisibility-inlines-hidden" ],
90 CFLAGS="$saved_CFLAGS"
91 AC_SUBST(SYMBOL_VISIBILITY)
92 AC_SUBST(SYMBOL_VISIBILITY_INLINES)
94 AC_PATH_PROG(PERL, perl)
95 if test -z "$PERL"; then
96 AC_MSG_ERROR([You need 'perl' to compile WebKit])
99 AC_PATH_PROG(BISON, bison)
100 if test -z "$BISON"; then
101 AC_MSG_ERROR([You need the 'bison' parser generator to compile WebKit])
104 AC_PATH_PROG(FLEX, flex)
105 if test -z "$FLEX"; then
106 AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
108 FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
109 AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
110 AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
113 AC_PATH_PROG(GPERF, gperf)
114 if test -z "$GPERF"; then
115 AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
119 if test -z "$MV"; then
120 AC_MSG_ERROR([You need 'mv' to compile WebKit])
124 # Check for glib-genmarshal and glib-mkenums
125 AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
126 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
127 if test -z "$GLIB_GENMARSHAL" || test -z "$GLIB_MKENUMS"; then
128 AC_MSG_ERROR([You need the GLib dev tools in your path])
131 # Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it
134 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
137 # C/C++ Language Features
146 # pthread (not needed on Windows)
147 if test "$os_win32" = "no"; then
148 AC_CHECK_HEADERS([pthread.h],
149 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
150 AC_MSG_ERROR([pthread support is required to build WebKit]))
153 # check for libjpeg the way Gtk does it.
154 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
155 jpeg_ok=yes, jpeg_ok=no
156 AC_MSG_ERROR([JPEG library (libjpeg) not found]))
157 if test "$jpeg_ok" = yes; then
158 AC_MSG_CHECKING([for jpeglib])
164 #include <jpeglib.h>],
167 AC_MSG_RESULT($jpeg_ok)
168 if test "$jpeg_ok" = yes; then
170 # should we check for progressive JPEG like GTK+ as well?
172 AC_MSG_ERROR([JPEG library (libjpeg) not found])
175 AC_SUBST([JPEG_LIBS])
177 # check for pkg-config
178 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
179 if test "$PKG_CONFIG" = "no"; then
180 AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed in your PATH])
183 # Check for libpng the way Gtk+ does it
184 AC_MSG_CHECKING(for libpng12)
185 if $PKG_CONFIG --exists libpng12 ; then
187 PNG_LIBS=`$PKG_CONFIG --libs libpng12`
190 AC_CHECK_LIB(png, png_read_info,
191 [AC_CHECK_HEADER(png.h,
194 AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
195 if test "$png_ok" = yes; then
196 AC_MSG_CHECKING([for png_structp in png.h])
197 AC_TRY_COMPILE([#include <png.h>],
198 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
201 AC_MSG_RESULT($png_ok)
202 if test "$png_ok" = yes; then
205 AC_MSG_ERROR([PNG library (libpng) not found])
208 AC_MSG_ERROR([PNG library (libpng) not found])
213 # determine the Unicode backend
214 AC_MSG_CHECKING([the Unicode backend to use])
215 AC_ARG_WITH(unicode_backend,
216 AC_HELP_STRING([--with-unicode-backend=@<:@icu@:>@],
217 [Select Unicode backend [default=icu]]),
218 [],[unicode_backend="icu"])
220 case "$unicode_backend" in
222 *) AC_MSG_ERROR([Invalid Unicode backend: must be icu.]) ;;
225 AC_MSG_RESULT([$unicode_backend])
227 if test "$unicode_backend" = "icu"; then
228 if test "$os_darwin" = "yes"; then
229 UNICODE_CFLAGS="-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu"
230 UNICODE_LIBS="-licucore"
231 elif test "$os_win32" = "yes"; then
233 UNICODE_LIBS="-licuin -licuuc"
235 AC_PATH_PROG(icu_config, icu-config, no)
236 if test "$icu_config" = "no"; then
237 AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.])
240 # We don't use --cflags as this gives us a lot of things that we don't
241 # necessarily want, like debugging and optimization flags
242 # See man (1) icu-config for more info.
243 UNICODE_CFLAGS=`$icu_config --cppflags`
244 UNICODE_LIBS=`$icu_config --ldflags`
248 AC_SUBST([UNICODE_CFLAGS])
249 AC_SUBST([UNICODE_LIBS])
251 # determine the GDK/GTK+ target
252 AC_MSG_CHECKING([the target windowing system])
254 AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
255 [Select webkit target [default=x11]]),
256 [],[with_target="x11"])
258 case "$with_target" in
259 x11|win32|quartz|directfb) ;;
260 *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
263 AC_MSG_RESULT([$with_target])
265 AC_MSG_CHECKING([for Hildon UI extensions])
267 AC_HELP_STRING([--with-hildon],
268 [Use Hildon UI extensions [default=no]]),
269 [],[with_hildon="no"])
270 AC_MSG_RESULT([$with_hildon])
272 if test "$with_hildon" = "yes"; then
273 HILDON_CPPFLAGS="-DMAEMO_CHANGES"
274 PKG_CHECK_MODULES([HILDON], [hildon-1])
275 AC_SUBST([HILDON_CPPFLAGS])
276 AC_SUBST([HILDON_CFLAGS])
277 AC_SUBST([HILDON_LIBS])
280 # determine the http backend
281 AC_MSG_CHECKING([the HTTP backend to use])
282 AC_ARG_WITH(http_backend,
283 AC_HELP_STRING([--with-http-backend=@<:@curl/soup@:>@],
284 [Select HTTP backend [default=curl]]),
285 [],[with_http_backend="curl"])
287 case "$with_http_backend" in
289 *) AC_MSG_ERROR([Invalid HTTP backend: must be curl, soup.]) ;;
292 AC_MSG_RESULT([$with_http_backend])
294 # minimum base dependencies
295 CAIRO_REQUIRED_VERSION=1.2
296 FONTCONFIG_REQUIRED_VERSION=2.4
297 FREETYPE2_REQUIRED_VERSION=9.0
298 LIBXML_REQUIRED_VERSION=2.6
300 # minimum GTK+ base dependencies
301 GLIB_REQUIRED_VERSION=2.0
302 GOBJECT_REQUIRED_VERSION=2.0
303 GTHREAD_REQUIRED_VERSION=2.0
304 PANGO_REQUIRED_VERSION=1.0
305 GTK_REQUIRED_VERSION=2.8
308 LIBCURL_REQUIRED_VERSION=7.15
309 LIBSOUP_REQUIRED_VERSION=2.23
310 LIBXSLT_REQUIRED_VERSION=1.1.7
311 SQLITE_REQUIRED_VERSION=3.0
312 GSTREAMER_REQUIRED_VERSION=0.10
314 PKG_CHECK_MODULES([GLOBALDEPS],
315 [glib-2.0 >= $GLIB_REQUIRED_VERSION
316 gobject-2.0 >= $GOBJECT_REQUIRED_VERSION
317 gthread-2.0 >= $GTHREAD_REQUIRED_VERSION])
318 AC_SUBST([GLOBALDEPS_CFLAGS])
319 AC_SUBST([GLOBALDEPS_LIBS])
321 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
322 AC_SUBST(LIBXML_CFLAGS)
323 AC_SUBST(LIBXML_LIBS)
325 PKG_CHECK_MODULES(PANGO, pango >= $PANGO_REQUIRED_VERSION)
326 AC_SUBST(PANGO_CFLAGS)
329 # check for target-specific dependencies
330 if test "$with_target" = "directfb"; then
331 PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
332 PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
333 AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
335 PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
336 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED_VERSION)
338 if test "$with_target" = "x11" && test "$os_win32" = "no"; then
340 PKG_CHECK_MODULES([XT],
342 [xt_has_pkg_config=yes],
343 [xt_has_pkg_config=no])
344 # some old versions of Xt do not provide xt.pc, so try to link against Xt
345 # and if it's installed fall back to just adding -lXt
346 if test "$xt_has_pkg_config" = "no"; then
347 # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
348 # we don't care about the XtOpenDisplay symbol but only about the
350 AC_CHECK_LIB([Xt], [XtOpenDisplay],
351 [XT_CFLAGS=""; XT_LIBS="-lXt"],
352 [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
354 AC_SUBST([XT_CFLAGS])
356 AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
361 AC_SUBST(CAIRO_CFLAGS)
364 # check whether to build with debugging enabled
365 AC_MSG_CHECKING([whether to do a debug build])
367 AC_HELP_STRING([--enable-debug],
368 [turn on debugging [default=no]]),
369 [],[enable_debug="no"])
370 AC_MSG_RESULT([$enable_debug])
372 # check whether to enable optimized builds
373 AC_MSG_CHECKING([whether to enable optimized builds])
374 AC_ARG_ENABLE(optimizations,
375 AC_HELP_STRING([--enable-optimizations],
376 [turn on optimize builds (GCC only)
378 [enable_optimizations=$enableval],
379 [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
380 AC_MSG_RESULT([$enable_optimizations])
382 # check whether to enable dashboard support
383 AC_MSG_CHECKING([whether to enable Dashboard support])
384 AC_ARG_ENABLE(dashboard_support,
385 AC_HELP_STRING([--enable-dashboard-support],
386 [enable Dashboard support [default=yes]]),
387 [],[enable_dashboard_support="yes"])
388 AC_MSG_RESULT([$enable_dashboard_support])
390 # check whether to enable HTML5 Offline Web Applications support
391 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
392 AC_ARG_ENABLE(offline_web_applications,
393 AC_HELP_STRING([--enable-offline-web-applications],
394 [enable HTML5 offline web applications support [default=yes]]),
395 [],[enable_offline_web_applications="yes"])
396 AC_MSG_RESULT([$enable_offline_web_applications])
398 # check whether to enable HTML5 client-side session and persitent storage support
399 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
400 AC_ARG_ENABLE(dom_storage,
401 AC_HELP_STRING([--enable-dom-storage],
402 [enable HTML5 client-side session and persistent storage support [default=yes]]),
403 [],[enable_dom_storage="yes"])
404 AC_MSG_RESULT([$enable_dom_storage])
406 # check whether to build with database support
407 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
408 AC_ARG_ENABLE(database,
409 AC_HELP_STRING([--enable-database],
410 [enable HTML5 client-side database storage support [default=yes]]),
411 [],[enable_database="yes"])
412 AC_MSG_RESULT([$enable_database])
414 # check whether to build with icon database support
415 AC_MSG_CHECKING([whether to enable icon database support])
416 AC_ARG_ENABLE(icon_database,
417 AC_HELP_STRING([--enable-icon-database],
418 [enable icon database [default=yes]]),
419 [],[enable_icon_database="yes"])
420 AC_MSG_RESULT([$enable_icon_database])
422 # check whether to enable HTML5 audio/video support
423 AC_MSG_CHECKING([whether to enable HTML5 video support])
425 AC_HELP_STRING([--enable-video],
426 [enable HTML5 video support [default=no]]),
427 [],[enable_video="no"])
428 AC_MSG_RESULT([$enable_video])
430 # check whether to enable XPath support
431 AC_MSG_CHECKING([whether to enable XPath support])
433 AC_HELP_STRING([--enable-xpath],
434 [enable support for XPath [default=yes]]),
435 [],[enable_xpath="yes"])
436 AC_MSG_RESULT([$enable_xpath])
438 # check whether to enable XSLT support
439 AC_MSG_CHECKING([whether to enable XSLT support])
441 AC_HELP_STRING([--enable-xslt],
442 [enable support for XSLT [default=yes]]),
443 [],[enable_xslt="yes"])
444 AC_MSG_RESULT([$enable_xslt])
446 # check whether to enable SVG support
447 AC_MSG_CHECKING([whether to enable SVG support])
449 AC_HELP_STRING([--enable-svg],
450 [enable support for SVG [default=yes]]),
451 [],[enable_svg="yes"])
452 AC_MSG_RESULT([$enable_svg])
454 # turn off svg features if --disable-svg is requested
455 if test "$enable_svg" = "no"; then
456 enable_svg_animation=no
457 enable_svg_filters=no
459 enable_svg_foreign_object=no
460 enable_svg_as_image=no
461 enable_svg_use_element=no
464 # check whether to enable support for SVG animation
465 AC_MSG_CHECKING([whether to enable support for SVG animation])
466 AC_ARG_ENABLE(svg_animation,
467 AC_HELP_STRING([--enable-svg-animation],
468 [enable support for SVG animation (experimental) [default=yes]]),
469 [],[enable_svg_animation="yes"])
470 AC_MSG_RESULT([$enable_svg_animation])
472 # check whether to enable support for SVG filters
473 AC_MSG_CHECKING([whether to enable support for SVG filters])
474 AC_ARG_ENABLE(svg_filters,
475 AC_HELP_STRING([--enable-svg-filters],
476 [enable support for SVG filters (experimental) [default=no]]),
477 [],[enable_svg_filters="no"])
478 AC_MSG_RESULT([$enable_svg_filters])
480 # check whether to enable support for SVG fonts
481 AC_MSG_CHECKING([whether to enable support for SVG fonts])
482 AC_ARG_ENABLE(svg_fonts,
483 AC_HELP_STRING([--enable-svg-fonts],
484 [enable support for SVG fonts (experimental) [default=yes]]),
485 [],[enable_svg_fonts="yes"])
486 AC_MSG_RESULT([$enable_svg_fonts])
488 # check whether to enable foreign objects support for SVG
489 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
490 AC_ARG_ENABLE(svg_foreign_object,
491 AC_HELP_STRING([--enable-svg-foreign-object],
492 [enable support for SVG foreign objects (experimental) [default=yes]]),
493 [],[enable_svg_foreign_object="yes"])
494 AC_MSG_RESULT([$enable_svg_foreign_object])
496 # check whether to enable SVG As Image support
497 AC_MSG_CHECKING([whether to enable SVG as Image support])
498 AC_ARG_ENABLE(svg_as_image,
499 AC_HELP_STRING([--enable-svg-as-image],
500 [enable SVG as Image support (experimental) [default=yes]]),
501 [],[enable_svg_as_image="yes"])
502 AC_MSG_RESULT([$enable_svg_as_image])
504 # check whether to enable SVG USE element support
505 AC_MSG_CHECKING([whether to enable support for SVG use element])
506 AC_ARG_ENABLE(svg_use_element,
507 AC_HELP_STRING([--enable-svg-use-element],
508 [enable SVG use element support (experimental) [default=yes]]),
509 [],[enable_svg_use_element="yes"])
510 AC_MSG_RESULT([$enable_svg_use_element])
512 # check for SVG features, enabling SVG if necessary
513 if test "$enable_svg_animation" = "yes" || \
514 test "$enable_svg_filters" = "yes" || \
515 test "$enable_svg_fonts" = "yes" || \
516 test "$enable_svg_foreign_object" = "yes" || \
517 test "$enable_svg_as_image" = "yes" || \
518 test "$enable_svg_use_element" = "yes"; then
520 if test "$enable_svg" = "no"; then
521 AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
526 # check whether to enable code coverage
527 AC_MSG_CHECKING([whether to enable code coverage support])
528 AC_ARG_ENABLE(coverage,
529 AC_HELP_STRING([--enable-coverage],
530 [enable code coverage support [default=no]]),
531 [],[enable_coverage="no"])
532 AC_MSG_RESULT([$enable_coverage])
534 # check whether to enable FastMalloc
535 AC_MSG_CHECKING([whether to enable optimized memory allocator])
536 AC_ARG_ENABLE(fast_malloc,
537 AC_HELP_STRING([--enable-fast-malloc],
538 [enable optimized memory allocator default=yes, default=no for debug builds]),
539 [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
540 AC_MSG_RESULT([$enable_fast_malloc])
542 AC_MSG_CHECKING([whether to enable JIT compilation])
544 AC_HELP_STRING([--enable-jit],
545 [Enable JIT compilation default=yes]),
546 [],[enable_jit="yes"])
547 if test "$enable_jit" = "yes"; then
548 case "$target_cpu" in
550 AC_DEFINE([ENABLE_CTI], [1], [Define to enable CTI])
551 AC_DEFINE([ENABLE_WREC], [1], [Define to enable WREC])
554 enable_jit="no (CPU '$target_cpu' not supported)"
558 AC_MSG_RESULT([$enable_jit])
560 # determine the font backend
561 AC_MSG_CHECKING([the font backend to use])
562 AC_ARG_WITH(font_backend,
563 AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
564 [Select font backend [default=freetype]]),
565 [],[with_font_backend="freetype"])
567 case "$with_font_backend" in
569 *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
571 AC_MSG_RESULT([$with_font_backend])
573 # Add '-g' flag to gcc if it's debug build
574 if test "$enable_debug" = "yes"; then
575 CXXFLAGS="$CXXFLAGS -g"
578 AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
581 # Add the appropriate 'O' level for optimized builds
582 if test "$enable_optimizations" = "yes"; then
583 CXXFLAGS="$CXXFLAGS -O2"
586 CXXFLAGS="$CXXFLAGS -O0"
590 # check if curl is available
591 if test "$with_http_backend" = "curl"; then
592 PKG_CHECK_MODULES([LIBCURL],
593 [libcurl >= $LIBCURL_REQUIRED_VERSION])
594 if test "$os_win32" = "yes"; then
595 LIBCURL_LIBS="$LIBCURL_LIBS -lws2_32"
597 AC_SUBST([LIBCURL_CFLAGS])
598 AC_SUBST([LIBCURL_LIBS])
601 if test "$with_http_backend" = "soup"; then
602 PKG_CHECK_MODULES([LIBSOUP],
603 [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
604 AC_SUBST([LIBSOUP_CFLAGS])
605 AC_SUBST([LIBSOUP_LIBS])
608 # check if FreeType/FontConfig are available
609 if test "$with_font_backend" = "freetype"; then
610 if test "$with_target" = "directfb"; then
611 PKG_CHECK_MODULES([FREETYPE],
612 [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
613 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
615 PKG_CHECK_MODULES([FREETYPE],
618 fontconfig >= $FONTCONFIG_REQUIRED_VERSION
619 freetype2 >= $FREETYPE2_REQUIRED_VERSION])
621 AC_SUBST([FREETYPE_CFLAGS])
622 AC_SUBST([FREETYPE_LIBS])
625 # check if sqlite 3 is available
626 if test "$enable_icon_database" = "yes" || \
627 test "$enable_database" = "yes" || \
628 test "$enable_offline_web_applications" = "yes" || \
629 test "$enable_dom_storage" = "yes"; then
630 PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= $SQLITE_REQUIRED_VERSION])
631 AC_SUBST([SQLITE3_CFLAGS])
632 AC_SUBST([SQLITE3_LIBS])
635 # check if libxslt is available
636 if test "$enable_xslt" = "yes"; then
637 PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
638 AC_SUBST([LIBXSLT_CFLAGS])
639 AC_SUBST([LIBXSLT_LIBS])
642 # check if gstreamer is available
643 if test "$enable_video" = "yes"; then
644 PKG_CHECK_MODULES([GSTREAMER],
645 [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
647 gstreamer-plugins-base-0.10])
648 AC_SUBST([GSTREAMER_CFLAGS])
649 AC_SUBST([GSTREAMER_LIBS])
652 # check for code coverage support
653 if test "$enable_coverage" = "yes"; then
654 COVERAGE_CFLAGS="-MD"
655 COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
656 AC_SUBST([COVERAGE_CFLAGS])
657 AC_SUBST([COVERAGE_LDFLAGS])
660 # check for HTML features
661 if test "$enable_video" = "yes"; then
666 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
667 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
668 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
669 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
670 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
672 # target conditionals
673 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
674 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
675 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
676 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
678 # HTTP backend conditionals
679 AM_CONDITIONAL([USE_CURL], [test "$with_http_backend" = "curl"])
680 AM_CONDITIONAL([USE_SOUP], [test "$with_http_backend" = "soup"])
682 # Font backend conditionals
683 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
684 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
686 # WebKit feature conditionals
687 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
688 AM_CONDITIONAL([ENABLE_DASHBOARD_SUPPORT],[test "$enable_dashboard_support" = "yes"])
689 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
690 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
691 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
692 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
693 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
694 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
695 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
696 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
697 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
698 AM_CONDITIONAL([ENABLE_SVG_FILTERS],[test "$enable_svg_filters" = "yes"])
699 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
700 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
701 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
702 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use_element" = "yes"])
703 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
704 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
705 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
706 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
710 WebKit/gtk/webkit-1.0.pc:WebKit/gtk/webkit.pc.in
711 WebKit/gtk/webkit/webkitversion.h
718 WebKit was configured with the following options:
721 Enable debugging (slow) : $enable_debug
722 Enable GCC build optimization : $enable_optimizations
723 Code coverage support : $enable_coverage
724 Unicode backend : $unicode_backend
725 HTTP backend : $with_http_backend
726 Font backend : $with_font_backend
727 Optimized memory allocator : $enable_fast_malloc
729 JIT compilation : $enable_jit
730 Dashboard support : $enable_dashboard_support
731 HTML5 offline web applications support : $enable_offline_web_applications
732 HTML5 client-side session and persistent storage support : $enable_dom_storage
733 HTML5 client-side database storage support : $enable_database
734 HTML5 video element support : $enable_video
735 Icon database support : $enable_icon_database
736 SVG support : $enable_svg
737 SVG animation support : $enable_svg_animation
738 SVG filters support : $enable_svg_filters
739 SVG fonts support : $enable_svg_fonts
740 SVG foreign object support : $enable_svg_foreign_object
741 SVG as image support : $enable_svg_as_image
742 SVG use element support : $enable_svg_use_element
743 XPATH support : $enable_xpath
744 XSLT support : $enable_xslt
746 GDK target : $with_target
747 Hildon UI extensions : $with_hildon