ax_func_posix_memalign

Synopsis

AX_FUNC_POSIX_MEMALIGN

Description

Some versions of posix_memalign (notably glibc 2.2.5) incorrectly apply their power-of-two check to the size argument, not the alignment argument. AX_FUNC_POSIX_MEMALIGN defines HAVE_POSIX_MEMALIGN if the power-of-two check is correctly applied to the alignment argument.

Source Code

Download the latest version of ax_func_posix_memalign.m4 or browse the macro’s revision history.

License

Copyright © 2008 Scott Pakin 

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.