# HG changeset patch # User diego # Date 1358799496 0 # Node ID 42ca1c1651740675ed0b77954e597fe28b591dae # Parent d0004e3bcbbc673019f45b7e5f2f451fff3dfd91 configure: Add check for _aligned_malloc(), used in libavutil. diff -r d0004e3bcbbc -r 42ca1c165174 configure --- a/configure Mon Jan 21 19:49:54 2013 +0000 +++ b/configure Mon Jan 21 20:18:16 2013 +0000 @@ -3601,6 +3601,14 @@ echores "$_malloc" +echocheck "aligned malloc" +aligned_malloc=no +def_aligned_malloc='#define HAVE_ALIGNED_MALLOC 0' +statement_check malloc.h '_aligned_malloc(0)' && aligned_malloc=yes && + def_aligned_malloc='#define HAVE_ALIGNED_MALLOC 1' +echores "$aligned_malloc" + + echocheck "memalign()" # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ? def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0' @@ -8922,6 +8930,7 @@ #define CONFIG_MUXERS 1 $def_rtpdec +$def_aligned_malloc $def_arpa_inet_h $def_bswap $def_bzlib