Message ID | 1472648474-3131-2-git-send-email-jlayton@samba.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/source3/wscript b/source3/wscript index 5ce1b77e23b1..c6b2421c45b7 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1582,6 +1582,8 @@ main() { if conf.CHECK_HEADERS('cephfs/libcephfs.h', False, False, 'cephfs') and conf.CHECK_LIB('cephfs', shlib=True) and Options.options.with_cephfs: if Options.options.with_acl_support: conf.DEFINE('HAVE_CEPH', '1') + if conf.CHECK_FUNCS_IN('ceph_statx', 'cephfs', headers='cephfs/libcephfs.h'): + conf.DEFINE('HAVE_CEPH_STATX', '1') else: Logs.warn("ceph support disabled due to --without-acl-support") conf.undefine('HAVE_CEPH')
...so we can conditionally compile in its use. Signed-off-by: Jeff Layton <jlayton@redhat.com> --- source3/wscript | 2 ++ 1 file changed, 2 insertions(+)