Lines 1-6
Link Here
|
1 |
--- ./source3/wscript.orig 2013-02-05 12:25:26.000000000 +0000 |
1 |
--- source3/wscript.orig 2013-05-21 08:48:46.000000000 +0200 |
2 |
+++ ./source3/wscript 2013-02-15 17:54:40.099886239 +0000 |
2 |
+++ source3/wscript 2013-11-12 10:07:31.657183050 +0100 |
3 |
@@ -475,7 +475,7 @@ |
3 |
@@ -35,6 +35,7 @@ |
|
|
4 |
opt.SAMBA3_ADD_OPTION('utmp') |
5 |
opt.SAMBA3_ADD_OPTION('pthreadpool', with_name="enable", without_name="disable", default=True) |
6 |
opt.SAMBA3_ADD_OPTION('avahi', with_name="enable", without_name="disable") |
7 |
+ opt.SAMBA3_ADD_OPTION('dnssd', with_name="enable", without_name="disable") |
8 |
opt.SAMBA3_ADD_OPTION('iconv') |
9 |
opt.SAMBA3_ADD_OPTION('acl-support') |
10 |
opt.SAMBA3_ADD_OPTION('dnsupdate') |
11 |
@@ -502,7 +503,7 @@ |
4 |
conf.CHECK_CODE('struct aiocb a; return aio_return(&a);', 'HAVE_AIO_RETURN', msg='Checking for aio_return', headers='aio.h', lib='aio rt') |
12 |
conf.CHECK_CODE('struct aiocb a; return aio_return(&a);', 'HAVE_AIO_RETURN', msg='Checking for aio_return', headers='aio.h', lib='aio rt') |
5 |
conf.CHECK_CODE('struct aiocb a; return aio_error(&a);', 'HAVE_AIO_ERROR', msg='Checking for aio_error', headers='aio.h', lib='aio rt') |
13 |
conf.CHECK_CODE('struct aiocb a; return aio_error(&a);', 'HAVE_AIO_ERROR', msg='Checking for aio_error', headers='aio.h', lib='aio rt') |
6 |
conf.CHECK_CODE('struct aiocb a; return aio_cancel(1, &a);', 'HAVE_AIO_CANCEL', msg='Checking for aio_cancel', headers='aio.h', lib='aio rt') |
14 |
conf.CHECK_CODE('struct aiocb a; return aio_cancel(1, &a);', 'HAVE_AIO_CANCEL', msg='Checking for aio_cancel', headers='aio.h', lib='aio rt') |
Lines 9-15
Link Here
|
9 |
if not conf.CONFIG_SET('HAVE_AIO'): |
17 |
if not conf.CONFIG_SET('HAVE_AIO'): |
10 |
conf.DEFINE('HAVE_NO_AIO', '1') |
18 |
conf.DEFINE('HAVE_NO_AIO', '1') |
11 |
else: |
19 |
else: |
12 |
@@ -1644,26 +1644,8 @@ |
20 |
@@ -812,6 +813,17 @@ |
|
|
21 |
conf.SET_TARGET_TYPE('avahi-common', 'EMPTY') |
22 |
conf.SET_TARGET_TYPE('avahi-client', 'EMPTY') |
23 |
|
24 |
+ if Options.options.with_dnssd: |
25 |
+ conf.env.with_dnssd = True |
26 |
+ if not conf.CHECK_HEADERS('dns_sd.h'): |
27 |
+ conf.env.with_dnssd = False |
28 |
+ if not conf.CHECK_FUNCS_IN('DNSServiceRegister', 'dns_sd'): |
29 |
+ conf.env.with_dnssd = False |
30 |
+ if conf.env.with_dnssd: |
31 |
+ conf.DEFINE('WITH_DNSSD_SUPPORT', 1) |
32 |
+ else: |
33 |
+ conf.SET_TARGET_TYPE('dns_sd', 'EMPTY') |
34 |
+ |
35 |
if Options.options.with_iconv: |
36 |
conf.env.with_iconv = True |
37 |
if not conf.CHECK_FUNCS_IN('iconv_open', 'iconv', headers='iconv.h'): |
38 |
@@ -1671,26 +1683,8 @@ |
13 |
|
39 |
|
14 |
if PTHREAD_LDFLAGS == 'error': |
40 |
if PTHREAD_LDFLAGS == 'error': |
15 |
if conf.CHECK_FUNCS_IN('pthread_attr_init', 'pthread'): |
41 |
if conf.CHECK_FUNCS_IN('pthread_attr_init', 'pthread'): |
Lines 37-43
Link Here
|
37 |
|
63 |
|
38 |
if PTHREAD_CFLAGS != 'error' and PTHREAD_LDFLAGS != 'error': |
64 |
if PTHREAD_CFLAGS != 'error' and PTHREAD_LDFLAGS != 'error': |
39 |
conf.ADD_CFLAGS(PTHREAD_CFLAGS) |
65 |
conf.ADD_CFLAGS(PTHREAD_CFLAGS) |
40 |
@@ -1693,8 +1675,8 @@ |
66 |
@@ -1720,8 +1714,8 @@ |
41 |
auth_script vfs_readahead vfs_xattr_tdb vfs_posix_eadb |
67 |
auth_script vfs_readahead vfs_xattr_tdb vfs_posix_eadb |
42 |
vfs_streams_xattr vfs_streams_depot vfs_acl_xattr vfs_acl_tdb |
68 |
vfs_streams_xattr vfs_streams_depot vfs_acl_xattr vfs_acl_tdb |
43 |
vfs_smb_traffic_analyzer vfs_preopen vfs_catia vfs_scannedonly |
69 |
vfs_smb_traffic_analyzer vfs_preopen vfs_catia vfs_scannedonly |
Lines 48-54
Link Here
|
48 |
vfs_crossrename vfs_linux_xfs_sgid |
74 |
vfs_crossrename vfs_linux_xfs_sgid |
49 |
vfs_time_audit idmap_autorid idmap_tdb2 |
75 |
vfs_time_audit idmap_autorid idmap_tdb2 |
50 |
idmap_rid idmap_hash''')) |
76 |
idmap_rid idmap_hash''')) |
51 |
@@ -1707,7 +1689,7 @@ |
77 |
@@ -1734,7 +1728,7 @@ |
52 |
|
78 |
|
53 |
if Options.options.enable_selftest or Options.options.developer: |
79 |
if Options.options.enable_selftest or Options.options.developer: |
54 |
default_shared_modules.extend(TO_LIST('vfs_fake_acls')) |
80 |
default_shared_modules.extend(TO_LIST('vfs_fake_acls')) |
Lines 57-68
Link Here
|
57 |
|
83 |
|
58 |
if conf.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'): |
84 |
if conf.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'): |
59 |
default_static_modules.extend(TO_LIST('pdb_samba_dsdb auth_samba4 vfs_dfs_samba4')) |
85 |
default_static_modules.extend(TO_LIST('pdb_samba_dsdb auth_samba4 vfs_dfs_samba4')) |
60 |
@@ -1740,7 +1722,7 @@ |
86 |
@@ -1767,7 +1761,7 @@ |
61 |
default_static_modules.extend(TO_LIST('charset_macosxfs')) |
87 |
default_static_modules.extend(TO_LIST('charset_macosxfs')) |
62 |
|
88 |
|
63 |
if conf.CONFIG_SET('HAVE_GPFS'): |
89 |
if conf.CONFIG_SET('HAVE_GPFS'): |
64 |
- default_shared_modules.extend(TO_LIST('vfs_gpfs')) |
90 |
- default_shared_modules.extend(TO_LIST('vfs_gpfs')) |
65 |
+ default_shared_modules.extend(TO_LIST('vfs_gpfs')) |
91 |
+ default_shared_modules.extend(TO_LIST('vfs_gpfs')) |
66 |
|
92 |
|
67 |
explicit_shared_modules = TO_LIST(Options.options.shared_modules, delimiter=',') |
93 |
if conf.CONFIG_SET('SAMBA_FAM_LIBS'): |
68 |
explicit_static_modules = TO_LIST(Options.options.static_modules, delimiter=',') |
94 |
default_shared_modules.extend(TO_LIST('vfs_notify_fam')) |