-if test "x${DISABLEPDF2SWF}" = "xtrue"; then
- echo "***************************************************"
- echo "The following headers/libraries are missing: " ${MISSINGLIBS}
- if test "x${DISABLEPDF2SWF}" = "xtrue"; then
- echo "Disabling pdf2swf tool..."
- rm -f pdf2swf/Makefile
- echo all install uninstall clean: > pdf2swf/Makefile
- fi
- if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
- echo "Disabling jpeg2swf tool..."
- JPEG2SWF=
- export JPEG2SWF
- fi
- if test "x${DISABLEPNG2SWF}" = "xtrue"; then
- echo "Disabling png2swf tool..."
- PNG2SWF=
- export PNG2SWF
- fi
- 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
+# ------------------------------------------------------------------
+
+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${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_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"
+ PARTIAL=true
+fi
+
+AC_MSG_RESULT(${MISSINGLIBS})
+
+# ------------------------------------------------------------------
+
+if test "x${MISSINGLIBS}" '!=' "x"; then