diff options
author | Michael Adam <obnox@samba.org> | 2013-05-06 14:14:02 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2013-05-06 18:24:58 +0200 |
commit | 431eeef9311a8e172dc782bc91492c94cc5fcde7 (patch) | |
tree | 5d5a2fef9ff979261120f8ddbe6d90a3ef2aa611 /source3/wscript | |
parent | 356b825838cd97cc43aaa4b108267d1bd5f16ca1 (diff) | |
download | samba-431eeef9311a8e172dc782bc91492c94cc5fcde7.tar.gz samba-431eeef9311a8e172dc782bc91492c94cc5fcde7.tar.bz2 samba-431eeef9311a8e172dc782bc91492c94cc5fcde7.zip |
build: fix --with-regedit to properly honour the yes/no/auto scheme
I.e. fail configure when ncurses support is not found but
regedit build was requested.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript index 28fa11f227..72ab18a721 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1713,8 +1713,23 @@ main() { if conf.CHECK_HEADERS('cephfs/libcephfs.h', False, False, 'cephfs') and conf.CHECK_LIB('cephfs'): conf.DEFINE('HAVE_CEPH', '1') - if Options.options.with_regedit: + conf.env.build_regedit = False + if not Options.options.with_regedit == False: conf.PROCESS_SEPARATE_RULE('system_ncurses') + if conf.CONFIG_SET('HAVE_NCURSES'): + conf.env.build_regedit = True + + if conf.env.build_regedit: + Logs.info("building regedit") + else: + if Options.options.with_regedit == False: + Logs.info("not building regedit (--without-regedit)") + elif Options.options.with_regedit == True: + Logs.error("ncurses not available, cannot build regedit") + conf.fatal("ncurses not available, but --with-regedit was specified") + else: + Logs.info("ncurses not available, not building regedit") + default_static_modules.extend(TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_sam auth_unix auth_winbind auth_wbc |