meson: make raw(7) optional
Fixes: https://github.com/karelzak/util-linux/issues/1442 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
0c19e4ca61
commit
dff176e2f0
|
@ -160,7 +160,6 @@ headers = '''
|
|||
linux/gsmmux.h
|
||||
linux/net_namespace.h
|
||||
linux/nsfs.h
|
||||
linux/raw.h
|
||||
linux/securebits.h
|
||||
linux/tiocl.h
|
||||
linux/version.h
|
||||
|
@ -1897,6 +1896,9 @@ if not is_disabler(exe)
|
|||
endif
|
||||
|
||||
opt = not get_option('build-raw').disabled()
|
||||
if opt
|
||||
cc.has_header('xlinux/raw.h', required: opt)
|
||||
endif
|
||||
exe = executable(
|
||||
'raw',
|
||||
raw_sources,
|
||||
|
|
|
@ -124,7 +124,7 @@ option('build-line', type : 'feature',
|
|||
description : 'build line')
|
||||
option('build-mesg', type : 'feature',
|
||||
description : 'build mesg')
|
||||
option('build-raw', type : 'feature',
|
||||
option('build-raw', type : 'feature', value : 'disabled',
|
||||
description : 'build raw')
|
||||
option('build-rename', type : 'feature',
|
||||
description : 'build rename')
|
||||
|
|
Loading…
Reference in New Issue