X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fconfig%2Fconfigure.ac;h=ca34e20a3ccfc5f8f453876e16b855630a4a73f1;hb=a11a35f647a3a6e61518ddfd61c9e199e25da3ef;hp=9345e7725dfc9ac5beaf1b99b10a3df9d5a5d7eb;hpb=6a271229bf821e96db38c918f02c6c14786043ec;p=synfig.git diff --git a/synfig-core/trunk/config/configure.ac b/synfig-core/trunk/config/configure.ac index 9345e77..ca34e20 100644 --- a/synfig-core/trunk/config/configure.ac +++ b/synfig-core/trunk/config/configure.ac @@ -1,4 +1,4 @@ -i# $Header: /opt/voria/cvs/synfig/config/configure.ac,v 1.10 2005/03/24 21:07:24 darco Exp $ +# $Id$ # -- I N I T -------------------------------------------------- @@ -153,6 +153,39 @@ if test $with_imagemagick = "no" ; then { +AC_ARG_WITH(magickpp,[ + --without-magickpp Disable support for Magick++],[ +],[ + with_magickpp="yes" +]) +if test $with_magickpp = "yes" ; then { + AC_CHECK_HEADER([Magick++.h],[ + MAGICKPP_LIBS="-lMagick++" + AC_DEFINE(HAVE_MAGICKPP,[], [ Define if Magick++ library is available ] ) + AC_SUBST(MAGICKPP_LIBS) + AM_CONDITIONAL(HAVE_LIBMAGICKPP,true) + AC_CHECK_LIB(Magick,OptimizeImageTransparency,[ + AC_DEFINE(HAVE_MAGICK_OPTIMIZE,[], [ Define if Magick++ defines OptimizeImageTransparency() ] ) + AM_CONDITIONAL(HAVE_MAGICK_OPTIMIZE,true) + ],[ + AC_MSG_RESULT([ *** OptimizeImageTransparency() not available - need ImageMagick 6.3 or newer ]) + AM_CONDITIONAL(HAVE_MAGICK_OPTIMIZE,false) + ]) + ],[ + with_magickpp="no" + AC_MSG_RESULT([ *** Magick++ Output target disabled]) + TARGET_MAGICKPP="no" + AM_CONDITIONAL(HAVE_LIBMAGICKPP,false) + AM_CONDITIONAL(HAVE_MAGICK_OPTIMIZE,false) + ]) +} else { + AM_CONDITIONAL(HAVE_LIBMAGICKPP,false) + AM_CONDITIONAL(HAVE_MAGICK_OPTIMIZE,false) +} ; fi + + + + AC_ARG_WITH(ffmpeg,[ --without-ffmpeg Disable support for FFMPEG],[ ],[ @@ -197,26 +230,26 @@ if test $with_libdv = "no" ; then { +# LIBAVCODEC CHECK-------------------- AC_ARG_WITH(libavcodec,[ - --with-libavcodec Enable support for libavcodec (Default=auto)],[ + --without-libavcodec disable support for libavcodec (Default=auto)],[ ],[ - AC_CHECK_LIB(avcodec, avcodec_find_encoder,[ - with_libavcodec="yes" - ],[ - with_libavcodec="no" - ]) + with_libavcodec="yes" ]) -if test $with_libavcodec = "no" ; then { - AM_CONDITIONAL(WITH_LIBAVCODEC,false) -} else { + +if test $with_libavcodec != "no" ; then { + PKG_CHECK_MODULES(LIBAVCODEC, [libavcodec libavformat],[],[echo no; with_libavcodec="no"]) +} ; fi +if test $with_libavcodec = "yes" ; then { + AC_DEFINE(WITH_LIBAVCODEC,[],[enable libavcodec support]) AM_CONDITIONAL(WITH_LIBAVCODEC,true) +} else { + AM_CONDITIONAL(WITH_LIBAVCODEC,false) } ; fi - - # FREETYPE2 CHECK-------------------- AC_ARG_WITH(freetype,[ @@ -225,22 +258,16 @@ AC_ARG_WITH(freetype,[ with_freetype="yes" ]) - if test $with_freetype != "no" ; then { - PKG_CHECK_MODULES(FREETYPE, xft freetype2 fontconfig,[ + PKG_CHECK_MODULES(FREETYPE, freetype2,[ with_freetype="yes" ],[ - PKG_CHECK_MODULES(FREETYPE, freetype2 fontconfig,[ + PKG_CHECK_MODULES(FREETYPE, xft,[ with_freetype="yes" ],[ with_freetype="no" ]) ]) -# AC_CHECK_FT2(,[ -# with_freetype="yes" -# ],[ -# with_freetype="no" -# ]) } ; fi if test $with_freetype = "no" ; then { @@ -250,8 +277,28 @@ if test $with_freetype = "no" ; then { } ; fi +# FONTCONFIG CHECK-------------------- + +AC_ARG_WITH(fontconfig,[ + --without-fontconfig disable support for fontconfig (Default=auto)],[ +],[ + with_fontconfig="yes" +]) +if test $with_fontconfig != "no" ; then { + PKG_CHECK_MODULES(FONTCONFIG, fontconfig,[ + with_fontconfig="yes" + ],[ + with_fontconfig="no" + ]) +} ; fi +if test $with_fontconfig = "yes" ; then { + AC_DEFINE(WITH_FONTCONFIG,[],[enable fontconfig support]) + AM_CONDITIONAL(WITH_FONTCONFIG,true) +} else { + AM_CONDITIONAL(WITH_FONTCONFIG,false) +} ; fi # OPENEXR CHECK------------------------ @@ -278,6 +325,9 @@ if test $with_openexr = "no" ; then { if test $use_openexr_half = yes ; then { AC_MSG_RESULT([ ** Using OpenEXR Half.]) CONFIG_CFLAGS="$CONFIG_CFLAGS -DUSE_HALF_TYPE" + OPENEXR_HALF_LIBS="-lHalf" +} else { + OPENEXR_HALF_LIBS="" } ; fi @@ -288,8 +338,8 @@ if test $use_openexr_half = yes ; then { AC_LIB_LTDL -PKG_CHECK_MODULES(ETL, ETL,,[ - AC_MSG_ERROR([ ** You need to install the ETL.]) +PKG_CHECK_MODULES(ETL, [ETL >= 0.04.10],,[ + AC_MSG_ERROR([ ** You need to install the ETL (version 0.04.10 or greater).]) ]) CONFIG_DEPS="$CONFIG_DEPS ETL" @@ -320,6 +370,7 @@ dnl PKG_CHECK_MODULES(GLIB, glib-2.0,[GLIB="yes"],[GLIB="no"]) TARGET_TIF="yes" TARGET_PNG="yes" +TARGET_MNG="yes" TARGET_JPEG="yes" if test "$TARGET_TIF" != "disabled" ; then @@ -353,6 +404,17 @@ AC_CHECK_LIB(png, png_write_row,[ ],[-lz -L${exec_prefix}/lib]) ],[-lz -L${exec_prefix}/lib]) +AC_CHECK_LIB(mng, mng_initialize,[ + MNG_LIBS="-lmng -lz" + AC_DEFINE(HAVE_LIBMNG,[], [ Define if MNG library is available ] ) + AC_SUBST(MNG_LIBS) + AM_CONDITIONAL(HAVE_LIBMNG,true) +],[ + AC_MSG_RESULT([ *** MNG Output target disabled]) + TARGET_MNG="no" + AM_CONDITIONAL(HAVE_LIBMNG,false) +],[-lz -L${exec_prefix}/lib]) + AC_CHECK_LIB(jpeg, main,[ JPEG_LIBS="-ljpeg" AC_DEFINE(HAVE_LIBJPEG,[], [ Define if JPEG library is available ] ) @@ -485,6 +547,8 @@ AC_SUBST(LIBADD_DL) AC_SUBST(SYNFIG_LIBS) AC_SUBST(SYNFIG_CFLAGS) +AC_SUBST(OPENEXR_HALF_LIBS) + AC_SUBST(API_VERSION) synfigincludedir=$includedir/synfig-@API_VERSION@ @@ -508,26 +572,29 @@ Makefile src/Makefile src/synfig/Makefile src/modules/Makefile -src/modules/mod_filter/Makefile -src/modules/mod_bmp/Makefile -src/modules/mod_gif/Makefile -src/modules/mod_ppm/Makefile -src/modules/mod_png/Makefile -src/modules/mod_jpeg/Makefile +src/modules/lyr_freetype/Makefile src/modules/lyr_std/Makefile +src/modules/mod_bmp/Makefile +src/modules/mod_dv/Makefile +src/modules/mod_ffmpeg/Makefile +src/modules/mod_filter/Makefile src/modules/mod_geometry/Makefile +src/modules/mod_gif/Makefile src/modules/mod_gradient/Makefile -src/modules/mod_noise/Makefile -src/modules/lyr_freetype/Makefile -src/modules/mod_ffmpeg/Makefile -src/modules/mod_dv/Makefile src/modules/mod_imagemagick/Makefile -src/modules/mod_openexr/Makefile +src/modules/mod_jpeg/Makefile src/modules/mod_libavcodec/Makefile -src/modules/mod_yuv420p/Makefile +src/modules/mod_magickpp/Makefile +src/modules/mod_mng/Makefile +src/modules/mod_noise/Makefile +src/modules/mod_openexr/Makefile src/modules/mod_particle/Makefile +src/modules/mod_png/Makefile +src/modules/mod_ppm/Makefile +src/modules/mod_yuv420p/Makefile src/tool/Makefile src/modules/synfig_modules.cfg +examples/walk/Makefile examples/Makefile win32inst.nsi pkg-info/macosx/synfig-core.info @@ -552,25 +619,27 @@ GProf Profiling ------------------> $profiling Debug Mode -----------------------> $debug ($debug_flags) Optimization ---------------------> $optimization PNG output target support --------> $TARGET_PNG +MNG output target support --------> $TARGET_MNG TIFF output target support -------> $TARGET_TIF JPEG output target support -------> $TARGET_JPEG ETL_CFLAGS -----------------------> $ETL_CFLAGS FreeType2 ------------------------> $with_freetype +fontconfig -----------------------> $with_fontconfig libavcodec -----------------------> $with_libavcodec vImage ---------------------------> $with_vimage -GLib -----------------------------> $GLIB ImageMagick ----------------------> $with_imagemagick +Magick++ -------------------------> $with_magickpp FFMPEG ---------------------------> $with_ffmpeg libdv ----------------------------> $with_libdv OpenEXR --------------------------> $with_openexr Using OpenEXR's \"half\" type ------> $use_openexr_half -"'$'"CXX ------------------------------> '$CXX' -"'$'"CXXFLAGS -------------------------> '$CXXFLAGS' -"'$'"SYNFIG_LIBS -----------------------> '$SYNFIG_LIBS' -"'$'"LIBXMLPP_LIBS --------------------> '$LIBXMLPP_LIBS' -"'$'"ETL_LIBS -------------------------> '$ETL_LIBS' -"'$'"LIBSIGC_LIBS ---------------------> '$LIBSIGC_LIBS' -"'$'"SYNFIG_CFLAGS ---------------------> '$SYNFIG_CFLAGS' -"'$'"LIBADD_DL ------------------------> '$LIBADD_DL' +"'$'"CXX -----------------------------> '$CXX' +"'$'"CXXFLAGS ------------------------> '$CXXFLAGS' +"'$'"SYNFIG_LIBS ---------------------> '$SYNFIG_LIBS' +"'$'"LIBXMLPP_LIBS -------------------> '$LIBXMLPP_LIBS' +"'$'"ETL_LIBS ------------------------> '$ETL_LIBS' +"'$'"LIBSIGC_LIBS --------------------> '$LIBSIGC_LIBS' +"'$'"SYNFIG_CFLAGS -------------------> '$SYNFIG_CFLAGS' +"'$'"LIBADD_DL -----------------------> '$LIBADD_DL' "