manadocs += ['sys-utils/blkpr.8.adoc']
endif
+opt = get_option('build-ldattach').require(cc.has_header('linux/if.h')).allowed()
exe = executable(
'ldattach',
ldattach_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrsbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['sys-utils/ldattach.8.adoc']
-bashcompletions += ['ldattach']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['sys-utils/ldattach.8.adoc']
+ bashcompletions += ['ldattach']
+endif
exe = executable(
'rtcwake',
description : 'build blkzone')
option('build-blkpr', type : 'feature',
description : 'build blkpr')
+option('build-ldattach', type : 'feature',
+ description : 'build ldattach')
option('build-kill', type : 'feature',
description : 'build kill')
option('build-last', type : 'feature',