Lines 44-57
if get_option('sysprof')
Link Here
|
44 |
config_h.set10('HAVE_SYSPROF', true) |
44 |
config_h.set10('HAVE_SYSPROF', true) |
45 |
endif |
45 |
endif |
46 |
|
46 |
|
47 |
check_headers = [ |
47 |
if cc.has_header('ucontext.h') |
48 |
'ucontext.h', |
48 |
if not cc.has_function('makecontext', prefix : '#include<ucontext.h>') |
49 |
] |
49 |
libucontext_dep = dependency('libucontext') |
50 |
foreach h : check_headers |
50 |
else |
51 |
if cc.has_header(h) |
51 |
libucontext_dep = disabler() |
52 |
config_h.set('HAVE_' + h.underscorify().to_upper(), 1) |
|
|
53 |
endif |
52 |
endif |
54 |
endforeach |
53 |
config_h.set('HAVE_UCONTEXT_H', 1) |
|
|
54 |
endif |
55 |
|
55 |
|
56 |
if host_machine.system() == 'darwin' |
56 |
if host_machine.system() == 'darwin' |
57 |
# known alignment for darwin where we're using helpers |
57 |
# known alignment for darwin where we're using helpers |