Skip to content

Commit 18d6ecf

Browse files
committed
Merge pull request #290 from kostrzewa/sse_for_all
add support for compiling with inline SSE assembly for compilers other than GCC
2 parents 4523623 + 7c301b5 commit 18d6ecf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configure.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,16 @@ dnl check for icc
608608
CCDEP="$CC"
609609

610610
else
611+
# other compilers might support SSE inline assembly too
612+
# (the cray compiler, for example)
613+
if test $enable_sse3 = yes; then
614+
echo Using SSE3 and SSE2 macros!
615+
AC_DEFINE(SSE3,1,Compile with SSE3 support)
616+
elif test $enable_sse2 = yes; then
617+
echo Using SSE2 macros only!
618+
AC_DEFINE(SSE2,1,Compile with SSE2 support)
619+
fi
620+
611621
DEPFLAGS="-M"
612622
CFLAGS="$CFLAGS -O"
613623
DEBUG_FLAG="-g"

0 commit comments

Comments
 (0)