summaryrefslogtreecommitdiff
path: root/lib/util/wscript_configure
blob: 44c73dac7a6c5a19e0591d06fba441bf48282482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

conf.CHECK_HEADERS('execinfo.h')

# backtrace could be in libexecinfo or in libc
conf.CHECK_FUNCS_IN('backtrace', 'execinfo', checklibc=True)

conf.CHECK_FUNCS('sigprocmask sigblock sigaction')

conf.CHECK_HEADERS('sys/attributes.h attr/xattr.h sys/xattr.h')
conf.CHECK_FUNCS_IN('flistxattr', 'attr', checklibc=True)

conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE')

conf.CHECK_CODE('getxattr(NULL, NULL, NULL, 0, 0, 0)',
                define='XATTR_ADDITIONAL_OPTIONS')

if conf.CONFIG_SET('HAVE_FLISTXATTR'):
    conf.DEFINE('HAVE_XATTR_SUPPORT', 1)

conf.CHECK_HEADERS('sys/statvfs.h')

conf.CHECK_CODE('struct statvfs64 fsd; exit(statvfs64 (".", &fsd))',
                define='STAT_STATVFS64',
                headers='unistd.h sys/types.h sys/statvfs.h',
                local_include=False)