On 06/20/2013 08:37 AM, 'Chris Hall' wrote: > > I hope I am in the right place, if not please direct me ! Just now noticing this mail, and that no one ever seemed to reply. > > I have found: > > AC_CHECK_ALIGNOF (type, [includes = ‘AC_INCLUDES_DEFAULT’]) > > which is quite lovely, as far as it goes... but it does not appear to > tell me the maximum possible alignment. What are you expecting to do with the biggest alignment, anyways? The most you can portably do is determine the alignment of the types you plan on using ('long long', 'long double', or if you probe for extension types such as __int128_t and then check the alignment of that). > > Of course gcc gives __BIGGEST_ALIGNMENT__ for this. And I guess other > compilers do something similar... > > ...but I cannot help feeling that autoconf should cover this, but if > it does, I have failed to find where :-( Without a good use case for what you expect to do with it that you cannot already determine by checking the alignments of the biggest types your code uses, I'm not sure that autoconf needs an extra macro. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf