build: make wafsamba CHECK_SIZEOF cross-compile friendly
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 21 Apr 2014 13:18:16 +0000 (10:18 -0300)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 6 May 2014 16:14:13 +0000 (18:14 +0200)
commit6619055f6034c1f7194c821ac230d53bf735adbc
treed2fedc821d92b64b3d0ece0bd719a0451391344a
parent5ac317e2b6a7a45c024490e3e1e2bd00debf150f
build: make wafsamba CHECK_SIZEOF cross-compile friendly

Use the same trick as commit 0d9bb86293c9d39298786df095c73a6251b08b7e
We do the same array trick iteratively starting from 1 (byte) by powers
of 2 up to 32.

The new 'critical' option is used to make the invocation die or not
according to each test.
The default is True since normally it's expected to find a proper
result and should error out if not.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
buildtools/wafsamba/samba_autoconf.py