1 # Configuration flags that are used throughout WebKitGTK+.
2 AC_DEFINE([WTF_USE_GLIB], [1], [ ])
3 AC_DEFINE([WTF_USE_FREETYPE], [1], [ ])
4 AC_DEFINE([WTF_USE_HARFBUZZ], [1], [ ])
5 AC_DEFINE([WTF_USE_SOUP], [1], [ ])
6 AC_DEFINE([WTF_USE_WEBP], [1], [ ])
7 AC_DEFINE([WTF_USE_ICU_UNICODE], [1], [ ])
8 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext catalog name])
10 if test "$enable_debug" = "yes"; then
11 AC_DEFINE([GDK_PIXBUF_DISABLE_DEPRECATED], [1], [ ])
12 AC_DEFINE([GDK_DISABLE_DEPRECATED], [1], [ ])
13 AC_DEFINE([GTK_DISABLE_DEPRECATED], [1], [ ])
14 AC_DEFINE([PANGO_DISABLE_DEPRECATED], [1], [ ])
16 AC_DEFINE([NDEBUG], [1], [Define to disable debugging])
19 if test "$os_win32" = "no"; then
20 AC_CHECK_HEADERS([pthread.h],
21 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
22 AC_MSG_ERROR([pthread support is required to build WebKit]))
23 AC_CHECK_LIB(pthread, pthread_rwlock_init,
24 AC_DEFINE([HAVE_PTHREAD_RWLOCK],[1],[Define if pthread rwlock is present]),
25 AC_MSG_WARN([pthread rwlock support is not available]))
28 if test "$GTK_API_VERSION" = "2.0"; then
29 AC_DEFINE([GTK_API_VERSION_2], [1], [ ])
32 if test "$enable_webkit2" = "yes"; then
33 AC_DEFINE([ENABLE_PLUGIN_PROCESS], [1], [ ])
34 if test "$have_gtk_unix_printing" = "yes"; then
35 AC_DEFINE([HAVE_GTK_UNIX_PRINTING], [1], [Define if GTK+ UNIX Printing is available])
39 if test "$os_win32" = "yes"; then
40 AC_DEFINE([XP_WIN], [1], [ ])
41 AC_DEFINE([UNICODE], [1], [ ])
42 AC_DEFINE([_UNICODE], [1], [ ])
44 AC_DEFINE([XP_UNIX], [1], [ ])
47 if test "$with_target" = "x11"; then
48 AC_DEFINE([MOZ_X11], [1], [ ])
49 AC_DEFINE([WTF_PLATFORM_X11], [1], [Define if target is X11])
52 if test "$enable_fast_malloc" = "no"; then
53 AC_DEFINE([WTF_SYSTEM_MALLOC], [1], [ ])
56 if test "$enable_opcode_stats" = "yes"; then
57 AC_DEFINE([ENABLE_OPCODE_STATS], [1], [Define to enable Opcode statistics])
60 if test "$enable_introspection" = "yes"; then
61 AC_DEFINE([ENABLE_INTROSPECTION], [1], [Define to enable GObject introspection support])
64 if test "$have_gstreamer" = "yes"; then
65 AC_DEFINE([WTF_USE_GSTREAMER], [1], [ ])
66 if test "$enable_debug" = "yes"; then
67 AC_DEFINE([GST_DISABLE_DEPRECATED], [1], [ ])
70 if test "$enable_video" = "yes"; then
71 AC_DEFINE([WTF_USE_NATIVE_FULLSCREEN_VIDEO], [1], [ ])
75 AC_DEFINE([GST_API_VERSION_1], [1], [Using GStreamer 1.0])
77 if test "$enable_web_audio" = "yes"; then
78 AC_DEFINE([WTF_USE_WEBAUDIO_GSTREAMER], [1], [1])
81 if test "$enable_accelerated_compositing" = "yes"; then
82 AC_DEFINE([WTF_USE_ACCELERATED_COMPOSITING], [1], [ ])
83 AC_DEFINE([ENABLE_3D_RENDERING], [1], [ ])
85 if test "$with_acceleration_backend" = "none"; then
86 AC_DEFINE([DWTF_USE_TEXTURE_MAPPER], [1], [ ])
87 AC_DEFINE([DWTF_USE_TEXTURE_MAPPER_CAIRO], [1], [ ])
90 if test "$with_acceleration_backend" = "opengl"; then
91 AC_DEFINE([WTF_USE_TEXTURE_MAPPER], [1], [ ])
92 AC_DEFINE([WTF_USE_TEXTURE_MAPPER_GL], [1], [ ])
95 if test "$with_acceleration_backend" = "clutter"; then
96 AC_DEFINE([WTF_USE_CLUTTER], [1], [ ])
100 if test "$with_acceleration_backend" = "opengl"; then
101 AC_DEFINE([WTF_USE_OPENGL], [1], [ ])
104 if test "$enable_glx" = "yes"; then
105 AC_DEFINE([WTF_USE_GLX], [1], [ ])
108 if test "$enable_egl" = "yes"; then
109 AC_DEFINE([WTF_USE_EGL], [1], [ ])
112 if test "$enable_gles2" = "yes"; then
113 AC_DEFINE([WTF_USE_OPENGL_ES_2], [1], [ ])
116 if test "$enable_spellcheck" = "yes"; then
117 AC_DEFINE([ENABLE_SPELLCHECK], [1], [ ])