AC_CANONICAL_HOST
-LIBVIRT_ARG_WITH([PACKAGER], [Extra packager name], [no])
-LIBVIRT_ARG_WITH([PACKAGER_VERSION], [Extra packager version], [no])
-if test "x$with_packager" != "xno"
-then
- AC_DEFINE_UNQUOTED([PACKAGER], ["$with_packager"],
- [Extra package name])
-fi
-if test "x$with_packager_version" != "xno"
-then
- AC_DEFINE_UNQUOTED([PACKAGER_VERSION], ["$with_packager_version"],
- [Extra package version])
-fi
-
dnl Where we look for daemons and admin binaries during configure
LIBVIRT_SBIN_PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
)
+# packager options
+
+packager = get_option('packager')
+packager_version = get_option('packager_version')
+
+if packager != ''
+ conf.set_quoted('PACKAGER', packager)
+endif
+
+if packager_version != ''
+ conf.set_quoted('PACKAGER_VERSION', packager_version)
+endif
+
+
# figure out libvirt version strings
arr_version = meson.project_version().split('.')
option('force_incomplete_build', type: 'boolean', value: false, description: 'Meson setup fails by default until the rewrite to meson is done, set this to "true" to force the build.')
option('no_git', type: 'boolean', value: false, description: 'Disable git submodule update')
+option('packager', type: 'string', value: '', description: 'Extra packager name')
+option('packager_version', type: 'string', value: '', description: 'Extra packager version')
option('system', type: 'boolean', value: false, description: 'Set install paths to system ones')
option('runstatedir', type: 'string', value: '', description: 'State directory for temporary sockets, pid files, etc')