configure.ac
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 AC_PREREQ(2.59)
       
     2 
       
     3 m4_define([webkit_major_version], [1])
       
     4 m4_define([webkit_minor_version], [3])
       
     5 m4_define([webkit_micro_version], [3])
       
     6 
       
     7 # This is the version we'll be using as part of our User-Agent string
       
     8 # e.g., AppleWebKit/$(webkit_user_agent_version) ...
       
     9 #
       
    10 # Sourced from WebCore/Configurations/Version.xcconfig
       
    11 m4_define([webkit_user_agent_major_version], [531])
       
    12 m4_define([webkit_user_agent_minor_version], [2])
       
    13 
       
    14 AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
       
    15 
       
    16 AC_CONFIG_MACRO_DIR([autotools])
       
    17 AC_CONFIG_AUX_DIR([autotools])
       
    18 AC_SUBST(ACLOCAL_AMFLAGS, "-I autotools")
       
    19 
       
    20 AC_CONFIG_HEADERS([autotoolsconfig.h])
       
    21 AC_CANONICAL_HOST
       
    22 
       
    23 WEBKIT_MAJOR_VERSION=webkit_major_version
       
    24 WEBKIT_MINOR_VERSION=webkit_minor_version
       
    25 WEBKIT_MICRO_VERSION=webkit_micro_version
       
    26 WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
       
    27 WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
       
    28 AC_SUBST(WEBKIT_MAJOR_VERSION)
       
    29 AC_SUBST(WEBKIT_MINOR_VERSION)
       
    30 AC_SUBST(WEBKIT_MICRO_VERSION)
       
    31 AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
       
    32 AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
       
    33 
       
    34 AC_CONFIG_SRCDIR([WebCore/config.h])
       
    35 
       
    36 dnl # Libtool library version, not to confuse with API version
       
    37 dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html#Libtool-versioning
       
    38 LIBWEBKITGTK_VERSION=0:1:0
       
    39 AC_SUBST([LIBWEBKITGTK_VERSION])
       
    40 
       
    41 AM_INIT_AUTOMAKE([foreign subdir-objects tar-ustar])
       
    42 
       
    43 # Use AM_SILENT_RULES if present
       
    44 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
       
    45 
       
    46 # host checking - inspired by the GTK+ configure.in
       
    47 # TODO: move these to webkit.m4?
       
    48 AC_MSG_CHECKING([for native Win32])
       
    49 case "$host" in
       
    50      *-*-mingw*)
       
    51        os_win32=yes
       
    52        ;;
       
    53      *)
       
    54        os_win32=no
       
    55        ;;
       
    56 esac
       
    57 AC_MSG_RESULT([$os_win32])
       
    58 
       
    59 case "$host" in
       
    60      *-*-linux*)
       
    61        os_linux=yes
       
    62        ;;
       
    63      *-*-freebsd*)
       
    64        os_freebsd=yes
       
    65        ;;
       
    66      *-*-darwin*)
       
    67        os_darwin=yes
       
    68        ;;
       
    69 esac
       
    70 
       
    71 case "$host_os" in
       
    72      gnu* | linux* | k*bsd*-gnu)
       
    73        os_gnu=yes
       
    74        ;;
       
    75      *)
       
    76        os_gnu=no
       
    77        ;;
       
    78 esac
       
    79 
       
    80 # initialize webkit options
       
    81 WEBKIT_INIT
       
    82 AC_DISABLE_STATIC
       
    83 AC_LIBTOOL_WIN32_DLL
       
    84 AC_PROG_LIBTOOL
       
    85 # use dolt to speedup the build
       
    86 DOLT
       
    87 
       
    88 AC_PATH_PROG(FLEX, flex)
       
    89 if test -z "$FLEX"; then
       
    90    AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit])
       
    91 else
       
    92    FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'`
       
    93    AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION],
       
    94       AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly]))
       
    95 fi
       
    96 
       
    97 AC_PATH_PROG(GPERF, gperf)
       
    98 if test -z "$GPERF"; then
       
    99    AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit])
       
   100 fi
       
   101 
       
   102 # pthread (not needed on Windows)
       
   103 if test "$os_win32" = "no"; then
       
   104 AC_CHECK_HEADERS([pthread.h],
       
   105                  AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
       
   106                  AC_MSG_ERROR([pthread support is required to build WebKit]))
       
   107 fi
       
   108 
       
   109 # check for libjpeg the way Gtk does it.
       
   110 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
       
   111                    jpeg_ok=yes, jpeg_ok=no
       
   112                    AC_MSG_ERROR([JPEG library (libjpeg) not found]))
       
   113 if test "$jpeg_ok" = yes; then
       
   114    AC_MSG_CHECKING([for jpeglib])
       
   115    AC_TRY_CPP(
       
   116 [#include <stdio.h>
       
   117 #undef PACKAGE
       
   118 #undef VERSION
       
   119 #undef HAVE_STDLIB_H
       
   120 #include <jpeglib.h>],
       
   121          jpeg_ok=yes,
       
   122          jpeg_ok=no)
       
   123    AC_MSG_RESULT($jpeg_ok)
       
   124    if test "$jpeg_ok" = yes; then
       
   125       JPEG_LIBS="-ljpeg"
       
   126       # should we check for progressive JPEG like GTK+ as well?
       
   127    else
       
   128       AC_MSG_ERROR([JPEG library (libjpeg) not found])
       
   129    fi
       
   130 fi
       
   131 AC_SUBST([JPEG_LIBS])
       
   132 
       
   133 # Check for libpng the way Gtk+ does it
       
   134 for l in libpng libpng14 libpng12; do
       
   135   AC_MSG_CHECKING(for $l)
       
   136   if $PKG_CONFIG --exists $l ; then
       
   137     AC_MSG_RESULT(yes)
       
   138     PNG_LIBS=`$PKG_CONFIG --libs $l`
       
   139     png_ok=yes
       
   140     break
       
   141   else
       
   142     AC_MSG_RESULT(no)
       
   143     png_ok=no
       
   144   fi
       
   145 done
       
   146 if test "$png_ok" != yes; then
       
   147   AC_CHECK_LIB(png, png_read_info,
       
   148     [AC_CHECK_HEADER(png.h,
       
   149       png_ok=yes,
       
   150       png_ok=no)],
       
   151     AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm)
       
   152   if test "$png_ok" = yes; then
       
   153     AC_MSG_CHECKING([for png_structp in png.h])
       
   154     AC_TRY_COMPILE([#include <png.h>],
       
   155       [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
       
   156       png_ok=yes,
       
   157       png_ok=no)
       
   158     AC_MSG_RESULT($png_ok)
       
   159     if test "$png_ok" = yes; then
       
   160       PNG_LIBS='-lpng -lz'
       
   161     else
       
   162       AC_MSG_ERROR([PNG library (libpng) not found])
       
   163     fi
       
   164   else
       
   165     AC_MSG_ERROR([PNG library (libpng) not found])
       
   166   fi
       
   167 fi
       
   168 AC_SUBST([PNG_LIBS])
       
   169 
       
   170 # determine the GTK+ version to use
       
   171 AC_MSG_CHECKING([the GTK+ version to use])
       
   172 AC_ARG_WITH([gtk],
       
   173         [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 2.0)])],
       
   174         [case "$with_gtk" in
       
   175         2.0|3.0) ;;
       
   176         *) AC_MSG_ERROR([invalid GTK+ version specified]) ;;
       
   177         esac],
       
   178         [with_gtk=2.0])
       
   179 AC_MSG_RESULT([$with_gtk])
       
   180 
       
   181 case "$with_gtk" in
       
   182      2.0) GTK_REQUIRED_VERSION=2.10
       
   183           GTK_API_VERSION=2.0
       
   184           WEBKITGTK_API_MAJOR_VERSION=1
       
   185           WEBKITGTK_API_MINOR_VERSION=0
       
   186           WEBKITGTK_API_VERSION=1.0
       
   187           WEBKITGTK_PC_NAME=webkit
       
   188           GAIL_PC_NAME=gail
       
   189           GAIL_REQUIRED_VERSION=1.8
       
   190           ;;
       
   191      3.0) GTK_REQUIRED_VERSION=2.90
       
   192           GTK_API_VERSION=3.0
       
   193           WEBKITGTK_API_MAJOR_VERSION=3
       
   194           WEBKITGTK_API_MINOR_VERSION=0
       
   195           WEBKITGTK_API_VERSION=3.0
       
   196           WEBKITGTK_PC_NAME=webkitgtk
       
   197           GAIL_PC_NAME=gail-3.0
       
   198           GAIL_REQUIRED_VERSION=2.90.4
       
   199           ;;
       
   200 esac
       
   201 
       
   202 AC_SUBST([WEBKITGTK_API_MAJOR_VERSION])
       
   203 AC_SUBST([WEBKITGTK_API_MINOR_VERSION])
       
   204 AC_SUBST([WEBKITGTK_API_VERSION])
       
   205 AC_SUBST([WEBKITGTK_PC_NAME])
       
   206 AC_SUBST([GTK_API_VERSION])
       
   207 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"])
       
   208 
       
   209 # determine the GDK/GTK+ target
       
   210 AC_MSG_CHECKING([the target windowing system])
       
   211 AC_ARG_WITH(target,
       
   212             AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@],
       
   213                            [Select webkit target [default=x11]]),
       
   214             [],[with_target="x11"])
       
   215 
       
   216 case "$with_target" in
       
   217      x11|win32|quartz|directfb) ;;
       
   218      *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;;
       
   219 esac
       
   220 
       
   221 AC_MSG_RESULT([$with_target])
       
   222 
       
   223 AC_MSG_CHECKING([for Hildon UI extensions])
       
   224 AC_ARG_WITH(hildon,
       
   225             AC_HELP_STRING([--with-hildon],
       
   226                            [Use Hildon UI extensions [default=no]]),
       
   227             [],[with_hildon="no"])
       
   228 AC_MSG_RESULT([$with_hildon])
       
   229 
       
   230 if test "$with_hildon" = "yes"; then
       
   231     HILDON_CPPFLAGS="-DMAEMO_CHANGES"
       
   232     PKG_CHECK_MODULES([HILDON], [hildon-1])
       
   233     AC_SUBST([HILDON_CPPFLAGS])
       
   234     AC_SUBST([HILDON_CFLAGS])
       
   235     AC_SUBST([HILDON_LIBS])
       
   236 fi
       
   237 
       
   238 # minimum base dependencies
       
   239 LIBSOUP_REQUIRED_VERSION=2.28.2
       
   240 CAIRO_REQUIRED_VERSION=1.6
       
   241 FONTCONFIG_REQUIRED_VERSION=2.4
       
   242 FREETYPE2_REQUIRED_VERSION=9.0
       
   243 LIBXML_REQUIRED_VERSION=2.6
       
   244 
       
   245 # minimum GTK+ base dependencies
       
   246 PANGO_REQUIRED_VERSION=1.12
       
   247 
       
   248 # optional modules
       
   249 LIBXSLT_REQUIRED_VERSION=1.1.7
       
   250 SQLITE_REQUIRED_VERSION=3.0
       
   251 GSTREAMER_REQUIRED_VERSION=0.10
       
   252 GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=0.10.25
       
   253 ENCHANT_REQUIRED_VERSION=0.22
       
   254 
       
   255 # Available modules
       
   256 #
       
   257 # glib - glib and includes gthread
       
   258 # unicode - check and identify which unicode backend to use
       
   259 #
       
   260 # todo: webcore gtk
       
   261 WEBKIT_CHECK_DEPENDENCIES([glib unicode])
       
   262 
       
   263 GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION
       
   264 AC_SUBST(GETTEXT_PACKAGE)
       
   265 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
       
   266                    [The gettext catalog name])
       
   267 
       
   268 PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION)
       
   269 AC_SUBST(LIBXML_CFLAGS)
       
   270 AC_SUBST(LIBXML_LIBS)
       
   271 
       
   272 PKG_CHECK_MODULES(PANGO, 
       
   273                   [pango >= $PANGO_REQUIRED_VERSION
       
   274                    pangoft2])
       
   275 AC_SUBST(PANGO_CFLAGS)
       
   276 AC_SUBST(PANGO_LIBS)
       
   277 
       
   278 PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION)
       
   279 AC_SUBST(ENCHANT_CFLAGS)
       
   280 AC_SUBST(ENCHANT_LIBS)
       
   281 
       
   282 PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION)
       
   283 AC_SUBST(GAIL_CFLAGS)
       
   284 AC_SUBST(GAIL_LIBS)
       
   285 
       
   286 # check for target-specific dependencies
       
   287 if test "$with_target" = "directfb"; then
       
   288    PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION)
       
   289    PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION)
       
   290    AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB])
       
   291 else
       
   292    PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION)
       
   293    PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION)
       
   294 
       
   295    if test "$with_target" = "x11" && test "$os_win32" = "no"; then
       
   296       # check for XT
       
   297       PKG_CHECK_MODULES([XT],
       
   298                         [xt],
       
   299                         [xt_has_pkg_config=yes],
       
   300                         [xt_has_pkg_config=no])
       
   301       # some old versions of Xt do not provide xt.pc, so try to link against Xt
       
   302       # and if it's installed fall back to just adding -lXt
       
   303       if test "$xt_has_pkg_config" = "no"; then
       
   304          # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as
       
   305          # we don't care about the XtOpenDisplay symbol but only about the
       
   306          # existence of libXt
       
   307          AC_CHECK_LIB([Xt], [XtOpenDisplay],
       
   308                       [XT_CFLAGS=""; XT_LIBS="-lXt"],
       
   309                       [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])])
       
   310       fi
       
   311       AC_SUBST([XT_CFLAGS])
       
   312       AC_SUBST([XT_LIBS])
       
   313       AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11])
       
   314    fi
       
   315 fi
       
   316 AC_SUBST(GTK_CFLAGS)
       
   317 AC_SUBST(GTK_LIBS)
       
   318 AC_SUBST(CAIRO_CFLAGS)
       
   319 AC_SUBST(CAIRO_LIBS)
       
   320 
       
   321 # check whether to build with debugging enabled
       
   322 AC_MSG_CHECKING([whether to do a debug build])
       
   323 AC_ARG_ENABLE(debug,
       
   324               AC_HELP_STRING([--enable-debug],
       
   325                              [turn on debugging [default=no]]),
       
   326               [],[enable_debug="no"])
       
   327 AC_MSG_RESULT([$enable_debug])
       
   328 
       
   329 # check whether to enable optimized builds
       
   330 AC_MSG_CHECKING([whether to enable optimized builds])
       
   331 AC_ARG_ENABLE(optimizations,
       
   332               AC_HELP_STRING([--enable-optimizations],
       
   333                              [turn on optimize builds (GCC only)
       
   334                              [default=yes]]),
       
   335               [enable_optimizations=$enableval],
       
   336               [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi])
       
   337 AC_MSG_RESULT([$enable_optimizations])
       
   338 
       
   339 # check whether to enable 3D transforms support
       
   340 AC_MSG_CHECKING([whether to enable support for 3D Transforms])
       
   341 AC_ARG_ENABLE(3D_transforms,
       
   342               AC_HELP_STRING([--enable-3D-transforms],
       
   343                              [enable support for 3D transforms [default=no]]),
       
   344               [],[enable_3D_transforms="no"])
       
   345 AC_MSG_RESULT([$enable_3D_transforms])
       
   346 
       
   347 # check whether to enable channel messaging support
       
   348 AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support])
       
   349 AC_ARG_ENABLE(channel_messaging,
       
   350               AC_HELP_STRING([--enable-channel-messaging],
       
   351                              [enable HTML5 channel messaging support [default=yes]]),
       
   352               [],[enable_channel_messaging="yes"])
       
   353 AC_MSG_RESULT([$enable_channel_messaging])
       
   354 
       
   355 # check whether to enable JavaScript debugger/profiler support
       
   356 AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support])
       
   357 AC_ARG_ENABLE(javascript_debugger,
       
   358               AC_HELP_STRING([--enable-javascript-debugger],
       
   359                              [enable JavaScript debugger/profiler support [default=yes]]),
       
   360               [],[enable_javascript_debugger="yes"])
       
   361 AC_MSG_RESULT([$enable_javascript_debugger])
       
   362 
       
   363 # check whether to enable HTML5 Offline Web Applications support
       
   364 AC_MSG_CHECKING([whether to enable HTML5 offline web applications support])
       
   365 AC_ARG_ENABLE(offline_web_applications,
       
   366               AC_HELP_STRING([--enable-offline-web-applications],
       
   367                              [enable HTML5 offline web applications support [default=yes]]),
       
   368               [],[enable_offline_web_applications="yes"])
       
   369 AC_MSG_RESULT([$enable_offline_web_applications])
       
   370 
       
   371 # check whether to enable HTML5 client-side session and persitent storage support
       
   372 AC_MSG_CHECKING([whether to enable HTML5 client-side session and persistent storage support])
       
   373 AC_ARG_ENABLE(dom_storage,
       
   374               AC_HELP_STRING([--enable-dom-storage],
       
   375                              [enable HTML5 client-side session and persistent storage support [default=yes]]),
       
   376               [],[enable_dom_storage="yes"])
       
   377 AC_MSG_RESULT([$enable_dom_storage])
       
   378 
       
   379 # check whether to enable the indexed database API
       
   380 AC_MSG_CHECKING([whether to enable the indexed database API])
       
   381 AC_ARG_ENABLE(indexed_database,
       
   382               AC_HELP_STRING([--enable-indexeddb],
       
   383                              [enable the indexed database API [default=no]]),
       
   384               [],[enable_indexed_database="no"])
       
   385 AC_MSG_RESULT([$enable_indexed_database])
       
   386 
       
   387 # check whether to enable the speech input API
       
   388 AC_MSG_CHECKING([whether to enable the speech input API])
       
   389 AC_ARG_ENABLE(input_speech,
       
   390               AC_HELP_STRING([--enable-input-speech],
       
   391                              [enable the speech input API [default=no]]),
       
   392               [],[enable_input_speech="no"])
       
   393 AC_MSG_RESULT([$enable_input_speech])
       
   394 
       
   395 # check whether to build with database support
       
   396 AC_MSG_CHECKING([whether to enable HTML5 client-side database storage support])
       
   397 AC_ARG_ENABLE(database,
       
   398               AC_HELP_STRING([--enable-database],
       
   399                              [enable HTML5 client-side database storage support [default=yes]]),
       
   400               [],[enable_database="yes"])
       
   401 AC_MSG_RESULT([$enable_database])
       
   402 
       
   403 # check whether to build with server-sent events support
       
   404 AC_MSG_CHECKING([whether to enable HTML5 server-sent events support])
       
   405 AC_ARG_ENABLE(eventsource,
       
   406               AC_HELP_STRING([--enable-eventsource],
       
   407                              [enable HTML5 server-sent events support [default=yes]]),
       
   408               [],[enable_eventsource="yes"])
       
   409 AC_MSG_RESULT([$enable_eventsource])
       
   410 
       
   411 # check whether to build with icon database support
       
   412 AC_MSG_CHECKING([whether to enable icon database support])
       
   413 AC_ARG_ENABLE(icon_database,
       
   414               AC_HELP_STRING([--enable-icon-database],
       
   415                              [enable icon database [default=yes]]),
       
   416               [],[enable_icon_database="yes"])
       
   417 AC_MSG_RESULT([$enable_icon_database])
       
   418 
       
   419 # check whether to build with image resizer API support
       
   420 AC_MSG_CHECKING([whether to enable image resizer API support])
       
   421 AC_ARG_ENABLE(image_resizer,
       
   422               AC_HELP_STRING([--enable-image-resizer],
       
   423                              [enable image resizer [default=no]]),
       
   424               [],[enable_image_resizer="no"])
       
   425 AC_MSG_RESULT([$enable_image_resizer])
       
   426 
       
   427 # check whether to enable HTML5 datalist support
       
   428 AC_MSG_CHECKING([whether to enable HTML5 datalist support])
       
   429 AC_ARG_ENABLE(datalist,
       
   430               AC_HELP_STRING([--enable-datalist],
       
   431                              [enable HTML5 datalist support [default=yes]]),
       
   432               [],[enable_datalist="yes"])
       
   433 AC_MSG_RESULT([$enable_datalist])
       
   434 
       
   435 # check whether to enable HTML5 ruby support
       
   436 AC_MSG_CHECKING([whether to enable HTML5 ruby support])
       
   437 AC_ARG_ENABLE(ruby,
       
   438               AC_HELP_STRING([--enable-ruby],
       
   439                              [enable HTML5 ruby support [default=yes]]),
       
   440               [],[enable_ruby="yes"])
       
   441 AC_MSG_RESULT([$enable_ruby])
       
   442 
       
   443 # check whether to enable HTML5 sandbox iframe support
       
   444 AC_MSG_CHECKING([whether to enable HTML5 sandboxed iframe support])
       
   445 AC_ARG_ENABLE(sandbox,
       
   446               AC_HELP_STRING([--enable-sandbox],
       
   447                              [enable HTML5 sandboxed iframe support [default=yes]]),
       
   448               [],[enable_sandbox="yes"])
       
   449 AC_MSG_RESULT([$enable_sandbox])
       
   450 
       
   451 # check whether to enable HTML5 audio/video support
       
   452 AC_MSG_CHECKING([whether to enable HTML5 video support])
       
   453 AC_ARG_ENABLE(video,
       
   454               AC_HELP_STRING([--enable-video],
       
   455                              [enable HTML5 video support [default=yes]]),
       
   456               [],[enable_video="yes"])
       
   457 AC_MSG_RESULT([$enable_video])
       
   458 
       
   459 # check whether to enable XHTML-MP support
       
   460 AC_MSG_CHECKING([whether to enable XHTML-MP support])
       
   461 AC_ARG_ENABLE(xhtmlmp,
       
   462               AC_HELP_STRING([--enable-xhtmlmp],
       
   463                              [enable support for XHTML-MP [default=no]]),
       
   464               [],[enable_xhtmlmp="no"])
       
   465 AC_MSG_RESULT([$enable_xhtmlmp])
       
   466 
       
   467 # check whether to enable XPath support
       
   468 AC_MSG_CHECKING([whether to enable XPath support])
       
   469 AC_ARG_ENABLE(xpath,
       
   470               AC_HELP_STRING([--enable-xpath],
       
   471                              [enable support for XPath [default=yes]]),
       
   472               [],[enable_xpath="yes"])
       
   473 AC_MSG_RESULT([$enable_xpath])
       
   474 
       
   475 # check whether to enable XSLT support
       
   476 AC_MSG_CHECKING([whether to enable XSLT support])
       
   477 AC_ARG_ENABLE(xslt,
       
   478               AC_HELP_STRING([--enable-xslt],
       
   479                              [enable support for XSLT [default=yes]]),
       
   480               [],[enable_xslt="yes"])
       
   481 AC_MSG_RESULT([$enable_xslt])
       
   482 
       
   483 # check whether to enable geolocation support
       
   484 AC_MSG_CHECKING([whether to enable geolocation support])
       
   485 AC_ARG_ENABLE(geolocation,
       
   486               AC_HELP_STRING([--enable-geolocation],
       
   487                              [enable support for geolocation [default=no]]),
       
   488               [],[enable_geolocation="no"])
       
   489 AC_MSG_RESULT([$enable_geolocation])
       
   490 
       
   491 # check whether to enable MathML support
       
   492 AC_MSG_CHECKING([whether to enable MathML support])
       
   493 AC_ARG_ENABLE(mathml,
       
   494               AC_HELP_STRING([--enable-mathml],
       
   495                              [enable support for MathML [default=no]]),
       
   496               [],[enable_mathml="no"])
       
   497 AC_MSG_RESULT([$enable_mathml])
       
   498 
       
   499 # check whether to enable SVG support
       
   500 AC_MSG_CHECKING([whether to enable SVG support])
       
   501 AC_ARG_ENABLE(svg,
       
   502               AC_HELP_STRING([--enable-svg],
       
   503                              [enable support for SVG [default=yes]]),
       
   504               [],[enable_svg="yes"])
       
   505 AC_MSG_RESULT([$enable_svg])
       
   506 
       
   507 # check whether to enable WML support
       
   508 AC_MSG_CHECKING([whether to enable WML support])
       
   509 AC_ARG_ENABLE(wml,
       
   510               AC_HELP_STRING([--enable-wml],
       
   511                              [enable support for WML [default=no]]),
       
   512               [],[enable_wml="no"])
       
   513 AC_MSG_RESULT([$enable_wml])
       
   514 
       
   515 # check whether to enable SharedWorkers support
       
   516 AC_MSG_CHECKING([whether to enable SharedWorkers support])
       
   517 AC_ARG_ENABLE(shared_workers,
       
   518               AC_HELP_STRING([--enable-shared-workers],
       
   519                              [enable support for SharedWorkers [default=yes]]),
       
   520               [],[enable_shared_workers="yes"])
       
   521 AC_MSG_RESULT([$enable_shared_workers])
       
   522 
       
   523 # check whether to enable Web Workers support
       
   524 AC_MSG_CHECKING([whether to enable Web Workers support])
       
   525 AC_ARG_ENABLE(workers,
       
   526               AC_HELP_STRING([--enable-workers],
       
   527                              [enable support for Web Workers [default=yes]]),
       
   528               [],[enable_workers="yes"])
       
   529 AC_MSG_RESULT([$enable_workers])
       
   530 
       
   531 # check whether to enable directory upload support
       
   532 AC_MSG_CHECKING([whether to enable directory upload support])
       
   533 AC_ARG_ENABLE(directory_upload,
       
   534               AC_HELP_STRING([--enable-directory-upload],
       
   535                              [enable support for directory upload [default=no]]),
       
   536               [], [enable_directory_upload="no"])
       
   537 AC_MSG_RESULT([$enable_directory_upload])
       
   538 
       
   539 # turn off svg features if --disable-svg is requested
       
   540 if test "$enable_svg" = "no"; then
       
   541    enable_svg_animation=no
       
   542    enable_svg_fonts=no
       
   543    enable_svg_foreign_object=no
       
   544    enable_svg_as_image=no
       
   545    enable_svg_use=no
       
   546 fi
       
   547 
       
   548 # check whether to enable support for SVG animation
       
   549 AC_MSG_CHECKING([whether to enable support for SVG animation])
       
   550 AC_ARG_ENABLE(svg_animation,
       
   551               AC_HELP_STRING([--enable-svg-animation],
       
   552                              [enable support for SVG animation (experimental) [default=yes]]),
       
   553               [],[enable_svg_animation="yes"])
       
   554 AC_MSG_RESULT([$enable_svg_animation])
       
   555 
       
   556 # check whether to enable support for filters
       
   557 AC_MSG_CHECKING([whether to enable support for filters])
       
   558 AC_ARG_ENABLE(filters,
       
   559               AC_HELP_STRING([--enable-filters],
       
   560                              [enable support for filters (experimental) [default=yes]]),
       
   561               [],[enable_filters="yes"])
       
   562 AC_MSG_RESULT([$enable_filters])
       
   563 
       
   564 # check whether to enable support for SVG fonts
       
   565 AC_MSG_CHECKING([whether to enable support for SVG fonts])
       
   566 AC_ARG_ENABLE(svg_fonts,
       
   567               AC_HELP_STRING([--enable-svg-fonts],
       
   568                              [enable support for SVG fonts (experimental) [default=yes]]),
       
   569               [],[enable_svg_fonts="yes"])
       
   570 AC_MSG_RESULT([$enable_svg_fonts])
       
   571 
       
   572 # check whether to enable foreign objects support for SVG
       
   573 AC_MSG_CHECKING([whether to enable support for SVG foreign objects])
       
   574 AC_ARG_ENABLE(svg_foreign_object,
       
   575               AC_HELP_STRING([--enable-svg-foreign-object],
       
   576                              [enable support for SVG foreign objects (experimental) [default=yes]]),
       
   577               [],[enable_svg_foreign_object="yes"])
       
   578 AC_MSG_RESULT([$enable_svg_foreign_object])
       
   579 
       
   580 # check whether to enable SVG As Image support
       
   581 AC_MSG_CHECKING([whether to enable SVG as Image support])
       
   582 AC_ARG_ENABLE(svg_as_image,
       
   583               AC_HELP_STRING([--enable-svg-as-image],
       
   584                              [enable SVG as Image support (experimental) [default=yes]]),
       
   585               [],[enable_svg_as_image="yes"])
       
   586 AC_MSG_RESULT([$enable_svg_as_image])
       
   587 
       
   588 # check whether to enable SVG USE element support
       
   589 AC_MSG_CHECKING([whether to enable support for SVG use element])
       
   590 AC_ARG_ENABLE(svg_use,
       
   591               AC_HELP_STRING([--enable-svg-use],
       
   592                              [enable SVG use element support (experimental) [default=yes]]),
       
   593               [],[enable_svg_use="yes"])
       
   594 AC_MSG_RESULT([$enable_svg_use])
       
   595 
       
   596 # check for SVG features, enabling SVG if necessary
       
   597 if test "$enable_svg_animation" = "yes" || \
       
   598    test "$enable_svg_fonts" = "yes" || \
       
   599    test "$enable_svg_foreign_object" = "yes" || \
       
   600    test "$enable_svg_as_image" = "yes" || \
       
   601    test "$enable_svg_use" = "yes"; then
       
   602    svg_flags=yes
       
   603    if test "$enable_svg" = "no"; then
       
   604        AC_MSG_WARN([SVG feature(s) requested but SVG is disabled.. Enabling SVG support])
       
   605        enable_svg=yes
       
   606    fi
       
   607 fi
       
   608 
       
   609 # check whether to enable Web Socket support
       
   610 AC_MSG_CHECKING([whether to enable Web Sockets support])
       
   611 AC_ARG_ENABLE(web_sockets,
       
   612               AC_HELP_STRING([--enable-web-sockets],
       
   613                              [enable support for Web Sockets [default=no]]),
       
   614               [],[enable_web_sockets="no"])
       
   615 AC_MSG_RESULT([$enable_web_sockets])
       
   616 
       
   617 # check whether to enable Web Timing support
       
   618 AC_MSG_CHECKING([whether to enable Web Timing support])
       
   619 AC_ARG_ENABLE(web_timing,
       
   620               AC_HELP_STRING([--enable-web-timing],
       
   621                              [enable support for Web Timing [default=no]]),
       
   622               [],[enable_web_timing="no"])
       
   623 AC_MSG_RESULT([$enable_web_timing])
       
   624 
       
   625 # check whether to enable Blob.slice support
       
   626 AC_MSG_CHECKING([whether to enable Blob.slice support])
       
   627 AC_ARG_ENABLE(blob_slice,
       
   628               AC_HELP_STRING([--enable-blob-slice],
       
   629                              [enable support for Blob.slice [default=no]]),
       
   630               [],[enable_blob_slice="no"])
       
   631 AC_MSG_RESULT([$enable_blob_slice])
       
   632 
       
   633 # check whether to enable Fast Mobile Scrolling support
       
   634 AC_MSG_CHECKING([whether to enable Fast Mobile Scrolling])
       
   635 AC_ARG_ENABLE(fast_mobile_scrolling,
       
   636               AC_HELP_STRING([--enable-fast-mobile-scrolling],
       
   637                              [enable support for Fast Mobile Scrolling [default=no]]),
       
   638               [],[enable_fast_mobile_scrolling="no"])
       
   639 AC_MSG_RESULT([$enable_fast_mobile_scrolling])
       
   640 
       
   641 # check whether to enable FileReader support
       
   642 AC_MSG_CHECKING([whether to enable FileReader support])
       
   643 AC_ARG_ENABLE(file_reader,
       
   644               AC_HELP_STRING([--enable-file-reader],
       
   645                              [enable support for FileReader [default=no]]),
       
   646               [],[enable_file_reader="no"])
       
   647 AC_MSG_RESULT([$enable_file_reader])
       
   648 
       
   649 # check whether to enable FileWriter support
       
   650 AC_MSG_CHECKING([whether to enable FileWriter support])
       
   651 AC_ARG_ENABLE(file_writer,
       
   652               AC_HELP_STRING([--enable-file-writer],
       
   653                              [enable support for FileWriter [default=no]]),
       
   654               [],[enable_file_writer="no"])
       
   655 AC_MSG_RESULT([$enable_file_writer])
       
   656 
       
   657 # check whether to enable code coverage
       
   658 AC_MSG_CHECKING([whether to enable code coverage support])
       
   659 AC_ARG_ENABLE(coverage,
       
   660               AC_HELP_STRING([--enable-coverage],
       
   661                              [enable code coverage support [default=no]]),
       
   662               [],[enable_coverage="no"])
       
   663 AC_MSG_RESULT([$enable_coverage])
       
   664 
       
   665 # check whether to enable FastMalloc
       
   666 AC_MSG_CHECKING([whether to enable optimized memory allocator])
       
   667 AC_ARG_ENABLE(fast_malloc,
       
   668               AC_HELP_STRING([--enable-fast-malloc],
       
   669                              [enable optimized memory allocator default=yes, default=no for debug builds]),
       
   670               [],[if test "$enable_debug" = "yes"; then enable_fast_malloc="no"; else enable_fast_malloc="yes"; fi])
       
   671 AC_MSG_RESULT([$enable_fast_malloc])
       
   672 
       
   673 AC_MSG_CHECKING([whether to enable JIT compilation])
       
   674 AC_ARG_ENABLE([jit],
       
   675               AC_HELP_STRING([--enable-jit],
       
   676                              [Enable JIT compilation default=yes]),
       
   677               [],[enable_jit="yes"])
       
   678 if test "$enable_jit" = "yes"; then
       
   679     case "$host_cpu" in
       
   680         i*86|x86_64)
       
   681             AC_DEFINE([ENABLE_JIT], [1], [Define to enable JIT])
       
   682             AC_DEFINE([ENABLE_YARR], [1], [Define to enable YARR])
       
   683             AC_DEFINE([ENABLE_YARR_JIT], [1], [Define to enable YARR JIT])
       
   684             AC_DEFINE([ENABLE_JIT_OPTIMIZE_CALL], [1], [Define to enable optimizing calls])
       
   685             AC_DEFINE([ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS], [1], [Define to enable optimized property access])
       
   686             AC_DEFINE([ENABLE_JIT_OPTIMIZE_ARITHMETIC], [1], [Define to enable optimized arithmetic])
       
   687             case "$host_cpu" in
       
   688                 i*86)
       
   689                     AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_VA_LIST], [1], [Use stub va_list])
       
   690                 ;;
       
   691                 x86_64)
       
   692                     AC_DEFINE([WTF_USE_JIT_STUB_ARGUMENT_REGISTER], [1], [Use stub register])
       
   693                     AC_DEFINE([WTF_USE_ALTERNATE_JSIMMEDIATE], [1], [Use alternate JSImmediate])
       
   694                 ;;
       
   695             esac
       
   696         ;;
       
   697         *)
       
   698             enable_jit="no (CPU '$host_cpu' not supported)"
       
   699         ;;
       
   700     esac
       
   701 fi
       
   702 AC_MSG_RESULT([$enable_jit])
       
   703 
       
   704 # GObject Introspection
       
   705 AC_MSG_CHECKING([whether to enable GObject introspection support])
       
   706 AC_ARG_ENABLE([introspection],
       
   707   [AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)])],
       
   708   [],[enable_introspection=no])
       
   709 AC_MSG_RESULT([$enable_introspection])
       
   710 
       
   711 G_IR_SCANNER=
       
   712 G_IR_COMPILER=
       
   713 G_IR_GENERATE=
       
   714 GIRDIR=
       
   715 GIRTYPELIBDIR=
       
   716 
       
   717 if test "$enable_introspection" = "yes"; then
       
   718   GOBJECT_INTROSPECTION_REQUIRED=0.6.15
       
   719   PKG_CHECK_MODULES([INTROSPECTION],[gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED])
       
   720   
       
   721   G_IR_SCANNER="$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)"
       
   722   G_IR_COMPILER="$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)"
       
   723   G_IR_GENERATE="$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)"
       
   724   AC_DEFINE([ENABLE_INTROSPECTION],[1],[Define to enable GObject introspection support])
       
   725 fi
       
   726 
       
   727 AC_SUBST([G_IR_SCANNER])
       
   728 AC_SUBST([G_IR_COMPILER])
       
   729 AC_SUBST([G_IR_GENERATE])
       
   730 
       
   731 # determine the font backend
       
   732 AC_MSG_CHECKING([the font backend to use])
       
   733 AC_ARG_WITH(font_backend,
       
   734             AC_HELP_STRING([--with-font-backend=@<:@freetype/pango@:>@],
       
   735                            [Select font backend [default=freetype]]),
       
   736             [],[with_font_backend="freetype"])
       
   737 
       
   738 case "$with_font_backend" in
       
   739      freetype|pango) ;;
       
   740      *) AC_MSG_ERROR([Invalid font backend: must be freetype or pango.]) ;;
       
   741 esac
       
   742 AC_MSG_RESULT([$with_font_backend])
       
   743 
       
   744 # Add '-g' flag to gcc if it's debug build
       
   745 if test "$enable_debug" = "yes"; then
       
   746    CXXFLAGS="$CXXFLAGS -g"
       
   747    CFLAGS="$CFLAGS -g"
       
   748 else
       
   749    AC_DEFINE([NDEBUG], [1], [Define to disable debugging features])
       
   750 fi
       
   751 
       
   752 # Add the appropriate 'O' level for optimized builds
       
   753 if test "$enable_optimizations" = "yes"; then
       
   754    CXXFLAGS="$CXXFLAGS -O2"
       
   755    CFLAGS="$CFLAGS -O2"
       
   756 else
       
   757    CXXFLAGS="$CXXFLAGS -O0"
       
   758    CFLAGS="$CFLAGS -O0"
       
   759 fi
       
   760 
       
   761 PKG_CHECK_MODULES([LIBSOUP],
       
   762                   [libsoup-2.4 >= $LIBSOUP_REQUIRED_VERSION])
       
   763 AC_SUBST([LIBSOUP_CFLAGS])
       
   764 AC_SUBST([LIBSOUP_LIBS])
       
   765 
       
   766 # check if we can use libSoup 2.29.90 features
       
   767 PKG_CHECK_MODULES([LIBSOUP_2_29_90],
       
   768                   [libsoup-2.4 >= 2.29.90],
       
   769                   [have_libsoup_2_29_90=yes],
       
   770                   [have_libsoup_2_29_90=no])
       
   771 if test "$have_libsoup_2_29_90" = "yes"; then
       
   772    AC_DEFINE([HAVE_LIBSOUP_2_29_90], 1, [Whether libSoup 2.29.90 features are available])
       
   773 fi
       
   774 
       
   775 # check if FreeType/FontConfig are available
       
   776 if test "$with_font_backend" = "freetype"; then
       
   777    if test "$with_target" = "directfb"; then
       
   778    PKG_CHECK_MODULES([FREETYPE],
       
   779                      [fontconfig >= $FONTCONFIG_REQUIRED_VERSION
       
   780                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
       
   781    else
       
   782    PKG_CHECK_MODULES([FREETYPE],
       
   783                      [cairo-ft
       
   784                      fontconfig >= $FONTCONFIG_REQUIRED_VERSION
       
   785                      freetype2 >= $FREETYPE2_REQUIRED_VERSION])
       
   786    fi
       
   787    AC_SUBST([FREETYPE_CFLAGS])
       
   788    AC_SUBST([FREETYPE_LIBS])
       
   789 fi
       
   790 
       
   791 # check if sqlite 3 is available
       
   792 if test "$enable_icon_database" = "yes" || \
       
   793    test "$enable_database" = "yes" || \
       
   794    test "$enable_offline_web_applications" = "yes" || \
       
   795    test "$enable_dom_storage" = "yes"; then
       
   796    PKG_CHECK_MODULES([SQLITE3],
       
   797                      [sqlite3 >= $SQLITE_REQUIRED_VERSION],
       
   798                      [sqlite3_has_pkg_config=yes],
       
   799                      [sqlite3_has_pkg_config=no])
       
   800    if test "$sqlite3_has_pkg_config" = "no"; then
       
   801       AC_SEARCH_LIBS([sqlite3_open16], [sqlite3],
       
   802                      [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"],
       
   803                      [AC_MSG_ERROR([SQLite3 is required to enable Database support])])
       
   804    fi
       
   805    AC_SUBST([SQLITE3_CFLAGS])
       
   806    AC_SUBST([SQLITE3_LIBS])
       
   807 fi
       
   808 
       
   809 # check if libxslt is available
       
   810 if test "$enable_xslt" = "yes"; then
       
   811    PKG_CHECK_MODULES([LIBXSLT],[libxslt >= $LIBXSLT_REQUIRED_VERSION])
       
   812    AC_SUBST([LIBXSLT_CFLAGS])
       
   813    AC_SUBST([LIBXSLT_LIBS])
       
   814 fi
       
   815 
       
   816 # check if geoclue is available
       
   817 if test "$enable_geolocation" = "yes"; then
       
   818     PKG_CHECK_MODULES([GEOCLUE], [geoclue])
       
   819     AC_SUBST([GEOCLUE_CFLAGS])
       
   820     AC_SUBST([GEOCLUE_LIBS])
       
   821 fi
       
   822 
       
   823 # check if gstreamer is available
       
   824 if test "$enable_video" = "yes"; then
       
   825    PKG_CHECK_MODULES([GSTREAMER],
       
   826                      [gstreamer-0.10 >= $GSTREAMER_REQUIRED_VERSION
       
   827                      gstreamer-app-0.10
       
   828                      gstreamer-base-0.10
       
   829                      gstreamer-pbutils-0.10
       
   830                      gstreamer-plugins-base-0.10 >= $GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION
       
   831                      gstreamer-video-0.10])
       
   832    AC_SUBST([GSTREAMER_CFLAGS])
       
   833    AC_SUBST([GSTREAMER_LIBS])
       
   834 fi
       
   835 
       
   836 # check for code coverage support
       
   837 if test "$enable_coverage" = "yes"; then
       
   838    COVERAGE_CFLAGS="-MD"
       
   839    COVERAGE_LDFLAGS="-ftest-coverage -fprofile-arcs"
       
   840    AC_SUBST([COVERAGE_CFLAGS])
       
   841    AC_SUBST([COVERAGE_LDFLAGS])
       
   842 fi
       
   843 
       
   844 # check for HTML features
       
   845 if test "$enable_video" = "yes"; then
       
   846     html_flags=yes
       
   847 fi
       
   848 
       
   849 GTK_DOC_CHECK([1.10])
       
   850 
       
   851 # OS conditionals
       
   852 AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"])
       
   853 AM_CONDITIONAL([OS_UNIX],[test "$os_win32" = "no"])
       
   854 AM_CONDITIONAL([OS_LINUX],[test "$os_linux" = "yes"])
       
   855 AM_CONDITIONAL([OS_GNU],[test "$os_gnu" = "yes"])
       
   856 AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
       
   857 
       
   858 # target conditionals
       
   859 AM_CONDITIONAL([TARGET_X11], [test "$with_target" = "x11"])
       
   860 AM_CONDITIONAL([TARGET_WIN32], [test "$with_target" = "win32"])
       
   861 AM_CONDITIONAL([TARGET_QUARTZ], [test "$with_target" = "quartz"])
       
   862 AM_CONDITIONAL([TARGET_DIRECTFB], [test "$with_target" = "directfb"])
       
   863 
       
   864 # Unicode backend conditionals
       
   865 AM_CONDITIONAL([USE_ICU_UNICODE], [test "$with_unicode_backend" = "icu"])
       
   866 AM_CONDITIONAL([USE_GLIB_UNICODE], [test "$with_unicode_backend" = "glib"])
       
   867 
       
   868 # Font backend conditionals
       
   869 AM_CONDITIONAL([USE_FREETYPE], [test "$with_font_backend" = "freetype"])
       
   870 AM_CONDITIONAL([USE_PANGO], [test "$with_font_backend" = "pango"])
       
   871 
       
   872 # WebKit feature conditionals
       
   873 AM_CONDITIONAL([ENABLE_DEBUG],[test "$enable_debug" = "yes"])
       
   874 AM_CONDITIONAL([ENABLE_3D_TRANSFORMS],[test "$enable_3D_transforms" = "yes"])
       
   875 AM_CONDITIONAL([ENABLE_BLOB_SLICE],[test "$enable_blob_slice" = "yes"])
       
   876 AM_CONDITIONAL([ENABLE_CHANNEL_MESSAGING],[test "$enable_channel_messaging" = "yes"])
       
   877 AM_CONDITIONAL([ENABLE_JAVASCRIPT_DEBUGGER],[test "$enable_javascript_debugger" = "yes"])
       
   878 AM_CONDITIONAL([ENABLE_OFFLINE_WEB_APPLICATIONS],[test "$enable_offline_web_applications" = "yes"])
       
   879 AM_CONDITIONAL([ENABLE_DIRECTORY_UPLOAD],[test "$enable_directory_upload" = "yes"])
       
   880 AM_CONDITIONAL([ENABLE_DOM_STORAGE],[test "$enable_dom_storage" = "yes"])
       
   881 AM_CONDITIONAL([ENABLE_DATABASE],[test "$enable_database" = "yes"])
       
   882 AM_CONDITIONAL([ENABLE_DATALIST],[test "$enable_datalist" = "yes"])
       
   883 AM_CONDITIONAL([ENABLE_EVENTSOURCE],[test "$enable_eventsource" = "yes"])
       
   884 AM_CONDITIONAL([ENABLE_FAST_MOBILE_SCROLLING],[test "$enable_fast_mobile_scrolling" = "yes"])
       
   885 AM_CONDITIONAL([ENABLE_ICONDATABASE],[test "$enable_icon_database" = "yes"])
       
   886 AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
       
   887 AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
       
   888 AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
       
   889 AM_CONDITIONAL([ENABLE_XHTMLMP],[test "$enable_xhtmlmp" = "yes"])
       
   890 AM_CONDITIONAL([ENABLE_XPATH],[test "$enable_xpath" = "yes"])
       
   891 AM_CONDITIONAL([ENABLE_XSLT],[test "$enable_xslt" = "yes"])
       
   892 AM_CONDITIONAL([ENABLE_FILTERS],[test "$enable_filters" = "yes"])
       
   893 AM_CONDITIONAL([ENABLE_FILE_READER],[test "$enable_file_reader" = "yes"])
       
   894 AM_CONDITIONAL([ENABLE_FILE_WRITER],[test "$enable_file_writer" = "yes"])
       
   895 AM_CONDITIONAL([ENABLE_GEOLOCATION], [test "$enable_geolocation" = "yes"])
       
   896 AM_CONDITIONAL([ENABLE_MATHML], [test "$enable_mathml" = "yes"])
       
   897 AM_CONDITIONAL([ENABLE_RUBY],[test "$enable_ruby" = "yes"])
       
   898 AM_CONDITIONAL([ENABLE_SANDBOX],[test "$enable_sandbox" = "yes"])
       
   899 AM_CONDITIONAL([ENABLE_VIDEO],[test "$enable_video" = "yes"])
       
   900 AM_CONDITIONAL([ENABLE_NOTIFICATIONS],[test "$enable_notifications" = "yes"])
       
   901 AM_CONDITIONAL([ENABLE_ORIENTATION_EVENTS],[test "$enable_orientation_events" = "yes"])
       
   902 AM_CONDITIONAL([ENABLE_SVG],[test "$enable_svg" = "yes"])
       
   903 AM_CONDITIONAL([ENABLE_SVG_ANIMATION],[test "$enable_svg_animation" = "yes"])
       
   904 AM_CONDITIONAL([ENABLE_SVG_FONTS],[test "$enable_svg_fonts" = "yes"])
       
   905 AM_CONDITIONAL([ENABLE_SVG_FOREIGN_OBJECT],[test "$enable_svg_foreign_object" = "yes"])
       
   906 AM_CONDITIONAL([ENABLE_SVG_AS_IMAGE],[test "$enable_svg_as_image" = "yes"])
       
   907 AM_CONDITIONAL([ENABLE_SVG_USE],[test "$enable_svg_use" = "yes"])
       
   908 AM_CONDITIONAL([ENABLE_COVERAGE],[test "$enable_coverage" = "yes"])
       
   909 AM_CONDITIONAL([ENABLE_FAST_MALLOC],[test "$enable_fast_malloc" = "yes"])
       
   910 AM_CONDITIONAL([ENABLE_WML],[test "$enable_wml" = "yes"])
       
   911 AM_CONDITIONAL([ENABLE_WORKERS],[test "$enable_workers" = "yes"])
       
   912 AM_CONDITIONAL([ENABLE_SHARED_WORKERS],[test "$enable_shared_workers" = "yes"])
       
   913 AM_CONDITIONAL([SVG_FLAGS],[test "$svg_flags" = "yes"])
       
   914 AM_CONDITIONAL([HTML_FLAGS],[test "$html_flags" = "yes"])
       
   915 AM_CONDITIONAL([ENABLE_WEB_SOCKETS],[test "$enable_web_sockets" = "yes"])
       
   916 AM_CONDITIONAL([ENABLE_WEB_TIMING],[test "$enable_web_timing" = "yes"])
       
   917 
       
   918 # Gtk conditionals
       
   919 AM_CONDITIONAL([ENABLE_INTROSPECTION],[test "$enable_introspection" = "yes"])
       
   920 
       
   921 
       
   922 AC_CONFIG_FILES([
       
   923 GNUmakefile
       
   924 WebKit/gtk/webkit/webkitversion.h
       
   925 WebKit/gtk/docs/GNUmakefile
       
   926 WebKit/gtk/docs/version.xml
       
   927 ]
       
   928 )
       
   929 
       
   930 AC_CONFIG_FILES([
       
   931 WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:WebKit/gtk/webkit.pc.in
       
   932 WebKit/gtk/JSCore-${WEBKITGTK_API_VERSION}.gir:WebKit/gtk/JSCore.gir.in]
       
   933 ,[WEBKITGTK_API_VERSION=$WEBKITGTK_API_VERSION,WEBKITGTK_PC_NAME=$WEBKITGTK_PC_NAME]
       
   934 )
       
   935 
       
   936 AC_OUTPUT
       
   937 
       
   938 echo "
       
   939 WebKit was configured with the following options:
       
   940 
       
   941 Build configuration:
       
   942  Enable debugging (slow)                                  : $enable_debug
       
   943  Enable GCC build optimization                            : $enable_optimizations
       
   944  Code coverage support                                    : $enable_coverage
       
   945  Unicode backend                                          : $with_unicode_backend
       
   946  Font backend                                             : $with_font_backend
       
   947  Optimized memory allocator                               : $enable_fast_malloc
       
   948 Features:
       
   949  3D Transforms                                            : $enable_3D_transforms
       
   950  Blob.slice support                                       : $enable_blob_slice
       
   951  Directory upload                                         : $enable_directory_upload
       
   952  Fast Mobile Scrolling                                    : $enable_fast_mobile_scrolling
       
   953  JIT compilation                                          : $enable_jit
       
   954  Filters support                                          : $enable_filters
       
   955  FileReader support                                       : $enable_file_reader
       
   956  FileWriter support                                       : $enable_file_writer
       
   957  Geolocation support                                      : $enable_geolocation
       
   958  JavaScript debugger/profiler support                     : $enable_javascript_debugger
       
   959  MathML support                                           : $enable_mathml
       
   960  HTML5 offline web applications support                   : $enable_offline_web_applications
       
   961  HTML5 channel messaging support                          : $enable_channel_messaging
       
   962  HTML5 client-side session and persistent storage support : $enable_dom_storage
       
   963  HTML5 client-side database storage support               : $enable_database
       
   964  HTML5 ruby support                                       : $enable_ruby
       
   965  HTML5 sandboxed iframe support                           : $enable_sandbox
       
   966  HTML5 server-sent events support                         : $enable_eventsource
       
   967  HTML5 video element support                              : $enable_video
       
   968  Icon database support                                    : $enable_icon_database
       
   969  Image resizer support                                    : $enable_image_resizer
       
   970  SharedWorkers support                                    : $enable_shared_workers
       
   971  Speech input support                                     : $enable_input_speech
       
   972  SVG support                                              : $enable_svg
       
   973  SVG animation support                                    : $enable_svg_animation
       
   974  SVG fonts support                                        : $enable_svg_fonts
       
   975  SVG foreign object support                               : $enable_svg_foreign_object
       
   976  SVG as image support                                     : $enable_svg_as_image
       
   977  SVG use element support                                  : $enable_svg_use
       
   978  WML support                                              : $enable_wml
       
   979  Web Sockets support                                      : $enable_web_sockets
       
   980  Web Timing support                                       : $enable_web_timing
       
   981  Web Workers support                                      : $enable_workers
       
   982  XHTML-MP support                                         : $enable_xhtmlmp
       
   983  XPATH support                                            : $enable_xpath
       
   984  XSLT support                                             : $enable_xslt
       
   985 GTK+ configuration:
       
   986  GTK+ version                                             : $with_gtk
       
   987  GDK target                                               : $with_target
       
   988  Hildon UI extensions                                     : $with_hildon
       
   989  Introspection support                                    : $enable_introspection
       
   990 "
       
   991 if test "$with_unicode_backend" = "glib"; then
       
   992    echo "     >> WARNING: the glib-based unicode backend is slow and incomplete <<"
       
   993    echo
       
   994    echo
       
   995 fi