X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=configure.in;h=5f0f23c9e9e5c3223d5f75e0d6ae4420c07e9973;hp=bd6023d0defbc6ade8346674c0a59137b2a62f33;hb=0422bd4ca0113cbd99a44674ad14e7da08f3d1f1;hpb=15e8d6890610919d1cf35195700d0001008ece17 diff --git a/configure.in b/configure.in index bd6023d..5f0f23c 100644 --- a/configure.in +++ b/configure.in @@ -1,12 +1,11 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(src/) -AC_ARG_PROGRAM - -export PACKAGE=swftools -export VERSION=pre0.1.0 -export CFLAGS="-O2 -fomit-frame-pointer" -export CXXFLAGS="-O2 -fomit-frame-pointer" +PACKAGE=swftools +VERSION=0.2.3 +CFLAGS="-Winline -Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer" +CXXFLAGS="-Winline -Wparentheses -Wimplicit -Wreturn-type -O2 -fomit-frame-pointer" +export PACKAGE VERSION CFLAGS CXXFLAGS dnl Checks for programs. AC_PROG_CC @@ -16,6 +15,7 @@ dnl Checks for programs. AC_PROG_MAKE_SET AC_PROG_INSTALL AC_PROG_LN_S + AC_CHECK_PROGS(UNCOMPRESS, gzip uncompress compress, ) dnl Checks for system services AC_EXEEXT @@ -40,6 +40,13 @@ dnl Checks for libraries. MISSINGLIBS="${MISSINGLIBS} T1lib" ) +SWF_CHECK_BYTEORDER +AC_SUBST(WORDS_BIGENDIAN) +SWF_CHECK_SYSTEM_BACKTICKS +AC_SUBST(SYSTEM_BACKTICKS) + +AC_ARG_PROGRAM + dnl do we need those? dnl AC_CHECK_LIB(pthread, pthread_create) dnl AC_CHECK_LIB(X11, XFlush) @@ -50,7 +57,7 @@ dnl AC_PATH_X 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 sys/stat.h sys/types.h) + 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) if test "x${ac_cv_header_jpeglib_h}" != "xyes"; then DISABLEPDF2SWF=true; @@ -80,6 +87,8 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_STRUCT_TM + AC_CHECK_TYPE(boolean,int) + AC_CHECK_TYPE(bool,char) dnl AC_CHECK_TYPE(uchar,unsigned char) dnl AC_CHECK_TYPE(schar,signed char) dnl AC_CHECK_TYPE(word,unsigned short int) @@ -87,12 +96,15 @@ dnl Checks for typedefs, structures, and compiler characteristics. dnl AC_CHECK_TYPE(uint,unsigned long int) dnl Checks for library functions. - AC_FUNC_MEMCMP - AC_FUNC_MMAP - AC_FUNC_VPRINTF - AC_CHECK_FUNCS(getcwd putenv socket strcspn strdup strerror strstr) + AC_CHECK_FUNCS(popen mkstemp stat lrand48 rand srand48 srand) + +if test "x${UNCOMPRESS}" = "xgzip"; then + AC_DEFINE_UNQUOTED(USE_GZIP, 1) +fi +AC_SUBST(USE_GZIP) -export JPEG2SWF='jpeg2swf$(EXEEXT)' +JPEG2SWF='jpeg2swf$(EXEEXT)' +export JPEG2SWF if test "x${DISABLEPDF2SWF}" = "xtrue"; then echo "***************************************************" echo "The following headers/libraries are missing: " ${MISSINGLIBS} @@ -100,14 +112,16 @@ if test "x${DISABLEPDF2SWF}" = "xtrue"; then rm -f pdf2swf/Makefile echo all: > pdf2swf/Makefile echo install: >> pdf2swf/Makefile + echo clean: >> pdf2swf/Makefile if test "x${DISABLEJPEG2SWF}" = "xtrue"; then echo "Disabling jpeg2swf tool..." - export JPEG2SWF= + JPEG2SWF= + export JPEG2SWF fi echo "***************************************************" - FILES="./release Makefile lib/Makefile src/Makefile" + FILES="./release Makefile lib/bladeenc/Makefile lib/Makefile src/Makefile swfs/Makefile" else - FILES="./release Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/fonts/Makefile" + FILES="./release Makefile lib/bladeenc/Makefile lib/Makefile src/Makefile pdf2swf/Makefile pdf2swf/xpdf/Makefile pdf2swf/ttf2pt1/Makefile pdf2swf/fonts/Makefile swfs/Makefile" fi AC_SUBST(JPEG2SWF)