+# ------------------------------------------------------------------
+
+RFX_CHECK_PYTHON
+
+if test "x$PYTHON_OK" '!=' "xyes";then
+ echo all install uninstall clean: > lib/python/Makefile
+ # fail silently- the most users won't have any need for the
+ # python interface anyway
+else
+ pythonrfxswf="lib/python/Makefile"
+fi
+
+# ------------------------------------------------------------------
+
+AC_MSG_CHECKING([for missing libraries])
+
+if test "x$ZLIBMISSING" = "xtrue";then
+ MISSINGLIBS="${MISSINGLIBS} zlib"
+ DISABLEPNG2SWF=true
+ PARTIAL=true
+fi
+if test "x$JPEGLIBMISSING" = "xtrue";then
+ MISSINGLIBS="${MISSINGLIBS} jpeglib"
+ DISABLEPDF2SWF=true
+ DISABLEJPEG2SWF=true
+ PARTIAL=true
+fi
+#if test "x$T1LIBMISSING" = "xtrue";then
+# MISSINGLIBS="${MISSINGLIBS} t1lib"
+#fi
+if test "x$UNGIFMISSING" = "xtrue";then
+ DISABLEGIF2SWF=true
+ MISSINGLIBS="${MISSINGLIBS} ungif"
+ PARTIAL=true
+fi
+
+if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
+ DISABLEPDF2SWF=true;
+ DISABLEJPEG2SWF=true;
+ MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
+ PARTIAL=true
+fi
+if test "x$HAVE_FREETYPE" '!=' "x1"; then
+ DISABLEPDF2SWF=true;
+ MISSINGLIBS="${MISSINGLIBS} freetype"
+ PARTIAL=true
+fi
+#if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
+# MISSINGLIBS="${MISSINGLIBS} t1lib.h"
+#fi
+if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
+ DISABLEGIF2SWF=true
+ MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
+ PARTIAL=true
+fi
+if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
+ DISABLEPNG2SWF=true;
+ MISSINGLIBS="${MISSINGLIBS} zlib.h"
+ PARTIAL=true
+fi
+#if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
+# MISSINGLIBS="${MISSINGLIBS} avifile"
+#fi
+
+AC_MSG_RESULT(${MISSINGLIBS})
+
+# ------------------------------------------------------------------
+
+if test "x${MISSINGLIBS}" '!=' "x"; then
+ echo "***************************************************"
+ echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
+fi
+
+avi2swf="avi2swf/Makefile"
+if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
+ #don't whine, avi2swf is outdated anyway
+ #echo "* Disabling avi2swf tool..."
+ echo all install uninstall clean: > avi2swf/Makefile
+ avi2swf=
+fi
+
+pdf2swf_makefile="lib/pdf/Makefile"
+PDF2SWF='pdf2swf$(E)'
+LIBPDF='libpdf$(A)'
+
+if test "x${DISABLEPDF2SWF}" = "xtrue"; then
+ echo "* Disabling pdf2swf tool..."
+ rm -f lib/pdf/Makefile
+ echo all install uninstall clean libpdf: > lib/pdf/Makefile
+ pdf2swf_makefile=""
+ PDF2SWF=
+ LIBPDF=
+fi
+AC_SUBST(PDF2SWF)
+AC_SUBST(LIBPDF)
+
+if test "x${ZLIBMISSING}" = "xtrue"; then
+ echo
+ echo "* Warning! Without zlib, you will not be able to read"
+ echo "* or write compressed Flash MX files!"
+fi
+
+JPEG2SWF='jpeg2swf$(E)'
+if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
+ echo "* Disabling jpeg2swf tool..."
+ JPEG2SWF=
+fi