mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb-build: Add some missing configure checks
Fail configure if thread_setsched() is unavailable on AIX or if sched_setscheduler() is unavailable on other platforms. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
d692be0363
commit
a0a21af918
10
ctdb/wscript
10
ctdb/wscript
@ -80,6 +80,16 @@ def configure(conf):
|
||||
conf.RECURSE('lib/tdb')
|
||||
conf.RECURSE('lib/socket_wrapper')
|
||||
|
||||
conf.CHECK_HEADERS('sched.h')
|
||||
conf.CHECK_HEADERS('procinfo.h')
|
||||
if sys.platform.startswith('aix') and not conf.CHECK_FUNCS('thread_setsched'):
|
||||
Logs.error('Need thread_setsched() on AIX')
|
||||
sys.exit(1)
|
||||
elif not conf.CHECK_FUNCS('sched_setscheduler'):
|
||||
Logs.error('Need sched_setscheduler()')
|
||||
sys.exit(1)
|
||||
conf.CHECK_FUNCS('mlockall')
|
||||
|
||||
have_pmda = False
|
||||
if Options.options.ctdb_pmda:
|
||||
pmda_support = True
|
||||
|
Loading…
Reference in New Issue
Block a user