From 8bf5d58f86e98f2df61b9ac6d0d945a1c04ece38 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Fri, 10 Sep 2004 19:39:17 +0000
Subject: [PATCH] fail if SSE && !memalign && !memalign_hack

Originally committed as revision 3450 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure b/configure
index 7cfa5051e50..84cd39e8572 100755
--- a/configure
+++ b/configure
@@ -760,6 +760,11 @@ EOF
 $cc -o $TMPE $TMPC 2> /dev/null || _memalign=no
 fi
 
+if test "$_memalign" = "no" -a "$mmx" = "yes" -a "$memalignhack" != "yes"; then
+    echo "error, no memalign() but sse enabled, either disable it or use --enable-memalign-hack"
+    exit 1
+fi
+
 cat > $TMPC << EOF
 #include <time.h>
 int main( void ) { localtime_r(NULL, NULL); }
-- 
GitLab