8 if conf
.CHECK_BUNDLED_SYSTEM('uid_wrapper', minversion
=VERSION
, set_target
=False):
9 conf
.DEFINE('USING_SYSTEM_UID_WRAPPER', 1)
10 libuid_wrapper_so_path
= 'libuid_wrapper.so'
12 # check HAVE_GCC_THREAD_LOCAL_STORAGE
20 'HAVE_GCC_THREAD_LOCAL_STORAGE',
22 msg
='Checking for thread local storage')
24 # check HAVE_DESTRUCTOR_ATTRIBUTE
26 void test_destructor_attribute(void) __attribute__ ((destructor));
28 void test_destructor_attribute(void)
37 'HAVE_DESTRUCTOR_ATTRIBUTE',
39 msg
='Checking for library destructor support')
41 # Create full path to uid_wrapper
42 srcdir
= os
.path
.realpath(conf
.srcdir
)
43 libuid_wrapper_so_path
= srcdir
+ '/bin/default/lib/uid_wrapper/libuid-wrapper.so'
45 conf
.DEFINE('LIBUID_WRAPPER_SO_PATH', libuid_wrapper_so_path
)
46 conf
.DEFINE('UID_WRAPPER', 1)
49 if not bld
.CONFIG_SET("USING_SYSTEM_UID_WRAPPER"):
50 # We need to do it this way or the library wont work.
51 # Using private_library=True will add symbol version which
53 bld
.SAMBA_LIBRARY('uid_wrapper',
54 source
='uid_wrapper.c',
58 realname
='libuid-wrapper.so')