File: ReadCommandLineArguments.m4

package info (click to toggle)
webkitgtk 2.4.9-1~deb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 120,620 kB
  • ctags: 192,221
  • sloc: cpp: 1,034,319; ansic: 19,255; sh: 11,153; perl: 10,747; ruby: 8,592; asm: 4,378; python: 4,132; yacc: 2,072; lex: 350; makefile: 215; xml: 63
file content (234 lines) | stat: -rw-r--r-- 9,138 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
AC_MSG_CHECKING([whether to build WebKit1])
AC_ARG_ENABLE(webkit1, 
    AC_HELP_STRING([--enable-webkit1], [build WebKit1 [default=yes]]), 
    [],
    [enable_webkit1="yes"])
AC_MSG_RESULT([$enable_webkit1])

# If you change the default here, please also make sure the assumptions made
# in Tools/Scripts/webkitdirs.pm:buildAutotoolsProject still make sense.
AC_MSG_CHECKING([whether to build WebKit2])
AC_ARG_ENABLE(webkit2,
    AC_HELP_STRING([--enable-webkit2], [build WebKit2 [default=yes]]),
    [],
    [enable_webkit2="yes"])
AC_MSG_RESULT([$enable_webkit2])

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])

AC_MSG_CHECKING([whether to enable developer mode])
AC_ARG_ENABLE(developer-mode,
    AC_HELP_STRING([--enable-developer-mode], [development-oriented build (no symbols filter and builds testing harness) [default=no (yes for debug builds)]]),
    [enable_developer_mode=$enableval],
    [
        if test "$enable_debug" = "yes"; then
            enable_developer_mode="yes"
        else
            enable_developer_mode="no"
        fi
    ])
AC_MSG_RESULT([$enable_developer_mode])

AC_MSG_CHECKING([whether to enable optimized builds])
AC_ARG_ENABLE(optimizations, 
    AC_HELP_STRING([--enable-optimizations], [turn on build-time optimizations [default=yes]]),
    [enable_optimizations=$enableval],
    [
        if test "$enable_debug" = "yes"; then
            enable_optimizations="no";
        else
            enable_optimizations="yes";
        fi
    ])
AC_MSG_RESULT([$enable_optimizations])

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])

default_build_targets="x11=yes wayland=auto win32=no quartz=no directfb=no"
build_targets=""

AC_ARG_ENABLE([x11-target], [AC_HELP_STRING([--enable-x11-target], [enable building for the X11 target [default=yes]])],
    [build_targets="$build_targets x11=$enable_x11_target"], [])
AC_ARG_ENABLE([wayland-target], [AC_HELP_STRING([--enable-wayland-target], [enable building for the Wayland target [default=auto]])],
    [build_targets="$build_targets wayland=$enable_wayland_target"], [])
AC_ARG_ENABLE([win32-target], [AC_HELP_STRING([--enable-win32-target], [enable building for the Win32 target [default=no]])],
    [build_targets="$build_targets win32=$enable_win32_target"], [])
AC_ARG_ENABLE([quartz-target], [AC_HELP_STRING([--enable-quartz-target], [enable building for the Quartz target [default=no]])],
    [build_targets="$build_targets quartz=$enable_quartz_target"], [])
AC_ARG_ENABLE([directfb-target], [AC_HELP_STRING([--enable-directfb-target], [enable building for the DirectFB target [default=no]])],
    [build_targets="$build_targets directfb=$enable_directfb_target"], [])

if test "$build_targets" = ""; then
    build_targets="$default_build_targets"
fi

AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS([x11], [enable_x11_target], [build_targets])
AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS([wayland], [enable_wayland_target], [build_targets])
AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS([win32], [enable_win32_target], [build_targets])
AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS([quartz], [enable_quartz_target], [build_targets])
AM_WEBKIT_DETERMINE_BUILD_TARGET_STATUS([directfb], [enable_directfb_target], [build_targets])

AC_MSG_CHECKING([whether to build for the Win32 target])
AC_MSG_RESULT([$enable_win32_target])

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])

AC_MSG_CHECKING([whether to enable credential storage])
AC_ARG_ENABLE([credential_storage],
    [AS_HELP_STRING([--enable-credential-storage],[enable support for credential storage using libsecret [default=yes]])],
    [],
    [enable_credential_storage="yes"])
AC_MSG_RESULT([$enable_credential_storage])

AC_ARG_ENABLE(glx, 
    AC_HELP_STRING([--enable-glx], [enable support for GLX [default=auto]]),
    [],
    [enable_glx="auto"])

AC_ARG_ENABLE(egl, 
    AC_HELP_STRING([--enable-egl], [enable support for EGL [default=auto]]),
    [],
    [enable_egl="auto"])
