../../../../../../WebCore:
[webkit/qt.git] / configure.ac
bloba5b7747e847572e490eefc724d1a38523a07aa67
1 AC_PREREQ(2.59)
3 m4_define([webkit_major_version], [1])
4 m4_define([webkit_minor_version], [0])
5 m4_define([webkit_micro_version], [2])
7 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
9 AC_CONFIG_HEADERS([aconfig.h])
11 WEBKIT_MAJOR_VERSION=webkit_major_version
12 WEBKIT_MINOR_VERSION=webkit_minor_version
13 WEBKIT_MICRO_VERSION=webkit_micro_version
14 AC_SUBST(WEBKIT_MAJOR_VERSION)
15 AC_SUBST(WEBKIT_MINOR_VERSION)
16 AC_SUBST(WEBKIT_MICRO_VERSION)
18 AC_CONFIG_SRCDIR([WebCore/config.h])
20 dnl # Libtool library version, not to confuse with API version
21 dnl # see http://www.gnu.org/software/libtool/manual.html#Versioning
22 LIBWEBKITGTK_VERSION=1:0:0
23 AC_SUBST([LIBWEBKITGTK_VERSION])
25 AM_INIT_AUTOMAKE([foreign subdir-objects])
27 AC_CANONICAL_HOST
29 # host checking - inspired by the GTK+ configure.in
30 # TODO: os_mac, os_bsd
31 AC_MSG_CHECKING([for native Win32])
32 case "$host" in
33      *-*-mingw*)
34        os_win32=yes
35        ;;
36      *)
37        os_win32=no
38        ;;
39 esac
40 AC_MSG_RESULT([$os_win32])
42 case "$host" in
43      *-*-linux*)
44        os_linux=yes
45        ;;
46      *-*-freebsd*)
47        os_freebsd=yes
48        ;;
49      *-*-darwin*)
50        os_darwin=yes
51        ;;
52 esac
54 # If CXXFLAGS and CFLAGS are unset, default to empty.
55 # This is to tell automake not to include '-g' if CXXFLAGS is not set
56 # For more info - http://www.gnu.org/software/automake/manual/autoconf.html#C_002b_002b-Compiler
57 if test -z "$CXXFLAGS"; then
58    CXXFLAGS=""
60 if test -z "$CFLAGS"; then
61    CFLAGS=""
64 AM_PROG_CC_STDC
65 AM_PROG_CC_C_O
66 AC_PROG_CXX
67 AC_PROG_INSTALL
68 AC_DISABLE_STATIC
69 AC_LIBTOOL_WIN32_DLL
70 AC_PROG_LIBTOOL
71 DOLT
73 # check for -fvisibility=hidden compiler support (GCC >= 4)
74 saved_CFLAGS="$CFLAGS"
75 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
76 AC_MSG_CHECKING([if ${CXX} supports -fvisibility=hidden -fvisibility-inlines-hidden])
77 AC_COMPILE_IFELSE([char foo;],
78       [ AC_MSG_RESULT([yes])
79         SYMBOL_VISIBILITY="-fvisibility=hidden" SYMBOL_VISIBILITY_INLINES="-fvisibility-inlines-hidden" ],
80         AC_MSG_RESULT([no]))
81 CFLAGS="$saved_CFLAGS"
82 AC_SUBST(SYMBOL_VISIBILITY)
83 AC_SUBST(SYMBOL_VISIBILITY_INLINES)
85 AC_PATH_PROG(PERL, perl)
86 if test -z "$PERL"; then
87    AC_MSG_ERROR([You need 'perl' to compile WebKit])
90 AC_PATH_PROG(BISON, bison)
91 if test -z "$BISON"; then
92    AC_MSG_ERROR([You need the 'bison' parser generator to compile WebKit])
95 AC_PATH_PROG(FLEX, flex)
96 if test -z "$FLEX"; then
97    AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
100 AC_PATH_PROG(GPERF, gperf)
101 if test -z "$GPERF"; then
102    AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
105 AC_PATH_PROG(MV, mv)
106 if test -z "$MV"; then
107    AC_MSG_ERROR([You need 'mv' to compile WebKit])
110 # GTK+ port only
111 # Check for glib-genmarshal and glib-mkenums
112 AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
113 AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
114 if test -z "$GLIB_GENMARSHAL" || test -z "$GLIB_MKENUMS"; then
115    AC_MSG_ERROR([You need the GLib dev tools in your path])
118 # Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it
119 # doesn't exist)
120 AC_LANG_PUSH([C++])
121 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])])
122 AC_LANG_POP([C++])
124 # C/C++ Language Features
125 AC_C_CONST
126 AC_C_INLINE
127 AC_C_VOLATILE
129 # C/C++ Headers
130 AC_HEADER_STDC
131 AC_HEADER_STDBOOL
133 # pthread (not needed on Windows)
134 if test "$os_win32" = "no"; then
135 AC_CHECK_HEADERS([pthread.h],
136                  AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
137                  AC_MSG_ERROR([pthread support is required to build WebKit]))
140 # check for libjpeg the way Gtk does it.
141 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
142                    jpeg_ok=yes, jpeg_ok=no
143                    AC_MSG_ERROR([JPEG library (libjpeg) not found]))
144 if test "$jpeg_ok" = yes; then
145    AC_MSG_CHECKING([for jpeglib])
146    AC_TRY_CPP(
147 [#include <stdio.h>
148 #undef PACKAGE
149 #undef VERSION
150 #undef HAVE_STDLIB_H
151 #include <jpeglib.h>],
152          jpeg_ok=yes,
153          jpeg_ok=no)
154    AC_MSG_RESULT($jpeg_ok)
155    if test "$jpeg_ok" = yes; then
156       JPEG_LIBS="-ljpeg"
157       # should we check for progressive JPEG like GTK+ as well?
158    else
159       AC_MSG_ERROR([JPEG library (libjpeg) not found])
160    fi
162 AC_SUBST([JPEG_LIBS])
164 # check for pkg-config
165 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
166 if test "$PKG_CONFIG" = "no"; then
167    AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed in your PATH])
170 # determine the Unicode backend
171 AC_MSG_CHECKING([the Unicode backend to use])
172 AC_ARG_WITH(unicode_backend,
173             AC_HELP_STRING([--with-unicode-backend=@<:@icu@:>@],
174                            [Select Unicode backend [default=icu]]),
175             [],[unicode_backend="icu"])
177 case "$unicode_backend" in
178      icu) ;;
179      *) AC_MSG_ERROR([Invalid Unicode backend: must be icu.]) ;;
180 esac
182 AC_MSG_RESULT([$unicode_backend])
184 if test "$unicode_backend" = "icu"; then
185         if test "$os_darwin" = "yes"; then
186                 UNICODE_CFLAGS="-I\$(srcdir)/JavaScriptCore/icu -I\$(srcdir)/WebCore/icu"
187                 UNICODE_LIBS="-licucore"
188         elif test "$os_win32" = "yes"; then
189                 UNICODE_CFLAGS=""
190                 UNICODE_LIBS="-licuin -licuuc"
191         else
192                 AC_PATH_PROG(icu_config, icu-config, no)
193                 if test "$icu_config" = "no"; then
194                         AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.])
195                 fi
197                 # We don't use --cflags as this gives us a lot of things that we don't
198                 # necessarily want, like debugging and optimization flags
199                 # See man (1) icu-config for more info.
200                 UNICODE_CFLAGS=`$icu_config --cppflags`
201                 UNICODE_LIBS=`$icu_config --ldflags`
202         fi
205 AC_SUBST([UNICODE_CFLAGS])
206 AC_SUBST([UNICODE_LIBS])
208 # determine the GDK/GTK+ target
209 AC_MSG_CHECKING([the target windowing system])
210 AC_ARG_WITH(target,
211             AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
212                            [Select webkit target [default=x11]]),
213             [],[with_target="x11"])
215 case "$with_target" in
216      x11|win32|quartz|directfb) ;;
217      *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
218 esac
220 AC_MSG_RESULT([$with_target])
222 AC_MSG_CHECKING([for Hildon UI extensions])
223 AC_ARG_WITH(hildon,
224             AC_HELP_STRING([--with-hildon],
225                            [Use Hildon UI extensions [default=no]]),
226             [],[with_hildon="no"])
227 AC_MSG_RESULT([$with_hildon])
229 if test "$with_hildon" = "yes"; then
230     HILDON_CPPFLAGS="-DMAEMO_CHANGES"
231     PKG_CHECK_MODULES([HILDON], [hildon-1])
232     AC_SUBST([HILDON_CPPFLAGS])
233     AC_SUBST([HILDON_CFLAGS])
234     AC_SUBST([HILDON_LIBS])
237 # determine the http backend
238 AC_MSG_CHECKING([the HTTP backend to use])
239 AC_ARG_WITH(http_backend,
240             AC_HELP_STRING([--with-http-backend=@<:@curl/soup@:>@],
241                            [Select HTTP backend [default=curl]]),
242             [],[with_http_backend="curl"])
244 case "$with_http_backend" in
245      curl|soup) ;;
246      *) AC_MSG_ERROR([Invalid HTTP backend: must be curl, soup.]) ;;
247 esac
249 AC_MSG_RESULT([$with_http_backend])
251 # minimum base dependencies
252 CAIRO_REQUIRED_VERSION=1.4
253 FONTCONFIG_REQUIRED_VERSION=2.4
254 FREETYPE2_REQUIRED_VERSION=9.0
255 LIBXML_REQUIRED_VERSION=2.6
257 # minimum GTK+ base dependencies
258 GLIB_REQUIRED_VERSION=2.0
259 GOBJECT_REQUIRED_VERSION=2.0
260 GTHREAD_REQUIRED_VERSION=2.0
261 PANGO_REQUIRED_VERSION=1.0
262 GTK_REQUIRED_VERSION=2.8
264 # optional modules
265 LIBCURL_REQUIRED_VERSION=7.15
266 LIBSOUP_REQUIRED_VERSION=2.23
267 LIBXSLT_REQUIRED_VERSION=1.1.7
268 SQLITE_REQUIRED_VERSION=3.0
269 GSTREAMER_REQUIRED_VERSION=0.10
270 GNOME_VFS_REQUIRED_VERSION=2.0
272 PKG_CHECK_MODULES([GLOBALDEPS],
273                   [glib-2.0 >= $GLIB_REQUIRED_VERSION
274                   gobject-2.0 >= $GOBJECT_REQUIRED_VERSION
275                   gthread-2.0 >= $GTHREAD_REQUIRED_VERSION])
276 AC_SUBST([GLOBALDEPS_CFLAGS])
277 AC_SUBST([GLOBALDEPS_LIBS])
279 PKG_CHECK_MODULES([WEBKITDEPS],
280                   [gtk+-2.0 >= $GTK_REQUIRED_VERSION
281                   pango >= $PANGO_REQUIRED_VERSION
282                   cairo >= $CAIRO_REQUIRED_VERSION
283                   libxml-2.0 >= $LIBXML_REQUIRED_VERSION])
284 AC_SUBST([WEBKITDEPS_CFLAGS])
285 AC_SUBST([WEBKITDEPS_LIBS])
287 # check for Xt if the target is X11
288 if test "$with_target" = "x11"; then
289    PKG_CHECK_MODULES([XT],
290                      [xt])
291    AC_SUBST([XT_CFLAGS])
292    AC_SUBST([XT_LIBS])
295 # check whether to build with debugging enabled
296 AC_MSG_CHECKING([whether to do a debug build])
297 AC_ARG_ENABLE(debug,
298               AC_HELP_STRING([--enable-debug],
299                              [turn on debugging [default=no]]),
300               [],[enable_debug="no"])
301 AC_MSG_RESULT([$enable_debug])
303 # check whether to enable dashboard support
304 AC_MSG_CHECKING([whether to enable Dashboard support])
305 AC_ARG_ENABLE(dashboard_support,
306               AC_HELP_STRING([--enable-dashboard-support],
307                              [enable Dashboard support [default=yes]]),
308               [],[enable_dashboard_support="yes"])
309 AC_MSG_RESULT([$enable_dashboard_support])
311 # check whether to enable HTML5 Offline Web Applications support
312 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
313 AC_ARG_ENABLE(offline_web_applications,
314               AC_HELP_STRING([--enable-offline-web-applications],
315                              [enable HTML5 offline web applications support [default=yes]]),
316               [],[enable_offline_web_applications="yes"])
317 AC_MSG_RESULT([$enable_offline_web_applications])
319 # check whether to enable HTML5 client-side session and persitent storage support
320 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
321 AC_ARG_ENABLE(dom_storage,
322               AC_HELP_STRING([--enable-dom-storage],
323                              [enable HTML5 client-side session and persistent storage support [default=yes]]),
324               [],[enable_dom_storage="yes"])
325 AC_MSG_RESULT([$enable_dom_storage])
327 # check whether to build with database support
328 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
329 AC_ARG_ENABLE(database,
330               AC_HELP_STRING([--enable-database],
331                              [enable HTML5 client-side database storage support [default=yes]]),
332               [],[enable_database="yes"])
333 AC_MSG_RESULT([$enable_database])
335 # check whether to build with icon database support
336 AC_MSG_CHECKING([whether to enable icon database support])
337 AC_ARG_ENABLE(icon_database,
338               AC_HELP_STRING([--enable-icon-database],
339                              [enable icon database [default=yes]]),
340               [],[enable_icon_database="yes"])
341 AC_MSG_RESULT([$enable_icon_database])
343 # check whether to enable HTML5 audio/video support
344 AC_MSG_CHECKING([whether to enable HTML5 video support])
345 AC_ARG_ENABLE(video,
346               AC_HELP_STRING([--enable-video],
347                              [enable HTML5 video support [default=no]]),
348               [],[enable_video="no"])
349 AC_MSG_RESULT([$enable_video])
351 # check whether to enable XPath support
352 AC_MSG_CHECKING([whether to enable XPath support])
353 AC_ARG_ENABLE(xpath,
354               AC_HELP_STRING([--enable-xpath],
355                              [enable support for XPath [default=yes]]),
356               [],[enable_xpath="yes"])
357 AC_MSG_RESULT([$enable_xpath])
359 # check whether to enable XSLT support
360 AC_MSG_CHECKING([whether to enable XSLT support])
361 AC_ARG_ENABLE(xslt,
362               AC_HELP_STRING([--enable-xslt],
363                              [enable support for XSLT [default=yes]]),
364               [],[enable_xslt="yes"])
365 AC_MSG_RESULT([$enable_xslt])
367 # check whether to enable SVG support
368 AC_MSG_CHECKING([whether to enable SVG support])
369 AC_ARG_ENABLE(svg,
370               AC_HELP_STRING([--enable-svg],
371                              [enable support for SVG [default=yes]]),
372               [],[enable_svg="yes"])
373 AC_MSG_RESULT([$enable_svg])
375 # turn off svg features if --disable-svg is requested
376 if test "$enable_svg" = "no"; then
377    enable_svg_animation=no
378    enable_svg_filters=no
379    enable_svg_fonts=no
380    enable_svg_foreign_object=no
381    enable_svg_as_image=no
382    enable_svg_use_element=no
385 # check whether to enable support for SVG animation
386 AC_MSG_CHECKING([whether to enable support for SVG animation])
387 AC_ARG_ENABLE(svg_animation,
388               AC_HELP_STRING([--enable-svg-animation],
389                              [enable support for SVG animation (experimental) [default=yes]]),
390               [],[enable_svg_animation="yes"])
391 AC_MSG_RESULT([$enable_svg_animation])
393 # check whether to enable support for SVG filters
394 AC_MSG_CHECKING([whether to enable support for SVG filters])
395 AC_ARG_ENABLE(svg_filters,
396               AC_HELP_STRING([--enable-svg-filters],
397                              [enable support for SVG filters (experimental) [default=no]]),
398               [],[enable_svg_filters="no"])
399 AC_MSG_RESULT([$enable_svg_filters])
401 # check whether to enable support for SVG fonts
402 AC_MSG_CHECKING([whether to enable support for SVG fonts])
403 AC_ARG_ENABLE(svg_fonts,
404               AC_HELP_STRING([--enable-svg-fonts],
405                              [enable support for SVG fonts (experimental) [default=yes]]),
406               [],[enable_svg_fonts="yes"])
407 AC_MSG_RESULT([$enable_svg_fonts])
409 # check whether to enable foreign objects support for SVG
410 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
411 AC_ARG_ENABLE(svg_foreign_object,
412               AC_HELP_STRING([--enable-svg-foreign-object],
413                              [enable support for SVG foreign objects (experimental) [default=yes]]),
414               [],[enable_svg_foreign_object="yes"])
415 AC_MSG_RESULT([$enable_svg_foreign_object])
417 # check whether to enable SVG As Image support
418 AC_MSG_CHECKING([whether to enable SVG as Image support])
419 AC_ARG_ENABLE(svg_as_image,
420               AC_HELP_STRING([--enable-svg-as-image],
421                              [enable SVG as Image support (experimental) [default=yes]]),
422               [],[enable_svg_as_image="yes"])
423 AC_MSG_RESULT([$enable_svg_as_image])
425 # check whether to enable SVG USE element support
426 AC_MSG_CHECKING([whether to enable support for SVG use element])
427 AC_ARG_ENABLE(svg_use_element,
428               AC_HELP_STRING([--enable-svg-use-element],
429                              [enable SVG use element support (experimental) [default=yes]]),
430               [],[enable_svg_use_element="yes"])
431 AC_MSG_RESULT([$enable_svg_use_element])
433 # check for SVG features, enabling SVG if necessary
434 if test "$enable_svg_animation" = "yes" || \
435    test "$enable_svg_filters" = "yes" || \
436    test "$enable_svg_fonts" = "yes" || \
437    test "$enable_svg_foreign_object" = "yes" || \
438    test "$enable_svg_as_image" = "yes" || \
439    test "$enable_svg_use_element" = "yes"; then
440    svg_flags=yes
441    if test "$enable_svg" = "no"; then
442        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
443        enable_svg=yes
444    fi
447 # check whether to enable code coverage
448 AC_MSG_CHECKING([whether to enable code coverage support])
449 AC_ARG_ENABLE(coverage,
450               AC_HELP_STRING([--enable-coverage],
451                              [enable code coverage support [default=no]]),
452               [],[enable_coverage="no"])
453 AC_MSG_RESULT([$enable_coverage])
455 # check whether to enable FastMalloc
456 AC_MSG_CHECKING([whether to enable optimized memory allocator])
457 AC_ARG_ENABLE(fast_malloc,
458               AC_HELP_STRING([--enable-fast-malloc],
459                              [enable optimized memory allocator default=yes, default=no for debug builds]),
460               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
461 AC_MSG_RESULT([$enable_fast_malloc])
463 # determine the font backend
464 AC_MSG_CHECKING([the font backend to use])
465 AC_ARG_WITH(font_backend,
466             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
467                            [Select font backend [default=freetype]]),
468             [],[with_font_backend="freetype"])
470 case "$with_font_backend" in
471      freetype|pango) ;;
472      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
473 esac
474 AC_MSG_RESULT([$with_font_backend])
476 # Add '-g' flag to gcc if it's debug build
477 if test "$enable_debug" = "yes"; then
478    CXXFLAGS="$CXXFLAGS -g"
479    CFLAGS="$CFLAGS -g"
482 # check if curl is available
483 if test "$with_http_backend" = "curl"; then
484    PKG_CHECK_MODULES([LIBCURL],
485                      [libcurl >= $LIBCURL_REQUIRED_VERSION])
486    if test "$os_win32" = "yes"; then
487       LIBCURL_LIBS="$LIBCURL_LIBS -lWs2_32"
488    fi
489    AC_SUBST([LIBCURL_CFLAGS])
490    AC_SUBST([LIBCURL_LIBS])
493 if test "$with_http_backend" = "soup"; then
494    PKG_CHECK_MODULES([LIBSOUP],
495                      [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
496    AC_SUBST([LIBSOUP_CFLAGS])
497    AC_SUBST([LIBSOUP_LIBS])
500 # check if FreeType/FontConfig are available
501 if test "$with_font_backend" = "freetype"; then
502    PKG_CHECK_MODULES([FREETYPE],
503                      [cairo-ft
504                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
505                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
506    AC_SUBST([FREETYPE_CFLAGS])
507    AC_SUBST([FREETYPE_LIBS])
510 # check if sqlite 3 is available
511 if test "$enable_icon_database" = "yes" || \
512    test "$enable_database" = "yes" || \
513    test "$enable_offline_web_applications" = "yes" || \
514    test "$enable_dom_storage" = "yes"; then
515    PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= $SQLITE_REQUIRED_VERSION])
516    AC_SUBST([SQLITE3_CFLAGS])
517    AC_SUBST([SQLITE3_LIBS])
520 # check if libxslt is available
521 if test "$enable_xslt" = "yes"; then
522    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
523    AC_SUBST([LIBXSLT_CFLAGS])
524    AC_SUBST([LIBXSLT_LIBS])
527 # check if gstreamer is available
528 if test "$enable_video" = "yes"; then
529    PKG_CHECK_MODULES([GSTREAMER],
530                      [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
531                      gstreamer-base-0.10,
532                      gstreamer-plugins-base-0.10,
533                      gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED_VERSION])
534    AC_SUBST([GSTREAMER_CFLAGS])
535    AC_SUBST([GSTREAMER_LIBS])
538 # check for code coverage support
539 if test "$enable_coverage" = "yes"; then
540    COVERAGE_CFLAGS="-MD"
541    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
542    AC_SUBST([COVERAGE_CFLAGS])
543    AC_SUBST([COVERAGE_LDFLAGS])
546 # check for HTML features
547 if test "$enable_video" = "yes"; then
548     html_flags=yes
551 # OS conditionals
552 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
553 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
554 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
555 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
557 # target conditionals
558 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
559 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
560 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
561 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
563 # HTTP backend conditionals
564 AM_CONDITIONAL([USE_CURL], [test "$with_http_backend" = "curl"])
565 AM_CONDITIONAL([USE_SOUP], [test "$with_http_backend" = "soup"])
567 # Font backend conditionals
568 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
569 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
571 # WebKit feature conditionals
572 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
573 AM_CONDITIONAL([ENABLE_DASHBOARD_SUPPORT],[test "$enable_dashboard_support" = "yes"])
574 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
575 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
576 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
577 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
578 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
579 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
580 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
581 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
582 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
583 AM_CONDITIONAL([ENABLE_SVG_FILTERS],[test "$enable_svg_filters" = "yes"])
584 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
585 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
586 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
587 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use_element" = "yes"])
588 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
589 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
590 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
591 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
593 AC_CONFIG_FILES([
594 GNUmakefile
595 WebKit/gtk/webkit-1.0.pc:WebKit/gtk/webkit.pc.in
596 WebKit/gtk/webkit/webkitversion.h
600 AC_OUTPUT
602 echo "
603 WebKit was configured with the following options:
605 Build configuration:
606  Enable debugging (slow)                                  : $enable_debug
607  Code coverage support                                    : $enable_coverage
608  Unicode backend                                          : $unicode_backend
609  HTTP backend                                             : $with_http_backend
610  Font backend                                             : $with_font_backend
611  Optimized memory allocator                               : $enable_fast_malloc
612 Features:
613  Dashboard support                                        : $enable_dashboard_support
614  HTML5 offline web applications support                   : $enable_offline_web_applications
615  HTML5 client-side session and persistent storage support : $enable_dom_storage
616  HTML5 client-side database storage support               : $enable_database
617  HTML5 video element support                              : $enable_video
618  Icon database support                                    : $enable_icon_database
619  SVG support                                              : $enable_svg
620  SVG animation support                                    : $enable_svg_animation
621  SVG filters support                                      : $enable_svg_filters
622  SVG fonts support                                        : $enable_svg_fonts
623  SVG foreign object support                               : $enable_svg_foreign_object
624  SVG as image support                                     : $enable_svg_as_image
625  SVG use element support                                  : $enable_svg_use_element
626  XPATH support                                            : $enable_xpath
627  XSLT support                                             : $enable_xslt
628 GTK+ configuration:
629  GDK target                                               : $with_target
630  Hildon UI extensions                                     : $with_hildon