summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-03 17:07:31 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-03 17:07:31 +0000
commit01ba6ad0ee458d39932748551b9de9076e49a5fa (patch)
tree8b57823fa4a24a3490ee5f4695568f98a1a435fe /configure
parentf6da625bc5703eb0934ed3ee3eb5bca81ce3155a (diff)
downloadmpv-01ba6ad0ee458d39932748551b9de9076e49a5fa.tar.bz2
mpv-01ba6ad0ee458d39932748551b9de9076e49a5fa.tar.xz
Clean up memalign test and don't apply MEMALIGN_HACK to Darwin.
inspired by a patch by Emanuele Giaquinta, emanuele . giaquinta $@$ gmail . com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19297 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 3c0b02da3f..9c38aaec57 100755
--- a/configure
+++ b/configure
@@ -2838,6 +2838,8 @@ if test "$_memalign" = yes ; then
_def_memalign='#define HAVE_MEMALIGN 1'
else
_def_memalign='#undef HAVE_MEMALIGN'
+ _def_map_memalign='#define memalign(a,b) malloc(b)'
+ not darwin && _def_memalign_hack='#define MEMALIGN_HACK 1'
fi
echores "$_memalign"
@@ -7695,10 +7697,8 @@ $_def_malloc
/* memalign is mapped to malloc if unsupported */
$_def_memalign
-#ifndef HAVE_MEMALIGN
-# define memalign(a,b) malloc(b)
-#define MEMALIGN_HACK 1
-#endif
+$_def_map_memalign
+$_def_memalign_hack
/* Define this if your system has the "alloca.h" header file */
$_def_alloca