-Dyajl=enabled \
%{?arg_sanlock} \
-Dlibpcap=enabled \
- -Dmacvtap=enabled \
-Daudit=enabled \
-Ddtrace=enabled \
%{?arg_firewalld} \
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
-if host_machine.system() == 'linux'
- if not get_option('macvtap').disabled()
- conf.set('WITH_MACVTAP', 1)
- endif
-else
- if get_option('macvtap').enabled()
- error('macvtap is not supported on this platform.')
- endif
-endif
-
netcf_version = '0.1.8'
netcf_dep = dependency('netcf', version: '>=' + netcf_version, required: get_option('netcf'))
if netcf_dep.found()
option('libpcap', type: 'feature', value: 'auto', description: 'libpcap support')
option('libssh', type: 'feature', value: 'auto', description: 'libssh support')
option('libssh2', type: 'feature', value: 'auto', description: 'libssh2 support')
-option('macvtap', type: 'feature', value: 'auto', description: 'enable macvtap device')
option('netcf', type: 'feature', value: 'auto', description: 'netcf support')
option('nls', type: 'feature', value: 'auto', description: 'nls support')
option('numactl', type: 'feature', value: 'auto', description: 'numactl support')
"passthrough",
);
-#if WITH_MACVTAP
+#if defined(WITH_LIBNL)
# include <fcntl.h>
# include <net/if.h>
}
-#else /* ! WITH_MACVTAP */
+#else /* ! WITH_LIBNL */
bool virNetDevMacVLanIsMacvtap(const char *ifname G_GNUC_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
virReportSystemError(ENOSYS, "%s",
_("Cannot create macvlan devices on this platform"));
}
-#endif /* ! WITH_MACVTAP */
+#endif /* ! WITH_LIBNL */