qapi: allow unions to contain further unions
[qemu/armbru.git] / scripts / meson-buildoptions.sh
blob009fab151571c89982a7f33a4bcdec8ba9d90f20
1 # This file is generated by meson-buildoptions.py, do not edit!
2 meson_options_help() {
3 printf "%s\n" ' --audio-drv-list=CHOICES Set audio driver list [default] (choices: alsa/co'
4 printf "%s\n" ' reaudio/default/dsound/jack/oss/pa/sdl/sndio)'
5 printf "%s\n" ' --block-drv-ro-whitelist=VALUE'
6 printf "%s\n" ' set block driver read-only whitelist (by default'
7 printf "%s\n" ' affects only QEMU, not tools like qemu-img)'
8 printf "%s\n" ' --block-drv-rw-whitelist=VALUE'
9 printf "%s\n" ' set block driver read-write whitelist (by default'
10 printf "%s\n" ' affects only QEMU, not tools like qemu-img)'
11 printf "%s\n" ' --datadir=VALUE Data file directory [share]'
12 printf "%s\n" ' --disable-coroutine-pool coroutine freelist (better performance)'
13 printf "%s\n" ' --disable-hexagon-idef-parser'
14 printf "%s\n" ' use idef-parser to automatically generate TCG'
15 printf "%s\n" ' code for the Hexagon frontend'
16 printf "%s\n" ' --disable-install-blobs install provided firmware blobs'
17 printf "%s\n" ' --docdir=VALUE Base directory for documentation installation'
18 printf "%s\n" ' (can be empty) [share/doc]'
19 printf "%s\n" ' --enable-block-drv-whitelist-in-tools'
20 printf "%s\n" ' use block whitelist also in tools instead of only'
21 printf "%s\n" ' QEMU'
22 printf "%s\n" ' --enable-cfi Control-Flow Integrity (CFI)'
23 printf "%s\n" ' --enable-cfi-debug Verbose errors in case of CFI violation'
24 printf "%s\n" ' --enable-debug-mutex mutex debugging support'
25 printf "%s\n" ' --enable-debug-stack-usage'
26 printf "%s\n" ' measure coroutine stack usage'
27 printf "%s\n" ' --enable-fdt[=CHOICE] Whether and how to find the libfdt library'
28 printf "%s\n" ' (choices: auto/disabled/enabled/internal/system)'
29 printf "%s\n" ' --enable-fuzzing build fuzzing targets'
30 printf "%s\n" ' --enable-gcov Enable coverage tracking.'
31 printf "%s\n" ' --enable-gprof QEMU profiling with gprof'
32 printf "%s\n" ' --enable-lto Use link time optimization'
33 printf "%s\n" ' --enable-malloc=CHOICE choose memory allocator to use [system] (choices:'
34 printf "%s\n" ' jemalloc/system/tcmalloc)'
35 printf "%s\n" ' --enable-module-upgrades try to load modules from alternate paths for'
36 printf "%s\n" ' upgrades'
37 printf "%s\n" ' --enable-profiler profiler support'
38 printf "%s\n" ' --enable-qom-cast-debug cast debugging support'
39 printf "%s\n" ' --enable-rng-none dummy RNG, avoid using /dev/(u)random and'
40 printf "%s\n" ' getrandom()'
41 printf "%s\n" ' --enable-strip Strip targets on install'
42 printf "%s\n" ' --enable-tcg-interpreter TCG with bytecode interpreter (slow)'
43 printf "%s\n" ' --enable-trace-backends=CHOICES'
44 printf "%s\n" ' Set available tracing backends [log] (choices:'
45 printf "%s\n" ' dtrace/ftrace/log/nop/simple/syslog/ust)'
46 printf "%s\n" ' --firmwarepath=VALUES search PATH for firmware files [share/qemu-'
47 printf "%s\n" ' firmware]'
48 printf "%s\n" ' --iasl=VALUE Path to ACPI disassembler'
49 printf "%s\n" ' --includedir=VALUE Header file directory [include]'
50 printf "%s\n" ' --interp-prefix=VALUE where to find shared libraries etc., use %M for'
51 printf "%s\n" ' cpu name [/usr/gnemul/qemu-%M]'
52 printf "%s\n" ' --libdir=VALUE Library directory [system default]'
53 printf "%s\n" ' --libexecdir=VALUE Library executable directory [libexec]'
54 printf "%s\n" ' --localedir=VALUE Locale data directory [share/locale]'
55 printf "%s\n" ' --localstatedir=VALUE Localstate data directory [/var/local]'
56 printf "%s\n" ' --mandir=VALUE Manual page directory [share/man]'
57 printf "%s\n" ' --sphinx-build=VALUE Use specified sphinx-build for building document'
58 printf "%s\n" ' [sphinx-build]'
59 printf "%s\n" ' --sysconfdir=VALUE Sysconf data directory [etc]'
60 printf "%s\n" ' --tls-priority=VALUE Default TLS protocol/cipher priority string'
61 printf "%s\n" ' [NORMAL]'
62 printf "%s\n" ' --with-pkgversion=VALUE use specified string as sub-version of the'
63 printf "%s\n" ' package'
64 printf "%s\n" ' --with-trace-file=VALUE Trace file prefix for simple backend [trace]'
65 printf "%s\n" ''
66 printf "%s\n" 'Optional features, enabled with --enable-FEATURE and'
67 printf "%s\n" 'disabled with --disable-FEATURE, default is enabled if available'
68 printf "%s\n" '(unless built with --without-default-features):'
69 printf "%s\n" ''
70 printf "%s\n" ' alsa ALSA sound support'
71 printf "%s\n" ' attr attr/xattr support'
72 printf "%s\n" ' auth-pam PAM access control'
73 printf "%s\n" ' avx2 AVX2 optimizations'
74 printf "%s\n" ' avx512bw AVX512BW optimizations'
75 printf "%s\n" ' avx512f AVX512F optimizations'
76 printf "%s\n" ' blkio libblkio block device driver'
77 printf "%s\n" ' bochs bochs image format support'
78 printf "%s\n" ' bpf eBPF support'
79 printf "%s\n" ' brlapi brlapi character device driver'
80 printf "%s\n" ' bzip2 bzip2 support for DMG images'
81 printf "%s\n" ' canokey CanoKey support'
82 printf "%s\n" ' cap-ng cap_ng support'
83 printf "%s\n" ' capstone Whether and how to find the capstone library'
84 printf "%s\n" ' cloop cloop image format support'
85 printf "%s\n" ' cocoa Cocoa user interface (macOS only)'
86 printf "%s\n" ' coreaudio CoreAudio sound support'
87 printf "%s\n" ' crypto-afalg Linux AF_ALG crypto backend driver'
88 printf "%s\n" ' curl CURL block device driver'
89 printf "%s\n" ' curses curses UI'
90 printf "%s\n" ' dbus-display -display dbus support'
91 printf "%s\n" ' dmg dmg image format support'
92 printf "%s\n" ' docs Documentations build support'
93 printf "%s\n" ' dsound DirectSound sound support'
94 printf "%s\n" ' fuse FUSE block device export'
95 printf "%s\n" ' fuse-lseek SEEK_HOLE/SEEK_DATA support for FUSE exports'
96 printf "%s\n" ' gcrypt libgcrypt cryptography support'
97 printf "%s\n" ' gettext Localization of the GTK+ user interface'
98 printf "%s\n" ' gio use libgio for D-Bus support'
99 printf "%s\n" ' glusterfs Glusterfs block device driver'
100 printf "%s\n" ' gnutls GNUTLS cryptography support'
101 printf "%s\n" ' gtk GTK+ user interface'
102 printf "%s\n" ' gtk-clipboard clipboard support for the gtk UI (EXPERIMENTAL, MAY HANG)'
103 printf "%s\n" ' guest-agent Build QEMU Guest Agent'
104 printf "%s\n" ' guest-agent-msi Build MSI package for the QEMU Guest Agent'
105 printf "%s\n" ' hax HAX acceleration support'
106 printf "%s\n" ' hvf HVF acceleration support'
107 printf "%s\n" ' iconv Font glyph conversion support'
108 printf "%s\n" ' jack JACK sound support'
109 printf "%s\n" ' keyring Linux keyring support'
110 printf "%s\n" ' kvm KVM acceleration support'
111 printf "%s\n" ' l2tpv3 l2tpv3 network backend support'
112 printf "%s\n" ' libdaxctl libdaxctl support'
113 printf "%s\n" ' libdw debuginfo support'
114 printf "%s\n" ' libiscsi libiscsi userspace initiator'
115 printf "%s\n" ' libnfs libnfs block device driver'
116 printf "%s\n" ' libpmem libpmem support'
117 printf "%s\n" ' libssh ssh block device support'
118 printf "%s\n" ' libudev Use libudev to enumerate host devices'
119 printf "%s\n" ' libusb libusb support for USB passthrough'
120 printf "%s\n" ' libvduse build VDUSE Library'
121 printf "%s\n" ' linux-aio Linux AIO support'
122 printf "%s\n" ' linux-io-uring Linux io_uring support'
123 printf "%s\n" ' live-block-migration'
124 printf "%s\n" ' block migration in the main migration stream'
125 printf "%s\n" ' lzfse lzfse support for DMG images'
126 printf "%s\n" ' lzo lzo compression support'
127 printf "%s\n" ' malloc-trim enable libc malloc_trim() for memory optimization'
128 printf "%s\n" ' membarrier membarrier system call (for Linux 4.14+ or Windows'
129 printf "%s\n" ' mpath Multipath persistent reservation passthrough'
130 printf "%s\n" ' multiprocess Out of process device emulation support'
131 printf "%s\n" ' netmap netmap network backend support'
132 printf "%s\n" ' nettle nettle cryptography support'
133 printf "%s\n" ' numa libnuma support'
134 printf "%s\n" ' nvmm NVMM acceleration support'
135 printf "%s\n" ' opengl OpenGL support'
136 printf "%s\n" ' oss OSS sound support'
137 printf "%s\n" ' pa PulseAudio sound support'
138 printf "%s\n" ' parallels parallels image format support'
139 printf "%s\n" ' png PNG support with libpng'
140 printf "%s\n" ' pvrdma Enable PVRDMA support'
141 printf "%s\n" ' qcow1 qcow1 image format support'
142 printf "%s\n" ' qed qed image format support'
143 printf "%s\n" ' qga-vss build QGA VSS support (broken with MinGW)'
144 printf "%s\n" ' rbd Ceph block device driver'
145 printf "%s\n" ' rdma Enable RDMA-based migration'
146 printf "%s\n" ' replication replication support'
147 printf "%s\n" ' sdl SDL user interface'
148 printf "%s\n" ' sdl-image SDL Image support for icons'
149 printf "%s\n" ' seccomp seccomp support'
150 printf "%s\n" ' selinux SELinux support in qemu-nbd'
151 printf "%s\n" ' slirp libslirp user mode network backend support'
152 printf "%s\n" ' slirp-smbd use smbd (at path --smbd=*) in slirp networking'
153 printf "%s\n" ' smartcard CA smartcard emulation support'
154 printf "%s\n" ' snappy snappy compression support'
155 printf "%s\n" ' sndio sndio sound support'
156 printf "%s\n" ' sparse sparse checker'
157 printf "%s\n" ' spice Spice server support'
158 printf "%s\n" ' spice-protocol Spice protocol support'
159 printf "%s\n" ' tcg TCG support'
160 printf "%s\n" ' tools build support utilities that come with QEMU'
161 printf "%s\n" ' tpm TPM support'
162 printf "%s\n" ' u2f U2F emulation support'
163 printf "%s\n" ' usb-redir libusbredir support'
164 printf "%s\n" ' vde vde network backend support'
165 printf "%s\n" ' vdi vdi image format support'
166 printf "%s\n" ' vduse-blk-export'
167 printf "%s\n" ' VDUSE block export support'
168 printf "%s\n" ' vfio-user-server'
169 printf "%s\n" ' vfio-user server support'
170 printf "%s\n" ' vhost-crypto vhost-user crypto backend support'
171 printf "%s\n" ' vhost-kernel vhost kernel backend support'
172 printf "%s\n" ' vhost-net vhost-net kernel acceleration support'
173 printf "%s\n" ' vhost-user vhost-user backend support'
174 printf "%s\n" ' vhost-user-blk-server'
175 printf "%s\n" ' build vhost-user-blk server'
176 printf "%s\n" ' vhost-vdpa vhost-vdpa kernel backend support'
177 printf "%s\n" ' virglrenderer virgl rendering support'
178 printf "%s\n" ' virtfs virtio-9p support'
179 printf "%s\n" ' vmnet vmnet.framework network backend support'
180 printf "%s\n" ' vnc VNC server'
181 printf "%s\n" ' vnc-jpeg JPEG lossy compression for VNC server'
182 printf "%s\n" ' vnc-sasl SASL authentication for VNC server'
183 printf "%s\n" ' vte vte support for the gtk UI'
184 printf "%s\n" ' vvfat vvfat image format support'
185 printf "%s\n" ' whpx WHPX acceleration support'
186 printf "%s\n" ' xen Xen backend support'
187 printf "%s\n" ' xen-pci-passthrough'
188 printf "%s\n" ' Xen PCI passthrough support'
189 printf "%s\n" ' xkbcommon xkbcommon support'
190 printf "%s\n" ' zstd zstd compression support'
192 _meson_option_parse() {
193 case $1 in
194 --enable-alsa) printf "%s" -Dalsa=enabled ;;
195 --disable-alsa) printf "%s" -Dalsa=disabled ;;
196 --enable-attr) printf "%s" -Dattr=enabled ;;
197 --disable-attr) printf "%s" -Dattr=disabled ;;
198 --audio-drv-list=*) quote_sh "-Daudio_drv_list=$2" ;;
199 --enable-auth-pam) printf "%s" -Dauth_pam=enabled ;;
200 --disable-auth-pam) printf "%s" -Dauth_pam=disabled ;;
201 --enable-avx2) printf "%s" -Davx2=enabled ;;
202 --disable-avx2) printf "%s" -Davx2=disabled ;;
203 --enable-avx512bw) printf "%s" -Davx512bw=enabled ;;
204 --disable-avx512bw) printf "%s" -Davx512bw=disabled ;;
205 --enable-avx512f) printf "%s" -Davx512f=enabled ;;
206 --disable-avx512f) printf "%s" -Davx512f=disabled ;;
207 --enable-gcov) printf "%s" -Db_coverage=true ;;
208 --disable-gcov) printf "%s" -Db_coverage=false ;;
209 --enable-lto) printf "%s" -Db_lto=true ;;
210 --disable-lto) printf "%s" -Db_lto=false ;;
211 --enable-blkio) printf "%s" -Dblkio=enabled ;;
212 --disable-blkio) printf "%s" -Dblkio=disabled ;;
213 --block-drv-ro-whitelist=*) quote_sh "-Dblock_drv_ro_whitelist=$2" ;;
214 --block-drv-rw-whitelist=*) quote_sh "-Dblock_drv_rw_whitelist=$2" ;;
215 --enable-block-drv-whitelist-in-tools) printf "%s" -Dblock_drv_whitelist_in_tools=true ;;
216 --disable-block-drv-whitelist-in-tools) printf "%s" -Dblock_drv_whitelist_in_tools=false ;;
217 --enable-bochs) printf "%s" -Dbochs=enabled ;;
218 --disable-bochs) printf "%s" -Dbochs=disabled ;;
219 --enable-bpf) printf "%s" -Dbpf=enabled ;;
220 --disable-bpf) printf "%s" -Dbpf=disabled ;;
221 --enable-brlapi) printf "%s" -Dbrlapi=enabled ;;
222 --disable-brlapi) printf "%s" -Dbrlapi=disabled ;;
223 --enable-bzip2) printf "%s" -Dbzip2=enabled ;;
224 --disable-bzip2) printf "%s" -Dbzip2=disabled ;;
225 --enable-canokey) printf "%s" -Dcanokey=enabled ;;
226 --disable-canokey) printf "%s" -Dcanokey=disabled ;;
227 --enable-cap-ng) printf "%s" -Dcap_ng=enabled ;;
228 --disable-cap-ng) printf "%s" -Dcap_ng=disabled ;;
229 --enable-capstone) printf "%s" -Dcapstone=enabled ;;
230 --disable-capstone) printf "%s" -Dcapstone=disabled ;;
231 --enable-cfi) printf "%s" -Dcfi=true ;;
232 --disable-cfi) printf "%s" -Dcfi=false ;;
233 --enable-cfi-debug) printf "%s" -Dcfi_debug=true ;;
234 --disable-cfi-debug) printf "%s" -Dcfi_debug=false ;;
235 --enable-cloop) printf "%s" -Dcloop=enabled ;;
236 --disable-cloop) printf "%s" -Dcloop=disabled ;;
237 --enable-cocoa) printf "%s" -Dcocoa=enabled ;;
238 --disable-cocoa) printf "%s" -Dcocoa=disabled ;;
239 --enable-coreaudio) printf "%s" -Dcoreaudio=enabled ;;
240 --disable-coreaudio) printf "%s" -Dcoreaudio=disabled ;;
241 --enable-coroutine-pool) printf "%s" -Dcoroutine_pool=true ;;
242 --disable-coroutine-pool) printf "%s" -Dcoroutine_pool=false ;;
243 --enable-crypto-afalg) printf "%s" -Dcrypto_afalg=enabled ;;
244 --disable-crypto-afalg) printf "%s" -Dcrypto_afalg=disabled ;;
245 --enable-curl) printf "%s" -Dcurl=enabled ;;
246 --disable-curl) printf "%s" -Dcurl=disabled ;;
247 --enable-curses) printf "%s" -Dcurses=enabled ;;
248 --disable-curses) printf "%s" -Dcurses=disabled ;;
249 --datadir=*) quote_sh "-Ddatadir=$2" ;;
250 --enable-dbus-display) printf "%s" -Ddbus_display=enabled ;;
251 --disable-dbus-display) printf "%s" -Ddbus_display=disabled ;;
252 --enable-debug-mutex) printf "%s" -Ddebug_mutex=true ;;
253 --disable-debug-mutex) printf "%s" -Ddebug_mutex=false ;;
254 --enable-debug-stack-usage) printf "%s" -Ddebug_stack_usage=true ;;
255 --disable-debug-stack-usage) printf "%s" -Ddebug_stack_usage=false ;;
256 --enable-dmg) printf "%s" -Ddmg=enabled ;;
257 --disable-dmg) printf "%s" -Ddmg=disabled ;;
258 --docdir=*) quote_sh "-Ddocdir=$2" ;;
259 --enable-docs) printf "%s" -Ddocs=enabled ;;
260 --disable-docs) printf "%s" -Ddocs=disabled ;;
261 --enable-dsound) printf "%s" -Ddsound=enabled ;;
262 --disable-dsound) printf "%s" -Ddsound=disabled ;;
263 --enable-fdt) printf "%s" -Dfdt=enabled ;;
264 --disable-fdt) printf "%s" -Dfdt=disabled ;;
265 --enable-fdt=*) quote_sh "-Dfdt=$2" ;;
266 --enable-fuse) printf "%s" -Dfuse=enabled ;;
267 --disable-fuse) printf "%s" -Dfuse=disabled ;;
268 --enable-fuse-lseek) printf "%s" -Dfuse_lseek=enabled ;;
269 --disable-fuse-lseek) printf "%s" -Dfuse_lseek=disabled ;;
270 --enable-fuzzing) printf "%s" -Dfuzzing=true ;;
271 --disable-fuzzing) printf "%s" -Dfuzzing=false ;;
272 --enable-gcrypt) printf "%s" -Dgcrypt=enabled ;;
273 --disable-gcrypt) printf "%s" -Dgcrypt=disabled ;;
274 --enable-gettext) printf "%s" -Dgettext=enabled ;;
275 --disable-gettext) printf "%s" -Dgettext=disabled ;;
276 --enable-gio) printf "%s" -Dgio=enabled ;;
277 --disable-gio) printf "%s" -Dgio=disabled ;;
278 --enable-glusterfs) printf "%s" -Dglusterfs=enabled ;;
279 --disable-glusterfs) printf "%s" -Dglusterfs=disabled ;;
280 --enable-gnutls) printf "%s" -Dgnutls=enabled ;;
281 --disable-gnutls) printf "%s" -Dgnutls=disabled ;;
282 --enable-gprof) printf "%s" -Dgprof=true ;;
283 --disable-gprof) printf "%s" -Dgprof=false ;;
284 --enable-gtk) printf "%s" -Dgtk=enabled ;;
285 --disable-gtk) printf "%s" -Dgtk=disabled ;;
286 --enable-gtk-clipboard) printf "%s" -Dgtk_clipboard=enabled ;;
287 --disable-gtk-clipboard) printf "%s" -Dgtk_clipboard=disabled ;;
288 --enable-guest-agent) printf "%s" -Dguest_agent=enabled ;;
289 --disable-guest-agent) printf "%s" -Dguest_agent=disabled ;;
290 --enable-guest-agent-msi) printf "%s" -Dguest_agent_msi=enabled ;;
291 --disable-guest-agent-msi) printf "%s" -Dguest_agent_msi=disabled ;;
292 --enable-hax) printf "%s" -Dhax=enabled ;;
293 --disable-hax) printf "%s" -Dhax=disabled ;;
294 --enable-hexagon-idef-parser) printf "%s" -Dhexagon_idef_parser=true ;;
295 --disable-hexagon-idef-parser) printf "%s" -Dhexagon_idef_parser=false ;;
296 --enable-hvf) printf "%s" -Dhvf=enabled ;;
297 --disable-hvf) printf "%s" -Dhvf=disabled ;;
298 --iasl=*) quote_sh "-Diasl=$2" ;;
299 --enable-iconv) printf "%s" -Diconv=enabled ;;
300 --disable-iconv) printf "%s" -Diconv=disabled ;;
301 --includedir=*) quote_sh "-Dincludedir=$2" ;;
302 --enable-install-blobs) printf "%s" -Dinstall_blobs=true ;;
303 --disable-install-blobs) printf "%s" -Dinstall_blobs=false ;;
304 --interp-prefix=*) quote_sh "-Dinterp_prefix=$2" ;;
305 --enable-jack) printf "%s" -Djack=enabled ;;
306 --disable-jack) printf "%s" -Djack=disabled ;;
307 --enable-keyring) printf "%s" -Dkeyring=enabled ;;
308 --disable-keyring) printf "%s" -Dkeyring=disabled ;;
309 --enable-kvm) printf "%s" -Dkvm=enabled ;;
310 --disable-kvm) printf "%s" -Dkvm=disabled ;;
311 --enable-l2tpv3) printf "%s" -Dl2tpv3=enabled ;;
312 --disable-l2tpv3) printf "%s" -Dl2tpv3=disabled ;;
313 --enable-libdaxctl) printf "%s" -Dlibdaxctl=enabled ;;
314 --disable-libdaxctl) printf "%s" -Dlibdaxctl=disabled ;;
315 --libdir=*) quote_sh "-Dlibdir=$2" ;;
316 --enable-libdw) printf "%s" -Dlibdw=enabled ;;
317 --disable-libdw) printf "%s" -Dlibdw=disabled ;;
318 --libexecdir=*) quote_sh "-Dlibexecdir=$2" ;;
319 --enable-libiscsi) printf "%s" -Dlibiscsi=enabled ;;
320 --disable-libiscsi) printf "%s" -Dlibiscsi=disabled ;;
321 --enable-libnfs) printf "%s" -Dlibnfs=enabled ;;
322 --disable-libnfs) printf "%s" -Dlibnfs=disabled ;;
323 --enable-libpmem) printf "%s" -Dlibpmem=enabled ;;
324 --disable-libpmem) printf "%s" -Dlibpmem=disabled ;;
325 --enable-libssh) printf "%s" -Dlibssh=enabled ;;
326 --disable-libssh) printf "%s" -Dlibssh=disabled ;;
327 --enable-libudev) printf "%s" -Dlibudev=enabled ;;
328 --disable-libudev) printf "%s" -Dlibudev=disabled ;;
329 --enable-libusb) printf "%s" -Dlibusb=enabled ;;
330 --disable-libusb) printf "%s" -Dlibusb=disabled ;;
331 --enable-libvduse) printf "%s" -Dlibvduse=enabled ;;
332 --disable-libvduse) printf "%s" -Dlibvduse=disabled ;;
333 --enable-linux-aio) printf "%s" -Dlinux_aio=enabled ;;
334 --disable-linux-aio) printf "%s" -Dlinux_aio=disabled ;;
335 --enable-linux-io-uring) printf "%s" -Dlinux_io_uring=enabled ;;
336 --disable-linux-io-uring) printf "%s" -Dlinux_io_uring=disabled ;;
337 --enable-live-block-migration) printf "%s" -Dlive_block_migration=enabled ;;
338 --disable-live-block-migration) printf "%s" -Dlive_block_migration=disabled ;;
339 --localedir=*) quote_sh "-Dlocaledir=$2" ;;
340 --localstatedir=*) quote_sh "-Dlocalstatedir=$2" ;;
341 --enable-lzfse) printf "%s" -Dlzfse=enabled ;;
342 --disable-lzfse) printf "%s" -Dlzfse=disabled ;;
343 --enable-lzo) printf "%s" -Dlzo=enabled ;;
344 --disable-lzo) printf "%s" -Dlzo=disabled ;;
345 --enable-malloc=*) quote_sh "-Dmalloc=$2" ;;
346 --enable-malloc-trim) printf "%s" -Dmalloc_trim=enabled ;;
347 --disable-malloc-trim) printf "%s" -Dmalloc_trim=disabled ;;
348 --mandir=*) quote_sh "-Dmandir=$2" ;;
349 --enable-membarrier) printf "%s" -Dmembarrier=enabled ;;
350 --disable-membarrier) printf "%s" -Dmembarrier=disabled ;;
351 --enable-module-upgrades) printf "%s" -Dmodule_upgrades=true ;;
352 --disable-module-upgrades) printf "%s" -Dmodule_upgrades=false ;;
353 --enable-mpath) printf "%s" -Dmpath=enabled ;;
354 --disable-mpath) printf "%s" -Dmpath=disabled ;;
355 --enable-multiprocess) printf "%s" -Dmultiprocess=enabled ;;
356 --disable-multiprocess) printf "%s" -Dmultiprocess=disabled ;;
357 --enable-netmap) printf "%s" -Dnetmap=enabled ;;
358 --disable-netmap) printf "%s" -Dnetmap=disabled ;;
359 --enable-nettle) printf "%s" -Dnettle=enabled ;;
360 --disable-nettle) printf "%s" -Dnettle=disabled ;;
361 --enable-numa) printf "%s" -Dnuma=enabled ;;
362 --disable-numa) printf "%s" -Dnuma=disabled ;;
363 --enable-nvmm) printf "%s" -Dnvmm=enabled ;;
364 --disable-nvmm) printf "%s" -Dnvmm=disabled ;;
365 --enable-opengl) printf "%s" -Dopengl=enabled ;;
366 --disable-opengl) printf "%s" -Dopengl=disabled ;;
367 --enable-oss) printf "%s" -Doss=enabled ;;
368 --disable-oss) printf "%s" -Doss=disabled ;;
369 --enable-pa) printf "%s" -Dpa=enabled ;;
370 --disable-pa) printf "%s" -Dpa=disabled ;;
371 --enable-parallels) printf "%s" -Dparallels=enabled ;;
372 --disable-parallels) printf "%s" -Dparallels=disabled ;;
373 --with-pkgversion=*) quote_sh "-Dpkgversion=$2" ;;
374 --enable-png) printf "%s" -Dpng=enabled ;;
375 --disable-png) printf "%s" -Dpng=disabled ;;
376 --enable-profiler) printf "%s" -Dprofiler=true ;;
377 --disable-profiler) printf "%s" -Dprofiler=false ;;
378 --enable-pvrdma) printf "%s" -Dpvrdma=enabled ;;
379 --disable-pvrdma) printf "%s" -Dpvrdma=disabled ;;
380 --enable-qcow1) printf "%s" -Dqcow1=enabled ;;
381 --disable-qcow1) printf "%s" -Dqcow1=disabled ;;
382 --enable-qed) printf "%s" -Dqed=enabled ;;
383 --disable-qed) printf "%s" -Dqed=disabled ;;
384 --firmwarepath=*) quote_sh "-Dqemu_firmwarepath=$(meson_option_build_array $2)" ;;
385 --enable-qga-vss) printf "%s" -Dqga_vss=enabled ;;
386 --disable-qga-vss) printf "%s" -Dqga_vss=disabled ;;
387 --enable-qom-cast-debug) printf "%s" -Dqom_cast_debug=true ;;
388 --disable-qom-cast-debug) printf "%s" -Dqom_cast_debug=false ;;
389 --enable-rbd) printf "%s" -Drbd=enabled ;;
390 --disable-rbd) printf "%s" -Drbd=disabled ;;
391 --enable-rdma) printf "%s" -Drdma=enabled ;;
392 --disable-rdma) printf "%s" -Drdma=disabled ;;
393 --enable-replication) printf "%s" -Dreplication=enabled ;;
394 --disable-replication) printf "%s" -Dreplication=disabled ;;
395 --enable-rng-none) printf "%s" -Drng_none=true ;;
396 --disable-rng-none) printf "%s" -Drng_none=false ;;
397 --enable-sdl) printf "%s" -Dsdl=enabled ;;
398 --disable-sdl) printf "%s" -Dsdl=disabled ;;
399 --enable-sdl-image) printf "%s" -Dsdl_image=enabled ;;
400 --disable-sdl-image) printf "%s" -Dsdl_image=disabled ;;
401 --enable-seccomp) printf "%s" -Dseccomp=enabled ;;
402 --disable-seccomp) printf "%s" -Dseccomp=disabled ;;
403 --enable-selinux) printf "%s" -Dselinux=enabled ;;
404 --disable-selinux) printf "%s" -Dselinux=disabled ;;
405 --enable-slirp) printf "%s" -Dslirp=enabled ;;
406 --disable-slirp) printf "%s" -Dslirp=disabled ;;
407 --enable-slirp-smbd) printf "%s" -Dslirp_smbd=enabled ;;
408 --disable-slirp-smbd) printf "%s" -Dslirp_smbd=disabled ;;
409 --enable-smartcard) printf "%s" -Dsmartcard=enabled ;;
410 --disable-smartcard) printf "%s" -Dsmartcard=disabled ;;
411 --enable-snappy) printf "%s" -Dsnappy=enabled ;;
412 --disable-snappy) printf "%s" -Dsnappy=disabled ;;
413 --enable-sndio) printf "%s" -Dsndio=enabled ;;
414 --disable-sndio) printf "%s" -Dsndio=disabled ;;
415 --enable-sparse) printf "%s" -Dsparse=enabled ;;
416 --disable-sparse) printf "%s" -Dsparse=disabled ;;
417 --sphinx-build=*) quote_sh "-Dsphinx_build=$2" ;;
418 --enable-spice) printf "%s" -Dspice=enabled ;;
419 --disable-spice) printf "%s" -Dspice=disabled ;;
420 --enable-spice-protocol) printf "%s" -Dspice_protocol=enabled ;;
421 --disable-spice-protocol) printf "%s" -Dspice_protocol=disabled ;;
422 --enable-strip) printf "%s" -Dstrip=true ;;
423 --disable-strip) printf "%s" -Dstrip=false ;;
424 --sysconfdir=*) quote_sh "-Dsysconfdir=$2" ;;
425 --enable-tcg) printf "%s" -Dtcg=enabled ;;
426 --disable-tcg) printf "%s" -Dtcg=disabled ;;
427 --enable-tcg-interpreter) printf "%s" -Dtcg_interpreter=true ;;
428 --disable-tcg-interpreter) printf "%s" -Dtcg_interpreter=false ;;
429 --tls-priority=*) quote_sh "-Dtls_priority=$2" ;;
430 --enable-tools) printf "%s" -Dtools=enabled ;;
431 --disable-tools) printf "%s" -Dtools=disabled ;;
432 --enable-tpm) printf "%s" -Dtpm=enabled ;;
433 --disable-tpm) printf "%s" -Dtpm=disabled ;;
434 --enable-trace-backends=*) quote_sh "-Dtrace_backends=$2" ;;
435 --with-trace-file=*) quote_sh "-Dtrace_file=$2" ;;
436 --enable-u2f) printf "%s" -Du2f=enabled ;;
437 --disable-u2f) printf "%s" -Du2f=disabled ;;
438 --enable-usb-redir) printf "%s" -Dusb_redir=enabled ;;
439 --disable-usb-redir) printf "%s" -Dusb_redir=disabled ;;
440 --enable-vde) printf "%s" -Dvde=enabled ;;
441 --disable-vde) printf "%s" -Dvde=disabled ;;
442 --enable-vdi) printf "%s" -Dvdi=enabled ;;
443 --disable-vdi) printf "%s" -Dvdi=disabled ;;
444 --enable-vduse-blk-export) printf "%s" -Dvduse_blk_export=enabled ;;
445 --disable-vduse-blk-export) printf "%s" -Dvduse_blk_export=disabled ;;
446 --enable-vfio-user-server) printf "%s" -Dvfio_user_server=enabled ;;
447 --disable-vfio-user-server) printf "%s" -Dvfio_user_server=disabled ;;
448 --enable-vhost-crypto) printf "%s" -Dvhost_crypto=enabled ;;
449 --disable-vhost-crypto) printf "%s" -Dvhost_crypto=disabled ;;
450 --enable-vhost-kernel) printf "%s" -Dvhost_kernel=enabled ;;
451 --disable-vhost-kernel) printf "%s" -Dvhost_kernel=disabled ;;
452 --enable-vhost-net) printf "%s" -Dvhost_net=enabled ;;
453 --disable-vhost-net) printf "%s" -Dvhost_net=disabled ;;
454 --enable-vhost-user) printf "%s" -Dvhost_user=enabled ;;
455 --disable-vhost-user) printf "%s" -Dvhost_user=disabled ;;
456 --enable-vhost-user-blk-server) printf "%s" -Dvhost_user_blk_server=enabled ;;
457 --disable-vhost-user-blk-server) printf "%s" -Dvhost_user_blk_server=disabled ;;
458 --enable-vhost-vdpa) printf "%s" -Dvhost_vdpa=enabled ;;
459 --disable-vhost-vdpa) printf "%s" -Dvhost_vdpa=disabled ;;
460 --enable-virglrenderer) printf "%s" -Dvirglrenderer=enabled ;;
461 --disable-virglrenderer) printf "%s" -Dvirglrenderer=disabled ;;
462 --enable-virtfs) printf "%s" -Dvirtfs=enabled ;;
463 --disable-virtfs) printf "%s" -Dvirtfs=disabled ;;
464 --enable-vmnet) printf "%s" -Dvmnet=enabled ;;
465 --disable-vmnet) printf "%s" -Dvmnet=disabled ;;
466 --enable-vnc) printf "%s" -Dvnc=enabled ;;
467 --disable-vnc) printf "%s" -Dvnc=disabled ;;
468 --enable-vnc-jpeg) printf "%s" -Dvnc_jpeg=enabled ;;
469 --disable-vnc-jpeg) printf "%s" -Dvnc_jpeg=disabled ;;
470 --enable-vnc-sasl) printf "%s" -Dvnc_sasl=enabled ;;
471 --disable-vnc-sasl) printf "%s" -Dvnc_sasl=disabled ;;
472 --enable-vte) printf "%s" -Dvte=enabled ;;
473 --disable-vte) printf "%s" -Dvte=disabled ;;
474 --enable-vvfat) printf "%s" -Dvvfat=enabled ;;
475 --disable-vvfat) printf "%s" -Dvvfat=disabled ;;
476 --enable-whpx) printf "%s" -Dwhpx=enabled ;;
477 --disable-whpx) printf "%s" -Dwhpx=disabled ;;
478 --enable-xen) printf "%s" -Dxen=enabled ;;
479 --disable-xen) printf "%s" -Dxen=disabled ;;
480 --enable-xen-pci-passthrough) printf "%s" -Dxen_pci_passthrough=enabled ;;
481 --disable-xen-pci-passthrough) printf "%s" -Dxen_pci_passthrough=disabled ;;
482 --enable-xkbcommon) printf "%s" -Dxkbcommon=enabled ;;
483 --disable-xkbcommon) printf "%s" -Dxkbcommon=disabled ;;
484 --enable-zstd) printf "%s" -Dzstd=enabled ;;
485 --disable-zstd) printf "%s" -Dzstd=disabled ;;
486 *) return 1 ;;
487 esac