diff options
author | Christian Ambach <ambi@samba.org> | 2014-04-16 00:36:25 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2014-06-04 20:09:38 +0200 |
commit | eafb7e33bcb78e87dc3781fc2c9bf9a31f5281b2 (patch) | |
tree | 9e5ab439521de8c91b9d7faef983b4116d752925 | |
parent | 558850c495880a916fbc4285993e3adda590453f (diff) | |
download | samba-eafb7e33bcb78e87dc3781fc2c9bf9a31f5281b2.tar.gz samba-eafb7e33bcb78e87dc3781fc2c9bf9a31f5281b2.tar.xz samba-eafb7e33bcb78e87dc3781fc2c9bf9a31f5281b2.zip |
waf: add --with-fake-kaserver option
This option was not added during the transition from autoconf
to waf.
Bring it back so that the code can be used again.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9916
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | lib/afs/wscript_build | 2 | ||||
-rw-r--r-- | source3/wscript | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/afs/wscript_build b/lib/afs/wscript_build index 7337491fe7..d584a17028 100644 --- a/lib/afs/wscript_build +++ b/lib/afs/wscript_build @@ -2,7 +2,7 @@ bld.SAMBA3_SUBSYSTEM('LIBAFS', source='afs_funcs.c', - deps='samba-util LIBAFS_SETTOKEN') + deps='samba-util crypto LIBAFS_SETTOKEN') bld.SAMBA3_SUBSYSTEM('LIBAFS_SETTOKEN', source='afs_settoken.c', diff --git a/source3/wscript b/source3/wscript index cf9d787321..819ea9bb66 100644 --- a/source3/wscript +++ b/source3/wscript @@ -49,6 +49,9 @@ def set_options(opt): opt.SAMBA3_ADD_OPTION('regedit', default=None) + opt.SAMBA3_ADD_OPTION('fake-kaserver', + help=("Include AFS fake-kaserver support"), default=False) + opt.add_option('--with-ctdb-dir', help=("Directory under which ctdb is installed"), action="store", dest='ctdb_dir', default=None) @@ -1798,6 +1801,16 @@ main() { else: Logs.info("ncurses not available, not building regedit") + conf.CHECK_FUNCS_IN('DES_pcbc_encrypt', 'crypto') + if Options.options.with_fake_kaserver == True: + conf.CHECK_HEADERS('afs/param.h afs/stds.h', together=True) + conf.CHECK_HEADERS('afs/param.h afs/stds.h', together=True) + if (conf.CONFIG_SET('HAVE_AFS_PARAM_H') and conf.CONFIG_SET('HAVE_AFS_STDS_H') and conf.CONFIG_SET('HAVE_DES_PCBC_ENCRYPT')): + conf.DEFINE('WITH_FAKE_KASERVER', '1') + else: + conf.fatal('AFS headers not available, but --with-fake-kaserver was specified') + + default_static_modules.extend(TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_sam auth_unix auth_winbind auth_wbc |