1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(pdf2swf/swfoutput.h)
3 AM_INIT_AUTOMAKE(swftools, pre0.0.2)
6 dnl Checks for system services
11 CFLAGS="-O2 -fomit-frame-pointer"
13 CXXFLAGS="-O2 -fomit-frame-pointer"
14 dnl Checks for programs.
24 dnl Checks for libraries.
25 AC_CHECK_LIB(m, sin,, echo "Error: Math library not found.";exit)
26 AC_CHECK_LIB(jpeg, jpeg_write_raw_data,, echo "Error: The jpeg library 'jpeglib' is required.";exit)
27 AC_CHECK_LIB(z, crc32,, echo "Error: The zlib compression library is required.";exit)
28 AC_CHECK_LIB(t1, T1_LoadFont,,echo "Error: the T1lib truetype handling library is required.";exit)
30 AC_CHECK_LIB(pthread, pthread_create)
31 AC_CHECK_LIB(X11, XFlush)
33 dnl Checks for header files.
34 AM_CONFIG_HEADER(config.h)
39 AC_CHECK_HEADERS(math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h)
41 AC_SUBST(HAVE_UNISTD_H)
44 dnl Checks for typedefs, structures, and compiler characteristics.
50 dnl AC_CHECK_TYPE(uchar,unsigned char)
51 dnl AC_CHECK_TYPE(schar,signed char)
52 dnl AC_CHECK_TYPE(word,unsigned short int)
53 dnl AC_CHECK_TYPE(sword,unsigned short int)
54 dnl AC_CHECK_TYPE(uint,unsigned long int)
56 dnl Checks for library functions.
60 AC_CHECK_FUNCS(getcwd putenv socket strcspn strdup strerror strstr)
62 AC_OUTPUT(./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile)