Browse code

fail if SSE && !memalign && !memalign_hack

Originally committed as revision 3450 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2004/09/11 04:39:17
Showing 1 changed files
... ...
@@ -760,6 +760,11 @@ EOF
760 760
 $cc -o $TMPE $TMPC 2> /dev/null || _memalign=no
761 761
 fi
762 762
 
763
+if test "$_memalign" = "no" -a "$mmx" = "yes" -a "$memalignhack" != "yes"; then
764
+    echo "error, no memalign() but sse enabled, either disable it or use --enable-memalign-hack"
765
+    exit 1
766
+fi
767
+
763 768
 cat > $TMPC << EOF
764 769
 #include <time.h>
765 770
 int main( void ) { localtime_r(NULL, NULL); }