changeset 19291:81d2524ae843

Clean up memalign test and don't apply MEMALIGN_HACK to Darwin. inspired by a patch by Emanuele Giaquinta, emanuele . giaquinta $@$ gmail . com
author diego
date Thu, 03 Aug 2006 17:07:31 +0000
parents 0a0dc905eba9
children 20938447bb55
files configure
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Aug 03 13:02:38 2006 +0000
+++ b/configure	Thu Aug 03 17:07:31 2006 +0000
@@ -2838,6 +2838,8 @@
  _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 @@
 
 /* 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