summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
author- <nemo@alice.(none)>2013-05-16 21:41:00 +0200
committer- <nemo@alice.(none)>2013-05-16 21:41:00 +0200
commit165af82e9b8ecf098357eb4637888fb5f9487e3d (patch)
tree9b6f6cc9ce2850f4bffac97688e9be1e9b3caa5b /configure.in
parent565aea03207e93ee8253de9f3d3c36b120b54547 (diff)
Moved sse flags to SSEFLAGS variable.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in65
1 files changed, 34 insertions, 31 deletions
diff --git a/configure.in b/configure.in
index 1b2123c..ca3b751 100644
--- a/configure.in
+++ b/configure.in
@@ -45,37 +45,6 @@ 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])
- LV2FLAGS="-msse3"
- AC_SUBST(LV2FLAGS)
- else
- AC_MSG_RESULT([no])
- fi
- AC_MSG_CHECKING([for sse2 instructions])
- if grep -q "sse2" /proc/cpuinfo
- then
- AC_MSG_RESULT([yes])
- LV2FLAGS="$LV2FLAGS -msse2"
- AC_SUBST(LV2FLAGS)
- else
- AC_MSG_RESULT([no])
- fi
- AC_MSG_CHECKING([for sse instructions])
- if grep -q "sse" /proc/cpuinfo
- then
- AC_MSG_RESULT([yes])
- LV2FLAGS="$LV2FLAGS -DSSE -msse"
- AC_SUBST(LV2FLAGS)
- else
- AC_MSG_RESULT([no])
- fi
else
AC_MSG_RESULT([*** LV2 plugin will not be compiled ***])
enable_lv2=no
@@ -353,11 +322,45 @@ LIBS="$tmp_LIBS"
AC_SUBST(EXPAT_CFLAGS)
AC_SUBST(EXPAT_LIBS)
+dnl ===========================
+dnl Check for SSE instructions
+dnl ===========================
+AC_MSG_CHECKING([for sse3 instructions])
+if grep -q "sse3" /proc/cpuinfo
+then
+ AC_MSG_RESULT([yes])
+ SSEFLAGS="-msse3"
+ AC_SUBST(SSEFLAGS)
+else
+ AC_MSG_RESULT([no])
+fi
+AC_MSG_CHECKING([for sse2 instructions])
+if grep -q "sse2" /proc/cpuinfo
+then
+ AC_MSG_RESULT([yes])
+ SSEFLAGS="$SSEFLAGS -msse2"
+ AC_SUBST(SSEFLAGS)
+else
+ AC_MSG_RESULT([no])
+fi
+AC_MSG_CHECKING([for sse instructions])
+if grep -q "sse" /proc/cpuinfo
+then
+ AC_MSG_RESULT([yes])
+ SSEFLAGS="$SSEFLAGS -DSSE -msse"
+ AC_SUBST(SSEFLAGS)
+else
+ AC_MSG_RESULT([no])
+fi
+
+
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(LDFLAGS)
+
+
# au/Makefile
AC_OUTPUT(