summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index edb4d5f6..48d252ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -522,6 +522,17 @@ GST_CHECK_FEATURE(JPEG, [jpeg], jpegenc jpegdec, [
AC_SUBST(JPEG_LIBS)
])
+dnl *** jpeg-mmx ***
+AC_ARG_WITH(jpeg-mmx-path, [ --with-jpeg-mmx-path, path to mmx accelerated jpeg lib])
+translit(dnm, m, l) AM_CONDITIONAL(USE_JPEG_MMX, true)
+GST_CHECK_FEATURE(JPEG_MMX, [jpeg-mmx], jpegmmxenc jpegmmxdec, [
+ AC_CHECK_LIB(jpeg-mmx, jpeg_start_compress, HAVE_JPEG_MMX="yes", HAVE_JPEG_MMX="no", "-L$with_jpeg_mmx_path")
+ JPEG_MMX_LIBS="-L$with_jpeg_mmx_path -ljpeg-mmx"
+ JPEG_MMX_CFLAGS="-I$with_jpeg_mmx_path"
+ AC_SUBST(JPEG_MMX_LIBS)
+ AC_SUBST(JPEG_MMX_CFLAGS)
+])
+
dnl *** mad ***
dnl FIXME: we could use header checks here as well IMO
translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)