+ AC_CHECK_FUNCS(popen mkstemp stat lrand48 rand srand48 srand)
+ RFX_CHECK_AVI2SWF
+
+avi2swf="avi2swf/Makefile"
+if test "x${AVIFILE}" != "xtrue"; then
+ echo "* Couldn't compile the avifile test program."
+ echo "* Disabling avi2swf tool..."
+ echo all install uninstall clean: > avi2swf/Makefile
+ avi2swf=
+fi
+
+if test "x${NO_MP3}" == "x"; then
+ AC_DEFINE_UNQUOTED(USE_MP3, 1)
+fi
+
+if test "x${USE_FREETYPE}" == "xtrue"; then
+ if test "x{$FREETYPE_CONFIG}" != "x"; then
+ ftinclude=`freetype-config --cflags`
+ ftlibs=`freetype-config --libs`
+ CXXFLAGS="$CXXFLAGS $ftinclude"
+ CFLAGS="$CFLAGS $ftinclude"
+ LIBS="$LIBS $ftlibs"
+ else if test -d /usr/include/freetype2; then
+ CXXFLAGS="$CXXFLAGS -I/usr/include/freetype2"
+ CFLAGS="$CFLAGS -I/usr/include/freetype2"
+ LIBS="$LIBS -lfreetype"
+ else if test -d /usr/local/include/freetype2; then
+ CXXFLAGS="$CXXFLAGS -I/usr/local/include/freetype2"
+ CFLAGS="$CFLAGS -I/usr/local/include/freetype2"
+ LIBS="$LIBS -L /usr/local/lib -lfreetype"
+ fi
+ fi
+ fi
+fi
+
+if test "x${UNCOMPRESS}" = "xgzip"; then
+ AC_DEFINE_UNQUOTED(USE_GZIP, 1)
+fi
+AC_SUBST(USE_GZIP)
+
+JPEG2SWF='jpeg2swf$(E)'
+export JPEG2SWF
+PNG2SWF='png2swf$(E)'
+export PNG2SWF
+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
+ echo "***************************************************"
+ FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile swfs/Makefile"
+else
+ FILES="./release Makefile.common ${avi2swf} Makefile lib/lame/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile swfs/Makefile"
+fi
+AC_SUBST(JPEG2SWF)
+AC_SUBST(PNG2SWF)
+
+AC_OUTPUT(${FILES})