+ opt.RECURSE('lib/util')
+ opt.RECURSE('ctdb')
+
+ opt.add_option('--with-system-mitkrb5',
+ help='enable system MIT krb5 build (includes Samba 4 client and Samba 3 code base).'+
+ 'You may specify list of paths where Kerberos is installed (e.g. /usr/local /usr/kerberos) to search krb5-config',
+ action='callback', callback=system_mitkrb5_callback, dest='with_system_mitkrb5', default=False)
+
+ opt.add_option('--without-ad-dc',
+ help='disable AD DC functionality (enables Samba 4 client and Samba 3 code base).',
+ action='store_true', dest='without_ad_dc', default=False)
+
+ opt.add_option('--with-ntvfs-fileserver',
+ help='enable the depricated NTVFS file server from the original Samba4 branch (default if --enable-selftest specicifed). Conflicts with --with-system-mitkrb5 and --without-ad-dc',
+ action='store_true', dest='with_ntvfs_fileserver')
+
+ opt.add_option('--without-ntvfs-fileserver',
+ help='disable the depricated NTVFS file server from the original Samba4 branch',
+ action='store_false', dest='with_ntvfs_fileserver')
+
+ opt.add_option('--with-pie',
+ help=("Build Position Independent Executables " +
+ "(default if supported by compiler)"),
+ action="store_true", dest='enable_pie')
+ opt.add_option('--without-pie',
+ help=("Disable Position Independent Executable builds"),
+ action="store_false", dest='enable_pie')
+
+ opt.add_option('--with-relro',
+ help=("Build with full RELocation Read-Only (RELRO)" +
+ "(default if supported by compiler)"),
+ action="store_true", dest='enable_relro')
+ opt.add_option('--without-relro',
+ help=("Disable RELRO builds"),
+ action="store_false", dest='enable_relro')