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