Try to compile a little mmx program, set the default value of HAVE_LIBMMX. some typos...
authorWim Taymans <wim.taymans@gmail.com>
Tue, 1 Feb 2000 19:40:10 +0000 (19:40 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 1 Feb 2000 19:40:10 +0000 (19:40 +0000)
Original commit message from CVS:
Try to compile a little mmx program, set the default value of HAVE_LIBMMX.
some typos fixed. Changed include path for volume.c. RTjpeg uses mmx.h

configure.in
docs/gst/Makefile.am

index 9d0b735..4c1d56c 100644 (file)
@@ -94,8 +94,24 @@ AC_EGREP_HEADER(atomic_set, asm/atomic.h,,
    HAVE_ATOMIC_H=no
 ])
 
-dnl Check for libmmx
-AC_CHECK_HEADER(mmx.h, HAVE_LIBMMX="yes", HAVE_LIBMMX="no")
+dnl Check for MMX capable compiler
+AC_MSG_CHECKING(Checking MMX compilation)
+AC_TRY_RUN([
+#include "include/mmx.h"
+
+main()
+{ movq_r2r(mm0, mm1); return 0; }
+],
+[
+HAVE_LIBMMX="yes"
+AC_MSG_RESULT(yes)
+],
+HAVE_LIBMMX="no"
+AC_MSG_RESULT(no)
+,
+HAVE_LIBMMX="no"
+AC_MSG_RESULT(no)
+)
 
 dnl Check for xaudio
 AC_CHECK_HEADER(xaudio/decoder.h,[
index 11178ef..6c0b276 100644 (file)
@@ -37,7 +37,7 @@ tmpl_sources =                                \
        tmpl/gsttype.sgml               \
        tmpl/gstutils.sgml              \
        tmpl/gstxml.sgml                \
-       tmpl/plugin.sgml                \
+       tmpl/plugin.sgml                
 
 SCANOBJS_FILES =               \
        $(DOC_MODULE).signals   \