From: Michael R. Crusoe <crusoe@debian.org>
Subject: allow compilation on non-x86
--- bio-eagle.orig/src/MemoryUtils.cpp
+++ bio-eagle/src/MemoryUtils.cpp
@@ -25,8 +25,11 @@
 void *ALIGNED_MALLOC(uint64 size) {
 #ifdef USE_MKL_MALLOC
   void *p = mkl_malloc(size, MEM_ALIGNMENT);
-#else
+#elif defined(__SSE__)
   void *p = _mm_malloc(size, MEM_ALIGNMENT);
+#else
+#include <stdlib.h>
+  void *p = aligned_alloc(MEM_ALIGNMENT, size);
 #endif
   // TODO: change to assert() or dispense with altogether and change ALIGNED_MALLOC to macro?
   if (p == NULL) {
--- bio-eagle.orig/src/MemoryUtils.hpp
+++ bio-eagle/src/MemoryUtils.hpp
@@ -30,9 +30,11 @@
 #ifdef USE_MKL_MALLOC
 #include <mkl.h>
 #define ALIGNED_FREE mkl_free
-#else
+#elif defined(__SSE__)
 #include <xmmintrin.h>
 #define ALIGNED_FREE _mm_free
+#else
+#define ALIGNED_FREE free
 #endif
 
 #define ALIGNED_MALLOC_DOUBLES(numDoubles) (double *) ALIGNED_MALLOC((numDoubles)*sizeof(double))
