Test for memalign in configure.ac. Disable a test that uses memalign if it is not found.

Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>