+ have_etcd_reclock = False
+ if Options.options.ctdb_etcd_reclock:
+ try:
+ conf.check_python_module('etcd')
+ have_etcd_reclock = True
+ except:
+ Logs.error('etcd support not available')
+ sys.exit(1)
+ if have_etcd_reclock:
+ Logs.info('Building with etcd support')
+ conf.env.etcd_reclock = have_etcd_reclock
+
+ if Options.options.ctdb_ceph_reclock:
+ if (conf.CHECK_HEADERS('rados/librados.h', False, False, 'rados') and
+ conf.CHECK_LIB('rados', shlib=True)):
+ Logs.info('Building with Ceph librados recovery lock support')
+ conf.define('HAVE_LIBRADOS', 1)
+ else:
+ Logs.error("Missing librados for Ceph recovery lock support")
+ sys.exit(1)
+