Add mod_mng, and libmng detection.
[synfig.git] / synfig-core / trunk / config / configure.ac
index 226f5b9..2beb02a 100644 (file)
@@ -305,8 +305,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"
 
@@ -337,6 +337,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
@@ -370,6 +371,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 ] )
@@ -532,6 +544,7 @@ src/modules/mod_bmp/Makefile
 src/modules/mod_gif/Makefile
 src/modules/mod_ppm/Makefile
 src/modules/mod_png/Makefile
+src/modules/mod_mng/Makefile
 src/modules/mod_jpeg/Makefile
 src/modules/lyr_std/Makefile
 src/modules/mod_geometry/Makefile
@@ -547,6 +560,7 @@ src/modules/mod_yuv420p/Makefile
 src/modules/mod_particle/Makefile
 src/tool/Makefile
 src/modules/synfig_modules.cfg
+examples/walk/Makefile
 examples/Makefile
 win32inst.nsi
 pkg-info/macosx/synfig-core.info
@@ -571,6 +585,7 @@ 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