AC_PREREQ(2.60) m4_define([webkit_major_version], [1]) m4_define([webkit_minor_version], [9]) m4_define([webkit_micro_version], [5]) # This is the version we'll be using as part of our User-Agent string # e.g., AppleWebKit/$(webkit_user_agent_version) ... # # Sourced from Source/WebCore/Configurations/Version.xcconfig m4_define([webkit_user_agent_major_version], [537]) m4_define([webkit_user_agent_minor_version], [1]) AC_INIT([WebKit],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/]) AC_CONFIG_MACRO_DIR([Source/autotools]) AC_CONFIG_AUX_DIR([Source/autotools]) AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools") AC_CONFIG_HEADERS([autotoolsconfig.h]) AC_CANONICAL_HOST WEBKIT_MAJOR_VERSION=webkit_major_version WEBKIT_MINOR_VERSION=webkit_minor_version WEBKIT_MICRO_VERSION=webkit_micro_version WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version AC_SUBST(WEBKIT_MAJOR_VERSION) AC_SUBST(WEBKIT_MINOR_VERSION) AC_SUBST(WEBKIT_MICRO_VERSION) AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION) AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION) AC_CONFIG_SRCDIR([Source/WebCore/config.h]) dnl # Libtool library version, not to confuse with API version dnl # see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html LIBWEBKITGTK_VERSION=15:0:15 AC_SUBST([LIBWEBKITGTK_VERSION]) LIBJAVASCRIPTCOREGTK_VERSION=13:4:13 AC_SUBST([LIBJAVASCRIPTCOREGTK_VERSION]) LIBWEBKIT2GTK_VERSION=16:0:16 AC_SUBST([LIBWEBKIT2GTK_VERSION]) AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar]) # Use AM_SILENT_RULES if present m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) # host checking - inspired by the GTK+ configure.in # TODO: move these to webkit.m4? AC_MSG_CHECKING([for native Win32]) case "$host" in *-*-mingw*) os_win32=yes ;; *) os_win32=no ;; esac AC_MSG_RESULT([$os_win32]) case "$host" in *-*-linux*) os_linux=yes ;; *-*-freebsd*) os_freebsd=yes ;; *-*-darwin*) os_darwin=yes ;; esac case "$host_os" in gnu* | linux* | k*bsd*-gnu) os_gnu=yes ;; *) os_gnu=no ;; esac # If CFLAGS and CXXFLAGS are unset, default to empty. # This is to tell automake not to include '-g' if C{XX,}FLAGS is not set # For more info - http://www.gnu.org/software/automake/manual/autoconf.html#C_002b_002b-Compiler if test -z "$CXXFLAGS"; then CXXFLAGS="" fi if test -z "$CFLAGS"; then CFLAGS="" fi PKG_PROG_PKG_CONFIG AC_PATH_PROG(PERL, perl) if test -z "$PERL"; then AC_MSG_ERROR([You need 'perl' to compile WebKit]) fi AC_PATH_PROG(PYTHON, python) if test -z "$PYTHON"; then AC_MSG_ERROR([You need 'python' to compile WebKit]) fi AC_PATH_PROG(RUBY, ruby) if test -z "$RUBY"; then AC_MSG_ERROR([You need 'ruby' to compile WebKit]) fi AC_PATH_PROG(BISON, bison) if test -z "$BISON"; then AC_MSG_ERROR([You need the 'bison' parser generator to compile WebKit]) fi AC_PATH_PROG(MV, mv) if test -z "$MV"; then AC_MSG_ERROR([You need 'mv' to compile WebKit]) fi AC_PROG_CC AC_PROG_CXX AM_PROG_CC_C_O AC_PROG_INSTALL AC_SYS_LARGEFILE # Check whether a C++ was found (AC_PROG_CXX sets $CXX to "g++" even when it # doesn't exist) AC_LANG_PUSH([C++]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],[],[AC_MSG_ERROR([No C++ compiler found])]) AC_LANG_POP([C++]) # C/C++ Language Features AC_C_CONST AC_C_INLINE AC_C_VOLATILE # C/C++ Headers AC_HEADER_STDC AC_HEADER_STDBOOL # Linker AC_DISABLE_STATIC AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL # use dolt to speedup the build DOLT AC_PATH_PROG(FLEX, flex) if test -z "$FLEX"; then AC_MSG_ERROR([You need the 'flex' lexer generator to compile WebKit]) else FLEX_VERSION=`$FLEX --version | sed 's,.*\ \([0-9]*\.[0-9]*\.[0-9]*\)$,\1,'` AX_COMPARE_VERSION([2.5.33],[gt],[$FLEX_VERSION], AC_MSG_WARN([You need at least version 2.5.33 of the 'flex' lexer generator to compile WebKit correctly])) fi AC_PATH_PROG(GPERF, gperf) if test -z "$GPERF"; then AC_MSG_ERROR([You need the 'gperf' hash function generator to compile WebKit]) fi # check for -fvisibility=hidden compiler support (GCC >= 4) saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden" AC_MSG_CHECKING([if ${CXX} supports -fvisibility=hidden -fvisibility-inlines-hidden]) AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])], [ AC_MSG_RESULT([yes]) SYMBOL_VISIBILITY="-fvisibility=hidden" SYMBOL_VISIBILITY_INLINES="-fvisibility-inlines-hidden" ], AC_MSG_RESULT([no])) CFLAGS="$saved_CFLAGS" AC_SUBST(SYMBOL_VISIBILITY) AC_SUBST(SYMBOL_VISIBILITY_INLINES) # Disable C++0x compat warnings for GCC >= 4.6.0 until we build # cleanly with that. AC_LANG_PUSH(C++) TMPCXXFLAGS=$CXXFLAGS CXXFLAGS="-Wall -Werror" AC_MSG_CHECKING([if we have to disable C++0x compat warnings for GCC >= 4.6.0]) AC_TRY_COMPILE([ namespace std { class nullptr_t { }; } extern std::nullptr_t nullptr; ], [return 0;], disable_cxx0x_compat=no, disable_cxx0x_compat=yes) AC_MSG_RESULT($disable_cxx0x_compat) if test "$disable_cxx0x_compat" = yes; then CXXFLAGS="$TMPCXXFLAGS -Wno-c++0x-compat" else CXXFLAGS="$TMPCXXFLAGS" fi AC_LANG_POP(C++) # pthread (not needed on Windows) if test "$os_win32" = "no"; then AC_CHECK_HEADERS([pthread.h], AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]), AC_MSG_ERROR([pthread support is required to build WebKit])) AC_CHECK_LIB(pthread, pthread_rwlock_init, AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]), AC_MSG_WARN([pthread rwlock support is not available])) fi # check for libjpeg the way Gtk does it. AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, jpeg_ok=yes, jpeg_ok=no AC_MSG_ERROR([JPEG library (libjpeg) not found])) if test "$jpeg_ok" = yes; then AC_MSG_CHECKING([for jpeglib]) AC_TRY_CPP( [#include #undef PACKAGE #undef VERSION #undef HAVE_STDLIB_H #include ], jpeg_ok=yes, jpeg_ok=no) AC_MSG_RESULT($jpeg_ok) if test "$jpeg_ok" = yes; then JPEG_LIBS="-ljpeg" # should we check for progressive JPEG like GTK+ as well? else AC_MSG_ERROR([JPEG library (libjpeg) not found]) fi fi AC_SUBST([JPEG_LIBS]) # Check for libpng the way Gtk+ does it for l in libpng libpng14 libpng12; do AC_MSG_CHECKING(for $l) if $PKG_CONFIG --exists $l ; then AC_MSG_RESULT(yes) PNG_LIBS=`$PKG_CONFIG --libs $l` png_ok=yes break else AC_MSG_RESULT(no) png_ok=no fi done if test "$png_ok" != yes; then AC_CHECK_LIB(png, png_read_info, [AC_CHECK_HEADER(png.h, png_ok=yes, png_ok=no)], AC_MSG_ERROR([PNG library (libpng) not found]), -lz -lm) if test "$png_ok" = yes; then AC_MSG_CHECKING([for png_structp in png.h]) AC_TRY_COMPILE([#include ], [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;], png_ok=yes, png_ok=no) AC_MSG_RESULT($png_ok) if test "$png_ok" = yes; then PNG_LIBS='-lpng -lz' else AC_MSG_ERROR([PNG library (libpng) not found]) fi else AC_MSG_ERROR([PNG library (libpng) not found]) fi fi AC_SUBST([PNG_LIBS]) if test "$os_win32" = "yes"; then WINMM_LIBS=-lwinmm SHLWAPI_LIBS=-lshlwapi OLE32_LIBS=-lole32 fi AC_SUBST([WINMM_LIBS]) AC_SUBST([SHLWAPI_LIBS]) AC_SUBST([OLE32_LIBS]) # determine the GTK+ version to use AC_MSG_CHECKING([the GTK+ version to use]) AC_ARG_WITH([gtk], [AS_HELP_STRING([--with-gtk=2.0|3.0], [the GTK+ version to use (default: 3.0)])], [case "$with_gtk" in 2.0|3.0) ;; *) AC_MSG_ERROR([invalid GTK+ version specified]) ;; esac], [with_gtk=3.0]) AC_MSG_RESULT([$with_gtk]) GTK2_REQUIRED_VERSION=2.10 GAIL2_REQUIRED_VERSION=1.8 GTK3_REQUIRED_VERSION=3.4.0 GAIL3_REQUIRED_VERSION=3.0 case "$with_gtk" in 2.0) GTK_REQUIRED_VERSION=$GTK2_REQUIRED_VERSION GTK_API_VERSION=2.0 WEBKITGTK_API_MAJOR_VERSION=1 WEBKITGTK_API_MINOR_VERSION=0 WEBKITGTK_API_VERSION=1.0 WEBKITGTK_PC_NAME=webkit GAIL_PC_NAME=gail GAIL_REQUIRED_VERSION=$GAIL2_REQUIRED_VERSION ;; 3.0) GTK_REQUIRED_VERSION=$GTK3_REQUIRED_VERSION GTK_API_VERSION=3.0 WEBKITGTK_API_MAJOR_VERSION=3 WEBKITGTK_API_MINOR_VERSION=0 WEBKITGTK_API_VERSION=3.0 WEBKITGTK_PC_NAME=webkitgtk GAIL_PC_NAME=gail-3.0 GAIL_REQUIRED_VERSION=$GAIL3_REQUIRED_VERSION ;; esac AC_SUBST([WEBKITGTK_API_MAJOR_VERSION]) AC_SUBST([WEBKITGTK_API_MINOR_VERSION]) AC_SUBST([WEBKITGTK_API_VERSION]) AC_SUBST([WEBKITGTK_PC_NAME]) AC_SUBST([GTK_API_VERSION]) AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"]) # determine the GDK/GTK+ target AC_MSG_CHECKING([the target windowing system]) AC_ARG_WITH(target, AC_HELP_STRING([--with-target=@<:@x11/win32/quartz/directfb@:>@], [Select webkit target [default=x11]]), [],[with_target="x11"]) case "$with_target" in x11|win32|quartz|directfb) ;; *) AC_MSG_ERROR([Invalid target: must be x11, quartz, win32, or directfb.]) ;; esac AC_MSG_RESULT([$with_target]) AC_MSG_CHECKING([the GStreamer version to use]) AC_ARG_WITH([gstreamer], [AS_HELP_STRING([--with-gstreamer=0.10|1.0], [the GStreamer version to use (default: 0.10)])], [case "$with_gstreamer" in 0.10|1.0) ;; *) AC_MSG_ERROR([invalid GStreamer version specified]) ;; esac], [with_gstreamer=0.10]) AC_MSG_RESULT([$with_gstreamer]) GSTREAMER_0_10_REQUIRED_VERSION=0.10 GSTREAMER_0_10_PLUGINS_BASE_REQUIRED_VERSION=0.10.30 GSTREAMER_1_0_REQUIRED_VERSION=0.11.90 GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION=0.11.90 case "$with_gstreamer" in 0.10) GSTREAMER_REQUIRED_VERSION=$GSTREAMER_0_10_REQUIRED_VERSION GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=$GSTREAMER_0_10_PLUGINS_BASE_REQUIRED_VERSION GST_API_VERSION=0.10 ;; 1.0) GSTREAMER_REQUIRED_VERSION=$GSTREAMER_1_0_REQUIRED_VERSION GSTREAMER_PLUGINS_BASE_REQUIRED_VERSION=$GSTREAMER_1_0_PLUGINS_BASE_REQUIRED_VERSION GST_API_VERSION=1.0 ;; esac AC_SUBST([GST_API_VERSION]) if test "$GST_API_VERSION" = "1.0"; then AC_DEFINE([GST_USE_UNSTABLE_API], [1], [Using unstable GStreamer API]) AC_DEFINE([GST_API_VERSION_1],[1], [Using GStreamer 1.0]) fi # minimum base dependencies CAIRO_REQUIRED_VERSION=1.10 FONTCONFIG_REQUIRED_VERSION=2.4 FREETYPE2_REQUIRED_VERSION=9.0 GLIB_REQUIRED_VERSION=2.32.0 LIBSOUP_REQUIRED_VERSION=2.39.2 LIBXML_REQUIRED_VERSION=2.6 PANGO_REQUIRED_VERSION=1.21.0 # optional modules LIBXSLT_REQUIRED_VERSION=1.1.7 SQLITE_REQUIRED_VERSION=3.0 ENCHANT_REQUIRED_VERSION=0.22 CLUTTER_REQUIRED_VERSION=1.8.2 CLUTTER_GTK_REQUIRED_VERSION=1.0.2 ATSPI2_REQUIRED_VERSION=2.2.1 # Check for glib and required utilities AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :, :, gmodule gobject gthread gio) if test -z "$GLIB_GENMARSHAL" || test -z "$GLIB_MKENUMS"; then AC_MSG_ERROR([You need the GLib dev tools in your path]) fi GLIB_GSETTINGS # Check and identify which unicode backend to use AC_MSG_CHECKING([which Unicode backend to use]) AC_ARG_WITH(unicode_backend, AC_HELP_STRING([--with-unicode-backend=@<:@icu/glib@:>@], [Select Unicode backend (WARNING: the glib-based backend is slow, and incomplete) [default=icu]]), [],[with_unicode_backend="icu"]) case "$with_unicode_backend" in icu|glib) ;; *) AC_MSG_ERROR([Invalid Unicode backend: must be icu or glib.]) ;; esac AC_MSG_RESULT([$with_unicode_backend]) if test "$with_unicode_backend" = "icu"; then # TODO: use pkg-config (after CFLAGS in their .pc files are cleaned up) case "$host" in *-*-darwin*) UNICODE_CFLAGS="-I$srcdir/Source/JavaScriptCore/icu -I$srcdir/Source/WebCore/icu" UNICODE_LIBS="-licucore" ;; *-*-mingw*) UNICODE_CFLAGS="" UNICODE_LIBS="-licui18n -licuuc" ;; *) AC_PATH_PROG(icu_config, icu-config, no) if test "$icu_config" = "no"; then AC_MSG_ERROR([Cannot find icu-config. The ICU library is needed.]) fi # We don't use --cflags as this gives us a lot of things that we don't # necessarily want, like debugging and optimization flags # See man (1) icu-config for more info. UNICODE_CFLAGS=`$icu_config --cppflags` UNICODE_LIBS=`$icu_config --ldflags-libsonly` ;; esac fi if test "$with_unicode_backend" = "glib"; then PKG_CHECK_MODULES([UNICODE], [glib-2.0 pango >= $PANGO_REQUIRED_VERSION]) fi AC_SUBST([UNICODE_CFLAGS]) AC_SUBST([UNICODE_LIBS]) PKG_CHECK_MODULES([ZLIB], [zlib]) AC_SUBST([ZLIB_CFLAGS]) AC_SUBST([ZLIB_LIBS]) GETTEXT_PACKAGE=$PACKAGE-$GTK_API_VERSION AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext catalog name]) PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED_VERSION) AC_SUBST(LIBXML_CFLAGS) AC_SUBST(LIBXML_LIBS) PKG_CHECK_MODULES(PANGO, [pango >= $PANGO_REQUIRED_VERSION pangoft2]) AC_SUBST(PANGO_CFLAGS) AC_SUBST(PANGO_LIBS) AC_MSG_CHECKING([whether to enable spellcheck support]) AC_ARG_ENABLE([spellcheck], [AS_HELP_STRING([--enable-spellcheck],[enable support for spellcheck])], [],[enable_spellcheck="yes"]) AC_MSG_RESULT([$enable_spellcheck]) if test "$enable_spellcheck" = "yes"; then PKG_CHECK_MODULES(ENCHANT, enchant >= $ENCHANT_REQUIRED_VERSION, [], [enable_spellcheck="no"]) AC_SUBST(ENCHANT_CFLAGS) AC_SUBST(ENCHANT_LIBS) fi # farstream-0.1 depends on gstreamer 0.10 currently. Disable # media_stream if gstreamer 0.11 build support is enabled. if test "$GST_API_VERSION" = "1.0"; then enable_media_stream=false fi if test "$enable_media_stream" = "yes"; then PKG_CHECK_MODULES([FARSTREAM], [farstream-0.1], [have_farstream=yes], [enable_media_stream=false]) AC_SUBST([FARSTREAM_CFLAGS]) AC_SUBST([FARSTREAM_LIBS]) fi PKG_CHECK_MODULES(GAIL, $GAIL_PC_NAME >= $GAIL_REQUIRED_VERSION) AC_SUBST(GAIL_CFLAGS) AC_SUBST(GAIL_LIBS) # check for target-specific dependencies if test "$with_target" = "directfb"; then PKG_CHECK_MODULES(CAIRO, cairo-directfb >= $CAIRO_REQUIRED_VERSION) PKG_CHECK_MODULES(GTK, gtk+-directfb-2.0 >= $GTK_REQUIRED_VERSION) AC_DEFINE([WTF_PLATFORM_DIRECTFB],[1],[Define if target is DirectFB]) else PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRED_VERSION) PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED_VERSION) if test "$with_target" = "x11" && test "$os_win32" = "no"; then # check for XT PKG_CHECK_MODULES([XT], [xt], [xt_has_pkg_config=yes], [xt_has_pkg_config=no]) # some old versions of Xt do not provide xt.pc, so try to link against Xt # and if it's installed fall back to just adding -lXt if test "$xt_has_pkg_config" = "no"; then # using AC_CHECK_LIB instead of AC_SEARCH_LIB is fine in this case as # we don't care about the XtOpenDisplay symbol but only about the # existence of libXt AC_CHECK_LIB([Xt], [XtOpenDisplay], [XT_CFLAGS=""; XT_LIBS="-lXt"], [AC_MSG_ERROR([X Toolkit Intrinsics library (libXt) not found])]) fi AC_SUBST([XT_CFLAGS]) AC_SUBST([XT_LIBS]) AC_DEFINE([WTF_PLATFORM_X11],[1],[Define if target is X11]) fi fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) AC_SUBST(CAIRO_CFLAGS) AC_SUBST(CAIRO_LIBS) # check whether to build with debugging enabled AC_MSG_CHECKING([whether to do a debug build]) AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [turn on debugging [default=no]]), [],[enable_debug="no"]) AC_MSG_RESULT([$enable_debug]) # check whether to enable optimized builds AC_MSG_CHECKING([whether to enable optimized builds]) AC_ARG_ENABLE(optimizations, AC_HELP_STRING([--enable-optimizations], [turn on optimize builds (GCC only) [default=yes]]), [enable_optimizations=$enableval], [if test "$enable_debug" = "yes"; then enable_optimizations="no"; else enable_optimizations="yes"; fi]) AC_MSG_RESULT([$enable_optimizations]) # check whether to enable unstable features AC_MSG_CHECKING([whether to enable unstable features]) AC_ARG_ENABLE(unstable_features, AC_HELP_STRING([--enable-unstable-features], [enable unstable features [default=no]]), [],[enable_unstable_features="no"]) AC_MSG_RESULT([$enable_unstable_features]) found_opengl="no" if test "$with_target" = "x11"; then AC_CHECK_HEADERS([GL/gl.h], [found_opengl="yes"], []) AC_CHECK_HEADERS([GL/glx.h], [], [found_opengl="no"]) fi AC_MSG_CHECKING([which GPU acceleration backend to use]) AC_ARG_WITH(acceleration_backend, AC_HELP_STRING([--with-acceleration-backend=@<:@opengl/clutter/none@:>@], [Select accelerated backend (Clutter currently unsupported, OpenGL autodetected) [default=autodetect]]), [], [ if test "$found_opengl" = "yes"; then with_acceleration_backend="opengl"; else with_acceleration_backend="none"; fi ]) AC_MSG_RESULT([$with_acceleration_backend]) # OpenGL is turned on by default (along with WebGL and accelerated compositing), but if # Clutter is chosen as the accelerated drawing backend, we want to disable it. COGL does # not play well with OpenGL. AC_MSG_CHECKING([whether to enable WebGL support]) AC_ARG_ENABLE(webgl, AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=check]]), [], [ if test "$with_acceleration_backend" = "opengl"; then enable_webgl="yes"; else enable_webgl="no"; fi ]) AC_MSG_RESULT([$enable_webgl]) if test "$enable_webgl" = "yes" && test "$with_acceleration_backend" != "opengl"; then AC_MSG_ERROR([OpenGL must be active (and Clutter disabled) to use WebGL.]) fi; AC_MSG_CHECKING([whether to enable accelerated compositing support]) AC_ARG_ENABLE(accelerated_compositing, AC_HELP_STRING([--enable-accelerated-compositing], [enable support for accelerated compositing [default=check]]), [ if test "$enableval" = "yes" && test "$with_acceleration_backend" = "none"; then AC_MSG_ERROR([OpenGL or Clutter must be active to use accelerated compositing.]) fi enable_accelerated_compositing=$enableval; ], [ if test "$with_acceleration_backend" != "none"; then enable_accelerated_compositing="yes"; else enable_accelerated_compositing="no"; fi ]) AC_MSG_RESULT([$enable_accelerated_compositing]) # check whether to enable channel messaging support AC_MSG_CHECKING([whether to enable HTML5 Channel Messaging support]) AC_ARG_ENABLE(channel_messaging, AC_HELP_STRING([--enable-channel-messaging], [enable HTML5 channel messaging support [default=yes]]), [],[enable_channel_messaging="yes"]) AC_MSG_RESULT([$enable_channel_messaging]) # check whether to enable legacy notifications AC_MSG_CHECKING([whether to enable legacy notifications]) AC_ARG_ENABLE(legacy_notifications, AC_HELP_STRING([--enable-legacy-notifications], [enable legacy notifications [default=no]]), [],[enable_legacy_notifications="no"]) AC_MSG_RESULT([$enable_legacy_notifications]) # check whether to enable notifications AC_MSG_CHECKING([whether to enable notifications]) AC_ARG_ENABLE(notifications, AC_HELP_STRING([--enable-notifications], [enable notifications [default=no]]), [],[enable_notifications="no"]) AC_MSG_RESULT([$enable_notifications]) # check whether to enable the meter tag AC_MSG_CHECKING([whether to enable HTML5 meter tag]) AC_ARG_ENABLE(meter_tag, AC_HELP_STRING([--enable-meter-tag], [enable HTML5 meter [default=yes]]), [],[enable_meter_tag="yes"]) AC_MSG_RESULT([$enable_meter_tag]) # check whether to enable HTML5 Microdata support AC_MSG_CHECKING([whether to enable HTML5 Microdata support]) AC_ARG_ENABLE(microdata, AC_HELP_STRING([--enable-microdata], [enable HTML5 microdata support [default=no]]), [],[enable_microdata="no"]) AC_MSG_RESULT([$enable_microdata]) # check whether to enable page visibility API. AC_MSG_CHECKING([whether to enable Page Visibility API support]) AC_ARG_ENABLE(page_visibility_api, AC_HELP_STRING([--enable-page-visibility-api], [enable page visibility api[default=no]]), [],[enable_page_visibility_api="no"]) AC_MSG_RESULT([$enable_page_visibility_api]) # check whether to enable the progress tag AC_MSG_CHECKING([whether to enable HTML5 progress tag]) AC_ARG_ENABLE(progress_tag, AC_HELP_STRING([--enable-progress-tag], [enable HTML5 progress [default=yes]]), [],[enable_progress_tag="yes"]) AC_MSG_RESULT([$enable_progress_tag]) # check whether to enable JavaScript debugger/profiler support AC_MSG_CHECKING([whether to enable JavaScript debugger/profiler support]) AC_ARG_ENABLE(javascript_debugger, AC_HELP_STRING([--enable-javascript-debugger], [enable JavaScript debugger/profiler support [default=yes]]), [],[enable_javascript_debugger="yes"]) AC_MSG_RESULT([$enable_javascript_debugger]) # check whether to enable Gamepad support AC_MSG_CHECKING([whether to enable Gamepad support]) AC_ARG_ENABLE(gamepad, AC_HELP_STRING([--enable-gamepad], [enable Gamepad support [default=no]]), [],[enable_gamepad=$enable_unstable_features]) AC_MSG_RESULT([$enable_gamepad]) if test "$enable_gamepad" = "yes" && test "$os_linux" = no; then AC_MSG_WARN([Gamepad support is only available on Linux. Disabling Gamepad support.]) enable_gamepad=no; fi # check whether to build with data transfer items support AC_MSG_CHECKING([whether to enable HTML5 data transfer items support]) AC_ARG_ENABLE(data_transfer_items, AC_HELP_STRING([--enable-data-transfer-items], [enable HTML5 data transfer items support [default=no]]), [],[enable_data_transfer_items="no"]) AC_MSG_RESULT([$enable_data_transfer_items]) # check whether to enable DOM mutation observer support AC_MSG_CHECKING([whether to enable DOM mutation observer support]) AC_ARG_ENABLE(mutation_observers, AC_HELP_STRING([--enable-mutation-observers], [enable DOM mutation observer support [default=no]]), [],[enable_mutation_observers=$enable_unstable_features]) AC_MSG_RESULT([$enable_mutation_observers]) # check whether to enable the indexed database API AC_MSG_CHECKING([whether to enable the indexed database API]) AC_ARG_ENABLE(indexed_database, AC_HELP_STRING([--enable-indexed-database], [enable the indexed database API (incomplete) [default=no]]), [],[enable_indexed_database="no"]) AC_MSG_RESULT([$enable_indexed_database]) # check whether to enable the color input AC_MSG_CHECKING([whether to enable the color input]) AC_ARG_ENABLE(input_type_color, AC_HELP_STRING([--enable-input-type-color], [enable the color input [default=no]]), [],[enable_input_type_color="no"]) AC_MSG_RESULT([$enable_input_type_color]) # check whether to enable the speech input API AC_MSG_CHECKING([whether to enable the speech input API]) AC_ARG_ENABLE(input_speech, AC_HELP_STRING([--enable-input-speech], [enable the speech input API [default=no]]), [],[enable_input_speech="no"]) AC_MSG_RESULT([$enable_input_speech]) # check whether to enable the scripted speech API AC_MSG_CHECKING([whether to enable the scripted speech API]) AC_ARG_ENABLE(scripted_speech, AC_HELP_STRING([--enable-scripted-speech], [enable the scripted speech API [default=no]]), [],[enable_scripted_speech="no"]) AC_MSG_RESULT([$enable_scripted_speech]) # check whether to build with SQL database support AC_MSG_CHECKING([whether to enable SQL client-side database storage support]) AC_ARG_ENABLE(sql_database, AC_HELP_STRING([--enable-sql-database], [enable SQL client-side database storage support [default=yes]]), [],[enable_sql_database="yes"]) AC_MSG_RESULT([$enable_sql_database]) # check whether to build with icon database support AC_MSG_CHECKING([whether to enable icon database support]) AC_ARG_ENABLE(icon_database, AC_HELP_STRING([--enable-icon-database], [enable icon database [default=yes]]), [],[enable_icon_database="yes"]) AC_MSG_RESULT([$enable_icon_database]) # check whether to enable HTML5 datalist support AC_MSG_CHECKING([whether to enable HTML5 datalist support]) AC_ARG_ENABLE(datalist, AC_HELP_STRING([--enable-datalist], [enable HTML5 datalist support [default=yes]]), [],[enable_datalist="yes"]) AC_MSG_RESULT([$enable_datalist]) # check whether to enable HTML5 iframe seamless attribute support AC_MSG_CHECKING([whether to enable HTML5 iframe seamless attribute support]) AC_ARG_ENABLE(iframe-seamless, AC_HELP_STRING([--enable-iframe-seamless], [enable HTML5 iframe seamless attribute support [default=yes]]), [],[enable_iframe_seamless="yes"]) AC_MSG_RESULT([$enable_iframe_seamless]) # check whether to enable HTML5 audio/video support AC_MSG_CHECKING([whether to enable HTML5 video support]) AC_ARG_ENABLE(video, AC_HELP_STRING([--enable-video], [enable HTML5 video support [default=yes]]), [],[enable_video="yes"]) AC_MSG_RESULT([$enable_video]) # turn off video features if --disable-video is requested if test "$enable_video" = "no"; then enable_video_track=no fi # check whether to enable HTML5 video track support AC_MSG_CHECKING([whether to enable HTML5 video track support]) AC_ARG_ENABLE(video_track, AC_HELP_STRING([--enable-video-track], [enable HTML5 video track support [default=no]]), [],[enable_video_track=$enable_unstable_features]) AC_MSG_RESULT([$enable_video_track]) # check whether to enable media source support AC_MSG_CHECKING([whether to enable media source support]) AC_ARG_ENABLE(media_source, AC_HELP_STRING([--enable-media-source], [enable support for media source [default=no]]), [], [enable_media_source="no"]) AC_MSG_RESULT([$enable_media_source]) # check whether to enable media statistics support AC_MSG_CHECKING([whether to enable media statistics support]) AC_ARG_ENABLE(media_statistics, AC_HELP_STRING([--enable-media-statistics], [enable support for media statistics [default=no]]), [], [enable_media_statistics="no"]) AC_MSG_RESULT([$enable_media_statistics]) # check whether to enable Javascript Fullscreen API support AC_MSG_CHECKING([whether to enable Fullscreen API support]) AC_ARG_ENABLE(fullscreen_api, AC_HELP_STRING([--enable-fullscreen-api], [enable the Fullscreen API support [default=yes]]), [],[enable_fullscreen_api="yes"]) AC_MSG_RESULT([$enable_fullscreen_api]) # check whether to enable media stream support AC_MSG_CHECKING([whether to enable media stream support]) AC_ARG_ENABLE(media_stream, AC_HELP_STRING([--enable-media-stream], [enable media stream support (incomplete) [default=no]]), [],[enable_media_stream=$enable_unstable_features]) AC_MSG_RESULT([$enable_media_stream]) # check whether to enable XSLT support AC_MSG_CHECKING([whether to enable XSLT support]) AC_ARG_ENABLE(xslt, AC_HELP_STRING([--enable-xslt], [enable support for XSLT [default=yes]]), [],[enable_xslt="yes"]) AC_MSG_RESULT([$enable_xslt]) # check whether to enable geolocation support AC_MSG_CHECKING([whether to enable geolocation support]) AC_ARG_ENABLE(geolocation, AC_HELP_STRING([--enable-geolocation], [enable support for geolocation [default=yes]]), [],[enable_geolocation="yes"]) AC_MSG_RESULT([$enable_geolocation]) # check whether to enable MathML support AC_MSG_CHECKING([whether to enable MathML support]) AC_ARG_ENABLE(mathml, AC_HELP_STRING([--enable-mathml], [enable support for MathML [default=yes]]), [],[enable_mathml="yes"]) AC_MSG_RESULT([$enable_mathml]) # check whether to enable MHTML support AC_MSG_CHECKING([whether to enable MHTML support]) AC_ARG_ENABLE(mhtml, AC_HELP_STRING([--enable-mhtml], [enable support for MHTML [default=yes]]), [],[enable_mhtml="yes"]) AC_MSG_RESULT([$enable_mhtml]) # check whether to enable SVG support AC_MSG_CHECKING([whether to enable SVG support]) AC_ARG_ENABLE(svg, AC_HELP_STRING([--enable-svg], [enable support for SVG [default=yes]]), [],[enable_svg="yes"]) AC_MSG_RESULT([$enable_svg]) # check whether to enable Shadow DOM support AC_MSG_CHECKING([whether to enable Shadow DOM support]) AC_ARG_ENABLE(shadow_dom, AC_HELP_STRING([--enable-shadow-dom], [enable support for Shadow DOM [default=yes]]), [],[enable_shadow_dom="yes"]) AC_MSG_RESULT([$enable_shadow_dom]) # check whether to enable SharedWorkers support AC_MSG_CHECKING([whether to enable SharedWorkers support]) AC_ARG_ENABLE(shared_workers, AC_HELP_STRING([--enable-shared-workers], [enable support for SharedWorkers [default=yes]]), [],[enable_shared_workers="yes"]) AC_MSG_RESULT([$enable_shared_workers]) # check whether to enable Web Workers support AC_MSG_CHECKING([whether to enable Web Workers support]) AC_ARG_ENABLE(workers, AC_HELP_STRING([--enable-workers], [enable support for Web Workers [default=yes]]), [],[enable_workers="yes"]) AC_MSG_RESULT([$enable_workers]) # check whether to enable directory upload support AC_MSG_CHECKING([whether to enable directory upload support]) AC_ARG_ENABLE(directory_upload, AC_HELP_STRING([--enable-directory-upload], [enable support for directory upload [default=no]]), [], [enable_directory_upload="no"]) AC_MSG_RESULT([$enable_directory_upload]) # check whether to enable HTML5 FileSystem API support AC_MSG_CHECKING([whether to enable HTML5 FileSystem API support]) AC_ARG_ENABLE(file_system, AC_HELP_STRING([--enable-file-system], [enable support for HTML5 FileSystem API [default=no]]), [], [enable_file_system="no"]) AC_MSG_RESULT([$enable_file_system]) # check whether to enable HTML5