1# Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization 2# dedicated to making software imaging solutions freely available. 3# 4# You may not use this file except in compliance with the License. You may 5# obtain a copy of the License at 6# 7# https://imagemagick.org/script/license.php 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15# Copyright (C) 2003 - 2008 GraphicsMagick Group 16# 17# Copying and distribution of this file, with or without modification, 18# are permitted in any medium without royalty provided the copyright 19# notice and this notice are preserved. 20 21# Process this file with autoconf to create configure script. 22AC_PREREQ(2.69) 23 24# ============================================================================== 25# ImageMagick release. 26# ============================================================================== 27m4_define([magick_major_version], [7]) 28m4_define([magick_minor_version], [0]) 29m4_define([magick_micro_version], [9]) 30m4_define([magick_patchlevel_version], [15]) 31m4_define([magick_version], 32 [magick_major_version.magick_minor_version.magick_micro_version-magick_patchlevel_version]) 33m4_define([magick_git_revision], 34 esyscmd([ 35 c=$(git log --full-history --format=tformat:. HEAD | wc -l) 36 h=$(git rev-parse --short HEAD) 37 d=$(date +%Y%m%d) 38 printf %s "$c:$h:$d" 39 ])) 40m4_define([magick_tar_name],[ImageMagick]) 41 42# ============================================================================== 43# Initalize Automake 44# ============================================================================== 45AC_INIT([ImageMagick], 46 [magick_version], 47 [https://github.com/ImageMagick/ImageMagick/issues], 48 [magick_tar_name], 49 [https://imagemagick.org]) 50AC_CONFIG_SRCDIR([MagickCore/MagickCore.h]) 51AC_CONFIG_AUX_DIR([config]) 52AC_REQUIRE_AUX_FILE([tap-driver.sh]) 53AC_CONFIG_MACRO_DIR([m4]) 54AC_CONFIG_HEADERS([config/config.h]) 55AX_PREFIX_CONFIG_H([MagickCore/magick-baseconfig.h],[MagickCore]) 56AC_CANONICAL_SYSTEM 57AC_CANONICAL_TARGET 58AM_INIT_AUTOMAKE([foreign color-tests -Wall -Wno-portability subdir-objects dist-bzip2 dist-lzip dist-xz dist-zip tar-ustar]) 59AM_SILENT_RULES([yes]) 60 61# 62# Save initial user-tunable values 63# 64USER_LIBS=$LIBS 65for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS AR_FLAGS LIBS ; do 66 eval isset=\${$var+set} 67 if test "$isset" = 'set'; then 68 eval val=$`echo $var` 69 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " 70 fi 71done 72AC_SUBST(DISTCHECK_CONFIG_FLAGS) 73 74CONFIGURE_ARGS="$0 ${ac_configure_args}" 75AC_SUBST(CONFIGURE_ARGS) 76 77AC_ARG_ENABLE([reproducible-build], 78 [AC_HELP_STRING([--enable-reproducible-build], 79 [enable reproducible build])], 80 [enable_reproducible_build=$enableval], 81 [enable_reproducible_build='no']) 82 83# Source file containing package/library versioning information. 84. ${srcdir}/version.sh 85 86echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" 87 88MAGICK_TARGET_CPU=$host_cpu 89AC_SUBST(MAGICK_TARGET_CPU) 90AC_DEFINE_UNQUOTED(MAGICK_TARGET_CPU,$MAGICK_TARGET_CPU,[Target Host CPU]) 91 92MAGICK_TARGET_VENDOR=$host_vendor 93AC_SUBST(MAGICK_TARGET_VENDOR) 94AC_DEFINE_UNQUOTED(MAGICK_TARGET_VENDOR,$MAGICK_TARGET_VENDOR,[Target Host Vendor]) 95 96MAGICK_TARGET_OS=$host_os 97AC_SUBST(MAGICK_TARGET_OS) 98AC_DEFINE_UNQUOTED(MAGICK_TARGET_OS,$MAGICK_TARGET_OS,[Target Host OS]) 99 100 101# Substitute versioning 102AC_SUBST([MAGICK_MAJOR_VERSION],[magick_major_version]) 103AC_SUBST([MAGICK_MINOR_VERSION],[magick_minor_version]) 104AC_SUBST([MAGICK_MICRO_VERSION],[magick_micro_version]) 105AC_SUBST([MAGICK_PATCHLEVEL_VERSION],[magick_patchlevel_version]) 106AC_SUBST([MAGICK_VERSION],[magick_version]) 107AC_SUBST([MAGICK_GIT_REVISION],[magick_git_revision]) 108 109# Substitute library versioning 110AC_SUBST(MAGICK_LIBRARY_CURRENT)dnl 111AC_SUBST(MAGICK_LIBRARY_REVISION)dnl 112AC_SUBST(MAGICK_LIBRARY_AGE)dnl 113AC_SUBST([MAGICK_LIBRARY_CURRENT_MIN], 114 [`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`]) 115AC_SUBST([MAGICK_LIBRARY_VERSION_INFO], 116 [$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE]) 117 118AC_SUBST(MAGICKPP_LIBRARY_CURRENT)dnl 119AC_SUBST(MAGICKPP_LIBRARY_REVISION)dnl 120AC_SUBST(MAGICKPP_LIBRARY_AGE)dnl 121AC_SUBST([MAGICKPP_LIBRARY_CURRENT_MIN], 122 [`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`]) 123AC_SUBST([MAGICKPP_LIBRARY_VERSION_INFO], 124 [$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE]) 125 126AC_SUBST(PACKAGE_NAME)dnl 127AC_SUBST(PACKAGE_VERSION)dnl 128AC_SUBST(PACKAGE_PERL_VERSION)dnl 129AC_SUBST(PACKAGE_RELEASE)dnl 130AC_SUBST(PACKAGE_CHANGE_DATE)dnl 131AC_SUBST(PACKAGE_LIB_VERSION)dnl 132AC_SUBST(PACKAGE_LIB_VERSION_NUMBER)dnl 133AS_IF([test X$enable_reproducible_build = Xyes], 134 [PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE], 135 [PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW], 136) 137AC_SUBST(PACKAGE_RELEASE_DATE)dnl 138 139AC_SUBST(PACKAGE_VERSION_ADDENDUM)dnl 140 141# Ensure that make can run correctly 142AM_SANITY_CHECK 143 144# versioning of library 145MAGICK_LIB_VERSION="0x" 146if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then 147 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 148fi 149MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} 150if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then 151 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 152fi 153MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} 154if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then 155 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 156fi 157MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} 158AC_SUBST(MAGICK_LIB_VERSION) 159 160# Definition used to define MagickLibVersionText in version.h 161MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 162AC_SUBST(MAGICK_LIB_VERSION_TEXT) 163 164# Definition used to define MagickLibVersionNumber in version.h 165MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 166AC_SUBST(MAGICK_LIB_VERSION_NUMBER) 167 168MAGICKPP_LIB_VERSION="0x" 169if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then 170 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 171fi 172MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT} 173if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then 174 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 175fi 176MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE} 177if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then 178 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 179fi 180MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION} 181AC_SUBST(MAGICKPP_LIB_VERSION) 182 183# Definition used to define MagickLibVersionText in version.h 184MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 185AC_SUBST(MAGICKPP_LIB_VERSION_TEXT) 186 187# Definition used to define MagickLibVersionNumber in version.h 188MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 189AC_SUBST(MAGICK_LIB_VERSION_NUMBER) 190 191 192 193# Regenerate config.status if ChangeLog or version.sh is updated. 194AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/version.sh']) 195 196PERLMAINCC=$CC 197 198MAGICK_CFLAGS='' 199MAGICK_CPPFLAGS=$CPPFLAGS_USER 200MAGICK_PCFLAGS=$CPPFLAGS_USER 201MAGICK_LDFLAGS='' 202MAGICK_LIBS='' 203MAGICK_FEATURES='' 204 205# 206# Evaluate shell variable equivalents to Makefile directory variables 207# 208if test "x$prefix" = xNONE; then 209 prefix=$ac_default_prefix 210fi 211# Let make expand exec_prefix. 212if test "x$exec_prefix" = xNONE; then 213 exec_prefix='${prefix}' 214fi 215 216# 217eval "eval PREFIX_DIR=${prefix}" 218AC_SUBST(PREFIX_DIR) 219eval "eval EXEC_PREFIX_DIR=${exec_prefix}" 220AC_SUBST(EXEC_PREFIX_DIR) 221eval "eval BIN_DIR=$bindir" 222AC_SUBST(BIN_DIR) 223eval "eval SBIN_DIR=$sbindir" 224AC_SUBST(SBIN_DIR) 225eval "eval LIBEXEC_DIR=$libexecdir" 226AC_SUBST(LIBEXEC_DIR) 227eval "eval DATA_DIR=$datadir" 228AC_SUBST(DATA_DIR) 229eval "eval DOC_DIR=$datadir/doc" 230AC_SUBST(DOC_DIR) 231eval "eval SYSCONF_DIR=$sysconfdir" 232AC_SUBST(SYSCONF_DIR) 233eval "eval SHAREDSTATE_DIR=$sharedstatedir" 234AC_SUBST(SHAREDSTATE_DIR) 235eval "eval LOCALSTATE_DIR=$localstatedir" 236AC_SUBST(LOCALSTATE_DIR) 237eval "eval LIB_DIR=$libdir" 238AC_SUBST(LIB_DIR) 239eval "eval INCLUDE_DIR=$includedir" 240AC_SUBST(INCLUDE_DIR) 241eval "eval PERSISTINCLUDE_DIR=$oldincludedir" 242AC_SUBST(PERSISTINCLUDE_DIR) 243eval "eval INFO_DIR=$infodir" 244AC_SUBST(INFO_DIR) 245eval "eval MAN_DIR=$mandir" 246AC_SUBST(MAN_DIR) 247 248# Get full paths to source and build directories 249srcdirfull="`cd $srcdir && pwd`" 250builddir="`pwd`" 251 252# 253# Compute variables useful for running uninstalled software. 254# 255MAGICK_CODER_MODULE_PATH="${builddir}/coders" 256MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" 257MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" 258MAGICK_FILTER_MODULE_PATH="${builddir}/filters" 259DIRSEP=':' 260case "${build_os}" in 261 mingw* ) 262 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` 263 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` 264 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` 265 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` 266 DIRSEP=';' 267 ;; 268esac 269case "${host_os}" in 270 mingw* ) 271 DIRSEP=';' 272 ;; 273esac 274AC_SUBST(MAGICK_CODER_MODULE_PATH) 275AC_SUBST(MAGICK_CONFIGURE_SRC_PATH) 276AC_SUBST(MAGICK_CONFIGURE_BUILD_PATH) 277AC_SUBST(MAGICK_FILTER_MODULE_PATH) 278AC_SUBST(DIRSEP) 279 280 281# 282# Enable OS features. 283# 284AC_USE_SYSTEM_EXTENSIONS 285 286# ============================================================================== 287# Find required base packages 288# ============================================================================== 289m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 290AC_PROG_CC 291AC_PROG_CXX 292AC_PROG_CC_STDC 293AC_PROG_CPP 294AC_PROG_LD 295AC_SUBST(LD) 296AC_PROG_CC_C99 297AM_PROG_CC_C_O 298AX_CFLAGS_WARN_ALL 299AC_PROG_INSTALL 300AC_PROG_MAKE_SET 301AC_PROG_LN_S 302AC_PROG_SED 303AC_PROG_AWK 304AC_PROG_MKDIR_P 305AM_WITH_DMALLOC 306AX_C___ATTRIBUTE__ 307AX_GCC_ARCHFLAG([yes]) 308PKG_PROG_PKG_CONFIG([0.20]) 309AC_CANONICAL_BUILD 310AC_CANONICAL_HOST 311 312AX_COMPILER_VENDOR 313 314if test "x$GCC" = "xyes"; then 315 CFLAGS="$CFLAGS -fexceptions" 316 touch local.exp 317else 318 cat > local.exp <<EOF 319set CC_FOR_TARGET "$CC" 320EOF 321fi 322 323# Check for linker script support 324gl_LD_VERSION_SCRIPT 325 326# 327# Enable run-time checking. 328# 329AC_ARG_ENABLE([bounds-checking], 330 [AC_HELP_STRING([--enable-bounds-checking], 331 [enable run-time bounds-checking])], 332 [enable_bounds_checking=$enableval], 333 [enable_bounds_checking='no']) 334 335if test "$enable_bounds_checking" = yes; then 336 AC_DEFINE([_FORTIFY_SOURCE], [2], 337 [enable run-time bounds-checking]) 338fi 339 340# 341# Tests for Windows 342# 343AC_EXEEXT 344AC_OBJEXT 345 346GDI32_LIBS='' 347WS2_32_LIBS='' 348native_win32_build='no' 349cygwin_build='no' 350case "${host_os}" in 351 cygwin* ) 352 cygwin_build='yes' 353 GDI32_LIBS='-lgdi32' 354 ;; 355 mingw* ) 356 native_win32_build='yes' 357 GDI32_LIBS='-lgdi32' 358 OLE_LIBS='-loleaut32' 359 WS2_32_LIBS="-lws2_32" 360 ;; 361esac 362if test "${GDI32_LIBS}x" != 'x'; then 363 AC_DEFINE(WINGDI32_DELEGATE,1,Define to use the Windows GDI32 library) 364fi 365AC_SUBST(GDI32_LIBS) 366AC_SUBST(OLE_LIBS) 367AC_SUBST(WS2_32_LIBS) 368AM_CONDITIONAL(WINGDI32_DELEGATE, test "${GDI32_LIBS}x" != 'x' ) 369AM_CONDITIONAL(WIN32_NATIVE_BUILD, test "${native_win32_build}" = 'yes' ) 370AM_CONDITIONAL(CYGWIN_BUILD, test "${cygwin_build}" = 'yes' ) 371AM_CONDITIONAL(USING_CL, test "x${CC}" = 'xcl.exe' ) 372 373WinPathScript="${srcdirfull}/winpath.sh" 374AC_SUBST(WinPathScript) 375 376# 377# Compiler flags tweaks 378# 379if test "${GCC}" != "yes"; then 380 case "${host}" in 381 *-*-hpux* ) 382 # aCC: HP ANSI C++ B3910B A.03.34 383 CFLAGS="${CFLAGS} -Wp,-H30000" 384 if test -n "${CXXFLAGS}"; then 385 CXXFLAGS='-AA' 386 else 387 CXXFLAGS="${CXXFLAGS} -AA" 388 fi 389 ;; 390 *-dec-osf5.* ) 391 # Compaq alphaev68-dec-osf5.1 compiler 392 if test -n "${CXXFLAGS}"; then 393 CXXFLAGS='-std strict_ansi -noimplicit_include' 394 else 395 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" 396 fi 397 esac 398fi 399 400# Check for lazy-loading. 401AC_CACHE_CHECK([for linker lazyload option],[im_cv_ld_lazyload], 402[ 403im_cv_ld_lazyload='none' 404case "${host}" in 405 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) 406 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then 407 im_cv_ld_lazyload='-Wl,-zlazyload' 408 fi 409 ;; 410esac 411]) 412if test "${im_cv_ld_lazyload}" != 'none' ; then 413 if test -z "${LDFLAGS}" ; then 414 LDFLAGS="${im_cv_ld_lazyload}" 415 else 416 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" 417 fi 418fi 419 420dnl Platform-specific stuff 421case "$host" in 422 *darwin* | *-macos10*) 423 dnl Disable FORTIFY_SOURCE to fix a bug in LVVM / OpenMP support 424 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0" 425 dnl OS X universal binary support, requires --disable-dependency-tracking 426 AC_ARG_ENABLE([osx-universal-binary], 427 AC_HELP_STRING([--enable-osx-universal-binary], 428 [build universal binary on OS X [[default=no]]]), 429 [build_osxuniversal="${enableval}"], [build_osxuniversal=no]) 430 431 if test "${build_osxuniversal}" != no ; then 432 if test "$enable_dependency_tracking" != no ; then 433 AC_MSG_ERROR([--enable-osx-universal-binary requires --disable-dependency-tracking. 434Please re-run configure with these options: 435 --disable-dependency-tracking --enable-osx-universal-binary 436 ]) 437 fi 438 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 439 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 440 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 441 fi 442 ;; 443esac 444 445# 446# ARCH specific include directory 447# 448AC_ARG_WITH([includearch-dir], 449 [AC_HELP_STRING([--includearch-dir=DIR], 450 [ARCH specific include directory])], 451 [includearch_dir=$withval], 452 [includearch_dir=$INCLUDE_DIR]) 453 454eval "eval INCLUDEARCH_DIR=$includearch_dir" 455AC_SUBST(INCLUDEARCH_DIR) 456 457# 458# ARCH specific configuration directory 459# 460AC_ARG_WITH([sharearch-dir], 461 [AC_HELP_STRING([--sharearch-dir=DIR], 462 [ARCH specific config directory])], 463 [sharearch_dir=$withval], 464 [sharearch_dir="${LIB_DIR}"]) 465 466eval "eval SHAREARCH_DIR=$sharearch_dir" 467AC_SUBST(SHAREARCH_DIR) 468 469# Path to the pkgconfig folder 470AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=DIR], 471 [Path to the pkgconfig directory @<:@LIBDIR/pkgconfig@:>@]), 472 [pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig']) 473AC_SUBST([pkgconfigdir]) 474 475# 476# Enable support for POSIX thread APIs 477# 478AC_ARG_WITH([threads], 479 [AC_HELP_STRING([--without-threads], [disable POSIX threads API support])], 480 [with_threads=$withval], 481 [with_threads='yes']) 482 483THREAD_LIBS='' 484have_threads=no 485if test "$with_threads" != 'no'; then 486 AX_PTHREAD() 487 if test "$ax_pthread_ok" = yes; then 488 have_threads=yes 489 DEF_THREAD="$PTHREAD_CFLAGS" 490 CFLAGS="$CFLAGS $DEF_THREAD" 491 CXXFLAGS="$CXXFLAGS $DEF_THREAD" 492 THREAD_LIBS="$PTHREAD_LIBS" 493 if test "$CC" != "$PTHREAD_CC"; then 494 AC_MSG_WARN([Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads.]) 495 CC="$PTHREAD_CC" 496 fi 497 AC_DEFINE(THREAD_SUPPORT,1,[Define if you have POSIX threads libraries and header files.]) 498 fi 499fi 500LIBS="$LIBS $THREAD_LIBS" 501AC_SUBST(THREAD_LIBS) 502 503# Enable support for OpenMP 504if test "$have_threads" != 'yes'; then 505 ac_cv_prog_c_openmp=unsupported 506fi 507AC_OPENMP([C]) 508CFLAGS="$OPENMP_CFLAGS $CFLAGS" 509MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" 510AC_SUBST(OPENMP_CFLAGS) 511if test "$enable_openmp" != no; then 512 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then 513 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" 514 fi 515fi 516 517# Enable support for OpenCL 518ax_cv_check_cl_libcl=no 519AX_OPENCL([C]) 520CFLAGS="$CL_CFLAGS $CFLAGS" 521CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 522LIBS="$CL_LIBS $LIBS" 523AC_SUBST(CL_CFLAGS) 524if test "X$ax_cv_check_cl_libcl" != Xno; then : 525 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" 526fi 527 528######## 529# 530# Check for large file support 531# 532######## 533AC_SYS_LARGEFILE 534AC_FUNC_FSEEKO 535LFS_CPPFLAGS='' 536if test "$enable_largefile" != no; then 537 case $ac_cv_sys_file_offset_bits in 538 no) 539 # nothing to do here as the host supports LFS fine 540 ;; 541 unknown) 542 AC_MSG_CHECKING([for native large file support]) 543 AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <unistd.h> 544 main () { 545 exit(!(sizeof(off_t) == 8)); 546 }])], 547 [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64) 548 AC_MSG_RESULT([yes])], 549 [AC_MSG_RESULT([no])]) 550 ;; 551 *) 552 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 553 ;; 554 esac 555 if test "$ac_cv_sys_large_files" != 'no'; then 556 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" 557 fi 558 if test "$ac_cv_sys_largefile_source" != 'no'; then 559 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" 560 fi 561fi 562AC_SUBST(LFS_CPPFLAGS) 563 564# Configure libtool 565: ${AR_FLAGS=cr} 566AC_LIBTOOL_DLOPEN 567LT_INIT([win32-dll]) 568LT_LANG([C++]) 569AC_SUBST(LIBTOOL_DEPS) 570 571# Check to see if building shared libraries 572libtool_build_shared_libs='no' 573if test "$enable_shared" = 'yes'; then 574 libtool_build_shared_libs='yes' 575fi 576 577# Check to see if building static libraries 578libtool_build_static_libs='no' 579if test "$enable_static" = 'yes'; then 580 libtool_build_static_libs='yes' 581fi 582 583AM_CONDITIONAL(WITH_SHARED_LIBS, test "${libtool_build_shared_libs}" = 'yes') 584# 585# Enable support for building loadable modules 586# 587build_modules='no' 588AC_ARG_WITH([modules], 589 [AC_HELP_STRING([--with-modules], 590 [enable building dynamically loadable modules])], 591 [with_modules=$withval], 592 [with_modules='no']) 593 594# Only allow building loadable modules if we are building shared libraries 595if test "$with_modules" != 'no' ; then 596 if test "$libtool_build_shared_libs" = 'no'; then 597 AC_MSG_WARN([Modules may only be built if building shared libraries is enabled.]) 598 build_modules='no' 599 else 600 build_modules='yes' 601 fi 602fi 603if test "$build_modules" != 'no' ; then 604 AC_DEFINE(BUILD_MODULES,1,Define if coders and filters are to be built as modules.) 605 MAGICK_FEATURES="$MAGICK_FEATURES Modules" 606fi 607AM_CONDITIONAL(WITH_MODULES, test "$build_modules" != 'no') 608 609# Enable build using delegate libraries built in subdirectories rather than installed 610# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) 611AC_ARG_ENABLE([delegate-build], 612 [AC_HELP_STRING([--enable-delegate-build], 613 [look for delegate libraries in build directory])], 614 [enable_delegate_build=$enableval], 615 [enable_delegate_build='no']) 616 617AC_ARG_ENABLE([deprecated], 618 [AC_HELP_STRING([--disable-deprecated], 619 [exclude deprecated methods in MagickCore and MagickWand APIs])], 620 [enable_deprecated=$enableval], 621 [enable_deprecated='no']) 622 623if test "$enable_deprecated" = 'yes'; then 624 AC_DEFINE(EXCLUDE_DEPRECATED,1,[exclude deprecated methods in MagickCore API]) 625else 626 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " 627fi 628 629# Build a version of ImageMagick which operates uninstalled. 630# Used to build distributions located via MAGICK_HOME / executable path 631AC_ARG_ENABLE([installed], 632 [AC_HELP_STRING([--disable-installed], 633 [Formally install ImageMagick under PREFIX])], 634 [enable_installed=$enableval], 635 [enable_installed='yes']) 636 637if test "$enable_installed" = 'yes'; then 638 AC_DEFINE(INSTALLED_SUPPORT,1,[ImageMagick is formally installed under prefix]) 639else 640 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " 641fi 642 643# Permit enciphering and deciphering image pixels. 644AC_ARG_ENABLE([cipher], 645 [AC_HELP_STRING([--disable-cipher], 646 [disable enciphering and deciphering image pixels])], 647 [enable_cipher=$enableval], 648 [enable_cipher='yes']) 649 650if test "$enable_cipher" = 'yes'; then 651 AC_DEFINE(CIPHER_SUPPORT,1,[permit enciphering and deciphering image pixels]) 652 MAGICK_FEATURES="Cipher $MAGICK_FEATURES" 653fi 654 655# Build a zero-configuration version of ImageMagick. 656AC_ARG_ENABLE([zero-configuration], 657 [AC_HELP_STRING([--enable-zero-configuration], 658 [enable self-contained, embeddable, zero-configuration ImageMagick])], 659 [enable_zero_configuration=$enableval], 660 [enable_zero_configuration='no']) 661 662if test "$enable_zero_configuration" = 'yes'; then 663 AC_DEFINE(ZERO_CONFIGURATION_SUPPORT,1,[Build self-contained, embeddable, zero-configuration ImageMagick]) 664 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES" 665fi 666AM_CONDITIONAL([MAGICKCORE_ZERO_CONFIGURATION_SUPPORT], [test "$enable_zero_configuration" = yes]) 667 668# Build a high dynamic range version of ImageMagick. 669AC_ARG_ENABLE([hdri], 670 [AC_HELP_STRING([--enable-hdri], 671 [accurately represent the wide range of intensity levels found in real scenes])], 672 [enable_hdri=$enableval], 673 [enable_hdri='yes']) 674 675MAGICK_HDRI="" 676if test "$enable_hdri" = 'yes'; then 677 MAGICK_HDRI="HDRI" 678 magick_hdri_enable='1'; 679 MAGICK_FEATURES="HDRI $MAGICK_FEATURES" 680else 681 magick_hdri_enable='0' 682fi 683AC_DEFINE_UNQUOTED(HDRI_ENABLE_OBSOLETE_IN_H,$magick_hdri_enable,[Whether hdri is enabled or not]) 684AC_SUBST(MAGICK_HDRI)dnl 685MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 686CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 687CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 688 689# Enable pipes (|) in filenames. 690AC_ARG_ENABLE([pipes], 691 [AC_HELP_STRING([--enable-pipes], 692 [enable pipes (|) in filenames])], 693 [enable_pipes=$enableval], 694 [enable_pipes='no']) 695 696if test "$enable_pipes" = 'yes'; then 697 AC_DEFINE(PIPES_SUPPORT,1,[enable pipes (|) in filenames]) 698 MAGICK_FEATURES="Pipes $MAGICK_FEATURES" 699fi 700 701# Build a version of ImageMagick with assert statements. 702AC_ARG_ENABLE([assert], 703 [AC_HELP_STRING([--disable-assert], 704 [disable assert() statements in build])], 705 [enable_assert=$enableval], 706 [enable_assert='yes']) 707 708if test "$enable_assert" = 'no'; then 709 AC_DEFINE(NDEBUG,1,[Turn off assert statements]) 710fi 711 712# Don't emit "rebuild rules" for configure, Makefile.ins, etc. 713AM_MAINTAINER_MODE 714 715# Enable hugepages support 716AC_ARG_ENABLE([hugepages], 717 [AC_HELP_STRING([--enable-hugepages], 718 [enable 'huge pages' support])], 719 [enable_hugepages=$enableval], 720 [enable_hugepages='no']) 721 722# Enable ccmalloc memory debugging support 723AC_ARG_ENABLE([ccmalloc], 724 [AC_HELP_STRING([--enable-ccmalloc], 725 [enable 'ccmalloc' memory debug support])], 726 [enable_ccmalloc=$enableval], 727 [enable_ccmalloc='no']) 728 729# Enable Electric Fence memory debugging support 730AC_ARG_ENABLE([efence], 731 [AC_HELP_STRING([--enable-efence], 732 [enable 'efence' memory debug support])], 733 [enable_efence=$enableval], 734 [enable_efence='no']) 735 736# Enable prof-based profiling support 737AC_ARG_ENABLE([prof], 738 [AC_HELP_STRING([--enable-prof], 739 [enable 'prof' profiling support])], 740 [enable_prof=$enableval], 741 [enable_prof='no']) 742 743# Enable gprof-based profiling support 744AC_ARG_ENABLE([gprof], 745 [AC_HELP_STRING([--enable-gprof], 746 [enable 'gprof' profiling support])], 747 [enable_gprof=$enableval], 748 [enable_gprof='no']) 749 750# Enable gcov-based profiling support 751AC_ARG_ENABLE([gcov], 752 [AC_HELP_STRING([--enable-gcov], 753 [enable 'gcov' profiling support])], 754 [enable_gcov=$enableval], 755 [enable_gcov='no']) 756 757enable_profiling='no' 758if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then 759 enable_profiling='yes' 760 if test "$libtool_build_shared_libs" = 'yes'; then 761 echo "Warning: Can not profile code using shared libraries" 762 fi 763fi 764 765# Magick API method prefix 766AC_ARG_WITH([method-prefix], 767 [AC_HELP_STRING([--with-method-prefix=PREFIX], 768 [prefix MagickCore API methods])], 769 [with_method_prefix=$withval], 770 [with_method_prefix='no']) 771 772if test "$with_method_prefix" != 'no'; then 773 AC_DEFINE_UNQUOTED(NAMESPACE_PREFIX,$with_method_prefix,[Magick API method prefix]) 774 AC_DEFINE_UNQUOTED(NAMESPACE_PREFIX_TAG,["$with_method_prefix"],[Magick API method prefix tag]) 775 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix " 776fi 777 778# Enable legacy support (default no) 779AC_ARG_ENABLE(legacy-support, 780 [ --enable-legacy-support install legacy command-line utilities (default disabled)], 781 [with_legacy_support=$enableval], 782 [with_legacy_support='no']) 783AM_CONDITIONAL(LEGACY_SUPPORT, test "$with_legacy_support" != 'no') 784 785# Enable building command line utilities (default yes) 786AC_ARG_WITH(utilities, 787 [ --with-utilities enable building command-line utilities (default yes)], 788 [with_utilities=$withval], [with_utilities='yes']) 789AM_CONDITIONAL(WITH_UTILITIES, test "$with_utilities" = 'yes') 790 791# Number of bits in a Quantum 792AC_ARG_WITH([quantum-depth], 793 [AC_HELP_STRING([--with-quantum-depth=DEPTH], 794 [number of bits in a pixel quantum (default 16)])], 795 [with_quantum_depth=$withval], 796 [with_quantum_depth=16]) 797 798if test "$with_quantum_depth" != '8'; then 799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " 800fi 801 802case "${with_quantum_depth}" in 803 8 ) ;; 804 16 ) ;; 805 32 ) ;; 806 64 ) ;; 807 * ) AC_MSG_ERROR("Pixel quantum depth must have value of 8, 16, 32, or 64") ;; 808esac 809QUANTUM_DEPTH="$with_quantum_depth" 810AC_DEFINE_UNQUOTED(QUANTUM_DEPTH_OBSOLETE_IN_H,$QUANTUM_DEPTH,[Number of bits in a pixel Quantum (8/16/32/64)]) 811AC_SUBST(QUANTUM_DEPTH)dnl 812MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 813CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 814CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 815 816# define a lib suffix for abi purpose 817MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}" 818if test "$enable_hdri" = 'yes'; then 819 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}" 820fi 821AC_SUBST(MAGICK_ABI_SUFFIX) 822 823# Set pixel cache threshold 824AC_ARG_WITH([cache], 825 [AC_HELP_STRING([--with-cache=THRESHOLD], 826 [set pixel cache threshhold in MB (default available memory)])], 827 [with_cache=$withval], 828 [with_cache='']) 829 830if test "$with_cache" != ''; then 831 AC_DEFINE_UNQUOTED(PixelCacheThreshold,$with_cache,[Pixel cache threshold in MB (defaults to available memory)]) 832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " 833fi 834 835# Disable/Enable support for full delegate paths 836AC_ARG_WITH([frozenpaths], 837 [AC_HELP_STRING([--with-frozenpaths], 838 [freeze delegate paths])], 839 [with_frozenpaths=$withval], 840 [with_frozenpaths='no']) 841 842# Enable build/install of Magick++ 843AC_ARG_WITH([magick-plus-plus], 844 [AC_HELP_STRING([--without-magick-plus-plus], 845 [disable build/install of Magick++])], 846 [with_magick_plus_plus=$withval], 847 [with_magick_plus_plus='yes']) 848 849# Encode the this name into the shared library. 850AC_ARG_WITH([package-release-name], 851 [AC_HELP_STRING([--with-package-release-name=NAME], 852 [encode this name into the shared library])], 853[MAGICK_LT_RELEASE_OPTS="-release $withval"]) 854AC_SUBST(MAGICK_LT_RELEASE_OPTS) 855 856# Disable build/install of PerlMagick. 857AC_ARG_WITH([perl], 858 [AC_HELP_STRING([--with-perl], 859 [enable build/install of PerlMagick])], 860 [with_perl=$withval], 861 [with_perl='no']) 862 863# Options to pass when configuring PerlMagick 864AC_ARG_WITH([perl-options], 865 [AC_HELP_STRING([--with-perl-options=OPTIONS], 866 [options to pass on command-line when generating PerlMagick build file])], 867PERL_MAKE_OPTIONS=$withval) 868AC_SUBST(PERL_MAKE_OPTIONS) 869 870# Enable jemalloc, object-caching memory allocation library. 871AC_ARG_WITH(jemalloc, 872 [ --with-jemalloc enable jemalloc memory allocation library support], 873 [with_jemalloc=$withval], 874 [with_jemalloc='no']) 875if test "$with_jemalloc" != 'yes' ; then 876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc " 877fi 878 879# Enable use of TCMalloc library. 880AC_ARG_WITH(tcmalloc, 881 AS_HELP_STRING([--with-tcmalloc], 882 [enable tcmalloc memory allocation library support]), 883 [with_tcmalloc=$withval], 884 [with_tcmalloc='no']) 885if test "$with_tcmalloc" != 'no' ; then 886 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tcmalloc=$with_tcmalloc " 887fi 888 889# Enable umem, object-caching memory allocation library. 890AC_ARG_WITH(umem, 891 [ --with-umem enable umem memory allocation library support], 892 [with_umem=$withval], 893 [with_umem='no']) 894if test "$with_umem" != 'yes' ; then 895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " 896fi 897 898# 899# Specify path to shared libstdc++ if not in normal location 900# 901AC_ARG_WITH([libstdc], 902 [AC_HELP_STRING([--with-libstdc=DIR], 903 [ use libstdc++ in DIR (for GNU C++)])], 904 [with_libstdc=$withval], 905 [with_libstdc='']) 906 907if test "$with_libstdc" != ''; then 908 if test -d "$with_libstdc"; then 909 LIBSTDCLDFLAGS="-L$with_libstdc" 910 fi 911fi 912AC_SUBST(LIBSTDCLDFLAGS) 913 914# Does gcc required -traditional? 915AC_PROG_GCC_TRADITIONAL 916 917######## 918# 919# Set defines required to build DLLs and modules using MinGW 920# 921######## 922# These options are set for multi-thread DLL module build 923# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ 924# module: _DLL 925# executable/Magick++: _DLL _MAGICKMOD_ 926MODULE_EXTRA_CPPFLAGS='' 927LIBRARY_EXTRA_CPPFLAGS='' 928if test "${native_win32_build}" = 'yes'; then 929 if test "${libtool_build_shared_libs}" = 'yes'; then 930 CPPFLAGS="$CPPFLAGS -D_DLL" 931 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" 932 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" 933 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" 934 if test "$build_modules" = 'yes'; then 935 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" 936 else 937 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" 938 fi 939 else 940 CPPFLAGS="$CPPFLAGS -D_LIB" 941 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" 942 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" 943 fi 944 if test "$with_threads" = 'yes'; then 945 CPPFLAGS="$CPPFLAGS -D_MT" 946 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" 947 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" 948 fi 949fi 950AC_SUBST(MODULE_EXTRA_CPPFLAGS) 951AC_SUBST(LIBRARY_EXTRA_CPPFLAGS) 952 953# Check standard headers 954AC_HEADER_STDC 955if ! test x"$ac_cv_header_stdc" = x"yes"; then 956 AC_MSG_WARN([configure has detected that you do not have the ANSI standard C 957 header files. Compilation cannot proceed. Please install the ANSI C 958 headers and rerun this script.]); 959fi 960AC_HEADER_ASSERT 961AC_HEADER_DIRENT 962 963# Check additional headers 964AC_CHECK_HEADERS(arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/sendfile.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h utime.h wchar.h xlocale.h) 965 966######## 967# 968# Checks for typedefs, structures, and compiler characteristics. 969# 970######## 971 972AC_HEADER_STDBOOL 973AC_C_VOLATILE 974AC_C_STRINGIZE 975AC_HEADER_STAT 976AC_HEADER_TIME 977AC_STRUCT_TM 978AC_STRUCT_TIMEZONE 979AC_SYS_INTERPRETER 980 981# 982# Checks for language qualifiers and semantics. 983# 984AC_C_CHAR_UNSIGNED 985AC_C_CONST 986AC_C_INLINE 987AC_C_RESTRICT 988AC_C_VOLATILE 989 990# If words are stored with the most significant byte first (like 991# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. 992AC_C_BIGENDIAN 993 994# Define to a suitable type, if standard headers do not define it. 995AC_TYPE_INT8_T 996AC_TYPE_INT16_T 997AC_TYPE_INT32_T 998AC_TYPE_INT64_T 999AC_TYPE_INTMAX_T 1000AC_TYPE_INTPTR_T 1001AC_TYPE_MBSTATE_T 1002AC_TYPE_MODE_T 1003AC_TYPE_OFF_T 1004AC_TYPE_PID_T 1005AC_TYPE_SIZE_T 1006AC_TYPE_SSIZE_T 1007AC_TYPE_UID_T 1008AC_TYPE_UINT8_T 1009AC_TYPE_UINT16_T 1010AC_TYPE_UINT32_T 1011AC_TYPE_UINT64_T 1012AC_TYPE_UINTMAX_T 1013AC_TYPE_UINTPTR_T 1014 1015# Float_t and double_t are intended to be the the most efficient type. 1016AC_CHECK_SIZEOF([float_t], [], [[#include <math.h>]]) 1017AC_CHECK_SIZEOF([double_t], [], [[#include <math.h>]]) 1018 1019# Get size of float, double and long double for comparaison. 1020AC_CHECK_SIZEOF([float]) 1021AC_CHECK_SIZEOF([double]) 1022AC_CHECK_SIZEOF([long double]) 1023 1024# Obtain size of a 'unsigned long long' and define as 1025# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 1026# supported then the value defined is zero. 1027AC_CHECK_SIZEOF(unsigned long long) 1028 1029AC_CHECK_SIZEOF(void *) 1030 1031AC_MSG_CHECKING([whether our compiler supports __func__]) 1032AC_TRY_COMPILE([], 1033 [{ const char *func = __func__; return(func != 0 ? 0 : 1); }], 1034 AC_MSG_RESULT([yes]), 1035 AC_MSG_RESULT([no]) 1036 AC_MSG_CHECKING([whether our compiler supports __FUNCTION__]) 1037 AC_TRY_COMPILE([], 1038 [{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }], 1039 AC_MSG_RESULT([yes]) 1040 AC_DEFINE(__func__, __FUNCTION__, 1041 [Define to appropriate substitute if compiler does not have __func__]), 1042 AC_MSG_RESULT([no]) 1043 AC_DEFINE(__func__, __FILE__, 1044 [Define to appropriate substitute if compiler does not have __func__]))) 1045 1046######## 1047# 1048# Check for functions 1049# 1050######## 1051AC_FUNC_CLOSEDIR_VOID 1052AC_FUNC_MMAP 1053AC_FUNC_FORK 1054AC_FUNC_MEMCMP 1055AC_FUNC_SELECT_ARGTYPES 1056AC_FUNC_SETVBUF_REVERSED 1057AC_FUNC_STRTOD 1058AC_FUNC_STRERROR_R 1059AC_FUNC_VPRINTF 1060 1061# 1062# Find math library 1063# 1064MATH_LIBS='' 1065AC_CHECK_LIB(m,sqrt,MATH_LIBS="-lm",,) 1066LIBS="$MATH_LIBS $LIBS" 1067AC_SUBST(MATH_LIBS) 1068 1069# 1070# Find socket library 1071# 1072AC_SEARCH_LIBS(gethostbyname, resolv nsl) 1073AC_SEARCH_LIBS(socket, socket, 1074[ 1075 AC_DEFINE([HAVE_SOCKET],[1],[Define to 1 if you have socket support.]) 1076 MAGICK_FEATURES="DPC $MAGICK_FEATURES" 1077]) 1078 1079# 1080# Check for clock_gettime(). 1081# 1082AC_SEARCH_LIBS(clock_gettime, rt, 1083[ 1084 AC_DEFINE([HAVE_CLOCK_GETTIME],[1],[Define to 1 if you have clock_gettime.]) 1085 AC_MSG_CHECKING([whether clock_gettime supports CLOCK_REALTIME]) 1086 AC_COMPILE_IFELSE([ 1087 AC_LANG_PROGRAM( 1088 [[#include <time.h>]], 1089 [[clockid_t clockType = CLOCK_REALTIME;]])], 1090 [ 1091 AC_MSG_RESULT(yes) 1092 AC_DEFINE([HAVE_CLOCK_REALTIME],[1], 1093 [Define to 1 if clock_gettime supports CLOCK_REALTIME.]) 1094 ], 1095 AC_MSG_RESULT(no) 1096 ) 1097 ], 1098 [ 1099 AC_CHECK_FUNCS([gettimeofday ftime], [break]) 1100 ] 1101) 1102 1103######## 1104# 1105# Check for function prototypes 1106# 1107######## 1108 1109AC_CHECK_DECLS([pread, pwrite],[],[],[ 1110#include <unistd.h>]) 1111 1112AC_CHECK_DECLS([strlcpy],[],[],[ 1113#include <strings.h>]) 1114 1115AC_CHECK_DECLS([vsnprintf],[],[],[ 1116#include <stdio.h> 1117#include <stdarg.h>]) 1118 1119######## 1120# 1121# C++ Support Tests (For Magick++) 1122# 1123######## 1124have_magick_plus_plus='no' 1125if test "$with_magick_plus_plus" = 'yes'; then 1126 OLIBS="$LIBS" 1127 LIBS='' 1128 AC_LANG_PUSH(C++) 1129 1130 # Full set of headers used... 1131 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception 1132 # functional iomanip iosfwd iostream iterator list string strstream utility 1133 AC_LANG([C++]) 1134 AC_PROG_CXX 1135 AX_CXX_BOOL 1136 AX_CXX_NAMESPACES 1137 AX_CXX_NAMESPACE_STD 1138 AC_CXX_HAVE_STD_LIBS 1139 AC_OPENMP([C++]) 1140 AC_LANG_POP 1141 1142 AC_MSG_CHECKING([whether C++ compiler is sufficient for Magick++]) 1143 if \ 1144 test $ax_cv_cxx_bool = 'yes' && \ 1145 test $ax_cv_cxx_namespaces = 'yes' && \ 1146 test $ac_cv_cxx_have_std_libs = 'yes' && \ 1147 test $ax_cv_cxx_have_std_namespace = 'yes'; then 1148 have_magick_plus_plus='yes' 1149 else 1150 have_magick_plus_plus='no (failed tests)' 1151 fi 1152 AC_MSG_RESULT([$have_magick_plus_plus]) 1153 LIBS="$OLIBS" 1154fi 1155AM_CONDITIONAL(WITH_MAGICK_PLUS_PLUS, test "$have_magick_plus_plus" = 'yes') 1156 1157# Only check for delegate libraries in subdirectories if requested. 1158if test "$enable_delegate_build" != 'no'; then 1159 # Check for delegate sub-directories and add -I & -L options as required. 1160 # This presumes that delegates are installed as detailed in the ImageMagick 1161 # README. If delegates are installed in a standard location where the 1162 # compiler will automatically find them then these options should not be 1163 # required. 1164 1165 # 1166 # Most delegates have includes in the same directory as the library, but not all... 1167 # 1168 # Includes 1169 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do 1170 if test -d "$builddir/$dir"; then 1171 CPPFLAGS="$CPPFLAGS -I$builddir/$dir" 1172 else 1173 if test -d "$srcdirfull/$dir"; then 1174 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" 1175 fi 1176 fi 1177 done 1178 1179 # Libraries 1180 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do 1181 if test -d "$builddir/$dir/.libs"; then 1182 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" 1183 else 1184 if test -d "$srcdirfull/$dir/.libs"; then 1185 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" 1186 fi 1187 fi 1188 if test -d "$builddir/$dir"; then 1189 LDFLAGS="$LDFLAGS -L$builddir/$dir" 1190 else 1191 if test -d "$srcdirfull/$dir"; then 1192 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" 1193 fi 1194 fi 1195 done 1196fi 1197 1198# Assume that delegate headers reside under same directory as ImageMagick 1199# installation prefix. 1200MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS" 1201 1202# 1203# Find the X11 RGB database 1204# 1205AC_CACHE_CHECK(for X11 configure files,im_cv_x_configure, 1206[# Look for the header file in a standard set of common directories. 1207# Check X11 before X11Rn because it is often a symlink to the current release. 1208 for ac_dir in \ 1209 /lib/usr/lib/X11 \ 1210 /usr/X11/lib \ 1211 /usr/X11R4/lib \ 1212 /usr/X11R5/lib \ 1213 /usr/X11R6/lib \ 1214 /usr/X11R7/lib \ 1215 /usr/X386/lib \ 1216 /usr/XFree86/lib/X11 \ 1217 /usr/athena/lib \ 1218 /usr/lib \ 1219 /usr/lib/X11 \ 1220 /usr/lib/X11R4 \ 1221 /usr/lib/X11R5 \ 1222 /usr/lib/X11R6 \ 1223 /usr/lib/X11R7 \ 1224 /usr/local/X11/lib \ 1225 /usr/local/X11R4/lib \ 1226 /usr/local/X11R5/lib \ 1227 /usr/local/X11R6/lib \ 1228 /usr/local/lib \ 1229 /usr/local/lib/X11 \ 1230 /usr/local/lib/X11R4 \ 1231 /usr/local/lib/X11R5 \ 1232 /usr/local/lib/X11R6 \ 1233 /usr/local/lib/X11R7 \ 1234 /usr/local/x11r5/lib \ 1235 /usr/lpp/Xamples/lib \ 1236 /usr/openwin/lib \ 1237 /usr/openwin/share/lib \ 1238 /usr/unsupported/lib \ 1239 /usr/x386/lib \ 1240 ; do 1241 if test -f "$ac_dir/X11/rgb.txt"; then 1242 im_cv_x_configure="$ac_dir/X11/" 1243 break 1244 elif test -f "$ac_dir/rgb.txt"; then 1245 im_cv_x_configure="$ac_dir/" 1246 break 1247 fi 1248 1249 done]) 1250X11_CONFIGURE_PATH="$im_cv_x_configure" 1251case "${build_os}" in 1252 mingw* ) 1253 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` 1254 ;; 1255esac 1256AC_DEFINE_UNQUOTED(X11_CONFIGURE_PATH,"$X11ConfigurePath",[Location of X11 configure files]) 1257 1258# 1259# Find OpenMP library 1260# 1261GOMP_LIBS='' 1262if test "$enable_openmp" != 'no'; then 1263 if test "${GCC}" = "yes"; then 1264 # Open64 (passes for GCC but uses different OpenMP implementation) 1265 if test "x$GOMP_LIBS" = x ; then 1266 if $CC --version 2>&1 | grep Open64 > /dev/null ; then 1267 AC_CHECK_LIB(openmp,omp_get_num_procs,GOMP_LIBS="-lopenmp",,) 1268 fi 1269 fi 1270 # Clang (passes for GCC but uses different OpenMP implementation) 1271 if test "x$LIB_OMP" = x ; then 1272 if $CC --version 2>&1 | grep clang > /dev/null ; then 1273 AC_CHECK_LIB(omp,GOMP_parallel_start,LIB_OMP="-lomp",,) 1274 fi 1275 fi 1276 # GCC 1277 if test "x$GOMP_LIBS" = x ; then 1278 AC_CHECK_LIB(gomp,GOMP_parallel_start,GOMP_LIBS="-lgomp",,) 1279 fi 1280 else 1281 # Sun CC 1282 if test "x$GOMP_LIBS" = x ; then 1283 AC_CHECK_LIB(mtsk,sunw_mp_register_warn,GOMP_LIBS="-lmtsk",,) 1284 fi 1285 # AIX xlc 1286 if test "x$GOMP_LIBS" = x ; then 1287 AC_CHECK_LIB(xlsmp,_xlsmpFlush,GOMP_LIBS="-lxlsmp",,) 1288 fi 1289 # SGI IRIX 6.5 MIPSpro C/C++ 1290 if test "x$GOMP_LIBS" = x ; then 1291 AC_CHECK_LIB(mp,mp_destroy,GOMP_LIBS="-lmp",,) 1292 fi 1293 fi 1294 LIBS="$GOMP_LIBS $LIBS" 1295fi 1296AC_SUBST(GOMP_LIBS) 1297 1298# 1299# Check for jemalloc. 1300# 1301have_jemalloc='no' 1302JEMALLOC_LIBS='' 1303if test "$with_jemalloc" != 'no'; then 1304 AC_MSG_CHECKING(for JEMALLOC support ) 1305 AC_MSG_RESULT() 1306 failed=0 1307 passed=0 1308 AC_CHECK_HEADER([jemalloc/jemalloc.h],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`]) 1309 AC_CHECK_LIB(jemalloc,[malloc_stats_print],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`],) 1310 AC_MSG_CHECKING(if jemalloc memory allocation library is complete) 1311 if test $passed -gt 0; then 1312 if test $failed -gt 0; then 1313 AC_MSG_RESULT(no -- some components failed test) 1314 have_jemalloc='no (failed tests)' 1315 else 1316 JEMALLOC_LIBS='-ljemalloc' 1317 LIBS="$JEMALLOC_LIBS $LIBS" 1318 AC_DEFINE(HasJEMALLOC,1,Define if you have jemalloc memory allocation library) 1319 AC_MSG_RESULT(yes) 1320 have_jemalloc='yes' 1321 fi 1322 else 1323 AC_MSG_RESULT(no) 1324 fi 1325fi 1326AM_CONDITIONAL(HasJEMALLOC, test "$have_jemalloc" = 'yes') 1327AC_SUBST(JEMALLOC_LIBS) 1328 1329# 1330# Check for TCMalloc library 1331# 1332have_tcmalloc='no' 1333TCMALLOC_LIBS='' 1334OLIBS="$LIBS" 1335if test "$have_threads" = 'yes' -a "$with_tcmalloc" != 'no'; then 1336 AC_MSG_CHECKING([tcmalloc library support ]) 1337 AC_MSG_RESULT([]) 1338 failed=0 1339 passed=0 1340 1341 AC_CHECK_LIB([tcmalloc_minimal],[mallinfo],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`],[]) 1342 1343 if test $passed -gt 0; then 1344 if test $failed -gt 0; then 1345 have_tcmalloc='no (some components failed test)' 1346 else 1347 TCMALLOC_LIBS=-ltcmalloc_minimal 1348 LIBS="$TCMALLOC_LIBS $LIBS" 1349 CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free" 1350 AC_DEFINE([HAVE_TCMALLOC],[1],[Define if you have the tcmalloc memory allocation library]) 1351 have_tcmalloc='yes' 1352 fi 1353 fi 1354 AC_MSG_CHECKING([if tcmalloc memory allocation library is complete ]) 1355 AC_MSG_RESULT([$have_tcmalloc]) 1356fi 1357AM_CONDITIONAL([HAVE_TCMALLOC], [test "$have_tcmalloc" = 'yes']) 1358AC_SUBST([TCMALLOC_LIBS]) 1359 1360# 1361# Check for umem. 1362# 1363have_umem='no' 1364UMEM_LIBS='' 1365if test "$with_umem" != 'no'; then 1366 AC_MSG_CHECKING(for UMEM support ) 1367 AC_MSG_RESULT() 1368 failed=0 1369 passed=0 1370 AC_CHECK_HEADER(umem.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 1371 AC_CHECK_LIB(umem,umem_alloc,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 1372 AC_CHECK_LIB(umem,umem_free,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 1373 AC_MSG_CHECKING(if umem memory allocation library is complete) 1374 if test $passed -gt 0; then 1375 if test $failed -gt 0; then 1376 AC_MSG_RESULT(no -- some components failed test) 1377 have_umem='no (failed tests)' 1378 else 1379 UMEM_LIBS='-lumem' 1380 LIBS="$UMEM_LIBS $LIBS" 1381 AC_DEFINE(HAVE_UMEM,1,Define if you have umem memory allocation library) 1382 AC_MSG_RESULT(yes) 1383 have_umem='yes' 1384 fi 1385 else 1386 AC_MSG_RESULT(no) 1387 fi 1388fi 1389AM_CONDITIONAL(HAVE_UMEM, test "$have_umem" = 'yes') 1390AC_SUBST(UMEM_LIBS) 1391 1392# 1393# Add support for ccmalloc memory debugging library if requested 1394# 1395have_ccmalloc='no' 1396CCMALLOC_LIBS='' 1397if test "$enable_ccmalloc" = 'yes'; then 1398 AC_PATH_PROG(CCMALLOCDelegate,ccmalloc,) 1399 if test -n "$CCMALLOCDelegate"; then 1400 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` 1401 OLIBS="$LIBS" 1402 # Assume that gcc is used with ccmalloc. 1403 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" 1404 AC_CHECK_LIB(ccmalloc,ccmalloc_malloc,CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl",,-ldl) 1405 if test -n "$CCMALLOC_LIBS"; then 1406 LIBS="$OLIBS" 1407 LIBS="$LIBS $CCMALLOC_LIBS" 1408 have_ccmalloc='yes' 1409 else 1410 LIBS="$OLIBS" 1411 fi 1412 fi 1413fi 1414 1415# 1416# Add support for 'huge pages' if requested 1417# 1418AS_IF([test "x$enable_hugepages" != "xno"],[ 1419 AC_DEFINE(HAVE_HUGEPAGES, 1, [Compile with hugepage support]) 1420]) 1421 1422# 1423# Add support for efence memory debugging library if requested 1424# 1425if test "$enable_efence" = 'yes'; then 1426 EFENCE_LIBS='-lefence' 1427 LIBS="$EFENCE_LIBS $LIBS" 1428fi 1429 1430dnl =========================================================================== 1431 1432# 1433# Check for BZLIB 1434# 1435 1436AC_ARG_WITH([bzlib], 1437 [AC_HELP_STRING([--without-bzlib], 1438 [disable BZLIB support])], 1439 [with_bzlib=$withval], 1440 [with_bzlib='yes']) 1441 1442if test "$with_bzlib" != 'yes'; then 1443 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " 1444fi 1445 1446have_bzlib='no' 1447if test "$with_bzlib" != 'no'; then 1448 BZLIB_LIBS='' 1449 AC_MSG_RESULT([-------------------------------------------------------------]) 1450 AC_MSG_CHECKING([for BZLIB]) 1451 AC_MSG_RESULT([]) 1452 failed=0 1453 passed=0 1454 found_libbz=0 1455 AC_CHECK_HEADER(bzlib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 1456 AC_CHECK_LIB(bz2,BZ2_bzDecompress,found_libbz=`expr $found_libbz + 1`,,) 1457 if test "$native_win32_build" = 'yes'; then 1458 AC_CHECK_LIB(bz2,_imp__BZ2_decompress,found_libbz=`expr $found_libbz + 1`,,) 1459 fi 1460 if test $found_libbz -gt 0; then 1461 passed=`expr $passed + 1` 1462 else 1463 failed=`expr $failed + 1` 1464 fi 1465 AC_MSG_CHECKING(if BZLIB package is complete) 1466 if test $passed -gt 0; then 1467 if test $failed -gt 0; then 1468 AC_MSG_RESULT(no -- some components failed test) 1469 have_bzlib='no (failed tests)' 1470 else 1471 BZLIB_LIBS='-lbz2' 1472 LIBS="$BZLIB_LIBS $LIBS" 1473 AC_DEFINE(BZLIB_DELEGATE,1,Define if you have the bzip2 library) 1474 AC_MSG_RESULT(yes) 1475 have_bzlib='yes' 1476 fi 1477 else 1478 AC_MSG_RESULT(no) 1479 fi 1480fi 1481AM_CONDITIONAL(BZLIB_DELEGATE, test "$have_bzlib" = 'yes') 1482AC_SUBST(BZLIB_LIBS) 1483 1484# 1485# Find the X11 include and library directories. 1486# 1487IPC_LIBS='' 1488X11_LIBS='' 1489XEXT_LIBS='' 1490XT_LIBS='' 1491AC_PATH_XTRA 1492if test "$no_x" != 'yes'; then 1493 AC_MSG_RESULT([-------------------------------------------------------------]) 1494 AC_MSG_CHECKING([for X11]) 1495 AC_MSG_RESULT([]) 1496 LDFLAGS="$LDFLAGS $X_LIBS" 1497 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 1498 LIBS="$X11_LIBS $LIBS" 1499 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 1500 1501 AC_DEFINE(X11_DELEGATE,1,Define if you have X11 library)dnl 1502 1503 # 1504 # Check for X11 shared memory extension 1505 # 1506 # shmctl is required to support the shared memory extension 1507 AC_CHECK_FUNC([shmctl],[have_shmctl='yes'],[]) 1508 if test "$have_shmctl" != 'yes'; then 1509 PERSIST_LIBS=$LIBS 1510 LIBS="$LIBS -lcygipc" 1511 AC_TRY_LINK_FUNC([shmctl],[have_shmctl='yes'; IPC_LIBS='-lcygipc'],[]) 1512 LIBS=$PERSIST_LIBS 1513 fi 1514 1515 if test "$have_shmctl" = 'yes'; then 1516 AC_CHECK_LIB([Xext],[XShmAttach],[XEXT_LIBS='-lXext' ; AC_DEFINE(HAVE_SHARED_MEMORY,1,X11 server supports shared memory extension)],[],[]) 1517 fi 1518 1519 # 1520 # Check for X11 shape extension 1521 # 1522 AC_CHECK_LIB([Xext],[XShapeCombineMask],[XEXT_LIBS='-lXext' ; AC_DEFINE(HAVE_SHAPE,1,X11 server supports shape extension)],[],[]) 1523 AC_CHECK_LIB(Xt,XtSetEventDispatcher,XT_LIBS='-lXt',,) 1524 LIBS="$XEXT_LIBS $XT_LIBS $LIBS" 1525fi 1526if test "$no_x" != 'yes'; then 1527 have_x='yes' 1528else 1529 have_x='no' 1530fi 1531AM_CONDITIONAL(X11_DELEGATE, test "$have_x" = 'yes') 1532AC_SUBST(X11_LIBS) 1533AC_SUBST(XEXT_LIBS) 1534 1535dnl =========================================================================== 1536 1537# 1538# Check for ZLIB 1539# 1540AC_ARG_WITH([zlib], 1541 [AC_HELP_STRING([--without-zlib], 1542 [disable ZLIB support])], 1543 [with_zlib=$withval], 1544 [with_zlib='yes']) 1545 1546if test "$with_zlib" != 'yes'; then 1547 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " 1548fi 1549 1550have_zlib='no' 1551ZLIB_CFLAGS="" 1552ZLIB_LIBS="" 1553ZLIB_PKG="" 1554if test "x$with_zlib" = "xyes"; then 1555 AC_MSG_RESULT([-------------------------------------------------------------]) 1556 PKG_CHECK_MODULES(ZLIB,[zlib >= 1.0.0], have_zlib=yes, have_zlib=no) 1557 AC_MSG_RESULT([]) 1558fi 1559 1560if test "$have_zlib" = 'yes'; then 1561 AC_DEFINE(ZLIB_DELEGATE,1,Define if you have ZLIB library) 1562 CFLAGS="$ZLIB_CFLAGS $CFLAGS" 1563 LIBS="$ZLIB_LIBS $LIBS" 1564fi 1565 1566AM_CONDITIONAL(ZLIB_DELEGATE, test "$have_zlib" = 'yes') 1567AC_SUBST(ZLIB_CFLAGS) 1568AC_SUBST(ZLIB_LIBS) 1569 1570dnl =========================================================================== 1571 1572# 1573# Check for ZSTD 1574# 1575AC_ARG_WITH([zstd], 1576 [AC_HELP_STRING([--without-zstd], 1577 [disable ZSTD support])], 1578 [with_zstd=$withval], 1579 [with_zstd='yes']) 1580 1581if test "$with_zstd" != 'yes'; then 1582 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zstd=$with_zstd " 1583fi 1584 1585have_zstd='no' 1586ZSTD_CFLAGS="" 1587ZSTD_LIBS="" 1588ZSTD_PKG="" 1589if test "x$with_zstd" = "xyes"; then 1590 AC_MSG_RESULT([-------------------------------------------------------------]) 1591 PKG_CHECK_MODULES(LIBZSTD,[libzstd >= 1.0.0], have_zstd=yes, have_zstd=no) 1592 AC_MSG_RESULT([]) 1593fi 1594 1595if test "$have_zstd" = 'yes'; then 1596 AC_DEFINE(ZSTD_DELEGATE,1,Define if you have ZSTD library) 1597 CFLAGS="$ZSTD_CFLAGS $CFLAGS" 1598 LIBS="$ZSTD_LIBS $LIBS" 1599fi 1600 1601AM_CONDITIONAL(ZSTD_DELEGATE, test "$have_zstd" = 'yes') 1602AC_SUBST(ZSTD_CFLAGS) 1603AC_SUBST(ZSTD_LIBS) 1604 1605dnl =========================================================================== 1606 1607# whether modules are built or not. 1608with_ltdl='yes' 1609have_ltdl='no' 1610LTDL_LIBS='' 1611if test "$build_modules" != 'no' || test "X$ax_cv_check_cl_libcl" != Xno; then 1612 AC_MSG_RESULT([-------------------------------------------------------------]) 1613 AC_MSG_CHECKING([for libltdl]) 1614 AC_MSG_RESULT([]) 1615 failed=0 1616 passed=0 1617 AC_CHECK_HEADER([ltdl.h],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`]) 1618 AC_CHECK_LIB([ltdl],[lt_dlinit],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`],) 1619 AC_MSG_CHECKING([if libltdl package is complete]) 1620 if test $passed -gt 0 ; then 1621 if test $failed -gt 0 ; then 1622 AC_MSG_RESULT([no -- some components failed test]) 1623 have_ltdl='no (failed tests)' 1624 else 1625 LTDL_LIBS='-lltdl' 1626 LIBS="$LTDL_LIBS $LIBS" 1627 AC_DEFINE(LTDL_DELEGATE,1,[Define if using libltdl to support dynamically loadable modules and OpenCL]) 1628 AC_DEFINE_UNQUOTED([LTDL_MODULE_EXT],["${shrext_cmds}"],[Native module suffix]) 1629 AC_MSG_RESULT([yes]) 1630 have_ltdl='yes' 1631 fi 1632 else 1633 AC_MSG_RESULT([no]) 1634 fi 1635 if test "$have_ltdl" != 'yes' ; then 1636 AC_MSG_FAILURE([libltdl is required for modules and OpenCL builds],[1]) 1637 fi 1638fi 1639AM_CONDITIONAL(WITH_LTDL, test "$have_ltdl" != 'no') 1640 1641# 1642# If profiling, then check for -ldl and dlopen (required for Solaris & gcc) 1643# 1644LIB_DL='' 1645if test "$enable_profiling" = 'yes'; then 1646 AC_CHECK_LIB(dl,dlopen,LIB_DL='-ldl',,) 1647 LIBS="$LIB_DL $LIBS" 1648fi 1649AC_SUBST(LIB_DL) 1650 1651dnl =========================================================================== 1652 1653# 1654# Set Apple font directory. 1655# 1656AC_ARG_WITH([apple-font-dir], 1657 [AC_HELP_STRING([--with-apple-font-dir=DIR], 1658 [Apple font directory])], 1659 [with_apple_font_dir=$withval], 1660 [with_apple_font_dir='default']) 1661 1662if test "$with_apple_font_dir" != 'default'; then 1663 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir " 1664fi 1665 1666dnl =========================================================================== 1667 1668# 1669# Check for Autotrace delegate library. 1670# 1671AC_ARG_WITH([autotrace], 1672 [AC_HELP_STRING([--with-autotrace], 1673 [enable autotrace support])], 1674 [with_autotrace=$withval], 1675 [with_autotrace='no']) 1676 1677if test "$with_autotrace" != 'yes'; then 1678 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " 1679fi 1680 1681have_autotrace='no' 1682AUTOTRACE_CFLAGS="" 1683AUTOTRACE_LIBS="" 1684AUTOTRACE_PKG="" 1685if test "x$with_autotrace" = "xyes"; then 1686 AC_MSG_RESULT([-------------------------------------------------------------]) 1687 PKG_CHECK_MODULES(AUTOTRACE,[autotrace >= 0.31.1], have_autotrace=yes, have_autotrace=no) 1688 AC_MSG_RESULT([]) 1689fi 1690 1691if test "$have_autotrace" = 'yes'; then 1692 AC_DEFINE(AUTOTRACE_DELEGATE,1,Define if you have AUTOTRACE library) 1693 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS" 1694fi 1695 1696AM_CONDITIONAL(AUTOTRACE_DELEGATE,test "$have_autotrace" = 'yes') 1697AC_SUBST(AUTOTRACE_CFLAGS) 1698AC_SUBST(AUTOTRACE_LIBS) 1699 1700dnl =========================================================================== 1701 1702# 1703# Check for Display Postscript delegate library. 1704# 1705AC_ARG_WITH([dps], 1706 [AC_HELP_STRING([--without-dps], 1707 [disable Display Postscript support])], 1708 [with_dps=$withval], 1709 [with_dps='yes']) 1710 1711if test "$with_dps" != 'yes'; then 1712 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " 1713fi 1714 1715have_dps='no' 1716DPS_LIBS='' 1717if test "$with_dps" != 'no' && test "$with_x" != 'no'; then 1718 AC_MSG_RESULT([-------------------------------------------------------------]) 1719 AC_MSG_CHECKING([for DPS]) 1720 AC_MSG_RESULT([]) 1721 failed=0 1722 passed=0 1723 PERSIST_CPPFLAGS="$CPPFLAGS" 1724 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" 1725 AC_CHECK_HEADER(DPS/dpsXclient.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 1726 # DPS issues: 1727 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. 1728 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. 1729 # Adobe DPS (as delivered on Solaris) doesn't require -lXt. 1730 # ImageMagick itself doesn't use -lXt. 1731 have_libdps='no' 1732 LIBDPS_XT='' 1733 AC_CHECK_LIB(dps,DPSInitialize,have_libdps='yes',have_libdps='no',) 1734 if test "$have_libdps" != 'yes'; then 1735 # Unset cache variable so we can try again. 1736 unset ac_cv_lib_dps_DPSInitialize 1737 AC_CHECK_LIB(dps,DPSInitialize,have_libdps='yes',have_libdps='no',-lXt) 1738 if test "$have_libdps" = 'yes'; then 1739 LIBDPS_XT='-lXt' 1740 fi 1741 fi 1742 if test "$have_libdps" = 'yes'; then 1743 passed=`expr $passed + 1` 1744 else 1745 failed=`expr $failed + 1` 1746 fi 1747 AC_CHECK_LIB(dpstk,XDPSPixelsPerPoint,passed=`expr $passed + 1`,failed=`expr $failed + 1`,-ldps $LIBDPS_XT) 1748 AC_MSG_CHECKING([if DPS package is complete]) 1749 if test $passed -gt 0; then 1750 if test $failed -gt 0; then 1751 AC_MSG_RESULT([no -- some components failed test]) 1752 have_dps='no (failed tests)' 1753 CPPFLAGS="$PERSIST_CPPFLAGS" 1754 else 1755 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" 1756 LIBS="$DPS_LIBS $LIBS" 1757 AC_DEFINE(DPS_DELEGATE,1,Define if you have Display Postscript) 1758 AC_MSG_RESULT([yes]) 1759 have_dps='yes' 1760 fi 1761 else 1762 AC_MSG_RESULT([no]) 1763 CPPFLAGS=$PERSIST_CPPFLAGS 1764 fi 1765fi 1766AM_CONDITIONAL(DPS_DELEGATE, test "$have_dps" = 'yes') 1767AC_SUBST(DPS_LIBS) 1768 1769dnl =========================================================================== 1770 1771# 1772# Set DejaVu font directory. 1773# 1774AC_ARG_WITH([dejavu-font-dir], 1775 [AC_HELP_STRING([--with-dejavu-font-dir=DIR], 1776 [DejaVu font directory])], 1777 [with_dejavu_font_dir=$withval], 1778 [with_dejavu_font_dir='default']) 1779 1780if test "$with_dejavu_font_dir" != 'default'; then 1781 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " 1782fi 1783 1784dnl =========================================================================== 1785 1786# 1787# Check for FFTW delegate library. 1788# 1789AC_ARG_WITH([fftw], 1790 [AC_HELP_STRING([--without-fftw], 1791 [disable FFTW support])], 1792 [with_fftw=$withval], 1793 [with_fftw='yes']) 1794 1795if test "$with_fftw" != 'yes'; then 1796 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " 1797fi 1798 1799have_fftw='no' 1800FFTW_CFLAGS="" 1801FFTW_LIBS="" 1802FFTW_PKG="" 1803if test "x$with_fftw" = "xyes"; then 1804 AC_MSG_RESULT([-------------------------------------------------------------]) 1805 PKG_CHECK_MODULES(fftw3,[fftw3 >= 3.0.0], have_fftw=yes, have_fftw=no) 1806 AC_MSG_RESULT([]) 1807fi 1808 1809if test "$have_fftw" = 'yes'; then 1810 AC_DEFINE(FFTW_DELEGATE,1,Define if you have FFTW library) 1811 FFTW_CFLAGS="$fftw3_CFLAGS" 1812 FFTW_LIBS="$fftw3_LIBS" 1813 CFLAGS="$fftw3_CFLAGS $CFLAGS" 1814fi 1815 1816AM_CONDITIONAL(FFTW_DELEGATE, test "$have_fftw" = 'yes') 1817AC_SUBST(FFTW_CFLAGS) 1818AC_SUBST(FFTW_LIBS) 1819 1820dnl =========================================================================== 1821 1822# 1823# Check for FLIF delegate library. 1824# 1825AC_ARG_WITH(flif, 1826 [AC_HELP_STRING([--without-flif], 1827 [disable FLIF support])], 1828 [with_flif=$withval], 1829 [with_flif='yes']) 1830 1831if test "$with_flif" != 'yes'; then 1832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif " 1833fi 1834 1835have_flif='no' 1836FLIF_LIBS='' 1837if test "$with_flif" != 'no'; then 1838 AC_MSG_RESULT([-------------------------------------------------------------]) 1839 AC_MSG_CHECKING([for FLIF]) 1840 AC_MSG_RESULT([]) 1841 failed=0 1842 passed=0 1843 AC_CHECK_HEADER(flif.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 1844 AC_CHECK_LIB(flif,flif_create_decoder,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 1845 AC_MSG_CHECKING([if FLIF package is complete]) 1846 if test $passed -gt 0; then 1847 if test $failed -gt 0; then 1848 AC_MSG_RESULT([no -- some components failed test]) 1849 have_flif='no (failed tests)' 1850 else 1851 FLIF_LIBS='-lflif' 1852 LIBS="$FLIF_LIBS $LIBS" 1853 AC_DEFINE(FLIF_DELEGATE,1,Define if you have FLIF library) 1854 AC_MSG_RESULT([yes]) 1855 have_flif='yes' 1856 fi 1857 else 1858 AC_MSG_RESULT([no]) 1859 fi 1860fi 1861AM_CONDITIONAL(FLIF_DELEGATE,test "$have_flif" = 'yes') 1862AC_SUBST(FLIF_LIBS) 1863 1864dnl =========================================================================== 1865 1866# 1867# Check for FlashPIX delegate library. 1868# 1869AC_ARG_WITH([fpx], 1870 [AC_HELP_STRING([--without-fpx], 1871 [disable FlashPIX support])], 1872 [with_fpx=$withval], 1873 [with_fpx='yes']) 1874 1875if test "$with_fpx" != 'yes'; then 1876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " 1877fi 1878 1879have_fpx='no' 1880FPX_LIBS='' 1881if test "$with_fpx" != 'no'; then 1882 AC_MSG_RESULT([-------------------------------------------------------------]) 1883 AC_MSG_CHECKING([for FlashPIX]) 1884 AC_MSG_RESULT([]) 1885 failed=0 1886 passed=0 1887 AC_LANG_PUSH(C++) 1888 AC_CHECK_HEADER(fpxlib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 1889 AC_CHECK_LIB(fpx,FPX_OpenImageByFilename,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 1890 AC_LANG_POP 1891 AC_MSG_CHECKING([if FlashPIX package is complete]) 1892 if test $passed -gt 0; then 1893 if test $failed -gt 0; then 1894 AC_MSG_RESULT([no -- some components failed test]) 1895 have_fpx='no (failed tests)' 1896 else 1897 FPX_LIBS='-lfpx' 1898 AC_DEFINE(FPX_DELEGATE,1,Define if you have FlashPIX library) 1899 AC_MSG_RESULT([yes]) 1900 have_fpx='yes' 1901 PERLMAINCC="$CXX" 1902 fi 1903 else 1904 AC_MSG_RESULT([no]) 1905 fi 1906fi 1907AM_CONDITIONAL(FPX_DELEGATE, test "$have_fpx" = 'yes') 1908AC_SUBST(FPX_LIBS) 1909 1910dnl =========================================================================== 1911 1912# 1913# Check for DJVU delegate library. 1914# 1915AC_ARG_WITH([djvu], 1916 [AC_HELP_STRING([--without-djvu], 1917 [disable DjVu support])], 1918 [with_djvu=$withval], 1919 [with_djvu='yes']) 1920 1921if test "$with_djvu" != 'yes'; then 1922 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " 1923fi 1924 1925have_djvu='no' 1926DJVU_CFLAGS="" 1927DJVU_LIBS="" 1928DJVU_PKG="" 1929if test "x$with_djvu" = "xyes"; then 1930 AC_MSG_RESULT([-------------------------------------------------------------]) 1931 PKG_CHECK_MODULES(ddjvuapi,[ddjvuapi >= 3.5.0], have_djvu=yes, have_djvu=no) 1932 AC_MSG_RESULT([]) 1933fi 1934 1935if test "$have_djvu" = 'yes'; then 1936 AC_DEFINE(DJVU_DELEGATE,1,Define if you have DJVU library) 1937 DJVU_CFLAGS="$ddjvuapi_CFLAGS" 1938 DJVU_LIBS="$ddjvuapi_LIBS" 1939 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS" 1940fi 1941 1942AM_CONDITIONAL(DJVU_DELEGATE, test "$have_djvu" = 'yes') 1943AC_SUBST(DJVU_CFLAGS) 1944AC_SUBST(DJVU_LIBS) 1945 1946dnl =========================================================================== 1947 1948# 1949# Check for fontconfig delegate library. 1950# 1951AC_ARG_WITH([fontconfig], 1952 [AC_HELP_STRING([--without-fontconfig], 1953 [disable fontconfig support])], 1954 [with_fontconfig=$withval], 1955 [with_fontconfig='yes']) 1956 1957if test "$with_fontconfig" != 'yes'; then 1958 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " 1959fi 1960 1961have_fontconfig='no' 1962FONTCONFIG_CFLAGS="" 1963FONTCONFIG_LIBS="" 1964FONTCONFIG_PKG="" 1965if test "x$with_fontconfig" = "xyes"; then 1966 AC_MSG_RESULT([-------------------------------------------------------------]) 1967 PKG_CHECK_MODULES(FONTCONFIG,[fontconfig >= 2.1.0], have_fontconfig=yes, have_fontconfig=no) 1968 AC_MSG_RESULT([]) 1969fi 1970 1971if test "$have_fontconfig" = 'yes'; then 1972 AC_DEFINE(FONTCONFIG_DELEGATE,1,Define if you have FONTCONFIG library) 1973 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS" 1974fi 1975 1976AM_CONDITIONAL(FONTCONFIG_DELEGATE,test "$have_fontconfig" = 'yes') 1977AC_SUBST(FONTCONFIG_CFLAGS) 1978AC_SUBST(FONTCONFIG_LIBS) 1979 1980dnl =========================================================================== 1981 1982# 1983# Check for the Freetype delegate library. 1984# 1985AC_ARG_WITH([freetype], 1986 [AC_HELP_STRING([--without-freetype], 1987 [disable Freetype support])], 1988 [with_freetype=$withval], 1989 [with_freetype='yes']) 1990 1991if test "$with_freetype" != 'yes'; then 1992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " 1993fi 1994 1995have_freetype='no' 1996FREETYPE_CFLAGS="" 1997FREETYPE_LIBS="" 1998FREETYPE_PKG="" 1999if test "x$with_freetype" = "xyes"; then 2000 AC_MSG_RESULT([-------------------------------------------------------------]) 2001 PKG_CHECK_MODULES(FREETYPE,[freetype2], have_freetype=yes, have_freetype=no) 2002 AC_MSG_RESULT([]) 2003fi 2004 2005if test "$have_freetype" = 'yes'; then 2006 AC_DEFINE(FREETYPE_DELEGATE,1,Define if you have FREETYPE library) 2007 CFLAGS="$FREETYPE_CFLAGS $CFLAGS" 2008 MAGICKCORE_FREETYPE_DELEGATE=1 2009else 2010 MAGICKCORE_FREETYPE_DELEGATE=0 2011fi 2012 2013AC_SUBST(FREETYPE_CFLAGS) 2014AC_SUBST(FREETYPE_LIBS) 2015AC_SUBST([MAGICKCORE_FREETYPE_DELEGATE]) 2016 2017dnl =========================================================================== 2018 2019# 2020# Check for the raqm delegate library. 2021# 2022AC_ARG_WITH([raqm], 2023 [AC_HELP_STRING([--without-raqm], 2024 [disable Raqm support])], 2025 [with_raqm=$withval], 2026 [with_raqm='yes']) 2027 2028if test "$with_raqm" != 'yes'; then 2029 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm " 2030fi 2031 2032have_raqm='no' 2033RAQM_CFLAGS="" 2034RAQM_LIBS="" 2035RAQM_PKG="" 2036if test "x$with_raqm" = "xyes"; then 2037 AC_MSG_RESULT([-------------------------------------------------------------]) 2038 PKG_CHECK_MODULES(RAQM,[raqm], have_raqm=yes, have_raqm=no) 2039 AC_MSG_RESULT([]) 2040fi 2041 2042if test "$have_raqm" = 'yes'; then 2043 AC_DEFINE(RAQM_DELEGATE,1,Define if you have RAQM library) 2044 CFLAGS="$RAQM_CFLAGS $CFLAGS" 2045fi 2046 2047AM_CONDITIONAL(RAQM_DELEGATE, test "$have_raqm" = 'yes') 2048AC_SUBST(RAQM_CFLAGS) 2049AC_SUBST(RAQM_LIBS) 2050 2051dnl =========================================================================== 2052 2053# 2054# Check for Ghostscript library or framework. 2055# 2056# Test for iapi.h & test for gsapi_new_instance in -lgs 2057# or -framework Ghostscript 2058 2059AC_ARG_WITH([gslib], 2060 [AC_HELP_STRING([--with-gslib], 2061 [enable Ghostscript library support])], 2062 [with_gslib=$withval], 2063 [with_gslib='no']) 2064 2065gslib_framework='no' 2066if test "$with_gslib" != 'yes'; then 2067 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " 2068fi 2069 2070have_gslib='no' 2071GS_LIBS='' 2072if test "$with_gslib" != 'no'; then 2073 AC_MSG_RESULT([-------------------------------------------------------------]) 2074 AC_MSG_CHECKING([for Ghostscript]) 2075 AC_MSG_RESULT([]) 2076 framework=0 2077 failed=0 2078 passed=0 2079 AC_CHECK_HEADER(ghostscript/iapi.h,passed=`expr $passed + 1`, 2080 failed=`expr $failed + 1`,) 2081 AC_CHECK_HEADER(ghostscript/ierrors.h,passed=`expr $passed + 1`, 2082 failed=`expr $failed + 1`,) 2083 AC_CHECK_FRAMEWORK(Ghostscript,gsapi_new_instance,framework=`expr $framework + 1`, 2084 AC_CHECK_LIB(gs,gsapi_new_instance,passed=`expr $passed + 1`,failed=`expr $failed + 1`,),) 2085 AC_MSG_CHECKING([if Ghostscript package is complete]) 2086 if test $passed -gt 0; then 2087 if test $failed -gt 0; then 2088 AC_MSG_RESULT([no -- some components failed test]) 2089 have_gslib='no (failed tests)' 2090 else 2091 if test $framework -gt 0; then 2092 GS_LIBS='-framework Ghostscript' 2093 gslib_framework='yes' 2094 AC_MSG_RESULT([yes, using framework.]) 2095 else 2096 AC_MSG_RESULT([yes, using library.]) 2097 GS_LIBS='-lgs' 2098 fi 2099 LIBS="$GS_LIBS $LIBS" 2100 AC_DEFINE(GS_DELEGATE,1,Define if you have Ghostscript library or framework) 2101 have_gslib='yes' 2102 fi 2103 else 2104 AC_MSG_RESULT([no]) 2105 fi 2106fi 2107AM_CONDITIONAL(GS_DELEGATE, test "$have_gslib" = 'yes') 2108AC_SUBST(GS_LIBS) 2109 2110# Set default font search path 2111AC_ARG_WITH([fontpath], 2112 [AC_HELP_STRING([--with-fontpath=DIR], 2113 [prepend to default font search path])], 2114 [with_fontpath=$withval], 2115 [with_fontpath='']) 2116 2117if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then 2118 with_fontpath='' 2119else 2120 AC_DEFINE_UNQUOTED(MAGICK_FONT_PATH,"$with_fontpath",[Define to prepend to default font search path.]) 2121fi 2122if test "$with_fontpath=" != ''; then 2123 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " 2124fi 2125 2126# Set Ghostscript font directory 2127AC_ARG_WITH([gs-font-dir], 2128 [AC_HELP_STRING([--with-gs-font-dir=DIR], 2129 [Ghostscript font directory])], 2130 [with_gs_font_dir=$withval], 2131 [with_gs_font_dir='default']) 2132 2133if test "$with_gs_font_dir" != 'default'; then 2134 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " 2135fi 2136 2137dnl =========================================================================== 2138 2139# 2140# Check for GVC delegate library. 2141# 2142AC_ARG_WITH(gvc, 2143 [AC_HELP_STRING([--with-gvc], 2144 [enable GVC support])], 2145 [with_gvc=$withval], 2146 [with_gvc='yes']) 2147 2148if test "$with_gvc" != 'yes'; then 2149 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " 2150fi 2151 2152GVC_PKG="" 2153if test "x$with_gvc" = "xyes"; then 2154 AC_MSG_RESULT([-------------------------------------------------------------]) 2155 PKG_CHECK_MODULES(GVC,[libgvc >= 2.9.0], have_gvc=yes, have_gvc=no) 2156 AC_MSG_RESULT([]) 2157fi 2158 2159if test "$have_gvc" = 'yes'; then 2160 AC_DEFINE(GVC_DELEGATE,1,Define if you have GVC library) 2161 CFLAGS="$GVC_CFLAGS $CFLAGS" 2162fi 2163 2164AM_CONDITIONAL(GVC_DELEGATE, test "$have_gvc" = 'yes') 2165AC_SUBST(GVC_CFLAGS) 2166AC_SUBST(GVC_LIBS) 2167 2168dnl =========================================================================== 2169 2170# 2171# Check for the HEIC delegate library. 2172# 2173AC_ARG_WITH([heic], 2174 [AC_HELP_STRING([--without-heic], 2175 [disable HEIC support])], 2176 [with_heic=$withval], 2177 [with_heic='yes']) 2178 2179if test "$with_heic" != 'yes'; then 2180 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-heic=$with_heic " 2181fi 2182 2183have_heic='no' 2184HEIF_CFLAGS="" 2185HEIF_LIBS="" 2186HEIF_PKG="" 2187if test "x$with_heic" = "xyes"; then 2188 AC_MSG_RESULT([-------------------------------------------------------------]) 2189 PKG_CHECK_MODULES(HEIF,[libheif], have_heic=yes, have_heic=no) 2190 AC_MSG_RESULT([]) 2191fi 2192 2193if test "$have_heic" = 'yes'; then 2194 AC_DEFINE(HEIC_DELEGATE,1,Define if you have libheif library) 2195 CFLAGS="$HEIF_CFLAGS $CFLAGS" 2196fi 2197 2198AM_CONDITIONAL(HEIC_DELEGATE, test "$have_heic" = 'yes') 2199AC_SUBST(HEIF_CFLAGS) 2200AC_SUBST(HEIF_LIBS) 2201 2202dnl =========================================================================== 2203 2204# 2205# Check for JBIG delegate library. 2206# 2207AC_ARG_WITH([jbig], 2208 [AC_HELP_STRING([--without-jbig], 2209 [disable JBIG support])], 2210 [with_jbig=$withval], 2211 [with_jbig='yes']) 2212 2213have_jbig='no' 2214JBIG_LIBS='' 2215if test "$with_jbig" != 'no'; then 2216 AC_MSG_RESULT([-------------------------------------------------------------]) 2217 AC_MSG_CHECKING([for JBIG]) 2218 AC_MSG_RESULT([]) 2219 failed=0 2220 passed=0 2221 AC_CHECK_HEADER(jbig.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2222 AC_CHECK_LIB(jbig,jbg_dec_init,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2223 AC_MSG_CHECKING([if JBIG package is complete]) 2224 if test $passed -gt 0; then 2225 if test $failed -gt 0; then 2226 AC_MSG_RESULT([no -- some components failed test]) 2227 have_jbig='no (failed tests)' 2228 else 2229 JBIG_LIBS='-ljbig' 2230 LIBS="$JBIG_LIBS $LIBS" 2231 AC_DEFINE(JBIG_DELEGATE,1,Define if you have JBIG library) 2232 AC_MSG_RESULT([yes]) 2233 have_jbig='yes' 2234 fi 2235 else 2236 AC_MSG_RESULT([no]) 2237 fi 2238fi 2239AM_CONDITIONAL(JBIG_DELEGATE, test "$have_jbig" = 'yes') 2240AC_SUBST(JBIG_LIBS) 2241 2242dnl =========================================================================== 2243 2244# 2245# Check for JPEG delegate library. 2246# 2247AC_ARG_WITH([jpeg], 2248 [AC_HELP_STRING([--without-jpeg], 2249 [disable JPEG support])], 2250 [with_jpeg=$withval], 2251 [with_jpeg='yes']) 2252 2253if test "$with_jpeg" != 'yes'; then 2254 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " 2255fi 2256 2257have_jpeg='no' 2258JPEG_LIBS='' 2259if test "$with_jpeg" != 'no'; then 2260 AC_MSG_RESULT([-------------------------------------------------------------]) 2261 AC_MSG_CHECKING([for JPEG]) 2262 AC_MSG_RESULT([]) 2263 failed=0 2264 passed=0 2265 AC_CHECK_HEADER(jconfig.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2266 AC_CHECK_HEADER(jerror.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2267 AC_CHECK_HEADER(jmorecfg.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2268 AC_CHECK_HEADER(jpeglib.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2269 AC_CHECK_LIB(jpeg,jpeg_read_header,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2270 2271# Test for compatible JPEG library 2272if test "$ac_cv_jpeg_version_ok" != 'yes'; then 2273AC_CACHE_CHECK(for JPEG library is version 6b or later, ac_cv_jpeg_version_ok, 2274[AC_TRY_COMPILE( 2275#include <stdio.h> 2276#include <stdlib.h> 2277#include <jpeglib.h> 2278, 2279changequote(<<, >>)dnl 2280<< 2281#if JPEG_LIB_VERSION < 62 2282#error IJG JPEG library must be version 6b or newer! 2283#endif 2284return 0; 2285>>, 2286changequote([, ])dnl 2287ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`, 2288ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`)]) 2289fi 2290 AC_MSG_CHECKING([if JPEG package is complete]) 2291 if test $passed -gt 0; then 2292 if test $failed -gt 0; then 2293 AC_MSG_RESULT([no -- some components failed test]) 2294 have_jpeg='no (failed tests)' 2295 else 2296 JPEG_LIBS='-ljpeg' 2297 LIBS="$JPEG_LIBS $LIBS" 2298 AC_DEFINE(JPEG_DELEGATE,1,Define if you have JPEG library) 2299 AC_MSG_RESULT([yes]) 2300 have_jpeg='yes' 2301 fi 2302 else 2303 AC_MSG_RESULT([no]) 2304 fi 2305fi 2306AM_CONDITIONAL(JPEG_DELEGATE, test "$have_jpeg" = 'yes') 2307AC_SUBST(JPEG_LIBS) 2308 2309dnl =========================================================================== 2310 2311# 2312# Check for Jpegxl delegate library. 2313# 2314AC_ARG_WITH([jxl], 2315 [AC_HELP_STRING([--without-jxl], 2316 [disable Jpegxl support])], 2317 [with_jxl=$withval], 2318 [with_jxl='yes']) 2319 2320if test "$with_jxl" != 'yes'; then 2321 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jxl=$with_jxl " 2322fi 2323 2324# Check for the brunsli libraries, currently the only libraries used by the jxl coder. 2325# Full jxl support will be added once the full libraries are released. 2326have_jxl='no' 2327JXL_LIBS='' 2328if test "$with_jxl" != 'no'; then 2329 AC_MSG_RESULT([-------------------------------------------------------------]) 2330 AC_MSG_CHECKING([for brunsli]) 2331 AC_MSG_RESULT([]) 2332 failed=0 2333 passed=0 2334 AC_CHECK_HEADER(brunsli/decode.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2335 AC_CHECK_HEADER(brunsli/encode.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2336 AC_CHECK_LIB(brunslidec-c,DecodeBrunsli,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2337 AC_CHECK_LIB(brunslienc-c,EncodeBrunsli,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2338 AC_MSG_CHECKING([if brunsli package is complete]) 2339 if test $passed -gt 0; then 2340 if test $failed -gt 0; then 2341 AC_MSG_RESULT([no -- some components failed test]) 2342 have_jxl='no (failed tests)' 2343 else 2344 JXL_LIBS='-lbrunslidec-c -lbrunslienc-c' 2345 LIBS="$JXL_LIBS $LIBS" 2346 AC_DEFINE(JXL_DELEGATE,1,Define if you have brunsli library) 2347 AC_MSG_RESULT([yes]) 2348 have_jxl='yes' 2349 fi 2350 else 2351 AC_MSG_RESULT([no]) 2352 fi 2353fi 2354AM_CONDITIONAL(JXL_DELEGATE, test "$have_jxl" = 'yes') 2355AC_SUBST(JXL_LIBS) 2356 2357dnl =========================================================================== 2358 2359# 2360# Check for LCMS delegate library. 2361# 2362AC_ARG_WITH(lcms, 2363 [ --without-lcms disable lcms (v1.1X) support], 2364 [with_lcms=$withval], 2365 [with_lcms='yes']) 2366if test "$with_lcms" != 'yes' ; then 2367 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " 2368fi 2369 2370have_lcms='no' 2371LCMS_CFLAGS="" 2372LCMS_LIBS="" 2373LCMS_PKG="" 2374if test "x$with_lcms" = "xyes"; then 2375 AC_MSG_RESULT([-------------------------------------------------------------]) 2376 PKG_CHECK_MODULES(LCMS2,[lcms2 >= 2.0.0], have_lcms=yes, have_lcms=no) 2377 AC_MSG_RESULT([]) 2378fi 2379 2380if test "$have_lcms" = 'yes'; then 2381 AC_DEFINE(LCMS_DELEGATE,1,Define if you have LCMS library) 2382 LCMS_CFLAGS="$LCMS2_CFLAGS" 2383 LCMS_LIBS="$LCMS2_LIBS" 2384 CFLAGS="$LCMS2_CFLAGS $CFLAGS" 2385 AC_CHECK_HEADER(lcms2/lcms2.h,have_lcms_header='yes',,) 2386 if test "$have_lcms_header" = 'yes'; then 2387 AC_DEFINE(HAVE_LCMS2_LCMS2_H,1,Define if you have the <lcms2/lcms2.h> header file.) 2388 else 2389 AC_DEFINE(HAVE_LCMS2_H,1,Define if you have the <lcms2.h> header file.) 2390 fi 2391fi 2392 2393AM_CONDITIONAL(LCMS_DELEGATE, test "$have_lcms" = 'yes') 2394AC_SUBST(LCMS_CFLAGS) 2395AC_SUBST(LCMS_LIBS) 2396 2397dnl =========================================================================== 2398 2399# 2400# Check for the OpenJP2 delegate library. 2401# 2402AC_ARG_WITH([openjp2], 2403 [AC_HELP_STRING([--without-openjp2], 2404 [disable OpenJP2 support])], 2405 [with_openjp2=$withval], 2406 [with_openjp2='yes']) 2407 2408if test "$with_openjp2" != 'yes'; then 2409 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 " 2410fi 2411 2412have_openjp2='no' 2413LIBOPENJP2_CFLAGS="" 2414LIBOPENJP2_LIBS="" 2415LIBOPENJP2_PKG="" 2416if test "x$with_openjp2" = "xyes"; then 2417 AC_MSG_RESULT([-------------------------------------------------------------]) 2418 PKG_CHECK_MODULES(LIBOPENJP2,[libopenjp2 >= 2.1.0], have_openjp2=yes, have_openjp2=no) 2419 AC_MSG_RESULT([]) 2420fi 2421 2422if test "$have_openjp2" = 'yes'; then 2423 AC_DEFINE(LIBOPENJP2_DELEGATE,1,Define if you have OPENJP2 library) 2424 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS" 2425fi 2426 2427AM_CONDITIONAL(LIBOPENJP2_DELEGATE, test "$have_openjp2" = 'yes') 2428AC_SUBST(LIBOPENJP2_CFLAGS) 2429AC_SUBST(LIBOPENJP2_LIBS) 2430 2431 2432dnl =========================================================================== 2433 2434# 2435# Check for the LQR (Liquid Rescale) delegate library. 2436# 2437AC_ARG_WITH([lqr], 2438 [AC_HELP_STRING([--without-lqr], 2439 [disable Liquid Rescale support])], 2440 [with_lqr=$withval], 2441 [with_lqr='yes']) 2442 2443if test "$with_lqr" != 'yes'; then 2444 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " 2445fi 2446 2447have_lqr='no' 2448LQR_CFLAGS="" 2449LQR_LIBS="" 2450LQR_PKG="" 2451if test "x$with_lqr" = "xyes"; then 2452 AC_MSG_RESULT([-------------------------------------------------------------]) 2453 PKG_CHECK_MODULES(LQR,[lqr-1 >= 0.1.0], have_lqr=yes, have_lqr=no) 2454 AC_MSG_RESULT([]) 2455fi 2456 2457if test "$have_lqr" = 'yes'; then 2458 AC_DEFINE(LQR_DELEGATE,1,Define if you have LQR library) 2459 CFLAGS="$LQR_CFLAGS $CFLAGS" 2460fi 2461 2462AM_CONDITIONAL(LQR_DELEGATE, test "$have_lqr" = 'yes') 2463AC_SUBST(LQR_CFLAGS) 2464AC_SUBST(LQR_LIBS) 2465 2466dnl =========================================================================== 2467 2468# Disable LZMA (lzma library) 2469AC_ARG_WITH(lzma, 2470 [ --without-lzma disable LZMA support], 2471 [with_lzma=$withval], 2472 [with_lzma='yes']) 2473if test "$with_lzma" != 'yes' ; then 2474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " 2475fi 2476 2477LZMA_PKG="" 2478if test "x$with_lzma" = "xyes"; then 2479 AC_MSG_RESULT([-------------------------------------------------------------]) 2480 PKG_CHECK_MODULES(LZMA,[liblzma >= 2.9.0], have_lzma=yes, have_lzma=no) 2481 AC_MSG_RESULT([]) 2482fi 2483 2484if test "$have_lzma" = 'yes'; then 2485 AC_DEFINE(LZMA_DELEGATE,1,Define if you have LZMA library) 2486 CFLAGS="$LZMA_CFLAGS $CFLAGS" 2487fi 2488 2489AM_CONDITIONAL(LZMA_DELEGATE, test "$have_lzma" = 'yes') 2490AC_SUBST(LZMA_CFLAGS) 2491AC_SUBST(LZMA_LIBS) 2492 2493dnl =========================================================================== 2494 2495# 2496# Check for the OpenEXR delegate library. 2497# 2498AC_ARG_WITH([openexr], 2499 [AC_HELP_STRING([--without-openexr], 2500 [disable OpenEXR support])], 2501 [with_openexr=$withval], 2502 [with_openexr='yes']) 2503 2504if test "$with_openexr" != 'yes'; then 2505 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " 2506fi 2507 2508have_openexr='no' 2509OPENEXR_CFLAGS="" 2510OPENEXR_LIBS="" 2511OPENEXR_PKG="" 2512if test "x$with_openexr" = "xyes"; then 2513 AC_MSG_RESULT([-------------------------------------------------------------]) 2514 PKG_CHECK_MODULES(OPENEXR,[OpenEXR >= 1.0.6], have_openexr=yes, have_openexr=no) 2515 AC_MSG_RESULT([]) 2516fi 2517 2518if test "$have_openexr" = 'yes'; then 2519 AC_DEFINE(OPENEXR_DELEGATE,1,Define if you have OPENEXR library) 2520 CFLAGS="$OPENEXR_CFLAGS $CFLAGS" 2521fi 2522 2523AM_CONDITIONAL(OPENEXR_DELEGATE, test "$have_openexr" = 'yes') 2524AC_SUBST(OPENEXR_CFLAGS) 2525AC_SUBST(OPENEXR_LIBS) 2526 2527dnl =========================================================================== 2528 2529# 2530# Check for PANGO delegate library. 2531# 2532AC_ARG_WITH([pango], 2533 [AC_HELP_STRING([--without-pango], 2534 [disable PANGO support])], 2535 [with_pango=$withval], 2536 [with_pango='yes']) 2537 2538if test "$with_pango" != 'yes'; then 2539 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " 2540fi 2541 2542have_pango='no' 2543have_pangocairo='no' 2544PANGO_CFLAGS="" 2545PANGO_LIBS="" 2546PANGO_PKG="" 2547if test "x$with_pango" = "xyes"; then 2548 AC_MSG_RESULT([-------------------------------------------------------------]) 2549 PKG_CHECK_MODULES(PANGO, [pangocairo >= 1.28.1], have_pangocairo=yes, have_pangocairo=no) 2550 AC_MSG_RESULT([]) 2551 PKG_CHECK_MODULES(PANGO, [pango >= 1.28.1], have_pango=yes, have_pango=no) 2552 AC_MSG_RESULT([]) 2553fi 2554 2555if test "$have_pango" = 'yes'; then 2556 AC_DEFINE(PANGO_DELEGATE,1,Define if you have PANGO library) 2557 CFLAGS="$PANGO_CFLAGS $CFLAGS" 2558fi 2559 2560if test "$have_pangocairo" = 'yes'; then 2561 AC_DEFINE(PANGOCAIRO_DELEGATE,1,Define if you have PANGOCAIRO library) 2562 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS" 2563fi 2564 2565AM_CONDITIONAL(PANGO_DELEGATE, test "$have_pango" = 'yes') 2566AM_CONDITIONAL(PANGOCAIRO_DELEGATE, test "$have_pangocairo" = 'yes') 2567AC_SUBST(PANGO_CFLAGS) 2568AC_SUBST(PANGO_LIBS) 2569 2570dnl =========================================================================== 2571 2572# 2573# Check for PNG delegate library. 2574# 2575AC_ARG_WITH(png, 2576 [AC_HELP_STRING([--without-png], 2577 [disable PNG support])], 2578 [with_png=$withval], 2579 [with_png='yes']) 2580 2581if test "$with_png" != 'yes'; then 2582 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " 2583fi 2584 2585have_png='no' 2586PNG_CFLAGS="" 2587PNG_LIBS="" 2588PNG_PKG="" 2589if test "x$with_png" = "xyes"; then 2590 AC_MSG_RESULT([-------------------------------------------------------------]) 2591 PKG_CHECK_MODULES(PNG,[libpng >= 1.0.0], have_png=yes, have_png=no) 2592 AC_MSG_RESULT([]) 2593fi 2594 2595if test "$have_png" = 'yes'; then 2596 AC_DEFINE(PNG_DELEGATE,1,Define if you have PNG library) 2597 CFLAGS="$PNG_CFLAGS $CFLAGS" 2598fi 2599 2600AM_CONDITIONAL(PNG_DELEGATE, test "$have_png" = 'yes') 2601AC_SUBST(PNG_CFLAGS) 2602AC_SUBST(PNG_LIBS) 2603 2604dnl =========================================================================== 2605 2606# 2607# Check for the Raw delegate library. 2608# 2609AC_ARG_WITH([raw], 2610 [AC_HELP_STRING([--without-raw], 2611 [disable Raw support])], 2612 [with_raw=$withval], 2613 [with_raw='yes']) 2614 2615if test "$with_raw" != 'yes'; then 2616 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-libraw=$with_raw " 2617fi 2618 2619have_raw='no' 2620RAW_R_CFLAGS="" 2621RAW_R_LIBS="" 2622RAW_R_PKG="" 2623if test "x$with_raw" = "xyes"; then 2624 AC_MSG_RESULT([-------------------------------------------------------------]) 2625 PKG_CHECK_MODULES(RAW_R,[libraw_r >= 0.14.8], have_raw=yes, have_raw=no) 2626 AC_MSG_RESULT([]) 2627fi 2628 2629if test "$have_raw" = 'yes'; then 2630 AC_DEFINE(RAW_R_DELEGATE,1,Define if you have LIBRAW library) 2631 CFLAGS="$RAW_R_CFLAGS $CFLAGS" 2632fi 2633 2634AM_CONDITIONAL(RAW_R_DELEGATE, test "$have_raw" = 'yes') 2635AC_SUBST(RAW_R_CFLAGS) 2636AC_SUBST(RAW_R_LIBS) 2637 2638dnl =========================================================================== 2639 2640# 2641# Check for RSVG delegate library. 2642# 2643AC_ARG_WITH([rsvg], 2644 [AC_HELP_STRING([--with-rsvg], 2645 [enable RSVG support])], 2646 [with_rsvg=$withval], 2647 [with_rsvg='no']) 2648 2649if test "$with_rsvg" != 'yes'; then 2650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " 2651fi 2652 2653have_rsvg='no' 2654have_cairo='no' 2655RSVG_CFLAGS="" 2656RSVG_LIBS="" 2657RSVG_PKG="" 2658if test "x$with_rsvg" = "xyes"; then 2659 AC_MSG_RESULT([-------------------------------------------------------------]) 2660 PKG_CHECK_MODULES(RSVG,[librsvg-2.0 >= 2.9.0], have_rsvg=yes, have_rsvg=no) 2661 AC_MSG_RESULT([]) 2662 PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg, have_cairo=yes, have_cairo=no) 2663 AC_MSG_RESULT([]) 2664fi 2665 2666if test "$have_rsvg" = 'yes'; then 2667 AC_DEFINE(RSVG_DELEGATE,1,Define if you have RSVG library) 2668 CFLAGS="$RSVG_CFLAGS $CFLAGS" 2669fi 2670 2671if test "$have_cairo" = 'yes'; then 2672 AC_DEFINE(CAIRO_DELEGATE,1,Define if you have CAIRO library) 2673 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS" 2674fi 2675 2676AM_CONDITIONAL(RSVG_DELEGATE, test "$have_rsvg" = 'yes') 2677AM_CONDITIONAL(CAIRO_DELEGATE, test "$have_cairo" = 'yes') 2678AC_SUBST(RSVG_CFLAGS) 2679AC_SUBST(RSVG_LIBS) 2680 2681dnl =========================================================================== 2682 2683# 2684# Check for TIFF delegate library. 2685# 2686AC_ARG_WITH([tiff], 2687 [AC_HELP_STRING([--without-tiff], 2688 [disable TIFF support])], 2689 [with_tiff=$withval], 2690 [with_tiff='yes']) 2691 2692if test "$with_tiff" != 'yes'; then 2693 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " 2694fi 2695 2696have_tiff='no' 2697TIFF_LIBS='' 2698if test "$with_tiff" != 'no'; then 2699 AC_MSG_RESULT([-------------------------------------------------------------]) 2700 AC_MSG_CHECKING([for TIFF]) 2701 AC_MSG_RESULT([]) 2702 failed=0 2703 passed=0 2704 AC_CHECK_HEADER(tiff.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2705 AC_CHECK_HEADER(tiffio.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`) 2706 AC_CHECK_LIB(tiff,TIFFOpen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2707 AC_CHECK_LIB(tiff,TIFFClientOpen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2708 AC_CHECK_LIB(tiff,TIFFIsByteSwapped,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2709 AC_CHECK_LIB(tiff,TIFFReadRGBATile,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2710 AC_CHECK_LIB(tiff,TIFFReadRGBAStrip,passed=`expr $passed + 1`,failed=`expr $failed + 1`,) 2711 AC_MSG_CHECKING([if TIFF package is complete]) 2712 if test $passed -gt 0; then 2713 if test $failed -gt 0; then 2714 AC_MSG_RESULT([no -- some components failed test]) 2715 have_tiff='no (failed tests)' 2716 else 2717 TIFF_LIBS='-ltiff' 2718 LIBS="$TIFF_LIBS $LIBS" 2719 AC_DEFINE(TIFF_DELEGATE,1,Define if you have TIFF library) 2720 AC_MSG_RESULT([yes]) 2721 have_tiff='yes' 2722 AC_CHECK_HEADERS(tiffconf.h) 2723 AC_CHECK_FUNCS([TIFFIsCODECConfigured TIFFMergeFieldInfo \ 2724 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ 2725 TIFFSetTagExtender TIFFSetWarningHandlerExt \ 2726 TIFFSwabArrayOfTriples]) 2727 fi 2728 else 2729 AC_MSG_RESULT([no]) 2730 fi 2731fi 2732AM_CONDITIONAL(TIFF_DELEGATE, test "$have_tiff" = 'yes') 2733AC_SUBST(TIFF_LIBS) 2734 2735dnl =========================================================================== 2736 2737# 2738# Set URW Base35 font directory. 2739# 2740AC_ARG_WITH([urw-base35-font-dir], 2741 [AC_HELP_STRING([--with-urw-base35-font-dir=DIR], 2742 [URW-base35 font directory])], 2743 [with_urw_base35_font_dir=$withval], 2744 [with_urw_base35_font_dir='default']) 2745 2746if test "$with_urw_base35_font_dir" != 'default'; then 2747 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-urw-base35-font-dir=$with_urw_base35_font_dir " 2748fi 2749 2750dnl =========================================================================== 2751 2752# 2753# Check for the WEBP delegate library. 2754# 2755AC_ARG_WITH([webp], 2756 [AC_HELP_STRING([--without-webp], 2757 [disable WEBP support])], 2758 [with_webp=$withval], 2759 [with_webp='yes']) 2760 2761if test "$with_webp" != 'yes'; then 2762 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " 2763fi 2764 2765have_webp='no' 2766have_webpmux='no' 2767WEBP_CFLAGS="" 2768WEBP_LIBS="" 2769WEBP_PKG="" 2770WEBPMUX_CFLAGS="" 2771WEBPMUX_LIBS="" 2772WEBPMUX_PKG="" 2773if test "x$with_webp" = "xyes"; then 2774 AC_MSG_RESULT([-------------------------------------------------------------]) 2775 PKG_CHECK_MODULES(WEBP,[libwebp], have_webp=yes, have_webp=no) 2776 PKG_CHECK_MODULES(WEBPMUX,[libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0], have_webpmux=yes, have_webpmux=no) 2777 AC_MSG_RESULT([]) 2778fi 2779 2780if test "$have_webp" = 'yes'; then 2781 AC_DEFINE(WEBP_DELEGATE,1,Define if you have WEBP library) 2782 CFLAGS="$WEBP_CFLAGS $CFLAGS" 2783fi 2784 2785if test "$have_webpmux" = 'yes'; then 2786 AC_DEFINE(WEBPMUX_DELEGATE,1,Define if you have WEBPMUX library) 2787 CFLAGS="$WEBPMUX_CFLAGS $CFLAGS" 2788fi 2789 2790AM_CONDITIONAL(WEBP_DELEGATE, test "$have_webp" = 'yes') 2791AM_CONDITIONAL(WEBPMUX_DELEGATE, test "$have_webpmux" = 'yes') 2792AC_SUBST(WEBPMUX_CFLAGS) 2793AC_SUBST(WEBPMUX_LIBS) 2794AC_SUBST(WEBP_CFLAGS) 2795AC_SUBST(WEBP_LIBS) 2796 2797dnl =========================================================================== 2798 2799# 2800# Set Windows font directory. 2801# 2802AC_ARG_WITH([windows-font-dir], 2803 [AC_HELP_STRING([--with-windows-font-dir=DIR], 2804 [Windows font directory])], 2805 [with_windows_font_dir=$withval], 2806 [with_windows_font_dir='default']) 2807 2808if test "$with_windows_font_dir" != 'default'; then 2809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " 2810fi 2811 2812dnl =========================================================================== 2813 2814# 2815# Check for WMF delegate library. 2816# 2817AC_ARG_WITH([wmf], 2818 [AC_HELP_STRING([--with-wmf], 2819 [enable WMF support])], 2820 [with_wmf=$withval], 2821 [with_wmf='yes']) 2822 2823if test "$with_wmf" != 'yes'; then 2824 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " 2825fi 2826 2827have_wmf='no' 2828WMF_LIBS='' 2829WMF_CFLAGS='' 2830OLIBS="$LIBS" 2831if test "$with_wmf" != 'no'; then 2832 AC_MSG_CHECKING([for WMF support ]) 2833 AC_MSG_RESULT([]) 2834 2835 have_libwmflite='no' 2836 have_libwmf_ipa_h='no' 2837 2838 AC_CHECK_HEADER([libwmf/ipa.h],[have_libwmf_ipa_h='yes'],[],[$FT2BUILD_H]) 2839 if test "$have_libwmf_ipa_h" = 'yes'; then 2840 AC_CHECK_LIB([wmflite],[wmf_lite_create],[have_libwmflite='yes'],[],[]) 2841 if test "$have_libwmflite" = 'yes'; then 2842 AC_DEFINE(WMF_DELEGATE,1,Define if you have WMF library) 2843 WMF_LIBS='-lwmflite' 2844 LIBS="$WMF_LIBS $LIBS" 2845 have_wmf='yes' 2846 else 2847 AC_MSG_RESULT([no -- some components failed test]) 2848 have_wmf='no (failed tests)' 2849 have_wmflite='no (failed tests)' 2850 LIBS="$OLIBS" 2851 WMF_LIBS='' 2852 fi 2853 fi 2854fi 2855AC_MSG_CHECKING([if WMF package is complete ]) 2856if test "$have_wmf" = 'yes'; then 2857 AC_MSG_RESULT([yes]) 2858else 2859 AC_MSG_RESULT([no]) 2860fi 2861AM_CONDITIONAL([WMF_DELEGATE], [test "$have_wmf" = 'yes']) 2862AC_SUBST([WMF_CFLAGS]) 2863AC_SUBST([WMF_LIBS]) 2864 2865dnl =========================================================================== 2866 2867# 2868# Check for XML delegate library. 2869# 2870AC_ARG_WITH([xml], 2871 [AC_HELP_STRING([--without-xml], 2872 [disable XML support])], 2873 [with_xml=$withval], 2874 [with_xml='yes']) 2875 2876if test "$with_xml" != 'yes' ; then 2877 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " 2878fi 2879 2880have_xml='no' 2881XML_CFLAGS="" 2882XML_LIBS="" 2883XML_PKG="" 2884if test "x$with_xml" = "xyes"; then 2885 AC_MSG_RESULT([-------------------------------------------------------------]) 2886 PKG_CHECK_MODULES(XML,[libxml-2.0 >= 2.0.0], have_xml=yes, have_xml=no) 2887 AC_MSG_RESULT([]) 2888fi 2889 2890if test "$have_xml" = 'yes'; then 2891 AC_DEFINE(XML_DELEGATE,1,Define if you have XML library) 2892 CFLAGS="$XML_CFLAGS $CFLAGS" 2893fi 2894 2895AM_CONDITIONAL(XML_DELEGATE, test "$have_xml" = 'yes') 2896AC_SUBST(XML_CFLAGS) 2897AC_SUBST(XML_LIBS) 2898 2899dnl =========================================================================== 2900 2901# Check for functions 2902# 2903AC_CHECK_FUNCS([acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock clock_getres clock_gettime ctime_r directio erf _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getpwnam_r 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 realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strcasestr 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]) 2904 2905# Substitute compiler name to build/link PerlMagick 2906# 2907AC_SUBST([PERLMAINCC]) 2908 2909# 2910# Configure install Paths 2911# 2912 2913# Path to ImageMagick header files 2914INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 2915INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}" 2916DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/" 2917case "${build_os}" in 2918 mingw* ) 2919 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` 2920 ;; 2921esac 2922AC_DEFINE_UNQUOTED(INCLUDE_PATH,"$DEFINE_INCLUDE_PATH",[Directory where ImageMagick headers live.]) 2923AC_SUBST(INCLUDE_PATH) 2924 2925# Path to ImageMagick header files (arch part) 2926INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" 2927DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" 2928case "${build_os}" in 2929 mingw* ) 2930 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1` 2931 ;; 2932esac 2933AC_DEFINE_UNQUOTED(INCLUDEARCH_PATH,"$DEFINE_INCLUDE_PATH",[Directory where ImageMagick architecture headers live.]) 2934AC_SUBST(INCLUDEARCH_PATH) 2935 2936# Subdirectory under lib to place ImageMagick lib files 2937LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" 2938AC_DEFINE_UNQUOTED(LIBRARY_RELATIVE_PATH,"$LIBRARY_RELATIVE_PATH",[Subdirectory of lib where ImageMagick architecture dependent files are installed.]) 2939 2940# Path to ImageMagick bin directory 2941EXECUTABLE_PATH="${BIN_DIR}" 2942DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" 2943case "${build_os}" in 2944 mingw* ) 2945 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` 2946 ;; 2947esac 2948AC_DEFINE_UNQUOTED(EXECUTABLE_PATH,"$DEFINE_EXECUTABLE_PATH",[Directory where executables are installed.]) 2949AC_SUBST(EXECUTABLE_PATH) 2950 2951# Path to ImageMagick lib 2952LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" 2953DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" 2954case "${build_os}" in 2955 mingw* ) 2956 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` 2957 ;; 2958esac 2959AC_DEFINE_UNQUOTED(LIBRARY_PATH,"$DEFINE_LIBRARY_PATH",[Directory where architecture-dependent files live.]) 2960AC_SUBST(LIBRARY_PATH) 2961 2962# 2963# path to local binaries 2964if test "x$LIB_BIN_BASEDIRNAME" = "x"; then 2965 LIB_BIN_BASEDIRNAME="bin" 2966fi 2967AC_DEFINE_UNQUOTED(LIB_BIN_BASEDIRNAME,"$LIB_BIN_BASEDIRNAME",[Binaries in libraries path base name (will be during install linked to bin)]) 2968AC_SUBST(LIB_BIN_BASEDIRNAME) 2969 2970if test "x$LIB_BIN_DIR" = "x"; then 2971 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 2972fi 2973AC_SUBST(LIB_BIN_DIR) 2974 2975LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR 2976AC_SUBST(LIB_BIN_DIR_RELATIVE_PATH) 2977LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}" 2978AC_SUBST(LIB_BIN_DIR_PATH) 2979 2980# 2981# path to modules lib 2982if test "x$MODULES_BASEDIRNAME" = "x"; then 2983 MODULES_BASEDIRNAME="modules" 2984fi 2985AC_DEFINE_UNQUOTED(MODULES_BASEDIRNAME,"$MODULES_BASEDIRNAME",[Module directory name without ABI part.]) 2986AC_SUBST(MODULES_BASEDIRNAME) 2987 2988if test "x$MODULES_DIRNAME" = "x"; then 2989 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 2990else 2991 AC_DEFINE_UNQUOTED(MODULES_DIRNAME,"$MODULES_DIRNAME",[Module directory dirname]) 2992fi 2993AC_SUBST(MODULES_DIRNAME) 2994 2995MODULES_RELATIVE_PATH="${MODULES_DIRNAME}" 2996AC_SUBST(MODULES_RELATIVE_PATH) 2997MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}" 2998AC_SUBST(MODULES_PATH) 2999 3000# 3001# path to coders lib 3002if test "x$CODER_DIRNAME" = "x"; then 3003 CODER_DIRNAME="coders" 3004fi 3005AC_DEFINE_UNQUOTED(CODER_DIRNAME,"$CODER_DIRNAME",[coders subdirectory.]) 3006AC_SUBST(CODER_DIRNAME) 3007 3008CODER_RELATIVE_PATH="${CODER_DIRNAME}" 3009CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}" 3010AC_SUBST(CODER_PATH) 3011 3012# 3013# Subdirectory under lib to place ImageMagick filter module files 3014# 3015# path to coders lib 3016if test "x$FILTER_DIRNAME" = "x"; then 3017 FILTER_DIRNAME="filters" 3018fi 3019AC_DEFINE_UNQUOTED(FILTER_DIRNAME,"$FILTER_DIRNAME",[filter subdirectory.]) 3020AC_SUBST(FILTER_DIRNAME) 3021 3022FILTER_RELATIVE_PATH="${FILTER_DIRNAME}" 3023FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}" 3024AC_SUBST(FILTER_PATH) 3025 3026# 3027# Path to ImageMagick documentation files 3028DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 3029DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" 3030DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" 3031case "${build_os}" in 3032 mingw* ) 3033 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` 3034 ;; 3035esac 3036AC_DEFINE_UNQUOTED(DOCUMENTATION_PATH,"$DEFINE_DOCUMENTATION_PATH",[Directory where ImageMagick documents live.]) 3037AC_SUBST(DOCUMENTATION_PATH) 3038 3039# 3040# Enable/Disable documentation 3041AC_ARG_ENABLE([docs], 3042 [AS_HELP_STRING([--disable-docs], 3043 [disable building of documentation])], 3044 wantdocs=$enableval, wantdocs=yes) 3045AM_CONDITIONAL([INSTALL_DOC], [test "$wantdocs" = "yes"]) 3046 3047# Subdirectory to place architecture-dependent configuration files 3048CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 3049AC_DEFINE_UNQUOTED(CONFIGURE_RELATIVE_PATH,"$CONFIGURE_RELATIVE_PATH",[Subdirectory of lib where architecture-dependent configuration files live.]) 3050CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 3051DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 3052case "${build_os}" in 3053 mingw* ) 3054 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` 3055 ;; 3056esac 3057AC_DEFINE_UNQUOTED(CONFIGURE_PATH,"$DEFINE_CONFIGURE_PATH",[Directory where architecture-dependent configuration files live.]) 3058AC_SUBST(CONFIGURE_PATH) 3059 3060# Subdirectory to place architecture-independent configuration files 3061SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 3062AC_DEFINE_UNQUOTED(SHARE_RELATIVE_PATH,"$SHARE_RELATIVE_PATH",[Subdirectory of lib where architecture-independent configuration files live.]) 3063SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" 3064DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" 3065case "${build_os}" in 3066 mingw* ) 3067 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` 3068 ;; 3069esac 3070AC_DEFINE_UNQUOTED(SHARE_PATH,"$DEFINE_SHARE_PATH",[Directory where architecture-independent configuration files live.]) 3071AC_SUBST(SHARE_PATH) 3072 3073# 3074# Subdirectory to place architecture-dependent configuration files. 3075if test "x$SHAREARCH_BASEDIRNAME" = "x"; then 3076 SHAREARCH_BASEDIRNAME="config" 3077fi 3078AC_DEFINE_UNQUOTED(SHAREARCH_BASEDIRNAME,"$SHAREARCH_BASEDIRNAME",[Sharearch directory name without ABI part.]) 3079AC_SUBST(SHAREARCH_BASEDIRNAME) 3080 3081if test "x$SHAREARCH_DIRNAME" = "x"; then 3082 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 3083else 3084 AC_DEFINE_UNQUOTED(SHAREARCH_DIRNAME,"$SHAREARCH_DIRNAME",[Sharearch directory dirname]) 3085fi 3086AC_SUBST(SHAREARCH_DIRNAME) 3087 3088SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}" 3089AC_SUBST(SHAREARCH_RELATIVE_PATH) 3090SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}" 3091AC_SUBST(SHAREARCH_PATH) 3092 3093# 3094# program_transform_name is formed for use in a Makefile, so create a 3095# modified version for use in a shell script. 3096configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` 3097 3098# Default delegate definitions 3099AC_MSG_RESULT([-------------------------------------------------------------]) 3100AC_MSG_CHECKING([for ImageMagick delegate programs]) 3101AC_MSG_RESULT([]) 3102BPGDecodeDelegateDefault='bpgdec' 3103BPGEncodeDelegateDefault='bpgenc' 3104BlenderDecodeDelegateDefault='blender' 3105BrowseDelegateDefault='xdg-open' 3106DNGDecodeDelegateDefault='ufraw-batch' 3107DOCDecodeDelegateDefault='soffice' 3108GVCDecodeDelegateDefault='dot' 3109DVIDecodeDelegateDefault='dvips' 3110EditorDelegateDefault='xterm' 3111ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}` 3112DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}` 3113MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}` 3114HPGLDecodeDelegateDefault='hp2xx' 3115HTMLDecodeDelegateDefault='html2ps' 3116ILBMDecodeDelegateDefault='ilbmtoppm' 3117ILBMEncodeDelegateDefault='ppmtoilbm' 3118JXRDecodeDelegateDefault='JxrDecApp' 3119JXREncodeDelegateDefault='JxrEncApp' 3120LEPDelegateDefault='lepton' 3121LPDelegateDefault='lp' 3122LPRDelegateDefault='lpr' 3123LaunchDelegateDefault='gimp' 3124MPEGDecodeDelegateDefault='avconv' 3125MPEGEncodeDelegateDefault='avconv' 3126MrSIDDecodeDelegateDefault='mrsidgeodecode' 3127MVDelegateDefault='mv' 3128PCLDelegateDefault='pcl6' 3129if test "$native_win32_build" = 'yes'; then 3130 PSDelegateDefault='gswin32c' 3131elif test "$gslib_framework" = 'yes'; then 3132 PSDelegateDefault='gsc' 3133else 3134 PSDelegateDefault='gs' 3135fi 3136RMDelegateDefault='rm' 3137RSVGDecodeDelegateDefault='rsvg-convert' 3138SVGDecodeDelegateDefault='inkscape' 3139TraceEncodeDelegateDefault='potrace' 3140UniconvertorDelegateDefault='uniconvertor' 3141WebPDecodeDelegateDefault='dwebp' 3142WebPEncodeDelegateDefault='cwebp' 3143WWWDecodeDelegateDefault='curl' 3144XPSDelegateDefault='gxps' 3145 3146# Search for delegates 3147AC_PATH_PROG(BPGDecodeDelegate, "$BPGDecodeDelegateDefault", "$BPGDecodeDelegateDefault") 3148AC_PATH_PROG(BPGEncodeDelegate, "$BPGEncodeDelegateDefault", "$BPGEncodeDelegateDefault") 3149AC_PATH_PROG(BlenderDecodeDelegate, "$BlenderDecodeDelegateDefault", "$BlenderDecodeDelegateDefault") 3150AC_PATH_PROGS(BrowseDelegate, "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx, "$BrowseDelegateDefault") 3151AC_PATH_PROG(DNGDecodeDelegate, "$DNGDecodeDelegateDefault", "$DNGDecodeDelegateDefault") 3152AC_PATH_PROG(DOCDecodeDelegate, "$DOCDecodeDelegateDefault", "$DOCDecodeDelegateDefault") 3153AC_PATH_PROG(DVIDecodeDelegate, "$DVIDecodeDelegateDefault", "$DVIDecodeDelegateDefault") 3154AC_PATH_PROG(ConvertDelegate, "$ConvertDelegateDefault", "$ConvertDelegateDefault") 3155AC_PATH_PROG(DisplayDelegate, "$DisplayDelegateDefault", "$DisplayDelegateDefault") 3156AC_PATH_PROG(EditorDelegate, "$EditorDelegateDefault", "$EditorDelegateDefault") 3157AC_PATH_PROG(GVCDecodeDelegate, "$GVCDecodeDelegateDefault", "$GVCDecodeDelegateDefault") 3158AC_PATH_PROG(HPGLDecodeDelegate, "$HPGLDecodeDelegateDefault", "$HPGLDecodeDelegateDefault") 3159AC_PATH_PROG(HTMLDecodeDelegate, "$HTMLDecodeDelegateDefault", "$HTMLDecodeDelegateDefault") 3160AC_PATH_PROG(ILBMDecodeDelegate, "$ILBMDecodeDelegateDefault", "$ILBMDecodeDelegateDefault") 3161AC_PATH_PROG(ILBMEncodeDelegate, "$ILBMEncodeDelegateDefault", "$ILBMEncodeDelegateDefault") 3162AC_PATH_PROG(JXRDecodeDelegate, "$JXRDecodeDelegateDefault", "$JXRDecodeDelegateDefault") 3163AC_PATH_PROG(JXREncodeDelegate, "$JXREncodeDelegateDefault", "$JXREncodeDelegateDefault") 3164AC_PATH_PROG(LEPDelegate, "$LEPDelegateDefault", "$LEPDelegateDefault") 3165AC_PATH_PROG(LPDelegate, "$LPDelegateDefault", no) 3166AC_PATH_PROG(LPRDelegate, "$LPRDelegateDefault", "$LPRDelegateDefault") 3167AC_PATH_PROG(LaunchDelegate, "$LaunchDelegateDefault", "$LaunchDelegateDefault") 3168AC_PATH_PROG(MogrifyDelegate, "$MogrifyDelegateDefault", "$MogrifyDelegateDefault") 3169AC_PATH_PROG(MPEGDecodeDelegate, "$MPEGDecodeDelegateDefault", "$MPEGDecodeDelegateDefault") 3170if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then 3171 MPEGDecodeDelegateDefault='ffmpeg' 3172 AC_PATH_PROG(MPEGDecodeDelegate, "$MPEGDecodeDelegateDefault", "$MPEGDecodeDelegateDefault") 3173fi; 3174AC_PATH_PROG(MPEGEncodeDelegate, "$MPEGEncodeDelegateDefault", "$MPEGEncodeDelegateDefault") 3175if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then 3176 MPEGEncodeDelegateDefault='ffmpeg' 3177 AC_PATH_PROG(MPEGEncodeDelegate, "$MPEGEncodeDelegateDefault", "$MPEGEncodeDelegateDefault") 3178fi; 3179AC_PATH_PROG(MrSIDDecodeDelegate, "$MrSIDDecodeDelegateDefault", "$MrSIDDecodeDelegateDefault") 3180AC_PATH_PROG(MVDelegate, "$MVDelegateDefault", "$MVDelegateDefault") 3181AC_PATH_PROG(PCLDelegate, "$PCLDelegateDefault", "$PCLDelegateDefault") 3182AC_PATH_PROGS(PSDelegate, gsx gsc "$PSDelegateDefault", "$PSDelegateDefault") 3183AC_PATH_PROG(RMDelegate, "$RMDelegateDefault", "$RMDelegateDefault") 3184AC_PATH_PROG(RSVGDecodeDelegate, "$RSVGDecodeDelegateDefault", "$RSVGDecodeDelegateDefault") 3185AC_PATH_PROG(SVGDecodeDelegate, "$SVGDecodeDelegateDefault", "$SVGDecodeDelegateDefault") 3186AC_PATH_PROG(TraceEncodeDelegate, "$TraceEncodeDelegateDefault", "$TraceEncodeDelegateDefault") 3187AC_PATH_PROG(UniconvertorDelegate, "$UniconvertorDelegateDefault", "$UniconvertorDelegateDefault") 3188AC_PATH_PROG(WebPDecodeDelegate, "$WebPDecodeDelegateDefault", "$WebPDecodeDelegateDefault") 3189AC_PATH_PROG(WebPEncodeDelegate, "$WebPEncodeDelegateDefault", "$WebPEncodeDelegateDefault") 3190AC_PATH_PROG(WWWDecodeDelegate, "$WWWDecodeDelegateDefault", "$WWWDecodeDelegateDelegateDefault") 3191AC_PATH_PROG(XPSDelegate, "$XPSDelegateDefault", "$XPSDelegateDefault") 3192 3193# Prefer lpr to lp; lp needs options tacked on. 3194if test "$LPRDelegate" != no; then 3195 PrintDelegate="$LPRDelegate" 3196else 3197 PrintDelegate="$LPDelegate -c -s" 3198fi 3199AC_SUBST(PrintDelegate) 3200 3201# Installed ImageMagick utiltity paths 3202ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" 3203DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" 3204MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" 3205 3206# Set delegate booleans 3207have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi 3208have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi 3209have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi 3210have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi 3211have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi 3212have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi 3213have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi 3214have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi 3215 3216# 3217# Test for font directories 3218# 3219type_include_files='' 3220 3221# Apple fonts. 3222AC_MSG_CHECKING(for Apple fonts directory) 3223apple_font_dir='' 3224if test "${with_apple_font_dir}" != 'default'; then 3225 apple_font_dir="${with_apple_font_dir}/" 3226else 3227 for font_dir in '/Library/Fonts/'; do 3228 if test -f "${font_dir}Arial.ttf"; then 3229 apple_font_dir="${font_dir}" 3230 break 1 3231 fi 3232 done 3233fi 3234if test "${apple_font_dir}x" != 'x'; then 3235 type_include_files="${type_include_files} "'<include file="type-apple.xml" />' 3236 AC_MSG_RESULT([$apple_font_dir]) 3237else 3238 AC_MSG_RESULT([not found!]); 3239fi 3240AC_SUBST(apple_font_dir) 3241 3242# Dejavu fonts. 3243AC_MSG_CHECKING(for Dejavu fonts directory) 3244dejavu_font_dir='' 3245if test "${with_dejavu_font_dir}" != 'default'; then 3246 dejavu_font_dir="${with_dejavu_font_dir}/" 3247else 3248 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do 3249 if test -f "${font_dir}DejaVuSerif.ttf"; then 3250 dejavu_font_dir="${font_dir}" 3251 break 1 3252 fi 3253 done 3254fi 3255if test "${dejavu_font_dir}x" != 'x'; then 3256 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' 3257 AC_MSG_RESULT([$dejavu_font_dir]) 3258else 3259 AC_MSG_RESULT([not found!]); 3260fi 3261AC_SUBST(dejavu_font_dir) 3262 3263# Ghostscript 3264AC_MSG_CHECKING(for Ghostscript fonts directory) 3265ghostscript_font_dir='' 3266if test "${with_gs_font_dir}" != 'default'; then 3267 ghostscript_font_dir="${with_gs_font_dir}/" 3268else 3269 if test "${native_win32_build}" = 'yes'; then 3270 # Native Windows Build 3271 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do 3272 if test -f "${font_dir}a010013l.pfb"; then 3273 ghostscript_font_dir="$font_dir" 3274 break 1 3275 fi 3276 done 3277 if test "${PSDelegate}" != 'gswin32c'; then 3278 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" 3279 fi 3280 else 3281 # Linux / Mac OS X / Unix Build 3282 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do 3283 if test -f "${font_dir}a010013l.pfb"; then 3284 ghostscript_font_dir="${font_dir}" 3285 break 1 3286 fi 3287 done 3288 if test "${ghostscript_font_dir}x" = 'x'; then 3289 if test "$PSDelegate" != 'gs'; then 3290 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" 3291 fi 3292 fi 3293 fi 3294fi 3295if test "${ghostscript_font_dir}x" != 'x'; then 3296 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' 3297 AC_MSG_RESULT([$ghostscript_font_dir]) 3298else 3299 AC_MSG_RESULT([not found!]); 3300fi 3301AC_SUBST(ghostscript_font_dir) 3302case "${build_os}" in 3303 mingw* ) 3304 PSDelegate=`$WinPathScript "$PSDelegate" 1` 3305 ;; 3306esac 3307 3308# URW-base35 fonts. 3309AC_MSG_CHECKING(for URW-base35 fonts directory) 3310urw_base35_font_dir='' 3311if test "${with_urw_base35_font_dir}" != 'default'; then 3312 urw_base35_font_dir="${with_urw_base35_font_dir}/" 3313else 3314 for font_dir in "${prefix}/share/urw-base35/fonts/" '/usr/share/fonts/urw-base35/'; do 3315 if test -f "${font_dir}StandardSymbolsPS.t1"; then 3316 urw_base35_font_dir="${font_dir}" 3317 break 1 3318 fi 3319 done 3320fi 3321if test "${urw_base35_font_dir}x" != 'x'; then 3322 type_include_files="${type_include_files} "'<include file="type-urw-base35.xml" />' 3323 AC_MSG_RESULT([$urw_base35_font_dir]) 3324else 3325 AC_MSG_RESULT([not found!]); 3326fi 3327AC_SUBST(urw_base35_font_dir) 3328 3329# Windows fonts. 3330AC_MSG_CHECKING(for Windows fonts directory) 3331windows_font_dir='' 3332if test "${with_windows_font_dir}" != 'default'; then 3333 windows_font_dir="${with_windows_font_dir}/" 3334else 3335 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/' '/usr/share/fonts/microsoft/' '/usr/share/fonts/truetype/msttcorefonts/'; do 3336 if test -f "${font_dir}arial.ttf"; then 3337 windows_font_dir="${font_dir}" 3338 break 1 3339 fi 3340 done 3341fi 3342if test "${windows_font_dir}x" != 'x'; then 3343 type_include_files="${type_include_files} "'<include file="type-windows.xml" />' 3344 AC_MSG_RESULT([$windows_font_dir]) 3345else 3346 AC_MSG_RESULT([not found!]); 3347fi 3348AC_SUBST(windows_font_dir) 3349 3350AC_SUBST(type_include_files) 3351 3352# 3353# Handle case where user doesn't want frozen paths 3354# 3355if test "$with_frozenpaths" != 'yes'; then 3356 # Re-set delegate definitions to default (no paths) 3357 BPGDecodeDelegate="$BPGDecodeDelegateDefault" 3358 BPGEncodeDelegate="$BPGEncodeDelegateDefault" 3359 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" 3360 BrowseDelegate="$BrowseDelegateDefault" 3361 ConvertDelegate="$ConvertDelegateDefault" 3362 DisplayDelegate="$DisplayDelegateDefault" 3363 DNGDecodeDelegate="$DNGDecodeDelegateDefault" 3364 DOCDecodeDelegate="$DOCDecodeDelegateDefault" 3365 DVIDecodeDelegate="$DVIDecodeDelegateDefault" 3366 EditorDelegate="$EditorDelegateDefault" 3367 GVCDecodeDelegate="$GVCDecodeDelegateDefault" 3368 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" 3369 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" 3370 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" 3371 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" 3372 JXRDecodeDelegate="$JXRDecodeDelegateDefault" 3373 JXREncodeDelegate="$JXREncodeDelegateDefault" 3374 LEPDelegate="$LEPDelegateDefault" 3375 LPDelegate="$LPDelegateDefault" 3376 LaunchDelegate="$LaunchDelegateDefault" 3377 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" 3378 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" 3379 MogrifyDelegate="$MogrifyDelegateDefault" 3380 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" 3381 PCLDelegate="$PCLDelegateDefault" 3382 PSDelegate="$PSDelegateDefault" 3383 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" 3384 SVGDecodeDelegate="$SVGDecodeDelegateDefault" 3385 ShowImageDelegate="$ShowImageDelegateDefault" 3386 TraceEncodeDelegate="$TraceEncodeDelegateDefault" 3387 UniconvertorDelegate="$UniconvertorDelegateDefault" 3388 WebPDecodeDelegate="$WebPDecodeDelegateDefault" 3389 WebPEncodeDelegate="$WebPEncodeDelegateDefault" 3390 WWWDecodeDelegate="$WWWDecodeDelegateDefault" 3391 XPSDelegate="$XPSDelegateDefault" 3392fi 3393 3394# Delegate substitutions 3395AC_SUBST(BPGDecodeDelegate) 3396AC_SUBST(BPGEncodeDelegate) 3397AC_SUBST(BlenderDecodeDelegate) 3398AC_SUBST(BrowseDelegate) 3399AC_SUBST(ConvertDelegate) 3400AC_SUBST(GVCDecodeDelegate) 3401AC_SUBST(DVIDecodeDelegate) 3402AC_SUBST(EditorDelegate) 3403AC_SUBST(HPGLDecodeDelegate) 3404AC_SUBST(HTMLDecodeDelegate) 3405AC_SUBST(ILBMDecodeDelegate) 3406AC_SUBST(ILBMEncodeDelegate) 3407AC_SUBST(JXRDecodeDelegate) 3408AC_SUBST(JXREncodeDelegate) 3409AC_SUBST(LaunchDelegate) 3410AC_SUBST(LEPDelegate) 3411AC_SUBST(LPDelegate) 3412AC_SUBST(MPEGDecodeDelegate) 3413AC_SUBST(MPEGEncodeDelegate) 3414AC_SUBST(MogrifyDelegate) 3415AC_SUBST(MrSIDDecodeDelegate) 3416AC_SUBST(PCLDelegate) 3417AC_SUBST(PSDelegate) 3418AC_SUBST(ShowImageDelegate) 3419AC_SUBST(TraceEncodeDelegate) 3420AC_SUBST(UniconvertorDelegate) 3421AC_SUBST(WebPDecodeDelegate) 3422AC_SUBST(WebPEncodeDelegate) 3423AC_SUBST(WWWDecodeDelegate) 3424AC_SUBST(XPSDelegate) 3425 3426# 3427# RPM support. 3428# 3429RPM='' 3430AC_CHECK_PROGS(TAR,gnutar gtar tar) 3431AC_CHECK_PROGS(PERL,perl) 3432AC_CHECK_PROGS(RPM,rpmbuild rpm) 3433AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) 3434AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) 3435AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) 3436AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) 3437AC_SUBST(RPM) 3438AM_CONDITIONAL(RPM_DELEGATE, test "x$RPM" != "x" ) 3439 3440# 3441# 7ZIP support (http://p7zip.sourceforge.net/) 3442# 3443P7ZIP='' 3444AC_CHECK_PROGS(P7ZIP,[7za]) 3445AC_SUBST(P7ZIP) 3446AM_CONDITIONAL(P7ZIP_DELEGATE, test "x$P7ZIP" != "x" ) 3447 3448# 3449# ZIP support (http://www.info-zip.org/Zip.html) 3450# 3451ZIP='' 3452AC_CHECK_PROGS(ZIP,[zip]) 3453AC_SUBST(ZIP) 3454AM_CONDITIONAL(ZIP_DELEGATE, test "x$ZIP" != "x" ) 3455 3456# 3457# GhostPCL related configuration. 3458# 3459PCLColorDevice=ppmraw 3460PCLCMYKDevice=pamcmyk32 3461PCLMonoDevice=pbmraw 3462if test -z "$PCLVersion"; then 3463 PCLVersion='unknown' 3464fi 3465if test $have_pcl = 'yes'; then 3466 AC_MSG_RESULT([-------------------------------------------------------------]) 3467 AC_MSG_CHECKING([for PCL]) 3468 AC_MSG_RESULT([]) 3469 # PCLColorDevice 3470 AC_MSG_CHECKING([for pcl color device]) 3471 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3472 : 3473 else 3474 PCLColorDevice=ppmraw 3475 fi 3476 AC_MSG_RESULT([$PCLColorDevice]) 3477 3478 # PCLCMYKDevice 3479 AC_MSG_CHECKING([for pcl CMYK device]) 3480 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3481 : 3482 else 3483 PCLCMYKDevice=$PCLColorDevice 3484 fi 3485 AC_MSG_RESULT([$PCLCMYKDevice]) 3486 3487 # PCLMonoDevice 3488 AC_MSG_CHECKING([for pcl mono device]) 3489 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3490 : 3491 else 3492 PCLMonoDevice=$PCLColorDevice 3493 fi 3494 AC_MSG_RESULT([$PCLMonoDevice]) 3495fi 3496 3497AC_SUBST(PCLMonoDevice) 3498AC_SUBST(PCLColorDevice) 3499AC_SUBST(PCLCMYKDevice) 3500AC_SUBST(PCLVersion) 3501 3502# 3503# GhostXPS related configuration. 3504# 3505XPSColorDevice=ppmraw 3506XPSCMYKDevice=bmpsep8 3507XPSMonoDevice=pbmraw 3508if test -z "$XPSVersion"; then 3509 XPSVersion='unknown' 3510fi 3511if test $have_xps = 'yes'; then 3512 AC_MSG_RESULT([-------------------------------------------------------------]) 3513 AC_MSG_CHECKING([for XPS]) 3514 AC_MSG_RESULT([]) 3515 # XPSColorDevice 3516 AC_MSG_CHECKING([for xps color device]) 3517 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3518 : 3519 else 3520 XPSColorDevice=ppmraw 3521 fi 3522 AC_MSG_RESULT([$XPSColorDevice]) 3523 3524 # XPSCMYKDevice 3525 AC_MSG_CHECKING([for xps CMYK device]) 3526 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3527 : 3528 else 3529 XPSCMYKDevice=$XPSColorDevice 3530 fi 3531 AC_MSG_RESULT([$XPSCMYKDevice]) 3532 3533 # XPSMonoDevice 3534 AC_MSG_CHECKING([for xps mono device]) 3535 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3536 : 3537 else 3538 XPSMonoDevice=$XPSColorDevice 3539 fi 3540 AC_MSG_RESULT([$XPSMonoDevice]) 3541fi 3542 3543AC_SUBST(XPSMonoDevice) 3544AC_SUBST(XPSColorDevice) 3545AC_SUBST(XPSCMYKDevice) 3546AC_SUBST(XPSVersion) 3547 3548# 3549# Ghostscript related configuration. 3550# 3551GSAlphaDevice=pngalpha 3552GSColorDevice=png16m 3553GSCMYKDevice=pamcmyk32 3554GSMonoDevice=pbmraw 3555GSPDFDevice=pdfwrite 3556GSPSDevice=ps2write 3557GSEPSDevice=eps2write 3558GSVersion='unknown' 3559if test $have_gs = 'yes'; then 3560 AC_MSG_RESULT([-------------------------------------------------------------]) 3561 AC_MSG_CHECKING([for Ghostscript]) 3562 AC_MSG_RESULT([]) 3563 AC_MSG_CHECKING([for Ghostscript version]) 3564 if GSVersion=`$PSDelegate --version`; then 3565 : 3566 else 3567 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` 3568 fi 3569 AC_MSG_RESULT([$GSVersion]) 3570 3571 # GSColorDevice 3572 AC_MSG_CHECKING([for gs color device]) 3573 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3574 : 3575 else 3576 GSColorDevice=ppmraw 3577 fi 3578 AC_MSG_RESULT([$GSColorDevice]) 3579 3580 # GSAlphaDevice 3581 AC_MSG_CHECKING([for gs alpha device]) 3582 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3583 : 3584 else 3585 GSAlphaDevice=$GSColorDevice 3586 fi 3587 AC_MSG_RESULT([$GSAlphaDevice]) 3588 3589 # GSCMYKDevice 3590 AC_MSG_CHECKING([for gs CMYK device]) 3591 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3592 : 3593 else 3594 GSCMYKDevice=pam 3595 fi 3596 AC_MSG_RESULT([$GSCMYKDevice]) 3597 3598 # GSMonoDevice 3599 AC_MSG_CHECKING([for gs mono device]) 3600 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3601 : 3602 else 3603 GSMonoDevice=$GSColorDevice 3604 fi 3605 AC_MSG_RESULT([$GSMonoDevice]) 3606 3607 # GSPDFDevice 3608 AC_MSG_CHECKING([for gs PDF writing device]) 3609 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3610 : 3611 else 3612 GSPDFDevice=nodevice 3613 fi 3614 AC_MSG_RESULT([$GSPDFDevice]) 3615 3616 # GSPSDevice 3617 AC_MSG_CHECKING([for gs PS writing device]) 3618 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3619 : 3620 else 3621 GSPSDevice=pswrite 3622 fi 3623 AC_MSG_RESULT([$GSPSDevice]) 3624 3625 # GSEPSDevice 3626 AC_MSG_CHECKING([for gs EPS writing device]) 3627 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then 3628 : 3629 else 3630 GSEPSDevice=epswrite 3631 fi 3632 AC_MSG_RESULT([$GSEPSDevice]) 3633fi 3634 3635AC_SUBST(GSAlphaDevice) 3636AC_SUBST(GSCMYKDevice) 3637AC_SUBST(GSColorDevice) 3638AC_SUBST(GSEPSDevice) 3639AC_SUBST(GSMonoDevice) 3640AC_SUBST(GSPDFDevice) 3641AC_SUBST(GSPSDevice) 3642AC_SUBST(GSVersion) 3643 3644# 3645# PerlMagick-related configuration 3646# 3647 3648# Look for PERL if PerlMagick requested 3649# If name/path of desired PERL interpreter is specified, look for that one first 3650have_perl='no' 3651if test "$with_perl" != 'no'; then 3652 AC_MSG_RESULT([-------------------------------------------------------------]) 3653 AC_MSG_CHECKING([for Perl]) 3654 AC_MSG_RESULT([]) 3655 if test "$with_perl" != 'yes'; then 3656 AC_CACHE_CHECK(for perl,ac_cv_path_PERL,ac_cv_path_PERL="$with_perl"); 3657 PERL=$ac_cv_path_PERL 3658 AC_SUBST(PERL)dnl 3659 have_perl="$ac_cv_path_PERL" 3660 else 3661 AC_PATH_PROGS(PERL,perl perl5,)dnl 3662 if test "$ac_cv_path_PERL"; then 3663 have_perl="$ac_cv_path_PERL" 3664 fi 3665 fi 3666fi 3667 3668if test "$with_perl" != 'yes' ; then 3669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " 3670fi 3671 3672PERL_SUPPORTS_DESTDIR='no' 3673 3674with_perl_static='no' 3675with_perl_dynamic='no' 3676if test "$have_perl" != 'no'; then 3677 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then 3678 with_perl_static='yes' 3679 fi 3680 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then 3681 with_perl_dynamic='yes' 3682 fi 3683 # Is PERL's MakeMaker new enough to support DESTDIR? 3684 AX_PROG_PERL_VERSION(5.8.1,[PERL_SUPPORTS_DESTDIR='yes'],[PERL_SUPPORTS_DESTDIR='no']) 3685fi 3686AM_CONDITIONAL(WITH_PERL, test "$have_perl" != 'no') 3687AM_CONDITIONAL(WITH_PERL_STATIC, test $with_perl_static = 'yes') 3688AM_CONDITIONAL(WITH_PERL_DYNAMIC, test $with_perl_dynamic = 'yes') 3689AC_SUBST(PERL_SUPPORTS_DESTDIR) 3690 3691# Determine path to pick up MagickCore library from for use with building PerlMagick 3692MAGICKCORE_PATH="${LIB_DIR}" 3693if test $with_perl_static = 'yes'; then 3694 # Find out where libtool hides its uninstalled libraries (as libtool_objdir) 3695 libtool_objdir=$objdir 3696 3697 # Linker search path to library, followed by -lMagickCore 3698 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" 3699fi 3700AC_SUBST(MAGICKCORE_PATH) 3701 3702# Create a simple string containing format names for all delegate libraries. 3703MAGICK_DELEGATES='' 3704if test "$have_autotrace" = 'yes' ; then 3705 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace" 3706fi 3707if test "$have_bzlib" = 'yes' ; then 3708 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib" 3709fi 3710if test "$have_dps" = 'yes' ; then 3711 MAGICK_DELEGATES="$MAGICK_DELEGATES dps" 3712fi 3713if test "$have_djvu" = 'yes' ; then 3714 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu" 3715fi 3716if test "$have_avconv" = 'yes' ; then 3717 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg" 3718fi 3719if test "$have_fftw" = 'yes' ; then 3720 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw" 3721fi 3722if test "$have_flif" = 'yes' ; then 3723 MAGICK_DELEGATES="$MAGICK_DELEGATES flif" 3724fi 3725if test "$have_fpx" = 'yes' ; then 3726 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx" 3727fi 3728if test "$have_fontconfig" = 'yes' ; then 3729 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig" 3730fi 3731if test "$have_freetype" = 'yes' ; then 3732 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype" 3733fi 3734if test "$have_gslib" = 'yes' ; then 3735 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib" 3736fi 3737if test "$have_heic" = 'yes' ; then 3738 MAGICK_DELEGATES="$MAGICK_DELEGATES heic" 3739fi 3740if test "$have_jbig" = 'yes' ; then 3741 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig" 3742fi 3743if test "$have_png$have_jpeg" = 'yesyes' ; then 3744 MAGICK_DELEGATES="$MAGICK_DELEGATES jng" 3745fi 3746if test "$have_jpeg" = 'yes' ; then 3747 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg" 3748fi 3749if test "$have_jxl" = 'yes' ; then 3750 MAGICK_DELEGATES="$MAGICK_DELEGATES jxl" 3751fi 3752if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then 3753 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms" 3754fi 3755if test "$have_lqr" = 'yes' ; then 3756 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr" 3757fi 3758if test "$have_lzma" = 'yes' ; then 3759 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma" 3760fi 3761if test "$have_openexr" = 'yes' ; then 3762 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr" 3763fi 3764if test "$have_openjp2" = 'yes' ; then 3765 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2" 3766fi 3767if test "$have_pango" = 'yes' ; then 3768 MAGICK_DELEGATES="$MAGICK_DELEGATES pango" 3769fi 3770if test "$have_png" = 'yes' ; then 3771 MAGICK_DELEGATES="$MAGICK_DELEGATES png" 3772fi 3773have_ps='no' 3774if test "$have_dps" = 'yes' || \ 3775 test "$have_gs" = 'yes' || \ 3776 test "${native_win32_build}" = 'yes' ; then 3777 have_ps='yes' 3778fi 3779if test "$have_ps" = 'yes' ; then 3780 MAGICK_DELEGATES="$MAGICK_DELEGATES ps" 3781fi 3782if test "$have_raqm" = 'yes' ; then 3783 MAGICK_DELEGATES="$MAGICK_DELEGATES raqm" 3784fi 3785if test "$have_raw" = 'yes' ; then 3786 MAGICK_DELEGATES="$MAGICK_DELEGATES raw" 3787fi 3788if test "$have_ra_ppm" = 'yes' ; then 3789 MAGICK_DELEGATES="$MAGICK_DELEGATES rad" 3790fi 3791if test "$have_rsvg" = 'yes' ; then 3792 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg" 3793fi 3794if test "$have_tiff" = 'yes' ; then 3795 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff" 3796fi 3797if test "$have_ttf" = 'yes' ; then 3798 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf" 3799fi 3800if test "$have_webp" = 'yes' ; then 3801 MAGICK_DELEGATES="$MAGICK_DELEGATES webp" 3802fi 3803if test "$have_wmf" = 'yes' ; then 3804 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf" 3805fi 3806if test "$have_x" = 'yes' ; then 3807 MAGICK_DELEGATES="$MAGICK_DELEGATES x" 3808fi 3809if test "$have_xml" = 'yes' ; then 3810 MAGICK_DELEGATES="$MAGICK_DELEGATES xml" 3811fi 3812if test "$have_zlib" = 'yes' ; then 3813 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib" 3814fi 3815if test "$have_zstd" = 'yes' ; then 3816 MAGICK_DELEGATES="$MAGICK_DELEGATES zstd" 3817fi 3818 3819# Remove extraneous spaces from output variables (asthetic) 3820MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'` 3821MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'` 3822AC_SUBST(MAGICK_DELEGATES) 3823AC_SUBST(MAGICK_FEATURES) 3824 3825# 3826# Handle special compiler flags 3827# 3828 3829# Add '-p' if prof source profiling support enabled 3830if test "$enable_prof" = 'yes'; then 3831 CFLAGS="-p $CFLAGS" 3832 CXXFLAGS="-p $CXXFLAGS" 3833 LDFLAGS="-p $LDFLAGS" 3834fi 3835 3836# Add '-pg' if gprof source profiling support enabled 3837if test "$enable_gprof" = 'yes'; then 3838 CFLAGS="-pg $CFLAGS" 3839 CXXFLAGS="-pg $CXXFLAGS" 3840 LDFLAGS="-pg $LDFLAGS" 3841fi 3842 3843# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled 3844# This is a gcc-specific feature 3845if test "$enable_gcov" = 'yes'; then 3846 AC_CHECK_LIB(gcov,_gcov_init) 3847 AC_CHECK_LIB(gcov,__gcov_init) 3848 case "$target_os" in 3849 darwin*) 3850 OSX_GCOV_LDFLAG="-Wl,-single_module" 3851 ;; 3852 *) 3853 OSX_GCOV_LDFLAG="" 3854 ;; 3855 esac 3856 AC_SUBST(OSX_GCOV_LDFLAG) 3857 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" 3858 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" 3859 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" 3860fi 3861 3862# 3863# Build library dependency list for libMagickCore 3864# 3865 3866if test "$build_modules" != 'no'; then 3867 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $XML_LIBS $FLIF_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $WS2_32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS $TCMALLOC_LIBS" 3868else 3869 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $RAQM_LIBS $JPEG_LIBS $JXL_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FLIF_LIBS $FPX_LIBS $FONTCONFIG_LIBS $HEIF_LIBS $WEBPMUX_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RAW_R_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $WS2_32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS $TCMALLOC_LIBS" 3870fi 3871MAGICK_EXTRA_DEP_LIBS="$GOMP_LIBS" 3872AC_SUBST(MAGICK_DEP_LIBS) 3873AC_SUBST(MAGICK_EXTRA_DEP_LIBS) 3874 3875# Pass only user-provided LIBS as "global" libraries 3876LIBS=$USER_LIBS 3877 3878#AC_SUBST(CPPFLAGS) 3879AC_SUBST(X_CFLAGS) 3880#AC_SUBST(LDFLAGS) 3881#AC_SUBST(X_PRE_LIBS) 3882#AC_SUBST(X_LIBS) 3883#AC_SUBST(X_EXTRA_LIBS) 3884 3885MAGICK_CFLAGS=$CFLAGS 3886MAGICK_CXXFLAGS="$CXXFLAGS" 3887MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` 3888MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` 3889MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" 3890MAGICK_LIBS="$MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS" 3891 3892AC_SUBST(MAGICK_CFLAGS) 3893AC_SUBST(MAGICK_CXXFLAGS) 3894AC_SUBST(MAGICK_CPPFLAGS) 3895AC_SUBST(MAGICK_PCFLAGS) 3896AC_SUBST(MAGICK_LDFLAGS) 3897AC_SUBST(MAGICK_LIBS) 3898 3899# Set configured scripts to executable. 3900AC_CONFIG_COMMANDS([default],[],[]) 3901AC_CONFIG_COMMANDS([magick.sh.in],[chmod +x magick.sh]) 3902AC_CONFIG_COMMANDS([MagickCore-config.in],[chmod +x MagickCore/MagickCore-config]) 3903AC_CONFIG_COMMANDS([MagickWand-config.in],[chmod +x MagickWand/MagickWand-config]) 3904AC_CONFIG_COMMANDS([Magick++-config.in],[chmod +x Magick++/bin/Magick++-config]) 3905AC_CONFIG_COMMANDS([PerlMagick/check.sh.in],[chmod +x PerlMagick/check.sh]) 3906 3907AC_MSG_RESULT([-------------------------------------------------------------]) 3908AC_MSG_RESULT([Update ImageMagick configuration]) 3909 3910rm -f magick-version 3911 3912result_dejavu_font_dir='none' 3913if test "${dejavu_font_dir}x" != 'x'; then 3914 result_dejavu_font_dir=$dejavu_font_dir 3915fi 3916 3917result_ghostscript_font_dir='none' 3918if test "${ghostscript_font_dir}x" != 'x'; then 3919 result_ghostscript_font_dir=$ghostscript_font_dir 3920fi 3921 3922result_urw_base35_font_dir='none' 3923if test "${urw_base35_font_dir}x" != 'x'; then 3924 result_urw_base35_font_dir=$urw_base35_font_dir 3925fi 3926 3927result_windows_font_dir='none' 3928if test "${windows_font_dir}x" != 'x'; then 3929 result_windows_font_dir=${windows_font_dir} 3930fi 3931 3932# ============================================================================== 3933# Generate build environment 3934# ============================================================================== 3935AC_CONFIG_FILES([\ 3936 common.shi \ 3937 config/configure.xml \ 3938 config/delegates.xml \ 3939 config/ImageMagick.rdf \ 3940 config/MagickCore.dox \ 3941 config/MagickWand.dox \ 3942 config/Magick++.dox \ 3943 config/type-apple.xml \ 3944 config/type-dejavu.xml \ 3945 config/type-ghostscript.xml \ 3946 config/type-urw-base35.xml \ 3947 config/type-windows.xml \ 3948 config/type.xml \ 3949 ImageMagick.spec \ 3950 Magick++/bin/Magick++-config \ 3951 MagickCore/ImageMagick.pc \ 3952 Magick++/lib/Magick++.pc \ 3953 MagickCore/MagickCore-config \ 3954 MagickCore/MagickCore.pc \ 3955 MagickCore/version.h \ 3956 Makefile \ 3957 magick.sh \ 3958 PerlMagick/check.sh \ 3959 PerlMagick/default/Magick.pm \ 3960 PerlMagick/Makefile.PL \ 3961 PerlMagick/default/Makefile.PL \ 3962 PerlMagick/quantum/Makefile.PL \ 3963 PerlMagick/quantum/quantum.pm \ 3964 PerlMagick/quantum/quantum.xs \ 3965 PerlMagick/quantum/typemap \ 3966 utilities/animate.1 \ 3967 utilities/compare.1 \ 3968 utilities/composite.1 \ 3969 utilities/conjure.1 \ 3970 utilities/convert.1 \ 3971 utilities/display.1 \ 3972 utilities/identify.1 \ 3973 utilities/ImageMagick.1 \ 3974 utilities/import.1 \ 3975 utilities/magick.1 \ 3976 utilities/magick-script.1 \ 3977 utilities/mogrify.1 \ 3978 utilities/montage.1 \ 3979 utilities/stream.1 \ 3980 MagickWand/MagickWand-config \ 3981 MagickWand/MagickWand.pc ]) 3982AC_OUTPUT 3983 3984# ============================================================================== 3985# ImageMagick Configuration 3986# ============================================================================== 3987AC_MSG_NOTICE([ 3988============================================================================== 3989${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM} is configured as follows. Please verify that this 3990configuration matches your expectations. 3991 3992Host system type: $host 3993Build system type: $build 3994 3995 Option Value 3996------------------------------------------------------------------------------ 3997Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 3998Static libraries --enable-static=$enable_static $libtool_build_static_libs 3999Build utilities --with-utilities=$with_utilities $with_utilities 4000Module support --with-modules=$build_modules $build_modules 4001GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 4002Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 4003High Dynamic Range Imagery 4004 --enable-hdri=$enable_hdri $enable_hdri 4005 4006Install documentation: $wantdocs 4007 4008Memory allocation library: 4009 JEMalloc --with-jemalloc=$with_jemalloc $have_jemalloc 4010 TCMalloc --with-tcmalloc=$with_tcmalloc $have_tcmalloc 4011 UMem --with-umem=$with_umem $have_umem 4012 4013Delegate library configuration: 4014 BZLIB --with-bzlib=$with_bzlib $have_bzlib 4015 Autotrace --with-autotrace=$with_autotrace $have_autotrace 4016 DJVU --with-djvu=$with_djvu $have_djvu 4017 DPS --with-dps=$with_dps $have_dps 4018 FFTW --with-fftw=$with_fftw $have_fftw 4019 FLIF --with-flif=$with_flif $have_flif 4020 FlashPIX --with-fpx=$with_fpx $have_fpx 4021 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 4022 FreeType --with-freetype=$with_freetype $have_freetype 4023 Ghostscript lib --with-gslib=$with_gslib $have_gslib 4024 Graphviz --with-gvc=$with_gvc $have_gvc 4025 HEIC --with-heic=$with_heic $have_heic 4026 JBIG --with-jbig=$with_jbig $have_jbig 4027 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 4028 JPEG XL --with-jxl=$with_jxl $have_jxl 4029 LCMS --with-lcms=$with_lcms $have_lcms 4030 LQR --with-lqr=$with_lqr $have_lqr 4031 LTDL --with-ltdl=$with_ltdl $have_ltdl 4032 LZMA --with-lzma=$with_lzma $have_lzma 4033 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 4034 OpenEXR --with-openexr=$with_openexr $have_openexr 4035 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2 4036 PANGO --with-pango=$with_pango $have_pango 4037 PERL --with-perl=$with_perl $have_perl 4038 PNG --with-png=$with_png $have_png 4039 RAQM --with-raqm=$with_raqm $have_raqm 4040 RAW --with-raw=$with_raw $have_raw 4041 RSVG --with-rsvg=$with_rsvg $have_rsvg 4042 TIFF --with-tiff=$with_tiff $have_tiff 4043 WEBP --with-webp=$with_webp $have_webp 4044 WMF --with-wmf=$with_wmf $have_wmf 4045 X11 --with-x=$with_x $have_x 4046 XML --with-xml=$with_xml $have_xml 4047 ZLIB --with-zlib=$with_zlib $have_zlib 4048 ZSTD --with-zstd=$with_zstd $have_zstd 4049 4050Delegate program configuration: 4051 GhostPCL None $PCLDelegate ($PCLVersion) 4052 GhostXPS None $XPSDelegate ($XPSVersion) 4053 Ghostscript None $PSDelegate ($GSVersion) 4054 4055Font configuration: 4056 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir 4057 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 4058 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 4059 URW-base35 fonts --with-urw-base35-font-dir=$with_urw_base35_font_dir $result_urw_base35_font_dir 4060 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 4061 4062X11 configuration: 4063 X_CFLAGS = $X_CFLAGS 4064 X_PRE_LIBS = $X_PRE_LIBS 4065 X_LIBS = $X_LIBS 4066 X_EXTRA_LIBS = $X_EXTRA_LIBS 4067 4068Options used to compile and link: 4069 PREFIX = $PREFIX_DIR 4070 EXEC-PREFIX = $EXEC_PREFIX_DIR 4071 VERSION = $PACKAGE_VERSION 4072 CC = $CC 4073 CFLAGS = $CFLAGS 4074 CPPFLAGS = $CPPFLAGS 4075 PCFLAGS = $PCFLAGS 4076 DEFS = $DEFS 4077 LDFLAGS = $LDFLAGS 4078 LIBS = $MAGICK_DEP_LIBS 4079 CXX = $CXX 4080 CXXFLAGS = $CXXFLAGS 4081 FEATURES = $MAGICK_FEATURES 4082 DELEGATES = $MAGICK_DELEGATES 4083============================================================================== 4084]) 4085