]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: add secrets driver build option
authorPavel Hrdina <phrdina@redhat.com>
Fri, 27 Mar 2020 17:14:18 +0000 (18:14 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:00 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
configure.ac
meson.build
meson_options.txt

index 39c9a96abf2e223efafad961c27d4a4ca8a01242..d4aea7bb3addc042404750b52b9073e12ccd0d2e 100644 (file)
@@ -130,17 +130,6 @@ dnl Need to test if pkg-config exists
 PKG_PROG_PKG_CONFIG
 
 
-LIBVIRT_ARG_WITH_FEATURE([SECRETS], [local secrets management driver], [yes])
-
-if test "$with_libvirtd" = "no"; then
-  with_secrets=no
-fi
-if test "$with_secrets" = "yes" ; then
-  AC_DEFINE_UNQUOTED([WITH_SECRETS], 1, [whether local secrets management driver is available])
-fi
-AM_CONDITIONAL([WITH_SECRETS], [test "$with_secrets" = "yes"])
-
-
 dnl
 dnl Storage driver checks
 dnl
index d1e8df222a06f700a2a24955e44587bd71aa7d6b..8adc9377d285d6a3895191d0351af3960c2e9feb 100644 (file)
@@ -1834,6 +1834,10 @@ if not get_option('driver_qemu').disabled()
   endif
 endif
 
+if not get_option('driver_secrets').disabled() and conf.has('WITH_LIBVIRTD')
+  conf.set('WITH_SECRETS', 1)
+endif
+
 if get_option('driver_test').enabled()
   conf.set('WITH_TEST', 1)
 endif
index 830db589f577e6b929af5190dc4d11ed78c87844..0e9b46db89da04c699e04fa00d336f3140027143 100644 (file)
@@ -62,6 +62,7 @@ option('qemu_user', type: 'string', value: '', description: 'username to run QEM
 option('qemu_group', type: 'string', value: '', description: 'groupname to run QEMU system instance as')
 option('driver_remote', type: 'feature', value: 'enabled', description: 'remote driver')
 option('remote_default_mode', type: 'combo', choices: ['legacy', 'direct'], value: 'legacy', description: 'remote driver default mode')
+option('driver_secrets', type: 'feature', value: 'auto', description: 'local secrets management driver')
 option('driver_test', type: 'feature', value: 'enabled', description: 'test driver')
 option('driver_vbox', type: 'feature', value: 'enabled', description: 'VirtualBox XPCOMC driver')
 option('vbox_xpcomc_dir', type: 'string', value: '', description: 'Location of directory containing VirtualBox XPCOMC library')