[Cin] Fwd: I tried to isolate x86 part of thirdparty mjpegtools from configure.ac

Andrew Randrianasulu randrianasulu at gmail.com
Tue May 14 15:02:12 CEST 2019


No, better attempt (with code duplication):

diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac
index 90048a2..5948fba 100644
--- a/cinelerra-5.1/configure.ac
+++ b/cinelerra-5.1/configure.ac
@@ -321,10 +321,17 @@ PKG_3RD([libvorbis],[auto],
     lib/.libs/libvorbisfile.a ],
   [ include . ])

+## arch dep tests
+ARCH=[`uname -m`]
+I86=[`expr "x$ARCH" : 'xi[346]86.*'`]
+X86=[`expr "x$ARCH" : 'x..._64*'`]
+
+if test "x$I86$X86" != "x00" ; then
+
 PKG_3RD([mjpegtools],[yes],
   [mjpegtools-2.1.0],
-  [ utils/mmxsse/.libs/libmmxsse.a \
-    utils/.libs/libmjpegutils.a \
+   [ utils/.libs/libmjpegutils.a \
+    utils/mmxsse/.libs/libmmxsse.a \
     lavtools/.libs/liblavfile.a \
     lavtools/.libs/liblavjpeg.a \
     mplex/.libs/libmplex2.a \
@@ -332,6 +339,21 @@ PKG_3RD([mjpegtools],[yes],
     mpeg2enc/.libs/libmpeg2encpp.a ],
   [ .  lavtools utils ])

+else
+
+
+PKG_3RD([mjpegtools],[yes],
+  [mjpegtools-2.1.0],
+    [ utils/.libs/libmjpegutils.a \
+    lavtools/.libs/liblavfile.a \
+    lavtools/.libs/liblavjpeg.a \
+    mplex/.libs/libmplex2.a \
+    yuvfilters/.libs/libyuvfilters.a \
+    mpeg2enc/.libs/libmpeg2encpp.a ],
+  [ .  lavtools utils ])
+
+fi
+
 PKG_3RD([openexr],[auto],
   [openexr-2.2.1],
   [ IlmImf/.libs/libIlmImf.a \

------------------

there also was unrelated hunk about forcing libvpx (locally).
survived ./autogen.sh + configure, global_config looks sane (in place where it talks about mjpegtools)

----------  Пересланное сообщение  ----------

Тема: I tried to isolate x86 part of thirdparty mjpegtools from configure.ac
Дата: Вторник 14 мая 2019
Отправитель: Andrew Randrianasulu <randrianasulu at gmail.com>
Получатель:  "Cinelerra.GG" <cin at lists.cinelerra-gg.org>



..but not sure if I did it correctly?

----------
## arch dep tests
ARCH=[`uname -m`]
I86=[`expr "x$ARCH" : 'xi[346]86.*'`]
X86=[`expr "x$ARCH" : 'x..._64*'`]



PKG_3RD([mjpegtools],[yes],
  [mjpegtools-2.1.0],
  [
if test "x$I86$X86" != "x00" ; then
   utils/mmxsse/.libs/libmmxsse.a \
fi
    utils/.libs/libmjpegutils.a \
    lavtools/.libs/liblavfile.a \
    lavtools/.libs/liblavjpeg.a \
    mplex/.libs/libmplex2.a \
    yuvfilters/.libs/libyuvfilters.a \
    mpeg2enc/.libs/libmpeg2encpp.a ],
  [ .  lavtools utils ])

based on x86 asm test below ....

-------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libmmxsse_isolation_configure_ac.diff
Type: text/x-diff
Size: 1408 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20190514/8fdb6207/attachment.bin>


More information about the Cin mailing list