On 08/07/2012 12:20 PM, Inge Henriksen wrote:
> 
> I use GNU Autoconf 2.63 on CentoOS 6.3 32-bit. In my configure script I check
> the sizes of some types, like:
> 
> AC_CHECK_SIZEOF(char)
> AC_CHECK_SIZEOF(int)
> AC_CHECK_SIZEOF(long)
> , but the result is always 0 when running ./configure:
> 
> checking size of char... 0
> checking size of int... 0
> checking size of long... 0
> The same configurations run fine on Mac OS X SL and Ubuntu though.
> 
> Any ideas why AC_CHECK_SIZEOF returns 0 on CentOS?

Not without seeing the config.log snippets corresponding to those tests
getting the wrong results.  It may be a case of compiler warnings being
turned up to high and causing a spurious miscompilation of the example,
but the config.log output would make that point clear.

-- 
Eric Blake   ebl...@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to