From 6aba9fc2635ca02ae4e2089bf6bfa7d78fdfc322 Mon Sep 17 00:00:00 2001 From: - Date: Thu, 16 May 2013 21:10:57 +0200 Subject: Fixed sse instruction only set if supported by cpu --- configure.in | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 32c1c1c..6a68625 100644 --- a/configure.in +++ b/configure.in @@ -45,6 +45,37 @@ if test "x$enable_lv2" = "xyes"; then dnl Check for Xlib dnl ====================== PKG_CHECK_MODULES(X11, x11 >= 1.0) + + dnl =========================== + dnl Check for SSE instructions + dnl =========================== + AC_MSG_CHECKING([for sse3 instructions]) + if grep -q "sse3" /proc/cpuinfo + then + AC_MSG_RESULT([yes]) + CXXFLAGS="$CXXFLAGS -msse3" + AC_SUBST(CXXFLAGS) + else + AC_MSG_RESULT([no]) + fi + AC_MSG_CHECKING([for sse2 instructions]) + if grep -q "sse2" /proc/cpuinfo + then + AC_MSG_RESULT([yes]) + CXXFLAGS="$CXXFLAGS -msse2" + AC_SUBST(CXXFLAGS) + else + AC_MSG_RESULT([no]) + fi + AC_MSG_CHECKING([for sse instructions]) + if grep -q "sse" /proc/cpuinfo + then + AC_MSG_RESULT([yes]) + CXXFLAGS="$CXXFLAGS -DSSE -msse" + AC_SUBST(CXXFLAGS) + else + AC_MSG_RESULT([no]) + fi else AC_MSG_RESULT([*** LV2 plugin will not be compiled ***]) enable_lv2=no -- cgit v1.2.3