meson: replace `if(compiles) have=true` with `have=compiles`
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>main
parent
07585200e9
commit
431f1a147e
|
@ -187,9 +187,8 @@ else
|
||||||
endif
|
endif
|
||||||
dep_m = cc.find_library('m', required : false)
|
dep_m = cc.find_library('m', required : false)
|
||||||
foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h']
|
foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h']
|
||||||
if cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header))
|
config.set('HAVE_' + header.underscorify().to_upper(),
|
||||||
config.set10('HAVE_' + header.underscorify().to_upper(), true)
|
cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header)))
|
||||||
endif
|
|
||||||
endforeach
|
endforeach
|
||||||
if cc.has_header_symbol('sys/sysmacros.h', 'major')
|
if cc.has_header_symbol('sys/sysmacros.h', 'major')
|
||||||
config.set10('MAJOR_IN_SYSMACROS', true)
|
config.set10('MAJOR_IN_SYSMACROS', true)
|
||||||
|
|
Loading…
Reference in New Issue