summaryrefslogtreecommitdiffstats
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-27 13:16:59 +0200
committerGünther Deschner <gd@samba.org>2011-04-27 17:57:32 +0200
commit66b26195d21f0889e7ccd0de25a5827bb3722196 (patch)
tree4216f0bffd71b33d2b2981c4b314d61396afff9c /source3/wscript
parentcad8fafa0391e9f13c2958c45ca5ec57f93f1e7b (diff)
downloadsamba-66b26195d21f0889e7ccd0de25a5827bb3722196.tar.gz
samba-66b26195d21f0889e7ccd0de25a5827bb3722196.tar.xz
samba-66b26195d21f0889e7ccd0de25a5827bb3722196.zip
s3-waf: add pthreadpool support.
Volker, please check. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Apr 27 17:57:32 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 3f9dfd9303..7f178a4c55 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1669,6 +1669,13 @@ main() {
conf.CHECK_HEADERS('pthread.h')
conf.DEFINE('HAVE_PTHREAD', '1')
+ if Options.options.with_pthreadpool:
+ if conf.CONFIG_SET('HAVE_PTHREAD'):
+ conf.DEFINE('WITH_PTHREADPOOL', '1')
+ else:
+ Logs.warn("pthreadpool support cannot be enabled when pthread support was not found")
+ conf.undefine('WITH_PTHREADPOOL')
+
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