X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=configure.ac;h=8699babf2f047031f71bf6256bdfe2684fac7927;hb=57340e008c81f05c0adb4d8874dda11104d8bb7e;hp=a49f0ef1b2ccfbf0c7513c006ea42d3de4e2569b;hpb=7e41fe84a841d7b9d7b36b245b65e9dcb3314943;p=imagemagick diff --git a/configure.ac b/configure.ac index a49f0ef1b..8699babf2 100755 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization +# Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization # dedicated to making software imaging solutions freely available. # # You may not use this file except in compliance with the License. You may @@ -14,14 +14,23 @@ # # Copyright (C) 2003 - 2008 GraphicsMagick Group -AC_PREREQ(2.64) -AC_INIT([ImageMagick],[6.6.6],[http://www.imagemagick.org],[ImageMagick]) -AC_CONFIG_SRCDIR([magick/MagickCore.h]) +AC_PREREQ(2.67) + +m4_define([magick_major_version], [7]) +m4_define([magick_minor_version], [0]) +m4_define([magick_micro_version], [0]) +m4_define([magick_patchlevel_version], [0]) +m4_define([magick_version], + [magick_major_version.magick_minor_version.magick_micro_version-magick_patchlevel_version]) +m4_define([magick_svn_revision], esyscmd([sh -c "svnversion | sed -r 's/([0-9]+).*/\1/'"])) + +AC_INIT([ImageMagick],[magick_version],[http://www.imagemagick.org],[ImageMagick]) +AC_CONFIG_SRCDIR([MagickCore/MagickCore.h]) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_LIBOBJ_DIR([ltdl]) AC_CONFIG_HEADERS([config/config.h]) -AX_PREFIX_CONFIG_H([magick/magick-config.h],[MagickCore]) +AX_PREFIX_CONFIG_H([MagickCore/magick-config.h],[MagickCore]) AC_CONFIG_FILES([\ config/configure.xml \ config/delegates.xml \ @@ -34,13 +43,12 @@ AC_CONFIG_FILES([\ config/type.xml \ ImageMagick.spec \ Magick++/bin/Magick++-config \ - magick/ImageMagick.pc \ + MagickCore/ImageMagick.pc \ Magick++/lib/ImageMagick++.pc \ Magick++/lib/Magick++.pc \ - magick/Magick-config \ - magick/MagickCore-config \ - magick/MagickCore.pc \ - magick/version.h \ + MagickCore/MagickCore-config \ + MagickCore/MagickCore.pc \ + MagickCore/version.h \ Makefile \ magick.sh \ PerlMagick/Magick.pm \ @@ -58,10 +66,8 @@ AC_CONFIG_FILES([\ utilities/mogrify.1 \ utilities/montage.1 \ utilities/stream.1 \ - wand/MagickWand-config \ - wand/MagickWand.pc \ - wand/Wand-config \ - wand/Wand.pc ]) + MagickWand/MagickWand-config \ + MagickWand/MagickWand.pc ]) # # Save initial user-tunable values @@ -86,15 +92,14 @@ echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" AC_CANONICAL_SYSTEM AC_CANONICAL_BUILD AC_CANONICAL_HOST -AC_CANONICAL_TARGET([]) -MAGICK_TARGET_CPU=$target_cpu +MAGICK_TARGET_CPU=$host_cpu AC_SUBST(MAGICK_TARGET_CPU) -MAGICK_TARGET_VENDOR=$target_vendor +MAGICK_TARGET_VENDOR=$host_vendor AC_SUBST(MAGICK_TARGET_VENDOR) -MAGICK_TARGET_OS=$target_os +MAGICK_TARGET_OS=$host_os AC_SUBST(MAGICK_TARGET_OS) # Substitute library versioning @@ -105,9 +110,11 @@ AC_SUBST([MAGICK_LIBRARY_CURRENT_MIN], [`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`]) AC_SUBST([MAGICK_LIBRARY_VERSION_INFO], [$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE]) +AC_SUBST([MAGICK_SVN_REVISION],[magick_svn_revision]) AC_SUBST(PACKAGE_NAME)dnl AC_SUBST(PACKAGE_VERSION)dnl +AC_SUBST(PACKAGE_PERL_VERSION)dnl AC_SUBST(PACKAGE_RELEASE)dnl AC_SUBST(PACKAGE_CHANGE_DATE)dnl AC_SUBST(PACKAGE_LIB_VERSION)dnl @@ -118,10 +125,10 @@ AC_SUBST(PACKAGE_VERSION_ADDENDUM)dnl # Ensure that make can run correctly AM_SANITY_CHECK -AM_INIT_AUTOMAKE($PACKAGE_NAME,"${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}", ' ') +AM_INIT_AUTOMAKE([1.11 color-tests foreign parallel-tests silent-rules subdir-objects dist-bzip2 dist-lzip dist-xz dist-zip]) # Enable support for silent build rules -AM_SILENT_RULES([yes]) +m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) MAGICK_LIB_VERSION="0x" if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then @@ -182,6 +189,8 @@ eval "eval LIBEXEC_DIR=$libexecdir" AC_SUBST(LIBEXEC_DIR) eval "eval DATA_DIR=$datadir" AC_SUBST(DATA_DIR) +eval "eval DOC_DIR=$datadir/doc" +AC_SUBST(DOC_DIR) eval "eval SYSCONF_DIR=$sysconfdir" AC_SUBST(SYSCONF_DIR) eval "eval SHAREDSTATE_DIR=$sharedstatedir" @@ -252,13 +261,14 @@ AC_PROG_MAKE_SET AC_PROG_LN_S AM_WITH_DMALLOC AX_C___ATTRIBUTE__ +AX_GCC_ARCHFLAG([no]) PKG_PROG_PKG_CONFIG # # Enable run-time checking. # AC_ARG_ENABLE([bounds-checking], - [AC_HELP_STRING([--bounds-checking], + [AC_HELP_STRING([--enable-bounds-checking], [enable run-time bounds-checking])], [enable_bounds_checking=$enableval], [enable_bounds_checking='no']) @@ -367,6 +377,32 @@ Please re-run configure with these options: ;; esac +# +# ARCH specific include directory +# +AC_ARG_WITH([includearch-dir], + [AC_HELP_STRING([--includearch-dir=DIR], + [ARCH specific include directory])], + [includearch_dir=$withval], + [includearch_dir=$INCLUDE_DIR]) + +eval "eval INCLUDEARCH_DIR=$includearch_dir" +AC_SUBST(INCLUDEARCH_DIR) + +# +# ARCH specific configuration directory +# +AC_ARG_WITH([sharearch-dir], + [AC_HELP_STRING([--sharearch-dir=DIR], + [ARCH specific config directory])], + [sharearch_dir=$withval], + [sharearch_dir="${LIB_DIR}"]) + +eval "eval SHAREARCH_DIR=$sharearch_dir" +SHAREARCH_DIR="$sharearch_dir" +AC_SUBST(SHAREARCH_DIR) + +# # Enable support for threads AC_ARG_WITH([threads], [AC_HELP_STRING([--without-threads], [disable threads support])], @@ -409,7 +445,7 @@ CFLAGS="$CL_CFLAGS $CFLAGS" LIBS="$CL_LIBS $LIBS" AC_SUBST(CL_CFLAGS) if test "$enable_opencl" != no; then - if test "_OPENCL" = '1'; then + if test "X$ax_cv_check_cl_libcl" != Xno; then : MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" fi fi @@ -423,18 +459,24 @@ AC_SYS_LARGEFILE AC_FUNC_FSEEKO LFS_CPPFLAGS='' if test "$enable_largefile" != no; then - if test "$ac_cv_sys_file_offset_bits" != 'no'; then - LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" - else + case $ac_cv_sys_file_offset_bits in + no) + # nothing to do here as the host supports LFS fine + ;; + unknown) AC_MSG_CHECKING([for native large file support]) - AC_RUN_IFELSE([#include + AC_RUN_IFELSE([AC_LANG_PROGRAM([#include main () { exit(!(sizeof(off_t) == 8)); - }], + }])], [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64) - AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no])]) - fi + AC_MSG_NOTICE([yes])], + [AC_MSG_NOTICE([no])]) + ;; + *) + LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" + ;; + esac if test "$ac_cv_sys_large_files" != 'no'; then LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" fi @@ -444,9 +486,6 @@ if test "$enable_largefile" != no; then fi AC_SUBST(LFS_CPPFLAGS) -# -# Configure libtool & libltdl -# # Configure libtool AC_LIBTOOL_DLOPEN LT_INIT([win32-dll]) @@ -510,7 +549,7 @@ if test "$with_ltdl" != 'no'; then fi # Enable build using delegate libraries built in subdirectories rather than installed -# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib) +# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) AC_ARG_ENABLE([delegate-build], [AC_HELP_STRING([--enable-delegate-build], [look for delegate libraries in build directory])], @@ -554,15 +593,16 @@ if test "$enable_cipher" = 'yes'; then AC_DEFINE(CIPHER_SUPPORT,1,[permit enciphering and deciphering image pixels]) fi -# Build an embeddable version of ImageMagick. -AC_ARG_ENABLE([embeddable], - [AC_HELP_STRING([--enable-embeddable], +# Build a zero-configuration version of ImageMagick. +AC_ARG_ENABLE([zero-configuration], + [AC_HELP_STRING([--enable-zero-configuration], [enable self-contained, embeddable, zero-configuration ImageMagick])], - [enable_embeddable=$enableval], - [enable_embeddable='no']) + [enable_zero_configuration=$enableval], + [enable_zero_configuration='no']) -if test "$enable_embeddable" = 'yes'; then - AC_DEFINE(EMBEDDABLE_SUPPORT,1,[Build self-contained, embeddable, zero-configuration ImageMagick]) +if test "$enable_zero_configuration" = 'yes'; then + AC_DEFINE(ZERO_CONFIGURATION_SUPPORT,1,[Build self-contained, embeddable, zero-configuration ImageMagick]) + MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES" fi # Build a high dynamic range version of ImageMagick. @@ -591,12 +631,9 @@ if test "$enable_assert" = 'no'; then AC_DEFINE(NDEBUG,1,[Turn off assert statements]) fi -# Add configure option --enable-maintainer-mode which enables dependency -# checking and generation useful to package maintainers. This is made an -# option to avoid confusing end users. +# Don't emit "rebuild rules" for configure, Makefile.ins, etc. AM_MAINTAINER_MODE - # Enable ccmalloc memory debugging support AC_ARG_ENABLE([ccmalloc], [AC_HELP_STRING([--enable-ccmalloc], @@ -644,13 +681,21 @@ fi AC_ARG_WITH([method-prefix], [AC_HELP_STRING([--with-method-prefix=PREFIX], [prefix MagickCore API methods])], - [with_method_prefix=$enableval], - [with_method_prefix='']) + [with_method_prefix=$withval], + [with_method_prefix='no']) -if test "$with_method_prefix" != ''; then +if test "$with_method_prefix" != 'no'; then AC_DEFINE_UNQUOTED(NAMESPACE_PREFIX,$with_method_prefix,[Magick API method prefix]) + DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix " fi +# Enable legacy support (default no) +AC_ARG_ENABLE(legacy-support, + [ --enable-legacy-support install legacy command-line utilities (default disabled)], + [with_legacy_support=$enableval], + [with_legacy_support='no']) +AM_CONDITIONAL(LEGACY_SUPPORT, test "$with_legacy_support" != 'no') + # Number of bits in a Quantum AC_ARG_WITH([quantum-depth], [AC_HELP_STRING([--with-quantum-depth=DEPTH], @@ -669,9 +714,6 @@ case "${with_quantum_depth}" in 64 ) ;; * ) AC_MSG_ERROR("Pixel quantum depth must have value of 8, 16, 32, or 64") ;; esac -if test "$enable_hdri" = 'yes'; then - with_quantum_depth=16 -fi QUANTUM_DEPTH="$with_quantum_depth" AC_DEFINE_UNQUOTED(QUANTUM_DEPTH,$QUANTUM_DEPTH,[Number of bits in a pixel Quantum (8/16/32/64)]) AC_SUBST(QUANTUM_DEPTH)dnl @@ -712,7 +754,7 @@ AC_ARG_WITH([perl], # Options to pass when configuring PerlMagick AC_ARG_WITH([perl-options], [AC_HELP_STRING([--with-perl-options=OPTIONS], - [options to pass on command-line when generating PerlMagick's build file])], + [options to pass on command-line when generating PerlMagick build file])], PERL_MAKE_OPTIONS=$withval) AC_SUBST(PERL_MAKE_OPTIONS) @@ -791,7 +833,7 @@ AC_HEADER_ASSERT AC_HEADER_DIRENT # Check additional headers -AC_CHECK_HEADERS(arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h) +AC_CHECK_HEADERS(arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h) ######## # @@ -822,24 +864,30 @@ AC_C_RESTRICT # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. AC_C_BIGENDIAN -# Define mode_t to a suitable type, if standard headers do not define it. +# Define to a suitable type, if standard headers do not define it. +AC_TYPE_INT8_T +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T +AC_TYPE_INTMAX_T +AC_TYPE_INTPTR_T +AC_TYPE_LONG_DOUBLE +AC_TYPE_LONG_DOUBLE_WIDER +AC_TYPE_LONG_LONG_INT +AC_TYPE_MBSTATE_T AC_TYPE_MODE_T - -# Define off_t to a suitable type, if standard headers do not define it. AC_TYPE_OFF_T - -# Define pid_t to a suitable type, if standard headers do not define it. AC_TYPE_PID_T - -# Define size_t to a suitable type, if standard headers do not define it. AC_TYPE_SIZE_T - -# Define ssize_t to a suitable type, if standard headers do not define it. AC_TYPE_SSIZE_T - -# If the C compiler supports a working long double type with more range -# or precision than the double type, define HAVE_LONG_DOUBLE. -AC_TYPE_LONG_DOUBLE_WIDER +AC_TYPE_UID_T +AC_TYPE_UINT8_T +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T +AC_TYPE_UINTMAX_T +AC_TYPE_UINTPTR_T +AC_TYPE_UNSIGNED_LONG_LONG_INT # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the # C compiler predefines it. @@ -890,96 +938,130 @@ AC_CHECK_SIZEOF(unsigned int*) AC_MSG_CHECKING(for signed 8-bit type) INT8_T='signed char' -AC_MSG_RESULT($INT8_T) +AC_MSG_NOTICE($INT8_T) AC_SUBST(INT8_T) AC_MSG_CHECKING(for unsigned 8-bit type) UINT8_T='unsigned char' -AC_MSG_RESULT($UINT8_T) +AC_MSG_NOTICE($UINT8_T) AC_SUBST(UINT8_T) AC_MSG_CHECKING(for signed 16-bit type) INT16_T='signed short' -AC_MSG_RESULT($INT16_T) +AC_MSG_NOTICE($INT16_T) AC_SUBST(INT16_T) AC_MSG_CHECKING(for unsigned 16-bit type) UINT16_T='unsigned short' -AC_MSG_RESULT($UINT16_T) +AC_MSG_NOTICE($UINT16_T) AC_SUBST(UINT16_T) AC_MSG_CHECKING(for signed 32-bit type) INT32_T='none' +INT32_F='none' if test $ac_cv_sizeof_signed_int -eq 4; then INT32_T='signed int' + INT32_F='""' elif test $ac_cv_sizeof_signed_long -eq 4; then INT32_T='signed long' + INT32_F='"l"' fi -AC_MSG_RESULT($INT32_T) +AC_MSG_NOTICE($INT32_T) AC_SUBST(INT32_T) +AC_SUBST(INT32_F) AC_MSG_CHECKING(for unsigned 32-bit type) UINT32_T='none' +UINT32_F='none' if test $ac_cv_sizeof_unsigned_int -eq 4; then UINT32_T='unsigned int' + UINT32_F='""' elif test $ac_cv_sizeof_unsigned_long -eq 4; then UINT32_T='unsigned long' + UINT32_F='"l"' fi -AC_MSG_RESULT($UINT32_T) +AC_MSG_NOTICE($UINT32_T) AC_SUBST(UINT32_T) +AC_SUBST(UINT32_F) AC_MSG_CHECKING(for signed 64-bit type) INT64_T='none' +INT64_F='none' if test $ac_cv_sizeof_signed_long -eq 8; then INT64_T='signed long' + INT64_F='"l"' elif test $ac_cv_sizeof_signed_long_long -eq 8; then INT64_T='signed long long' + INT64_F='"ll"' fi -AC_MSG_RESULT($INT64_T) +case "${host_os}" in + mingw* ) + INT64_F='"I64"' + ;; +esac +AC_MSG_NOTICE($INT64_T) AC_SUBST(INT64_T) +AC_SUBST(INT64_F) AC_MSG_CHECKING(for unsigned 64-bit type) UINT64_T='none' +UINT64_F='none' if test $ac_cv_sizeof_unsigned_long -eq 8; then UINT64_T='unsigned long' + UINT64_F='"l"' elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then UINT64_T='unsigned long long' + UINT64_F='"ll"' fi -AC_MSG_RESULT($UINT64_T) +case "${host_os}" in + mingw* ) + UINT64_F='"I64"' + ;; +esac +AC_MSG_NOTICE($UINT64_T) AC_SUBST(UINT64_T) +AC_SUBST(UINT64_F) AC_MSG_CHECKING(for unsigned maximum type) UINTMAX_T='none' +UINTMAX_F='none' if test "$UINT64_T" != 'none'; then UINTMAX_T=$UINT64_T + UINTMAX_F=$UINT64_F elif test "$UINT32_T" != 'none'; then UINTMAX_T=$UINT32_T + UINTMAX_F=$UINT32_F fi -AC_MSG_RESULT($UINTMAX_T) +AC_MSG_NOTICE($UINTMAX_T) AC_SUBST(UINTMAX_T) +AC_SUBST(UINTMAX_F) AC_MSG_CHECKING(for pointer difference type) UINTPTR_T='none' +UINTPTR_F='none' if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then UINTPTR_T='unsigned long' + UINTPTR_F='"l"' elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then UINTPTR_T='unsigned long long' + UINTPTR_F='"ll"' fi -AC_MSG_RESULT($UINTPTR_T) +AC_MSG_NOTICE($UINTPTR_T) AC_SUBST(UINTPTR_T) +AC_SUBST(UINTPTR_F) AC_MSG_CHECKING([whether our compiler supports __func__]) AC_TRY_COMPILE([], [{ const char *func = __func__; return(func != 0 ? 0 : 1); }], - AC_MSG_RESULT([yes]), - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([yes]), + AC_MSG_NOTICE([no]) AC_MSG_CHECKING([whether our compiler supports __FUNCTION__]) AC_TRY_COMPILE([], [{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }], - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) AC_DEFINE(__func__, __FUNCTION__, [Define to appropriate substitue if compiler does not have __func__]), - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) AC_DEFINE(__func__, __FILE__, [Define to appropriate substitue if compiler does not have __func__]))) @@ -997,6 +1079,7 @@ AC_FUNC_SELECT_ARGTYPES AC_FUNC_SETVBUF_REVERSED AC_TYPE_SIGNAL AC_FUNC_STRTOD +AC_FUNC_STRERROR_R AC_FUNC_VPRINTF # @@ -1007,7 +1090,7 @@ AC_CHECK_LIB(m,sqrt,MATH_LIBS="-lm",,) LIBS="$MATH_LIBS $LIBS" AC_SUBST(MATH_LIBS) -AC_CHECK_FUNCS([atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat]) +AC_CHECK_FUNCS([acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat]) # # Check for clock_gettime(). @@ -1016,16 +1099,16 @@ AC_SEARCH_LIBS(clock_gettime, rt, [ AC_DEFINE([HAVE_CLOCK_GETTIME],[1],[Define to 1 if you have clock_gettime.]) AC_MSG_CHECKING([whether clock_gettime supports CLOCK_REALTIME]) - AC_COMPILE_IFELSE( + AC_COMPILE_IFELSE([ AC_LANG_PROGRAM( [[#include ]], - [[clockid_t clockType = CLOCK_REALTIME;]]), + [[clockid_t clockType = CLOCK_REALTIME;]])], [ - AC_MSG_RESULT(yes) + AC_MSG_NOTICE(yes) AC_DEFINE([HAVE_CLOCK_REALTIME],[1], [Define to 1 if clock_gettime supports CLOCK_REALTIME.]) ], - AC_MSG_RESULT(no) + AC_MSG_NOTICE(no) ) ], [ @@ -1069,14 +1152,12 @@ if test "$with_magick_plus_plus" = 'yes'; then AX_CXX_NAMESPACES AX_CXX_NAMESPACE_STD AC_CXX_HAVE_STD_LIBS - AC_CXX_HAVE_LSTRING AC_OPENMP([C++]) AC_LANG_POP AC_MSG_CHECKING([whether C++ compiler is sufficient for Magick++]) if \ test $ax_cv_cxx_bool = 'yes' && \ - test $ac_cv_cxx_have_lstring = 'yes' && \ test $ax_cv_cxx_namespaces = 'yes' && \ test $ac_cv_cxx_have_std_libs = 'yes' && \ test $ax_cv_cxx_have_std_namespace = 'yes'; then @@ -1084,7 +1165,7 @@ if test "$with_magick_plus_plus" = 'yes'; then else have_magick_plus_plus='no (failed tests)' fi - AC_MSG_RESULT([$have_magick_plus_plus]) + AC_MSG_NOTICE([$have_magick_plus_plus]) LIBS="$OLIBS" fi AM_CONDITIONAL(WITH_MAGICK_PLUS_PLUS, test "$have_magick_plus_plus" = 'yes') @@ -1101,7 +1182,7 @@ if test "$enable_delegate_build" != 'no'; then # Most delegates have includes in the same directory as the library, but not all... # # Includes - for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do + for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do if test -d "$builddir/$dir"; then CPPFLAGS="$CPPFLAGS -I$builddir/$dir" else @@ -1112,7 +1193,7 @@ if test "$enable_delegate_build" != 'no'; then done # Libraries - for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do + for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do if test -d "$builddir/$dir/.libs"; then LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" else @@ -1196,11 +1277,29 @@ AC_DEFINE_UNQUOTED(X11_CONFIGURE_PATH,"$X11ConfigurePath",Location of X11 config GOMP_LIBS='' if test "$enable_openmp" != 'no'; then if test "${GCC}" = "yes"; then - AC_CHECK_LIB(gomp,GOMP_parallel_start,GOMP_LIBS="-lgomp",,) # gcc + # Open64 (passes for GCC but uses different OpenMP implementation) + if test "x$GOMP_LIBS" = x ; then + if $CC --version 2>&1 | grep Open64 > /dev/null ; then + AC_CHECK_LIB(openmp,omp_get_num_procs,GOMP_LIBS="-lopenmp",,) + fi + fi + # GCC + if test "x$GOMP_LIBS" = x ; then + AC_CHECK_LIB(gomp,GOMP_parallel_start,GOMP_LIBS="-lgomp",,) + fi else - AC_CHECK_LIB(mtsk,sunw_mp_register_warn,GOMP_LIBS="-lmtsk",,) # solaris cc - AC_CHECK_LIB(xlsmp,_xlsmpFlush,GOMP_LIBS="-lxlsmp",,) # AIX xlc - AC_CHECK_LIB(mp,mp_destroy,GOMP_LIBS="-lmp",,) # SGI IRIX 6.5 MIPSpro C/C++ + # Sun CC + if test "x$GOMP_LIBS" = x ; then + AC_CHECK_LIB(mtsk,sunw_mp_register_warn,GOMP_LIBS="-lmtsk",,) + fi + # AIX xlc + if test "x$GOMP_LIBS" = x ; then + AC_CHECK_LIB(xlsmp,_xlsmpFlush,GOMP_LIBS="-lxlsmp",,) + fi + # SGI IRIX 6.5 MIPSpro C/C++ + if test "x$GOMP_LIBS" = x ; then + AC_CHECK_LIB(mp,mp_destroy,GOMP_LIBS="-lmp",,) + fi fi LIBS="$GOMP_LIBS $LIBS" fi @@ -1237,7 +1336,7 @@ have_umem='no' UMEM_LIBS='' if test "$with_umem" != 'no'; then AC_MSG_CHECKING(for UMEM support ) - AC_MSG_RESULT() + AC_MSG_NOTICE() failed=0 passed=0 AC_CHECK_HEADER(umem.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) @@ -1246,17 +1345,17 @@ if test "$with_umem" != 'no'; then AC_MSG_CHECKING(if umem memory allocation library is complete) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT(no -- some components failed test) + AC_MSG_NOTICE(no -- some components failed test) have_umem='no (failed tests)' else UMEM_LIBS='-lumem' LIBS="$UMEM_LIBS $LIBS" AC_DEFINE(HasUMEM,1,Define if you have umem memory allocation library) - AC_MSG_RESULT(yes) + AC_MSG_NOTICE(yes) have_umem='yes' fi else - AC_MSG_RESULT(no) + AC_MSG_NOTICE(no) fi fi AM_CONDITIONAL(HasUMEM, test "$have_umem" = 'yes') @@ -1312,9 +1411,9 @@ fi have_bzlib='no' if test "$with_bzlib" != 'no'; then BZLIB_LIBS='' - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for BZLIB]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 found_libbz=0 @@ -1331,17 +1430,17 @@ if test "$with_bzlib" != 'no'; then AC_MSG_CHECKING(if BZLIB package is complete) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT(no -- some components failed test) + AC_MSG_NOTICE(no -- some components failed test) have_bzlib='no (failed tests)' else BZLIB_LIBS='-lbz2' LIBS="$BZLIB_LIBS $LIBS" AC_DEFINE(BZLIB_DELEGATE,1,Define if you have the bzip2 library) - AC_MSG_RESULT(yes) + AC_MSG_NOTICE(yes) have_bzlib='yes' fi else - AC_MSG_RESULT(no) + AC_MSG_NOTICE(no) fi fi AM_CONDITIONAL(BZLIB_DELEGATE, test "$have_bzlib" = 'yes') @@ -1356,9 +1455,9 @@ XEXT_LIBS='' XT_LIBS='' AC_PATH_XTRA if test "$no_x" != 'yes'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for X11]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) LDFLAGS="$LDFLAGS $X_LIBS" X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" LIBS="$X11_LIBS $LIBS" @@ -1417,9 +1516,9 @@ have_zlib='no' ZLIB_LIBS='' dnl PNG requires zlib so enable zlib check if PNG is requested if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for ZLIB]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) ZLIB_LIBS='' failed=0 passed=0 @@ -1434,17 +1533,17 @@ if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then AC_MSG_CHECKING([if ZLIB package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_zlib='no (failed tests)' else ZLIB_LIBS='-lz' LIBS="$ZLIB_LIBS $LIBS" AC_DEFINE(ZLIB_DELEGATE,1,Define if you have zlib compression library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_zlib='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(ZLIB_DELEGATE, test "$have_zlib" = 'yes') @@ -1480,9 +1579,9 @@ AUTOTRACE_CFLAGS="" AUTOTRACE_LIBS="" AUTOTRACE_PKG="" if test "x$with_autotrace" = "xyes"; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) PKG_CHECK_MODULES(AUTOTRACE,[autotrace >= 0.31.1], have_autotrace=yes, have_autotrace=no) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) fi if test "$have_autotrace" = 'yes'; then @@ -1515,9 +1614,9 @@ fi have_dps='no' DPS_LIBS='' if test "$with_dps" != 'no' && test "$with_x" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for DPS]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 PERSIST_CPPFLAGS="$CPPFLAGS" @@ -1548,18 +1647,18 @@ if test "$with_dps" != 'no' && test "$with_x" != 'no'; then AC_MSG_CHECKING([if DPS package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_dps='no (failed tests)' CPPFLAGS="$PERSIST_CPPFLAGS" else DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" LIBS="$DPS_LIBS $LIBS" AC_DEFINE(DPS_DELEGATE,1,Define if you have Display Postscript) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_dps='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) CPPFLAGS=$PERSIST_CPPFLAGS fi fi @@ -1584,9 +1683,9 @@ fi have_djvu='no' DJVU_LIBS='' if test "$with_djvu" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for DJVU]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 AC_CHECK_HEADER(libdjvu/ddjvuapi.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) @@ -1594,17 +1693,17 @@ if test "$with_djvu" != 'no'; then AC_MSG_CHECKING([if DJVU package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_djvu='no (failed tests)' else DJVU_LIBS='-ldjvulibre' LIBS="$DJVU_LIBS $LIBS" AC_DEFINE(DJVU_DELEGATE,1,Define if you have DJVU library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_djvu='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(DJVU_DELEGATE, test "$have_djvu" = 'yes') @@ -1643,9 +1742,9 @@ fi have_fftw='no' FFTW_LIBS='' if test "$with_fftw" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for FFTW]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 AC_CHECK_HEADER(fftw3.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) @@ -1653,17 +1752,17 @@ if test "$with_fftw" != 'no'; then AC_MSG_CHECKING([if FFTW package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_fftw='no (failed tests)' else FFTW_LIBS='-lfftw3' LIBS="$FFTW_LIBS $LIBS" AC_DEFINE(FFTW_DELEGATE,1,Define if you have FFTW library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_fftw='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(FFTW_DELEGATE, test "$have_fftw" = 'yes') @@ -1687,9 +1786,9 @@ fi have_fpx='no' FPX_LIBS='' if test "$with_fpx" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for FlashPIX]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 AC_LANG_PUSH(C++) @@ -1699,17 +1798,17 @@ if test "$with_fpx" != 'no'; then AC_MSG_CHECKING([if FlashPIX package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_fpx='no (failed tests)' else FPX_LIBS='-lfpx' AC_DEFINE(FPX_DELEGATE,1,Define if you have FlashPIX library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_fpx='yes' PERLMAINCC="$CXX" fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(FPX_DELEGATE, test "$have_fpx" = 'yes') @@ -1724,7 +1823,7 @@ AC_ARG_WITH([fontconfig], [AC_HELP_STRING([--without-fontconfig], [disable fontconfig support])], [with_fontconfig=$withval], - [with_fontconfig=$have_x]) + [with_fontconfig='yes']) if test "$with_fontconfig" != 'yes'; then DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " @@ -1735,9 +1834,9 @@ FONTCONFIG_CFLAGS="" FONTCONFIG_LIBS="" FONTCONFIG_PKG="" if test "x$with_fontconfig" = "xyes"; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) PKG_CHECK_MODULES(FONTCONFIG,[fontconfig >= 2.1.0], have_fontconfig=yes, have_fontconfig=no) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) fi if test "$have_fontconfig" = 'yes'; then @@ -1770,73 +1869,77 @@ fi have_freetype='no' FREETYPE_LIBS='' if test "$with_freetype" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) - AC_MSG_CHECKING([for FreeType 2.0]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([-------------------------------------------------------------]) + AC_MSG_CHECKING(for FreeType 2.0 ) + AC_MSG_NOTICE() failed=0 passed=0 - PERSIST_LIBS="$LIBS" + PERSIST_LDFLAGS="$LDFLAGS" PERSIST_CPPFLAGS="$CPPFLAGS" - if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then - : - else - freetype_config='' - AC_CHECK_PROGS(freetype_config,freetype-config,)dnl - if test -n "$freetype_config"; then - freetype_cflags=`$freetype_config --cflags` - freetype_libs=`$freetype_config --libs` - LIBS="$LIBS $freetype_libs" - CPPFLAGS="$freetype_cflags $CPPFLAGS" - fi + freetype_config='' + # Allow the user to specify the location of freetype. + if test "$with_freetype" != 'yes'; then + if test -x "${with_freetype}/bin/freetype-config"; then + freetype_config="${with_freetype}/bin/freetype-config" + elif test -x "${with_freetype}"; then + freetype_config=${with_freetype} + fi + fi + if test -z "$freetype_config"; then + AC_PATH_PROG(freetype_config,freetype-config,)dnl + fi + if test -n "$freetype_config"; then + freetype_prefix=`${freetype_config} --prefix` + freetype_exec_prefix=`${freetype_config} --exec-prefix` + LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib" + CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2" fi dnl First see if there is a library if test "$FREETYPE_LIBS" = ''; then - AC_CHECK_LIB(freetype,FT_Init_FreeType,FREETYPE_LIBS='-lfreetype',,) - if test "$FREETYPE_LIBS" != ''; then - passed=`expr $passed + 1` - else - failed=`expr $failed + 1` - LIBS="$PERSIST_LIBS" - fi + AC_CHECK_LIB(freetype,FT_Init_FreeType,FREETYPE_LIBS='-lfreetype',,) + if test "$FREETYPE_LIBS" != ''; then + passed=`expr $passed + 1` + else + failed=`expr $failed + 1` + LDFLAGS="$PERSIST_LDFLAGS" + fi fi dnl Now test for the headers AC_CHECK_HEADER([ft2build.h],[FT2BUILD_H='#include '],[ft2build=''],[]) AC_CHECK_HEADER(freetype/freetype.h,[have_freetype_h='yes'],[have_freetype_h='no'],[$FT2BUILD_H]) - if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then - passed=`expr $passed + 1` + if test "$have_freetype_h" = 'yes'; then + passed=`expr $passed + 1` else - failed=`expr $failed + 1` - CPPFLAGS="$PERSIST_CPPFLAGS" + failed=`expr $failed + 1` + CPPFLAGS="$PERSIST_CPPFLAGS" fi - AC_MSG_CHECKING([if FreeType package is complete]) + AC_MSG_CHECKING(if FreeType package is complete) if test $passed -gt 0; then - if test $failed -gt 0; then - FREETYPE_LIBS='' - AC_MSG_RESULT([no -- some components failed test]) - have_freetype='no (failed tests)' - else - LIBS="$FREETYPE_LIBS $LIBS" - AC_DEFINE(FREETYPE_DELEGATE,1,Define if you have FreeType (TrueType font) library) - if test "$ac_cv_header_ft2build_h" = 'yes'; then - AC_DEFINE([HAVE_FT2BUILD_H],[1],[Define to 1 if you have the header file.]) - fi - AC_MSG_RESULT([yes]) - have_freetype='yes' + if test $failed -gt 0; then + FREETYPE_LIBS='' + AC_MSG_NOTICE(no -- some components failed test) + have_freetype='no (failed tests)' + else + LIBS="$FREETYPE_LIBS $LIBS" + AC_DEFINE(FREETYPE_DELEGATE,1,Define if you have FreeType (TrueType font) library) + if test "$ac_cv_header_ft2build_h" = 'yes'; then + AC_DEFINE([HAVE_FT2BUILD_H],[1],[Define to 1 if you have the header file.]) fi + AC_MSG_NOTICE(yes) + have_freetype='yes' + fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE(no) fi fi -AM_CONDITIONAL(FREETYPE_DELEGATE,test "$have_freetype" = 'yes') +AM_CONDITIONAL(FREETYPE_DELEGATE, test "$have_freetype" = 'yes') AC_SUBST(FREETYPE_LIBS) dnl =========================================================================== -dnl =========================================================================== - # # Check for Ghostscript library or framework. # @@ -1857,9 +1960,9 @@ fi have_gslib='no' GS_LIBS='' if test "$with_gslib" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for Ghostscript]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) framework=0 failed=0 passed=0 @@ -1872,15 +1975,15 @@ if test "$with_gslib" != 'no'; then AC_MSG_CHECKING([if Ghostscript package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_gslib='no (failed tests)' else if test $framework -gt 0; then GS_LIBS='-framework Ghostscript' gslib_framework='yes' - AC_MSG_RESULT([yes, using framework.]) + AC_MSG_NOTICE([yes, using framework.]) else - AC_MSG_RESULT([yes, using library.]) + AC_MSG_NOTICE([yes, using library.]) GS_LIBS='-lgs' fi LIBS="$GS_LIBS $LIBS" @@ -1888,7 +1991,7 @@ if test "$with_gslib" != 'no'; then have_gslib='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(GS_DELEGATE, test "$have_gslib" = 'yes') @@ -1938,9 +2041,9 @@ fi GVC_PKG="" if test "x$with_gvc" = "xyes"; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) PKG_CHECK_MODULES(GVC,[libgvc >= 2.9.0], have_gvc=yes, have_gvc=no) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) fi if test "$have_gvc" = 'yes'; then @@ -1969,9 +2072,9 @@ AC_ARG_WITH([jbig], have_jbig='no' JBIG_LIBS='' if test "$with_jbig" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for JBIG]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 AC_CHECK_HEADER(jbig.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) @@ -1979,17 +2082,17 @@ if test "$with_jbig" != 'no'; then AC_MSG_CHECKING([if JBIG package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_jbig='no (failed tests)' else JBIG_LIBS='-ljbig' LIBS="$JBIG_LIBS $LIBS" AC_DEFINE(JBIG_DELEGATE,1,Define if you have JBIG library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_jbig='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(JBIG_DELEGATE, test "$have_jbig" = 'yes') @@ -2013,9 +2116,9 @@ fi have_jpeg='no' JPEG_LIBS='' if test "$with_jpeg" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for JPEG]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 AC_CHECK_HEADER(jconfig.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) @@ -2046,17 +2149,17 @@ fi AC_MSG_CHECKING([if JPEG package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_jpeg='no (failed tests)' else JPEG_LIBS='-ljpeg' LIBS="$JPEG_LIBS $LIBS" AC_DEFINE(JPEG_DELEGATE,1,Define if you have JPEG library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_jpeg='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(JPEG_DELEGATE, test "$have_jpeg" = 'yes') @@ -2080,9 +2183,9 @@ fi have_jp2='no' JP2_LIBS='' if test "$with_jp2" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for JPEG Version 2]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 AC_CHECK_HEADER(jasper/jasper.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) @@ -2090,17 +2193,17 @@ if test "$with_jp2" != 'no'; then AC_MSG_CHECKING([if JPEG version 2 support package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_jp2='no (failed tests)' else JP2_LIBS='-ljasper' LIBS="$JP2_LIBS $LIBS" AC_DEFINE(JP2_DELEGATE,1,Define if you have JPEG version 2 "Jasper" library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_jp2='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(JP2_DELEGATE, test "$have_jp2" = 'yes') @@ -2132,9 +2235,9 @@ fi have_lcms2='no' LCMS_LIBS='' if test "$with_lcms2" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for LCMS v2]) - AC_MSG_RESULT() + AC_MSG_NOTICE() failed=0 passed=0 have_lcms_header='no' @@ -2164,16 +2267,16 @@ if test "$with_lcms2" != 'no'; then AC_MSG_CHECKING(if LCMS v2 package is complete) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT(no -- some components failed test) + AC_MSG_NOTICE(no -- some components failed test) have_lcms2='no (failed tests)' else LCMS_LIBS='-llcms2' LIBS="$LCMS_LIBS $LIBS" - AC_MSG_RESULT(yes) + AC_MSG_NOTICE(yes) have_lcms2='yes' fi else - AC_MSG_RESULT(no) + AC_MSG_NOTICE(no) fi fi @@ -2186,9 +2289,9 @@ fi have_lcms='no' if test "$with_lcms" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for LCMS v1.1X]) - AC_MSG_RESULT() + AC_MSG_NOTICE() failed=0 passed=0 have_lcms_header='no' @@ -2220,16 +2323,16 @@ if test "$with_lcms" != 'no'; then AC_MSG_CHECKING(if LCMS package is complete) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT(no -- some components failed test) + AC_MSG_NOTICE(no -- some components failed test) have_lcms='no (failed tests)' else LCMS_LIBS='-llcms' LIBS="$LCMS_LIBS $LIBS" - AC_MSG_RESULT(yes) + AC_MSG_NOTICE(yes) have_lcms='yes' fi else - AC_MSG_RESULT(no) + AC_MSG_NOTICE(no) fi fi @@ -2260,9 +2363,9 @@ LQR_CFLAGS="" LQR_LIBS="" LQR_PKG="" if test "x$with_lqr" = "xyes"; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) PKG_CHECK_MODULES(LQR,[lqr-1 >= 0.1.0], have_lqr=yes, have_lqr=no) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) fi if test "$have_lqr" = 'yes'; then @@ -2276,6 +2379,35 @@ AC_SUBST(LQR_LIBS) dnl =========================================================================== +# Disable LZMA (lzma library) +AC_ARG_WITH(lzma, + [ --without-lzma disable LZMA support], + [with_lzma=$withval], + [with_lzma='yes']) +if test "$with_lzma" != 'yes' ; then + DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " +fi + +LZMA_PKG="" +if test "x$with_lzma" = "xyes"; then + AC_MSG_NOTICE([-------------------------------------------------------------]) + PKG_CHECK_MODULES(LZMA,[liblzma >= 2.9.0], have_lzma=yes, have_lzma=no) + AC_MSG_NOTICE([]) +fi + +if test "$have_lzma" = 'yes'; then + AC_DEFINE(LZMA_DELEGATE,1,Define if you have LZMA library) + if test "$with_modules" = 'no'; then + CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS" + fi +fi + +AM_CONDITIONAL(LZMA_DELEGATE, test "$have_lzma" = 'yes') +AC_SUBST(LZMA_CFLAGS) +AC_SUBST(LZMA_LIBS) + +dnl =========================================================================== + # # Check for the OpenEXR delegate library. # @@ -2294,9 +2426,9 @@ OPENEXR_CFLAGS="" OPENEXR_LIBS="" OPENEXR_PKG="" if test "x$with_openexr" = "xyes"; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) PKG_CHECK_MODULES(OPENEXR,[OpenEXR >= 1.0.6], have_openexr=yes, have_openexr=no) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) fi if test "$have_openexr" = 'yes'; then @@ -2312,6 +2444,53 @@ AC_SUBST(OPENEXR_LIBS) dnl =========================================================================== +# +# Check for PANGO delegate library. +# +AC_ARG_WITH([pango], + [AC_HELP_STRING([--without-pango], + [disable PANGO support])], + [with_pango=$withval], + [with_pango='yes']) + +if test "$with_pango" != 'yes'; then + DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " +fi + +have_pango='no' +have_pangocairo='no' +PANGO_CFLAGS="" +PANGO_LIBS="" +PANGO_PKG="" +if test "x$with_pango" = "xyes"; then + AC_MSG_RESULT([-------------------------------------------------------------]) + PKG_CHECK_MODULES(PANGO, [pangocairo >= 1.28.1], have_pangocairo=yes, have_pangocairo=no) + AC_MSG_RESULT([]) + PKG_CHECK_MODULES(PANGO, [pango >= 1.28.1], have_pango=yes, have_pango=no) + AC_MSG_RESULT([]) +fi + +if test "$have_pango" = 'yes'; then + AC_DEFINE(PANGO_DELEGATE,1,Define if you have PANGO library) + if test "$with_modules" = 'no'; then + CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS" + fi +fi + +if test "$have_pangocairo" = 'yes'; then + AC_DEFINE(PANGOCAIRO_DELEGATE,1,Define if you have PANGOCAIRO library) + if test "$with_modules" = 'no'; then + CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS" + fi +fi + +AM_CONDITIONAL(PANGO_DELEGATE, test "$have_pango" = 'yes') +AM_CONDITIONAL(PANGOCAIRO_DELEGATE, test "$have_pangocairo" = 'yes') +AC_SUBST(PANGO_CFLAGS) +AC_SUBST(PANGO_LIBS) + +dnl =========================================================================== + # # Check for PNG delegate library. # @@ -2327,33 +2506,106 @@ fi have_png='no' PNG_LIBS='' -if test "$with_png" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) - AC_MSG_CHECKING([for PNG]) - AC_MSG_RESULT([]) - failed=0 - passed=0 - AC_CHECK_HEADER(png.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) - AC_CHECK_LIB(png,png_get_io_ptr,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) - AC_MSG_CHECKING([if PNG package is complete]) - if test $passed -gt 0; then - if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) - have_png='no (failed tests)' + +if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then + AC_MSG_NOTICE([-------------------------------------------------------------]) + AC_MSG_CHECKING(for PNG support ) + AC_MSG_NOTICE() + failed=0 + passed=0 + AC_CHECK_HEADER(png.h,passed=`expr $passed + 1`, + failed=`expr $failed + 1`,) + + if test $passed -gt 0; then + for var in 5 4 2 '' ; do + if test "$have_png" = 'no' ; then + if test "x${var}" = 'x' ; then + pnglib='png' else - PNG_LIBS='-lpng' - LIBS="$PNG_LIBS $LIBS" - AC_DEFINE(PNG_DELEGATE,1,Define if you have PNG library) - AC_MSG_RESULT([yes]) - have_png='yes' + pnglib="png1${var}" fi - else - AC_MSG_RESULT([no]) - fi + +# Test for compatible LIBPNG library + failed=0 + passed=0 + if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then + if test "${pnglib}" != 'png' ; then + AC_MSG_CHECKING(for LIBPNG1${var} support ) + AC_TRY_COMPILE( +#include +#include +#include +, +changequote(<<, >>)dnl +<< +#if PNG_LIBPNG_VER_MINOR != ${var} +#error LIBPNG library must be version 1${var}! +Kaboom, Kaboom +#endif +return 0; +>>, + changequote([, ])dnl + ac_cv_libpng_ok='yes', + ac_cv_libpng_ok='no') + if test "$ac_cv_libpng_ok" = 'yes' ; then + passed=`expr $passed + 1` + AC_MSG_NOTICE(yes) + else + failed=`expr $failed + 1` + AC_MSG_NOTICE(no) + fi + else + passed=`expr $passed + 1` + AC_MSG_NOTICE(yes) + fi + fi + + if test $passed -gt 0 -a $failed -le 0; then + if test "1${var}" = '15' ; then + AC_CHECK_LIB(png15,png_get_io_ptr,passed=`expr $passed + 1`, + failed=`expr $failed + 1`,) + AC_CHECK_LIB(png15,png_longjmp,passed=`expr $passed + 1`, + failed=`expr $failed + 1`,) + fi + if test "1${var}" = '14' ; then + AC_CHECK_LIB(png14,png_get_io_ptr,passed=`expr $passed + 1`, + failed=`expr $failed + 1`,) + AC_CHECK_LIB(png14,png_get_io_state,passed=`expr $passed + 1`, + failed=`expr $failed + 1`,) + fi + if test "1${var}" = '12' ; then + AC_CHECK_LIB(png12,png_get_io_ptr,passed=`expr $passed + 1`, + failed=`expr $failed + 1`,) + fi + if test "1${var}" = '1' ; then + AC_CHECK_LIB(png,png_get_io_ptr,passed=`expr $passed + 1`, + failed=`expr $failed + 1`,) + fi + if test $passed -gt 0 -a $failed -le 0 ; then + AC_MSG_CHECKING(if ${pnglib} package is complete) + if test $passed -gt 0 ; then + if test $failed -gt 0 ; then + AC_MSG_NOTICE(no -- some components failed test) + have_png='no (failed tests)' + else + PNG_LIBS="-l${pnglib}" + LIBS="$PNG_LIBS $LIBS" + AC_DEFINE(PNG_DELEGATE,1,Define if you have PNG library) + AC_MSG_NOTICE(yes) + have_png='yes' + fi + fi + fi + fi + fi + done + fi fi + AM_CONDITIONAL(PNG_DELEGATE,test "$have_png" = 'yes') AC_SUBST(PNG_LIBS) + dnl =========================================================================== # @@ -2363,7 +2615,7 @@ AC_ARG_WITH([rsvg], [AC_HELP_STRING([--without-rsvg], [disable RSVG support])], [with_rsvg=$withval], - [with_rsvg=$have_x]) + [with_rsvg='yes']) if test "$with_rsvg" != 'yes'; then DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " @@ -2375,11 +2627,11 @@ RSVG_CFLAGS="" RSVG_LIBS="" RSVG_PKG="" if test "x$with_rsvg" = "xyes"; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) PKG_CHECK_MODULES(RSVG,[librsvg-2.0 >= 2.9.0], have_rsvg=yes, have_rsvg=no) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg, have_cairo=yes, have_cairo=no) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) fi if test "$have_rsvg" = 'yes'; then @@ -2419,37 +2671,37 @@ fi have_tiff='no' TIFF_LIBS='' if test "$with_tiff" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for TIFF]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) failed=0 passed=0 AC_CHECK_HEADER(tiff.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) AC_CHECK_HEADER(tiffio.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) AC_CHECK_LIB(tiff,TIFFOpen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) AC_CHECK_LIB(tiff,TIFFClientOpen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) - AC_CHECK_LIB(tiff,TIFFIsBigEndian,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) AC_CHECK_LIB(tiff,TIFFIsByteSwapped,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) AC_CHECK_LIB(tiff,TIFFReadRGBATile,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) AC_CHECK_LIB(tiff,TIFFReadRGBAStrip,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) AC_MSG_CHECKING([if TIFF package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_tiff='no (failed tests)' else TIFF_LIBS='-ltiff' LIBS="$TIFF_LIBS $LIBS" AC_DEFINE(TIFF_DELEGATE,1,Define if you have TIFF library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_tiff='yes' AC_CHECK_HEADERS(tiffconf.h) AC_CHECK_FUNCS([TIFFIsCODECConfigured TIFFMergeFieldInfo \ - TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ - TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples]) + TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ + TIFFSetTagExtender TIFFSetWarningHandlerExt \ + TIFFSwabArrayOfTriples]) fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(TIFF_DELEGATE, test "$have_tiff" = 'yes') @@ -2457,10 +2709,54 @@ AC_SUBST(TIFF_LIBS) dnl =========================================================================== +# +# Check for WEBP delegate library. +# +AC_ARG_WITH(webp, + [AC_HELP_STRING([--without-webp], + [disable WEBP support])], + [with_webp=$withval], + [with_webp='yes']) + +if test "$with_webp" != 'yes'; then + DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " +fi + +have_webp='no' +WEBP_LIBS='' +if test "$with_webp" != 'no'; then + AC_MSG_NOTICE([-------------------------------------------------------------]) + AC_MSG_CHECKING([for WEBP]) + AC_MSG_NOTICE([]) + failed=0 + passed=0 + AC_CHECK_HEADER(webp/decode.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) + AC_CHECK_LIB(webp,WebPDecodeRGB,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) + AC_MSG_CHECKING([if WEBP package is complete]) + if test $passed -gt 0; then + if test $failed -gt 0; then + AC_MSG_NOTICE([no -- some components failed test]) + have_webp='no (failed tests)' + else + WEBP_LIBS='-lwebp' + LIBS="$WEBP_LIBS $LIBS" + AC_DEFINE(WEBP_DELEGATE,1,Define if you have WEBP library) + AC_MSG_NOTICE([yes]) + have_webp='yes' + fi + else + AC_MSG_NOTICE([no]) + fi +fi +AM_CONDITIONAL(WEBP_DELEGATE,test "$have_webp" = 'yes') +AC_SUBST(WEBP_LIBS) + +dnl =========================================================================== + # # Set Windows font directory. # -AC_ARG_WITH(windows-font-dir, +AC_ARG_WITH([windows-font-dir], [AC_HELP_STRING([--with-windows-font-dir=DIR], [directory containing MS-Windows fonts])], [with_windows_font_dir=$withval], @@ -2475,10 +2771,10 @@ dnl =========================================================================== # Check for WMF delegate library. # AC_ARG_WITH([wmf], - [AC_HELP_STRING([--without-wmf], - [disable WMF support])], + [AC_HELP_STRING([--with-wmf], + [enable WMF support])], [with_wmf=$withval], - [with_wmf='yes']) + [with_wmf='no']) if test "$with_wmf" != 'yes'; then DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " @@ -2486,34 +2782,56 @@ fi have_wmf='no' WMF_LIBS='' +WMF_LIBS_DEPS='' +OLIBS="$LIBS" if test "$with_wmf" != 'no'; then AC_MSG_RESULT([-------------------------------------------------------------]) AC_MSG_CHECKING([for WMF]) AC_MSG_RESULT([]) - failed=0 - passed=0 - AC_CHECK_HEADER(libwmf/eps.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) - AC_CHECK_LIB(wmf,wmf_eps_function,passed=`expr $passed + 1`,failed=`expr $failed + 1`,"-lwmflite") - AC_MSG_CHECKING([if WMF package is complete]) - if test $passed -gt 0; then - if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) - have_wmf='no (failed tests)' - else - WMF_LIBS='-lwmf -lwmflite' + have_libwmf='no' + have_libwmflite='no' + have_libwmf_ipa_h='no' + + AC_CHECK_HEADER([libwmf/ipa.h],[have_libwmf_ipa_h='yes'],,[$FT2BUILD_H]) + if test "$have_libwmf_ipa_h" = 'yes'; then + AC_CHECK_LIB(wmflite,wmf_lite_create,have_libwmflite='yes',,) + if test "$have_libwmflite" = 'yes'; then + AC_DEFINE(WMFLITE_DELEGATE,1,Define if you have wmflite library) + WMF_LIBS='-lwmflite' LIBS="$WMF_LIBS $LIBS" - AC_DEFINE(WMF_DELEGATE,1,Define if you have WMF library) - AC_MSG_RESULT([yes]) have_wmf='yes' + else + WMF_LIBS_DEPS='' + WMF_CONFIG_LIBS=`libwmf-config --libs` + for lib in xml2 expat freetype jpeg png z; do + testlib="-l${lib}" + echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib" + done + AC_CHECK_LIB(wmf,wmf_api_create,have_libwmf='yes',,$WMF_LIBS_DEPS) + if test "$have_libwmf" = 'yes'; then + AC_DEFINE(WMF_DELEGATE,1,Define if you have wmf library) + WMF_LIBS='-lwmf' + LIBS="$WMF_LIBS $LIBS" + have_wmf='yes' + else + AC_MSG_RESULT([no -- some components failed test]) + have_wmf='no (failed tests)' + have_wmflite='no (failed tests)' + LIBS="$OLIBS" + WMF_LIBS='' + fi fi + fi + AC_MSG_CHECKING([if WMF package is complete]) + if test "$have_wmf" = 'yes'; then + AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi fi -AM_CONDITIONAL(WMF_DELEGATE,test "$have_wmf" = 'yes') +AM_CONDITIONAL(WMF_DELEGATE, test "$have_wmf" = 'yes') AC_SUBST(WMF_LIBS) - -dnl =========================================================================== +AC_SUBST(WMF_LIBS_DEPS) dnl =========================================================================== @@ -2525,7 +2843,7 @@ AC_ARG_WITH([xml], [AC_HELP_STRING([--without-xml], [disable XML support])], [with_xml=$withval], - [with_xml=$have_x]) + [with_xml='yes']) if test "$with_xml" != 'yes' ; then DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " @@ -2534,13 +2852,13 @@ fi have_xml='no' XML_LIBS='' if test "$with_xml" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for XML]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) PERSIST_LDFLAGS=$LDFLAGS PERSIST_CPPFLAGS=$CPPFLAGS xml2_config='' - AC_CHECK_PROGS(xml2_config,xml2-config,)dnl + AC_PATH_PROG(xml2_config,xml2-config,)dnl if test -n "$xml2_config"; then # Debian installs libxml headers under /usr/include/libxml2/libxml with # the shared library installed under /usr/lib, whereas the package @@ -2556,11 +2874,13 @@ if test "$with_xml" != 'no'; then failed=0 passed=0 AC_CHECK_HEADER(libxml/parser.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) - AC_CHECK_LIB(xml2,xmlParseExternalEntity,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) + AC_CHECK_LIB(xml2,xmlSAXVersion,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) + AC_CHECK_LIB(xml2,xmlParseChunk,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) + AC_CHECK_LIB(xml2,xmlCreatePushParserCtxt,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) AC_MSG_CHECKING([if XML package is complete]) if test $passed -gt 0; then if test $failed -gt 0; then - AC_MSG_RESULT([no -- some components failed test]) + AC_MSG_NOTICE([no -- some components failed test]) have_xml='no (failed tests)' LDFLAGS="$PERSIST_LDFLAGS" CPPFLAGS="$PERSIST_CPPFLAGS" @@ -2568,11 +2888,11 @@ if test "$with_xml" != 'no'; then XML_LIBS='-lxml2' LIBS="$XML_LIBS $LIBS" AC_DEFINE(XML_DELEGATE,1,Define if you have XML library) - AC_MSG_RESULT([yes]) + AC_MSG_NOTICE([yes]) have_xml='yes' fi else - AC_MSG_RESULT([no]) + AC_MSG_NOTICE([no]) fi fi AM_CONDITIONAL(XML_DELEGATE,test "$have_xml" = 'yes') @@ -2588,6 +2908,18 @@ AC_SUBST(PERLMAINCC) # Configure install Paths # +# Path to ImageMagick header files +INCLUDE_RELATIVE_PATH="ImageMagick" +INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" +DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" +case "${build_os}" in + mingw* ) + DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` + ;; +esac +AC_DEFINE_UNQUOTED(INCLUDE_PATH,"$DEFINE_INCLUDE_PATH",Directory where ImageMagick headers live.) +AC_SUBST(INCLUDE_PATH) + # Subdirectory under lib to place ImageMagick lib files LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" AC_DEFINE_UNQUOTED(LIBRARY_RELATIVE_PATH,"$LIBRARY_RELATIVE_PATH",Subdirectory of lib where ImageMagick architecture dependent files are installed) @@ -2614,19 +2946,6 @@ esac AC_DEFINE_UNQUOTED(LIBRARY_PATH,"$DEFINE_LIBRARY_PATH",Directory where architecture-dependent files live.) AC_SUBST(LIBRARY_PATH) -# Subdirectory under lib to place ImageMagick configuration files -CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" -AC_DEFINE_UNQUOTED(CONFIGURE_RELATIVE_PATH,"$CONFIGURE_RELATIVE_PATH",Subdirectory of lib where architecture-dependent configuration files live.) -CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" -DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" -case "${build_os}" in - mingw* ) - DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` - ;; -esac -AC_DEFINE_UNQUOTED(CONFIGURE_PATH,"$DEFINE_CONFIGURE_PATH",Directory where architecture-dependent configuration files live.) -AC_SUBST(CONFIGURE_PATH) - # # Subdirectory under lib to place ImageMagick coder module files CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" @@ -2658,8 +2977,8 @@ AC_SUBST(FILTER_PATH) # # Path to ImageMagick documentation files DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" -DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}" -DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/" +DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" +DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" case "${build_os}" in mingw* ) DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` @@ -2668,9 +2987,22 @@ esac AC_DEFINE_UNQUOTED(DOCUMENTATION_PATH,"$DEFINE_DOCUMENTATION_PATH",Directory where ImageMagick documents live.) AC_SUBST(DOCUMENTATION_PATH) -# -# Path to ImageMagick share files -SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" +# Subdirectory to place architecture-dependent configuration files +CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}" +AC_DEFINE_UNQUOTED(CONFIGURE_RELATIVE_PATH,"$CONFIGURE_RELATIVE_PATH",Subdirectory of lib where architecture-dependent configuration files live.) +CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" +DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" +case "${build_os}" in + mingw* ) + DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` + ;; +esac +AC_DEFINE_UNQUOTED(CONFIGURE_PATH,"$DEFINE_CONFIGURE_PATH",Directory where architecture-dependent configuration files live.) +AC_SUBST(CONFIGURE_PATH) + +# Subdirectory to place architecture-independent configuration files +SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}" +AC_DEFINE_UNQUOTED(SHARE_RELATIVE_PATH,"$SHARE_RELATIVE_PATH",Subdirectory of lib where architecture-independent configuration files live.) SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" case "${build_os}" in @@ -2678,21 +3010,21 @@ case "${build_os}" in DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` ;; esac -AC_DEFINE_UNQUOTED(SHARE_PATH,"$DEFINE_SHARE_PATH",Directory where architecture-independent files live.) +AC_DEFINE_UNQUOTED(SHARE_PATH,"$DEFINE_SHARE_PATH",Directory where architecture-independent configuration files live.) AC_SUBST(SHARE_PATH) -# Subdirectory under share to place ImageMagick configuration files -SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" -AC_DEFINE_UNQUOTED(SHARE_CONFIGURE_RELATIVE_PATH,"$SHARE_CONFIGURE_RELATIVE_PATH",Subdirectory of lib where architecture-independent configuration files live.) -SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}" -DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/" +# Subdirectory to place architecture-dependent configuration files +SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" +AC_DEFINE_UNQUOTED(SHAREARCH_RELATIVE_PATH,"$SHAREARCH_RELATIVE_PATH",Subdirectory of lib where architecture-independent configuration files live.) +SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}" +DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/" case "${build_os}" in mingw* ) - DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1` + DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1` ;; esac -AC_DEFINE_UNQUOTED(SHARE_CONFIGURE_PATH,"$DEFINE_SHARE_CONFIGURE_PATH",Directory where architecture-independent configuration files live.) -AC_SUBST(SHARE_CONFIGURE_PATH) +AC_DEFINE_UNQUOTED(SHAREARCH_PATH,"$DEFINE_SHAREARCH_PATH",Directory where architecture-independent configuration files live.) +AC_SUBST(SHAREARCH_PATH) # # program_transform_name is formed for use in a Makefile, so create a @@ -2700,9 +3032,9 @@ AC_SUBST(SHARE_CONFIGURE_PATH) configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` # Default delegate definitions -AC_MSG_RESULT([-------------------------------------------------------------]) +AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for ImageMagick delegate programs]) -AC_MSG_RESULT([]) +AC_MSG_NOTICE([]) AutotraceDecodeDelegateDefault='autotrace' BlenderDecodeDelegateDefault='blender' BZIPDelegateDefault='bzip2' @@ -2719,7 +3051,6 @@ ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` GnuplotDecodeDelegateDefault='gnuplot' -HDRDecodeDelegateDefault='ra_pfm' HPGLDecodeDelegateDefault='hp2xx' HTMLDecodeDelegateDefault='html2ps' ILBMDecodeDelegateDefault='ilbmtoppm' @@ -2746,11 +3077,10 @@ else fi RLEEncodeDelegateDefault='rawtorle' RMDelegateDefault='rm' -RSVGDecodeDelegateDefault='rsvg' +RSVGDecodeDelegateDefault='rsvg-convert' SCANDecodeDelegateDefault='scanimage' TXTDelegateDefault='enscript' UniconvertorDelegateDefault='uniconvertor' -WEBPDelegateDefault='webpconv' WMFDecodeDelegateDefault='wmf2eps' WWWDecodeDelegateDefault='curl' XPSDelegateDefault='gxps' @@ -2773,7 +3103,6 @@ AC_PATH_PROG(ConvertDelegate, "$ConvertDelegateDefault", "$ConvertDelegateDefaul AC_PATH_PROG(DisplayDelegate, "$DisplayDelegateDefault", "$DisplayDelegateDefault") AC_PATH_PROG(MogrifyDelegate, "$MogrifyDelegateDefault", "$MogrifyDelegateDefault") AC_PATH_PROG(GnuplotDecodeDelegate, "$GnuplotDecodeDelegateDefault", "$GnuplotDecodeDelegateDefault") -AC_PATH_PROG(HDRDecodeDelegate, "$HDRDecodeDelegateDefault", "$HDRDecodeDelegateDefault") AC_PATH_PROG(HPGLDecodeDelegate, "$HPGLDecodeDelegateDefault", "$HPGLDecodeDelegateDefault") AC_PATH_PROG(HTMLDecodeDelegate, "$HTMLDecodeDelegateDefault", "$HTMLDecodeDelegateDefault") AC_PATH_PROG(ILBMDecodeDelegate, "$ILBMDecodeDelegateDefault", "$ILBMDecodeDelegateDefault") @@ -2798,7 +3127,6 @@ AC_PATH_PROG(RSVGDecodeDelegate, "$RSVGDecodeDelegateDefault", "$RSVGDecodeDeleg AC_PATH_PROG(SCANDecodeDelegate, "$SCANDecodeDelegateDefault", "$SCANDecodeDelegateDefault") AC_PATH_PROG(TXTDelegate, "$TXTDelegateDefault", "$TXTDelegateDefault") AC_PATH_PROG(UniconvertorDelegate, "$UniconvertorDelegateDefault", "$UniconvertorDelegateDefault") -AC_PATH_PROG(WEBPDelegate, "$WEBPDelegateDefault", "$WEBPDelegateDefault") AC_PATH_PROG(WMFDecodeDelegate, "$WMFDecodeDelegateDefault", "$WMFDecodeDelegateDefault") AC_PATH_PROG(WWWDecodeDelegate, "$WWWDecodeDelegateDefault", "$WWWDecodeDelegateDefault") AC_PATH_PROG(XPSDelegate, "$XPSDelegateDefault", "$XPSDelegateDefault") @@ -2826,7 +3154,6 @@ have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefa have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi -have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi @@ -2850,9 +3177,9 @@ else fi if test "${dejavu_font_dir}x" != 'x'; then type_include_files="${type_include_files} "'' - AC_MSG_RESULT([$dejavu_font_dir]) + AC_MSG_NOTICE([$dejavu_font_dir]) else - AC_MSG_RESULT([not found!]); + AC_MSG_NOTICE([not found!]); fi AC_SUBST(dejavu_font_dir) @@ -2911,9 +3238,9 @@ else fi if test "${ghostscript_font_dir}x" != 'x'; then type_include_files="${type_include_files} "'' - AC_MSG_RESULT([$ghostscript_font_dir]) + AC_MSG_NOTICE([$ghostscript_font_dir]) else - AC_MSG_RESULT([not found!]); + AC_MSG_NOTICE([not found!]); fi AC_SUBST(ghostscript_font_dir) case "${build_os}" in @@ -2960,7 +3287,6 @@ if test "$with_frozenpaths" != 'yes'; then PGPDecodeDelegate="$PGPDecodeDelegateDefault" POVDelegate="$POVDelegateDefault" PSDelegate="$PSDelegateDefault" - HDRDecodeDelegate="$HDRDecodeDelegateDefault" RLEEncodeDelegate="$RLEEncodeDelegateDefault" RMDelegate="$RMDelegateDefault" RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" @@ -2968,7 +3294,6 @@ if test "$with_frozenpaths" != 'yes'; then ShowImageDelegate="$ShowImageDelegateDefault" TXTDelegate="$TXTDelegateDefault" UniconvertorDelegate="$UniconvertorDelegateDefault" - WEBPDelegate="$WEBPDelegateDefault" WMFDecodeDelegate="$WMFDecodeDelegateDefault" WWWDecodeDelegate="$WWWDecodeDelegateDefault" XPSDelegate="$XPSDelegateDefault" @@ -2989,7 +3314,6 @@ AC_SUBST(EchoDelegate) AC_SUBST(EditorDelegate) AC_SUBST(FIGDecodeDelegate) AC_SUBST(GnuplotDecodeDelegate) -AC_SUBST(HDRDecodeDelegate) AC_SUBST(HPGLDecodeDelegate) AC_SUBST(HTMLDecodeDelegate) AC_SUBST(ILBMDecodeDelegate) @@ -3014,7 +3338,6 @@ AC_SUBST(SCANDecodeDelegate) AC_SUBST(ShowImageDelegate) AC_SUBST(TXTDelegate) AC_SUBST(UniconvertorDelegate) -AC_SUBST(WEBPDelegate) AC_SUBST(WMFDecodeDelegate) AC_SUBST(WWWDecodeDelegate) AC_SUBST(XPSDelegate) @@ -3054,15 +3377,15 @@ AM_CONDITIONAL(ZIP_DELEGATE, test "x$ZIP" != "x" ) # GhostPCL related configuration. # PCLColorDevice=ppmraw -PCLCMYKDevice=bmpsep8 +PCLCMYKDevice=pamcmyk32 PCLMonoDevice=pbmraw if test -z "$PCLVersion"; then PCLVersion='unknown' fi if test $have_pcl = 'yes'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for PCL]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) # PCLColorDevice AC_MSG_CHECKING([for pcl color device]) if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then @@ -3070,7 +3393,7 @@ if test $have_pcl = 'yes'; then else PCLColorDevice=ppmraw fi - AC_MSG_RESULT([$PCLColorDevice]) + AC_MSG_NOTICE([$PCLColorDevice]) # PCLCMYKDevice AC_MSG_CHECKING([for pcl CMYK device]) @@ -3079,7 +3402,7 @@ if test $have_pcl = 'yes'; then else PCLCMYKDevice=$PCLColorDevice fi - AC_MSG_RESULT([$PCLCMYKDevice]) + AC_MSG_NOTICE([$PCLCMYKDevice]) # PCLMonoDevice AC_MSG_CHECKING([for pcl mono device]) @@ -3088,7 +3411,7 @@ if test $have_pcl = 'yes'; then else PCLMonoDevice=$PCLColorDevice fi - AC_MSG_RESULT([$PCLMonoDevice]) + AC_MSG_NOTICE([$PCLMonoDevice]) fi AC_SUBST(PCLMonoDevice) @@ -3106,9 +3429,9 @@ if test -z "$XPSVersion"; then XPSVersion='unknown' fi if test $have_xps = 'yes'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for XPS]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) # XPSColorDevice AC_MSG_CHECKING([for xps color device]) if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then @@ -3116,7 +3439,7 @@ if test $have_xps = 'yes'; then else XPSColorDevice=ppmraw fi - AC_MSG_RESULT([$XPSColorDevice]) + AC_MSG_NOTICE([$XPSColorDevice]) # XPSCMYKDevice AC_MSG_CHECKING([for xps CMYK device]) @@ -3125,7 +3448,7 @@ if test $have_xps = 'yes'; then else XPSCMYKDevice=$XPSColorDevice fi - AC_MSG_RESULT([$XPSCMYKDevice]) + AC_MSG_NOTICE([$XPSCMYKDevice]) # XPSMonoDevice AC_MSG_CHECKING([for xps mono device]) @@ -3134,7 +3457,7 @@ if test $have_xps = 'yes'; then else XPSMonoDevice=$XPSColorDevice fi - AC_MSG_RESULT([$XPSMonoDevice]) + AC_MSG_NOTICE([$XPSMonoDevice]) fi AC_SUBST(XPSMonoDevice) @@ -3145,11 +3468,7 @@ AC_SUBST(XPSVersion) # # Ghostscript related configuration. # -if test "$have_png" = 'yes'; then - GSAlphaDevice=pngalpha -else - GSAlphaDevice=pnmraw -fi +GSAlphaDevice=pngalpha GSColorDevice=pnmraw GSCMYKDevice=pam GSMonoDevice=pbmraw @@ -3158,16 +3477,16 @@ GSPSDevice=pswrite GSEPSDevice=epswrite GSVersion='unknown' if test $have_gs = 'yes'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for Ghostscript]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) AC_MSG_CHECKING([for Ghostscript version]) if GSVersion=`$PSDelegate --version`; then : else GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` fi - AC_MSG_RESULT([$GSVersion]) + AC_MSG_NOTICE([$GSVersion]) # GSAlphaDevice AC_MSG_CHECKING([for gs alpha device]) @@ -3176,7 +3495,7 @@ if test $have_gs = 'yes'; then else GSAlphaDevice=pnmraw fi - AC_MSG_RESULT([$GSAlphaDevice]) + AC_MSG_NOTICE([$GSAlphaDevice]) # GSColorDevice AC_MSG_CHECKING([for gs color device]) @@ -3185,7 +3504,7 @@ if test $have_gs = 'yes'; then else GSColorDevice=pnmraw fi - AC_MSG_RESULT([$GSColorDevice]) + AC_MSG_NOTICE([$GSColorDevice]) # GSCMYKDevice AC_MSG_CHECKING([for gs CMYK device]) @@ -3194,7 +3513,7 @@ if test $have_gs = 'yes'; then else GSCMYKDevice=bmpsep8 fi - AC_MSG_RESULT([$GSCMYKDevice]) + AC_MSG_NOTICE([$GSCMYKDevice]) # GSMonoDevice AC_MSG_CHECKING([for gs mono device]) @@ -3203,7 +3522,7 @@ if test $have_gs = 'yes'; then else GSMonoDevice=$GSColorDevice fi - AC_MSG_RESULT([$GSMonoDevice]) + AC_MSG_NOTICE([$GSMonoDevice]) # GSPDFDevice AC_MSG_CHECKING([for gs PDF writing device]) @@ -3212,7 +3531,7 @@ if test $have_gs = 'yes'; then else GSPDFDevice=nodevice fi - AC_MSG_RESULT([$GSPDFDevice]) + AC_MSG_NOTICE([$GSPDFDevice]) # GSPSDevice AC_MSG_CHECKING([for gs PS writing device]) @@ -3221,7 +3540,7 @@ if test $have_gs = 'yes'; then else GSPSDevice=nodevice fi - AC_MSG_RESULT([$GSPSDevice]) + AC_MSG_NOTICE([$GSPSDevice]) # GSEPSDevice AC_MSG_CHECKING([for gs EPS writing device]) @@ -3230,7 +3549,7 @@ if test $have_gs = 'yes'; then else GSEPSDevice=nodevice fi - AC_MSG_RESULT([$GSEPSDevice]) + AC_MSG_NOTICE([$GSEPSDevice]) fi AC_SUBST(GSAlphaDevice) @@ -3250,9 +3569,9 @@ AC_SUBST(GSVersion) # If name/path of desired PERL interpreter is specified, look for that one first have_perl='no' if test "$with_perl" != 'no'; then - AC_MSG_RESULT([-------------------------------------------------------------]) + AC_MSG_NOTICE([-------------------------------------------------------------]) AC_MSG_CHECKING([for Perl]) - AC_MSG_RESULT([]) + AC_MSG_NOTICE([]) if test "$with_perl" != 'yes'; then AC_CACHE_CHECK(for perl,ac_cv_path_PERL,ac_cv_path_PERL="$with_perl"); PERL=$ac_cv_path_PERL @@ -3296,7 +3615,7 @@ if test $with_perl_static = 'yes'; then libtool_objdir=$objdir # Linker search path to library, followed by -lMagickCore - MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}" + MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" fi AC_SUBST(MAGICKCORE_PATH) @@ -3321,8 +3640,10 @@ if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi +if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi +if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi @@ -3389,9 +3710,9 @@ AC_SUBST(MAGICK_LIBLTDL) AC_SUBST(MAGICK_LTDLDEPS) if test "$with_modules" != 'no'; then - MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" + MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" else - MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" + MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" fi AC_SUBST(MAGICK_DEP_LIBS) @@ -3441,15 +3762,13 @@ AC_SUBST(MAGICK_FEATURES) # Set configured scripts to executable. AC_CONFIG_COMMANDS([default],[],[]) -AC_CONFIG_COMMANDS([MagickCore-config.in],[chmod +x magick/MagickCore-config]) -AC_CONFIG_COMMANDS([Magick-config.in],[chmod +x magick/Magick-config]) -AC_CONFIG_COMMANDS([MagickWand-config.in],[chmod +x wand/MagickWand-config]) -AC_CONFIG_COMMANDS([Wand-config.in],[chmod +x wand/Wand-config]) +AC_CONFIG_COMMANDS([MagickCore-config.in],[chmod +x MagickCore/MagickCore-config]) +AC_CONFIG_COMMANDS([MagickWand-config.in],[chmod +x MagickWand/MagickWand-config]) AC_CONFIG_COMMANDS([Magick++-config.in],[chmod +x Magick++/bin/Magick++-config]) AC_CONFIG_COMMANDS([PerlMagick/check.sh.in],[chmod +x PerlMagick/check.sh]) -AC_MSG_RESULT([-------------------------------------------------------------]) -AC_MSG_RESULT([Update ImageMagick configuration]) +AC_MSG_NOTICE([-------------------------------------------------------------]) +AC_MSG_NOTICE([Update ImageMagick configuration]) AC_OUTPUT rm -f magick-version @@ -3469,7 +3788,7 @@ if test "${windows_font_dir}x" != 'x'; then result_windows_font_dir=${windows_font_dir} fi -AC_MSG_RESULT([ +AC_MSG_NOTICE([ ImageMagick is configured as follows. Please verify that this configuration matches your expectations. @@ -3508,12 +3827,15 @@ JPEG-2000 --with-jp2=$with_jp2 $have_jp2 LCMS v1 --with-lcms=$with_lcms $have_lcms LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 LQR --with-lqr=$with_lqr $have_lqr +LZMA --with-lzma=$with_lzma $have_lzma Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus OpenEXR --with-openexr=$with_openexr $have_openexr +PANGO --with-pango=$with_pango $have_pango PERL --with-perl=$with_perl $have_perl PNG --with-png=$with_png $have_png RSVG --with-rsvg=$with_rsvg $have_rsvg TIFF --with-tiff=$with_tiff $have_tiff +WEBP --with-webp=$with_webp $have_webp Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir WMF --with-wmf=$with_wmf $have_wmf X11 --with-x=$with_x $have_x