diff mbox series

[1/6,V2,configure] check if the compiler is aware of the MMX technology

Message ID 20200429191039.28106-1-frederic.recoules@univ-grenoble-alpes.fr (mailing list archive)
State New, archived
Headers show
Series [1/6,V2,configure] check if the compiler is aware of the MMX technology | expand

Commit Message

FRÉDÉRIC RECOULES April 29, 2020, 7:10 p.m. UTC
From: Frédéric Recoules <frederic.recoules@orange.fr>

Signed-off-by: Frédéric Recoules <frederic.recoules@orange.fr>
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

--
2.17.1
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 4b5ab662..1838e50b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -516,6 +516,13 @@  if test -z "$gcc_have_atomics"; then
 fi
 AC_MSG_RESULT($gcc_have_atomics)

+dnl check mmx register for pcm_dmix_i386
+
+AC_TRY_LINK([],
+    [__asm__ volatile ("" : : : "mm0");],
+    [AC_DEFINE([HAVE_MMX], "1", [MMX technology is enabled])],
+    [])
+
 PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul"

 build_pcm_plugin="no"