diff --git a/meson.build b/meson.build index 42b553c..b8b5c9f 100644 --- a/meson.build +++ b/meson.build @@ -88,7 +88,7 @@ if gnutls.found() config.set('ENABLE_TLS', true) endif -if host_system == 'linux' and cc.has_header('sys/sdt.h') +if host_system == 'linux' and get_option('systemtap') and cc.has_header('sys/sdt.h') config.set('HAVE_USDT', true) endif diff --git a/meson_options.txt b/meson_options.txt index f32b394..4dfd836 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,3 +2,4 @@ option('benchmarks', type: 'boolean', value: false, description: 'Build benchmar option('examples', type: 'boolean', value: false, description: 'Build examples') option('jpeg', type: 'feature', value: 'auto', description: 'Enable JPEG compression') option('tls', type: 'feature', value: 'auto', description: 'Enable encryption & authentication') +option('systemtap', type: 'boolean', value: false, description: 'Enable tracing using sdt')