AC_ARG_ENABLE(gles2, AC_HELP_STRING([--enable-gles2], [enable support for OpenGL ES 2 [default=auto]]), [], [enable_gles2="auto"])

AC_MSG_CHECKING([whether to enable Gamepad support])
AC_ARG_ENABLE(gamepad, 
    AC_HELP_STRING([--enable-gamepad], [enable Gamepad support [default=no]]), 
    [],
    [enable_gamepad="no"])
AC_MSG_RESULT([$enable_gamepad])

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])

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])

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])

AC_MSG_CHECKING([whether to enable support for SVG fonts])
AC_ARG_ENABLE(svg_fonts, 
    AC_HELP_STRING([--enable-svg-fonts], [enable support for SVG fonts (experimental) [default=yes]]),
    [],
    [enable_svg_fonts="yes"])
AC_MSG_RESULT([$enable_svg_fonts])

AC_MSG_CHECKING([whether to enable Web Audio support])
AC_ARG_ENABLE(web_audio, 
    AC_HELP_STRING([--enable-web-audio], [enable support for Web Audio [default=yes]]),
    [],
    [enable_web_audio="yes"])
AC_MSG_RESULT([$enable_web_audio])

AC_MSG_CHECKING([whether to enable Battery Status API support])
AC_ARG_ENABLE(battery_status,
    AC_HELP_STRING([--enable-battery-status], [enable support for Battery Status API [default=no]]),
    [],
    [enable_battery_status="no"])
AC_MSG_RESULT([$enable_battery_status])

AC_MSG_CHECKING([whether to enable code coverage support])
AC_ARG_ENABLE(coverage,
    AC_HELP_STRING([--enable-coverage], [enable code coverage support [default=no]]),
    [],
    [enable_coverage="no"])
AC_MSG_RESULT([$enable_coverage])

AC_MSG_CHECKING([whether to enable optimized memory allocator])
AC_ARG_ENABLE(fast_malloc, 
    AC_HELP_STRING([--enable-fast-malloc], [enable optimized memory allocator default=yes, default=no for debug builds]),
    [],
    [if test "$enable_debug" = "yes"; then
         enable_fast_malloc="no";
     else
         enable_fast_malloc="yes";
     fi])
AC_MSG_RESULT([$enable_fast_malloc])

AC_MSG_CHECKING([whether to enable debug symbols])
AC_ARG_ENABLE(debug_symbols,
    AC_HELP_STRING([--enable-debug-symbols=yes|no|min|full], [enable debug symbols default=no, default=yes for debug builds]),
    [
        case "$enable_debug_symbols" in
            yes) enable_debug_symbols="full" ;;
            no|min|full) ;;
            *) AC_MSG_ERROR([Invalid debug symbols option: must be yes, no, min or full.]) ;;
        esac
    ],
    [
         if test "$enable_debug" = "yes"; then
             enable_debug_symbols="yes";
         else
             enable_debug_symbols="no";
         fi
    ])
AC_MSG_RESULT([$enable_debug_symbols])

AC_MSG_CHECKING([whether to enable WebGL support])
AC_ARG_ENABLE(webgl, AC_HELP_STRING([--enable-webgl], [enable support for WebGL [default=auto]]),
    [],
    [enable_webgl="auto"])
AC_MSG_RESULT([$enable_webgl])

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=auto]]),
    [],
    [enable_accelerated_compositing="auto"])
AC_MSG_RESULT([$enable_accelerated_compositing])

AC_MSG_CHECKING([whether to enable JIT compilation])
AC_ARG_ENABLE(jit, AS_HELP_STRING([--enable-jit], [Enable JIT compilation (default: auto)]), [], [enable_jit=auto])
AC_MSG_RESULT([$enable_jit])

AC_MSG_CHECKING([whether to enable FTL JIT])
AC_ARG_ENABLE(ftl-jit, AS_HELP_STRING([--enable-ftl-jit], [Enable FTL JIT (experimental) (default: no)]), [], [enable_ftl_jit=no])
AC_MSG_RESULT([$enable_ftl_jit])

AC_MSG_CHECKING([whether to enable opcode stats])
AC_ARG_ENABLE([opcode-stats], 
    AS_HELP_STRING([--enable-opcode-stats], [Enable Opcode statistics (default: disabled)]),
    [],
    [enable_opcode_stats=no])
AC_MSG_RESULT([$enable_opcode_stats])

AC_MSG_CHECKING([whether to enable GObject introspection support])
AC_ARG_ENABLE([introspection], 
    AS_HELP_STRING([--enable-introspection],[Enable GObject introspection (default: disabled)]),
    [],
    [enable_introspection=no])
AC_MSG_RESULT([$enable_introspection])