From 0fb246ba7340c58fdb419ed434f8b17a21f24953 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 3 Mar 2011 22:10:40 +0100 Subject: s3-waf: add check for HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR. Guenther --- source3/wscript | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/wscript') diff --git a/source3/wscript b/source3/wscript index 2082a8bd05..1062b3a463 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1493,6 +1493,12 @@ main() { # For sys/quota.h and linux/quota.h conf.CHECK_HEADERS('sys/quota.h') + conf.CHECK_CODE('__attribute__((destructor)) static void cleanup(void) { }', + 'HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR', + addmain=False, + link=False, + msg='Checking whether we can compile with __attribute__((destructor))') + default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_sam auth_unix auth_winbind auth_wbc auth_server auth_domain auth_builtin vfs_default -- cgit