X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=configure.in;h=c8a10f9a6fca0e19bf8cc61cfc7a142f908b10e8;hp=d9da65b4cec0085a62e76fe8df822d00eafce7cf;hb=c6ded2d3330929c3706921ffbc09f4641d06cc81;hpb=ae984893d5ebc8fe3faed2878c33c4a7ac20b3b5 diff --git a/configure.in b/configure.in index d9da65b..c8a10f9 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ AC_INIT(src/) AC_ARG_PROGRAM export PACKAGE=swftools -export VERSION=0.0.2 +export VERSION=pre0.1.0 export CFLAGS="-O2 -fomit-frame-pointer" export CXXFLAGS="-O2 -fomit-frame-pointer" @@ -26,13 +26,12 @@ dnl Checks for libraries. echo "Error: Math library not found."; exit; ) - AC_CHECK_LIB(z, crc32,, + AC_CHECK_LIB(z, deflate,, echo "Error: The zlib compression library is required." DISABLEPDF2SWF=true; MISSINGLIBS="${MISSINGLIBS} zlib" - exit; ) - AC_CHECK_LIB(xjpeg, jpeg_write_raw_data,, + AC_CHECK_LIB(jpeg, jpeg_write_raw_data,, DISABLEPDF2SWF=true; DISABLEJPEG2SWF=true; MISSINGLIBS="${MISSINGLIBS} jpeglib" @@ -43,8 +42,8 @@ dnl Checks for libraries. ) dnl do we need those? - AC_CHECK_LIB(pthread, pthread_create) - AC_CHECK_LIB(X11, XFlush) +dnl AC_CHECK_LIB(pthread, pthread_create) +dnl AC_CHECK_LIB(X11, XFlush) dnl Checks for header files. AC_CONFIG_HEADER(config.h) @@ -52,7 +51,7 @@ dnl Checks for header files. dnl AC_PATH_XTRA AC_HEADER_DIRENT AC_HEADER_STDC - AC_CHECK_HEADERS(math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h) + AC_CHECK_HEADERS(math.h fcntl.h limits.h malloc.h unistd.h memory.h zlib.h jpeglib.h t1lib.h sys/stat.h) if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then DISABLEPDF2SWF=true; @@ -95,9 +94,9 @@ if test "x${DISABLEPDF2SWF}" = "xtrue"; then echo "***************************************************" echo "The following headers/libraries are missing: " ${MISSINGLIBS} echo "Disabling pdf2swf tool..." - rm pdf2swf/Makefile + rm -f pdf2swf/Makefile echo all: > pdf2swf/Makefile - echo install: > pdf2swf/Makefile + echo install: >> pdf2swf/Makefile if test "x${DISABLEJPEG2SWF}" = "xtrue"; then echo "Disabling jpeg2swf tool..." export JPEG2SWF=