summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 15:19:37 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:42 +1000
commitcfb4f55a7be13660377ec80fe1444c41dd4065d4 (patch)
tree3a71af016a0979abc2c089c92388a82bbe200b14 /lib/replace/wscript
parentd5560482ea06d11969447dcfb13f88cc6f285e58 (diff)
downloadsamba-cfb4f55a7be13660377ec80fe1444c41dd4065d4.tar.gz
samba-cfb4f55a7be13660377ec80fe1444c41dd4065d4.tar.bz2
samba-cfb4f55a7be13660377ec80fe1444c41dd4065d4.zip
build: check size of types
allow name of SIZEOF test to be specified
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 067b80edea..0d93f9604e 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -84,8 +84,7 @@ def configure(conf):
conf.define('SHLIBEXT', "so", quote=True)
- conf.check(type_name='long long')
- conf.CHECK_TYPES('intptr_t uintptr_t ptrdiff_t')
+ conf.CHECK_TYPES('"long long" intptr_t uintptr_t ptrdiff_t')
conf.CHECK_TYPES('comparison_fn_t socklen_t bool')
conf.CHECK_TYPE('int8_t', 'char')
@@ -134,6 +133,9 @@ def configure(conf):
conf.CHECK_DECLS('dirfd environ errno getgrent_r getpwent_r', reverse=True)
conf.CHECK_DECLS('pread pwrite setenv setresgid setresuid', reverse=True)
+ conf.CHECK_SIZEOF('char int "long long" long off_t short size_t ssize_t')
+ conf.CHECK_SIZEOF('void*', define='SIZEOF_VOID_P')
+
conf.check_cc(fragment='''
#include <stdarg.h>
va_list ap1,ap2;