aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-06-18 14:37:02 +0100
committerMartin Storsjö <martin@martin.st>2012-06-19 10:08:00 +0300
commitbe1a839ca638e308748831fdc6fa0b7a7c8e94cf (patch)
tree3cb79480a8c52b5947797b71d486282c5aa21dbe /configure
parent7146177d1812966b3e19025271965625ac7a054d (diff)
downloadffmpeg-be1a839ca638e308748831fdc6fa0b7a7c8e94cf.tar.gz
mem: add support for _aligned_malloc() as found on Windows
The check uses check_func_header, since this function is conditionally available depending on the targeted MSVCRT version. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index ea80d480b2..0baa755d77 100755
--- a/configure
+++ b/configure
@@ -1051,6 +1051,7 @@ HAVE_LIST="
$ARCH_EXT_LIST
$HAVE_LIST_PUB
$THREADS_LIST
+ aligned_malloc
aligned_stack
alsa_asoundlib_h
altivec_h
@@ -2838,6 +2839,7 @@ check_func ${malloc_prefix}memalign && enable memalign
check_func mkstemp
check_func mmap
check_func ${malloc_prefix}posix_memalign && enable posix_memalign
+check_func_headers malloc.h _aligned_malloc && enable aligned_malloc
check_func setrlimit
check_func strerror_r
check_func strptime
@@ -3144,7 +3146,7 @@ check_deps $CONFIG_LIST \
enabled asm || { arch=c; disable $ARCH_LIST $ARCH_EXT_LIST; }
-! enabled_any memalign posix_memalign &&
+! enabled_any memalign posix_memalign aligned_malloc &&
enabled_any $need_memalign && enable memalign_hack
echo "install prefix $prefix"