X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fconfigure.ac;h=d54d490547e7dcd79c14b83353fd1d7cc010454b;hp=ff203afe27627c00dd1c26aaad10c92417c942ec;hb=49d684c03f57629c656d81d76b84737c6449e0b4;hpb=418e8644335db47143bc421f11be2c2e68901d45 diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac index ff203afe..d54d4905 100644 --- a/cinelerra-5.1/configure.ac +++ b/cinelerra-5.1/configure.ac @@ -333,7 +333,6 @@ AC_ARG_ENABLE([$1], CHECK_ENABLE([static-build], [STATIC_BUILD], [build static], [auto]) CHECK_ENABLE([x264_hidepth], [X264_HIDEPTH], [build x264 10bit], [no]) -CHECK_ENABLE([x265_hidepth], [X265_HIDEPTH], [build x265 10/12bit], [no]) test "x$WANT_STATIC_BUILD" = "xauto" && WANT_STATIC_BUILD=$WANT_CINBIN_BUILD @@ -359,6 +358,19 @@ fi CHECK_PROG(PACTL, [pactl]) WANT_PACTL=$PROG_PACTL +# libx264 nasm fix +AC_MSG_CHECKING([nasm x264 compatible]) +echo "vmovdqa32 [[eax]]{k1}{z}, zmm0" > conftest.asm +nasm conftest.asm -o conftest.o > /dev/null 2>&1 +if test $? != 0 ; then + AC_MSG_RESULT([no]) + AC_MSG_WARN([libx264 built without assembly code]) + X264_CFG_PARAMS="$X264_CFG_PARAMS --disable-asm" +else + AC_MSG_RESULT([yes]) +fi +rm -f conftest.asm conftest.o + AC_CHECK_DECL([X_HAVE_UTF8_STRING],,[no_utf=yes],[#include ]) if test "$no_utf" = "yes"; then AC_MSG_ERROR([Cinelerra requires utf8 support in X Windows.]) @@ -734,7 +746,6 @@ fi AC_SUBST(EXTRA_LIBS) AC_SUBST(FFMPEG_EXTRA_CFG) AC_SUBST(WANT_X264_HIDEPTH) -AC_SUBST(WANT_X265_HIDEPTH) AC_SUBST(CFG_CFLAGS) AC_SUBST(CFG_CXXFLAGS) @@ -792,10 +803,7 @@ for flg in $CFG_CXXFLAGS; do echo "CXXFLAGS += $flg"; done echo "" if test $WANT_X264_HIDEPTH = "yes" ; then - echo "x264.cfg_params := --enable-static --bit-depth=10" -fi -if test $WANT_X265_HIDEPTH = "yes" ; then - echo "x265.cfg_params := -DENABLE_SHARED=no -DHIGH_BIT_DEPTH:BOOL=ON" # -DMAIN12:BOOL=ON" + X264_CFG_PARAMS="$X264_CFG_PARAMS --bit-depth=10" fi for pkg in $STATIC_PKGS; do @@ -860,3 +868,6 @@ fi if test "x$HAVE_opus" = "xyes"; then echo 'ffmpeg.cflags+=" -I/usr/include/opus"' fi +if test "x$X264_CFG_PARAMS" != "x" ; then + echo "x264.cfg_params :=$X264_CFG_PARAMS --enable-static --enable-pic" +fi