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>
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