X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fconfigure.ac;h=a6bb3c4de2eb790189fd68531234f49afd50ccd6;hb=73619743c8650dc9a39c0565628f770e070853d2;hp=6627b39d46dd31dcd7ae58ea636b9750f6b15e5e;hpb=e4e009ea389e1d04f74d2ab91f8fa2467e6eb8bc;p=synfig.git diff --git a/synfig-core/trunk/configure.ac b/synfig-core/trunk/configure.ac index 6627b39..a6bb3c4 100644 --- a/synfig-core/trunk/configure.ac +++ b/synfig-core/trunk/configure.ac @@ -246,6 +246,30 @@ if test $with_libavcodec = "yes" ; then { } ; fi +if test $with_libavcodec = "yes" ; then { + AC_ARG_WITH(libswscale, + [AS_HELP_STRING([--without-libswscale], + [disable support for libswscale (Default=auto)])], + [], + [with_libswscale="yes"] + ) + + if test $with_libswscale != "no" ; then { + PKG_CHECK_MODULES(LIBSWSCALE, [libswscale], [], [echo no; with_libswscale="no"]) + } ; fi + + if test $with_libswscale = "yes" ; then { + AC_DEFINE(WITH_LIBSWSCALE, [], [enable libswscale support]) + } else { + AC_CHECK_LIB(avcodec, img_convert, + [AC_MSG_RESULT([ *** Using deprecated function img_convert.])], + [AC_MSG_FAILURE([Neither libswscale nor function img_convert was found.])], + [] + ) + } ; fi +} ; fi +AM_CONDITIONAL(WITH_LIBSWSCALE, test "x$with_libswscale" = "xyes") + # FREETYPE2 CHECK-------------------- @@ -403,7 +427,7 @@ AC_CHECK_LIB(mng, mng_initialize,[ AM_CONDITIONAL(HAVE_LIBMNG,false) ],[-lz -L${exec_prefix}/lib]) -AC_CHECK_LIB(jpeg, main,[ +AC_CHECK_LIB(jpeg, jpeg_CreateCompress,[ JPEG_LIBS="-ljpeg" AC_DEFINE(HAVE_LIBJPEG,[], [ Define if JPEG library is available ] ) AC_SUBST(JPEG_LIBS) @@ -620,9 +644,9 @@ examples/walk/Makefile examples/Makefile win32inst.nsi pkg-info/macosx/synfig-core.info -dnl src/modules/trgt_mpg/Makefile -dnl src/modules/mptr_mplayer/Makefile ]) +## src/modules/trgt_mpg/Makefile +## src/modules/mptr_mplayer/Makefile AC_OUTPUT # -- S U M M A R Y -------------------------------------------- @@ -647,6 +671,7 @@ ETL_CFLAGS -----------------------> $ETL_CFLAGS FreeType2 ------------------------> $with_freetype fontconfig -----------------------> $with_fontconfig libavcodec -----------------------> $with_libavcodec +libswscale -----------------------> $with_libswscale vImage ---------------------------> $with_vimage ImageMagick ----------------------> $with_imagemagick Magick++ -------------------------> $with_magickpp