AM_CONDITIONAL(CAMERA_NO_CMS, [ test $sq_have_cms = no ])
AM_CONDITIONAL(CAMERA_NO_JPEG, [ test $sq_have_jpeg = no ])
AM_CONDITIONAL(SQ_HAVE_JPEG, [ test $sq_have_jpeg = yes ])
AM_CONDITIONAL(SQ_HAVE_XWD, [ test $sq_have_xwd = yes ])
AM_CONDITIONAL(SQ_HAVE_TIFF, [ test $sq_have_tiff = yes ])
AM_CONDITIONAL(SQ_HAVE_EPS, [ test $sq_have_eps = yes ])
AM_CONDITIONAL(SQ_HAVE_CAMERA, [ test $sq_codec_camera = yes ])
AM_CONDITIONAL(SQ_HAVE_SVG, [ test $sq_codec_svg = yes -a $sq_have_svg = yes ])
AM_CONDITIONAL(SQ_HAVE_DICOM, [ test $sq_codec_dicom = yes -a $sq_have_dicom = yes ])
AM_CONDITIONAL(SQ_HAVE_WMF, [ test $sq_codec_wmf = yes -a $sq_have_wmf = yes ])
AM_CONDITIONAL(SQ_HAVE_JPEG2000,[ test $sq_codec_jpeg2000 = yes -a $sq_have_jpeg2000 = yes ])
AM_CONDITIONAL(SQ_HAVE_OPENEXR, [ test $sq_codec_openexr = yes -a $sq_have_openexr = yes ])
AM_CONDITIONAL(SQ_HAVE_GIF, [ test $sq_codec_gif = yes -a $sq_have_gif = yes ])
AM_CONDITIONAL(SQ_HAVE_TTF, [ test $sq_codec_ttf = yes -a $sq_have_ttf = yes ])
AM_CONDITIONAL(SQ_HAVE_MNG, [ test $sq_codec_mng = yes -a $sq_have_mng = yes ])
AM_CONDITIONAL(SQ_HAVE_DJVU, [ test $sq_codec_djvu = yes -a $sq_have_djvu = yes ])
AM_CONDITIONAL(SQ_HAVE_DXF, [ test $sq_codec_dxf = yes -a $sq_have_dxf = yes ])
AM_CONDITIONAL(SQ_HAVE_FIG, [ test $sq_codec_fig = yes -a $sq_have_fig = yes ])
AM_CONDITIONAL(SQ_HAVE_XCF, [ test $sq_codec_xcf = yes ])
AM_CONDITIONAL(SQ_HAVE_LJPEG, [ test $sq_codec_ljpeg = yes ])
# NetPBM
AM_CONDITIONAL(SQ_HAVE_NEO, [ test $sq_have_neo = yes ])
AM_CONDITIONAL(SQ_HAVE_XIM, [ test $sq_have_xim = yes ])
AM_CONDITIONAL(SQ_HAVE_PI1, [ test $sq_have_pi1 = yes ])
AM_CONDITIONAL(SQ_HAVE_PI3, [ test $sq_have_pi3 = yes ])
AM_CONDITIONAL(SQ_HAVE_UTAH, [ test $sq_have_utah = yes ])
AM_CONDITIONAL(SQ_HAVE_LEAF, [ test $sq_have_leaf = yes ])
AM_CONDITIONAL(SQ_HAVE_PICT, [ test $sq_have_pict = yes ])
AM_CONDITIONAL(SQ_HAVE_MAC, [ test $sq_have_mac = yes ])
AM_CONDITIONAL(SQ_HAVE_IFF, [ test $sq_have_iff = yes ])
AC_OUTPUT
echo "
KSquirrel-libs configuration:
-----------------------------
Source code location: ${srcdir}
ksquirrel-libs version: ${VERSION}
C++ Compiler: ${CXX}
C++ Compiler flags: ${CXXFLAGS}
Local ldflags: ${SQ_LOCAL_RPATH}
Installation options:
---------------------
libdir: ${libdir} ${libdir_warn}
Libraries:
----------"
sq_enabled=""
sq_disabled=""
sq_manual=""
sq_total="31"
sq_devel=""
sq_devel_message=""
if test $sq_have_jpeg = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled jpeg `; else sq_disabled=`echo -n $sq_disabled jpeg `; fi
if test $sq_have_xwd = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled xwd `; else sq_disabled=`echo -n $sq_disabled xwd `; fi
if test $sq_have_tiff = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled tiff `; else sq_disabled=`echo -n $sq_disabled tiff `; fi
if test $sq_codec_camera = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled camera `; else sq_disabled=`echo -n $sq_disabled camera `;fi
if test $sq_codec_camera = yes; then sq_camera_sett="Additional CAMERA settings: [LCMS: $sq_have_cms, JPEG: $sq_have_jpeg]";fi
if test $sq_have_wmf = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled wmf `; else sq_disabled=`echo -n $sq_disabled wmf `; fi
if test $sq_have_svg = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled svg `; else sq_disabled=`echo -n $sq_disabled svg `; fi
if test $sq_have_dicom = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled dicom `; else sq_disabled=`echo -n $sq_disabled dicom `; fi
if test $sq_have_openexr = yes;then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled openexr `;else sq_disabled=`echo -n $sq_disabled openexr `;fi
if test $sq_have_ttf = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled ttf `; else sq_disabled=`echo -n $sq_disabled ttf `; fi
if test $sq_have_mng = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled mng `; else sq_disabled=`echo -n $sq_disabled mng `; fi
if test $sq_have_gif = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled gif `; else sq_disabled=`echo -n $sq_disabled gif `; fi
if test $sq_have_djvu = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled djvu `; else sq_disabled=`echo -n $sq_disabled djvu `; fi
if test $sq_have_dxf = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled dxf `; else sq_disabled=`echo -n $sq_disabled dxf `; fi
if test $sq_have_fig = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled fig `; else sq_disabled=`echo -n $sq_disabled fig `; fi
if test $sq_codec_xcf = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled xcf `; else sq_disabled=`echo -n $sq_disabled xcf `; fi
if test $sq_codec_eps = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled eps `; else sq_disabled=`echo -n $sq_disabled eps `; fi
if test $sq_have_neo = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled neo `; else sq_disabled=`echo -n $sq_disabled neo `; fi
if test $sq_have_pi1 = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled pi1 `; else sq_disabled=`echo -n $sq_disabled pi1 `; fi
if test $sq_have_pi3 = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled pi3 `; else sq_disabled=`echo -n $sq_disabled pi3 `; fi
if test $sq_have_utah = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled utah `; else sq_disabled=`echo -n $sq_disabled utah `; fi
if test $sq_have_xim = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled xim `; else sq_disabled=`echo -n $sq_disabled xim `; fi
if test $sq_have_leaf = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled leaf `; else sq_disabled=`echo -n $sq_disabled leaf `; fi
if test $sq_have_pict = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled pict `; else sq_disabled=`echo -n $sq_disabled pict `; fi
if test $sq_have_iff = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled iff `; else sq_disabled=`echo -n $sq_disabled iff `; fi
if test $sq_have_mac = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled mac `; else sq_disabled=`echo -n $sq_disabled mac `; fi
if test $sq_codec_ljpeg = yes; then sq_total=`expr $sq_total + 1` && sq_enabled=`echo -n $sq_enabled ljpeg `; else sq_disabled=`echo -n $sq_disabled ljpeg `; fi
if test $sq_dev = yes; then sq_total=`expr $sq_total + 1`; else sq_devel="msp" && sq_devel_message="(use --enable-devel to enable these codecs)"; fi
if test $sq_codec_camera = no; then sq_manual=`echo -n $sq_manual camera`; fi
if test $sq_codec_gif = no; then sq_manual=`echo -n $sq_manual gif`; fi
if test $sq_codec_svg = no; then sq_manual=`echo -n $sq_manual svg`; fi
if test $sq_codec_dicom = no; then sq_manual=`echo -n $sq_manual dicom`; fi
if test $sq_codec_wmf = no; then sq_manual=`echo -n $sq_manual wmf`; fi
if test $sq_codec_openexr = no; then sq_manual=`echo -n $sq_manual openexr`; fi
if test $sq_codec_jpeg2000 = no; then sq_manual=`echo -n $sq_manual jpeg2000`; fi
if test $sq_codec_ttf = no; then sq_manual=`echo -n $sq_manual ttf`; fi
if test $sq_codec_mng = no; then sq_manual=`echo -n $sq_manual mng`; fi
if test $sq_codec_djvu = no; then sq_manual=`echo -n $sq_manual djvu`; fi
if test $sq_codec_dxf = no; then sq_manual=`echo -n $sq_manual dxf`; fi
if test $sq_codec_xcf = no; then sq_manual=`echo -n $sq_manual xcf`; fi
if test $sq_codec_ljpeg = no; then sq_manual=`echo -n $sq_manual ljpeg`; fi