diff options
author | C. Davis <cd.rattan@gmail.com> | 2012-07-10 06:16:35 -0700 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-04-29 13:05:44 +0200 |
commit | dc0029c9463612d9fce6e19f04cf5d9aeed1b2d6 (patch) | |
tree | a4af2727d419d34e3f0856e6d068080bc4d06222 /source3/wscript | |
parent | 6c881e285b4a130bddd15f7d740e4c64a33e0de3 (diff) | |
download | samba-dc0029c9463612d9fce6e19f04cf5d9aeed1b2d6.tar.gz samba-dc0029c9463612d9fce6e19f04cf5d9aeed1b2d6.tar.bz2 samba-dc0029c9463612d9fce6e19f04cf5d9aeed1b2d6.zip |
regedit: First crack at linking to ncurses.
First attempt of editing build scripts to link to ncurses
libraries. It seems to work, though checks may need to be
expanded upon.
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index 18e45f2ed6..54daaa7f22 100644 --- a/source3/wscript +++ b/source3/wscript @@ -47,6 +47,8 @@ def set_options(opt): opt.SAMBA3_ADD_OPTION('cluster-support', default=None) + opt.SAMBA3_ADD_OPTION('regedit', default=True) + opt.add_option('--with-ctdb-dir', help=("Directory under which ctdb is installed"), action="store", dest='ctdb_dir', default=None) @@ -1711,6 +1713,14 @@ 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: + #XXX these checks might need to be expanded + ncurses = conf.CHECK_FUNCS_IN('initscr', 'ncurses', headers='ncurses.h') + menu = conf.CHECK_FUNCS_IN('set_menu_items item_count', 'menu', + headers='menu.h') + if ncurses and menu: + conf.env.build_regedit = True + default_static_modules.extend(TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_sam auth_unix auth_winbind auth_wbc auth_domain auth_builtin vfs_default |