bison = find_program('bison')
flex = find_program('flex')
+awk = find_program('gawk', 'mawk', 'nawk', 'awk')
build_hwclock = not get_option('build-hwclock').disabled()
bison_gen = generator(
errnos_h = custom_target('errnos.h',
input : 'tools/all_errnos',
output : 'errnos.h',
- command : ['tools/all_errnos', cc.cmd_array(), get_option('c_args')],
+ command : ['tools/all_errnos', awk.full_path(),
+ cc.cmd_array(), get_option('c_args')],
)
opt = not get_option('build-lsfd').require(lib_rt.found()).disabled()
syscalls_h = custom_target('syscalls.h',
input : 'tools/all_syscalls',
output : 'syscalls.h',
- command : ['tools/all_syscalls', cc.cmd_array(), get_option('c_args')],
+ command : ['tools/all_syscalls', awk.full_path(),
+ cc.cmd_array(), get_option('c_args')],
)
if cc.compiles(fs.read('include/audit-arch.h'), name : 'has AUDIT_ARCH_NATIVE')