1 dnl Process this file with autoconf to produce a configure script.
6 CFLAGS="-Winline -Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer"
7 CXXFLAGS="-Winline -Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer"
8 export PACKAGE VERSION CFLAGS CXXFLAGS
10 dnl Checks for programs.
18 AC_CHECK_PROGS(UNCOMPRESS, gzip uncompress compress, )
20 dnl Checks for system services
23 dnl Checks for libraries.
25 echo "Error: Math library not found.";
28 AC_CHECK_LIB(z, deflate,,
29 echo "Error: The zlib compression library is required."
31 MISSINGLIBS="${MISSINGLIBS} zlib"
33 AC_CHECK_LIB(jpeg, jpeg_write_raw_data,,
36 MISSINGLIBS="${MISSINGLIBS} jpeglib"
38 AC_CHECK_LIB(t1, T1_LoadFont,,
40 MISSINGLIBS="${MISSINGLIBS} T1lib"
44 AC_SUBST(WORDS_BIGENDIAN)
45 SWF_CHECK_SYSTEM_BACKTICKS
46 AC_SUBST(SYSTEM_BACKTICKS)
51 dnl AC_CHECK_LIB(pthread, pthread_create)
52 dnl AC_CHECK_LIB(X11, XFlush)
54 dnl Checks for header files.
55 AC_CONFIG_HEADER(config.h)
60 AC_CHECK_HEADERS(zlib.h jpeglib.h t1lib.h sys/stat.h sys/types.h dirent.h sys/ndir.h sys/dir.h ndir.h)
62 if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then
65 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
67 if test "x${ac_cv_header_t1lib_h}" != "xyes"; then
69 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
71 if test "x${ac_cv_header_zlib_h}" != "xyes"; then
73 MISSINGLIBS="${MISSINGLIBS} zlib.h"
76 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
77 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
81 AC_SUBST(HAVE_UNISTD_H)
84 dnl Checks for typedefs, structures, and compiler characteristics.
90 AC_CHECK_TYPE(boolean,int)
91 dnl AC_CHECK_TYPE(uchar,unsigned char)
92 dnl AC_CHECK_TYPE(schar,signed char)
93 dnl AC_CHECK_TYPE(word,unsigned short int)
94 dnl AC_CHECK_TYPE(sword,unsigned short int)
95 dnl AC_CHECK_TYPE(uint,unsigned long int)
97 dnl Checks for library functions.
98 AC_CHECK_FUNCS(popen mkstemp stat lrand48 rand srand48 srand)
100 if test "x${UNCOMPRESS}" = "xgzip"; then
101 AC_DEFINE_UNQUOTED(USE_GZIP, 1)
105 JPEG2SWF='jpeg2swf$(EXEEXT)'
107 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
108 echo "***************************************************"
109 echo "The following headers/libraries are missing: " ${MISSINGLIBS}
110 echo "Disabling pdf2swf tool..."
111 rm -f pdf2swf/Makefile
112 echo all: > pdf2swf/Makefile
113 echo install: >> pdf2swf/Makefile
114 echo clean: >> pdf2swf/Makefile
115 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
116 echo "Disabling jpeg2swf tool..."
120 echo "***************************************************"
121 FILES="./release Makefile lib/bladeenc/Makefile lib/Makefile src/Makefile swfs/Makefile"
123 FILES="./release Makefile lib/bladeenc/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile pdf2swf/fonts/Makefile swfs/Makefile"