[vlc-devel] commit: Expose MMX and SSE2 compiler flags ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 10 15:47:01 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 10 16:25:12 2010 +0200| [0eb68c7e26d4aff6d7549a4d1948b86db5a69d0a] | committer: Rémi Denis-Courmont
Expose MMX and SSE2 compiler flags
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0eb68c7e26d4aff6d7549a4d1948b86db5a69d0a
---
configure.ac | 6 +++++-
modules/mmx/Modules.am | 2 ++
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 136da55..e596ab5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1362,7 +1362,8 @@ AS_IF([test "${enable_mmx}" != "no"], [
AS_IF([test "${ac_cv_c_mmx_intrinsics}" != "no"], [
AC_DEFINE(HAVE_MMX_INTRINSICS, 1,
[Define to 1 if MMX intrinsics are available.])
- VLC_ADD_CFLAGS([memcpymmx i420_rgb_mmx i420_yuy2_mmx i422_yuy2_mmx],[-mmmx])
+ MMX_CFLAGS="-mmmx"
+ VLC_ADD_CFLAGS([i420_rgb_mmx i420_yuy2_mmx i422_yuy2_mmx],[-mmmx])
])
AC_CACHE_CHECK([if $CC groks MMX inline assembly],
@@ -1390,6 +1391,7 @@ AS_IF([test "${enable_mmx}" != "no"], [
have_mmxext="yes"
])
])
+AC_SUBST(MMX_CFLAGS)
AM_CONDITIONAL([HAVE_MMX], [test "${have_mmx}" = "yes"])
AM_CONDITIONAL([HAVE_MMXEXT], [test "${have_mmxext}" = "yes"])
@@ -1431,6 +1433,7 @@ AS_IF([test "${enable_sse}" != "no"], [
AS_IF([test "${ac_cv_c_sse2_intrinsics}" != "no"], [
AC_DEFINE(HAVE_SSE2_INTRINSICS, 1,
[Define to 1 if SSE2 intrinsics are available.])
+ SSE2_CFLAGS="-msse2"
VLC_ADD_CFLAGS([i420_rgb_sse2 i420_yuy2_sse2 i422_yuy2_sse2],[-msse2])
])
@@ -1506,6 +1509,7 @@ AS_IF([test "${enable_sse}" != "no"], [
AC_DEFINE(CAN_COMPILE_SSE4A, 1,
[Define to 1 if SSE4A inline assembly is available.]) ])
])
+AC_SUBST(SSE2_CFLAGS)
have_3dnow="no"
AC_CACHE_CHECK([if $CC groks 3D Now! inline assembly],
diff --git a/modules/mmx/Modules.am b/modules/mmx/Modules.am
index f0b6734..50fd6ee 100644
--- a/modules/mmx/Modules.am
+++ b/modules/mmx/Modules.am
@@ -1,3 +1,5 @@
+AM_CFLAGS += $(MMX_CFLAGS)
+
libmemcpymmx_plugin_la_SOURCES = memcpy.c fastmemcpy.h
libmemcpymmx_plugin_la_CFLAGS = $(AM_CFLAGS)
libmemcpymmx_plugin_la_LIBADD = $(AM_LIBADD)
More information about the vlc-devel
mailing list