~ubuntu-branches/debian/experimental/cups-filters/experimental

« back to all changes in this revision

Viewing changes to config-scripts/cups-image.m4

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl
2
 
dnl "$Id$"
3
 
dnl
4
 
dnl   Image library/filter stuff for OpenPrinting CUPS Filters.
5
 
dnl
6
 
dnl   Copyright 2007-2011 by Apple Inc.
7
 
dnl   Copyright 1997-2006 by Easy Software Products, all rights reserved.
8
 
dnl
9
 
dnl   These coded instructions, statements, and computer programs are the
10
 
dnl   property of Apple Inc. and are protected by Federal copyright
11
 
dnl   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
12
 
dnl   which should have been included with this file.  If this file is
13
 
dnl   file is missing or damaged, see the license at "http://www.cups.org/".
14
 
dnl
15
 
 
16
 
dnl See if we want the image filters included at all...
17
 
AC_ARG_ENABLE(image, [  --enable-image          always build the image filters])
18
 
 
19
 
IMGFILTERS=""
20
 
if test "x$enable_image" != xno; then
21
 
        IMGFILTERS="imagetops imagetoraster"
22
 
fi
23
 
AC_SUBST(IMGFILTERS)
24
 
 
25
 
dnl Check for image libraries...
26
 
AC_ARG_ENABLE(jpeg, [  --disable-jpeg          disable JPEG support])
27
 
AC_ARG_ENABLE(png, [  --disable-png           disable PNG support])
28
 
AC_ARG_ENABLE(tiff, [  --disable-tiff          disable TIFF support])
29
 
 
30
 
LIBJPEG=""
31
 
LIBPNG=""
32
 
LIBTIFF=""
33
 
LIBZ=""
34
 
 
35
 
AC_SUBST(LIBJPEG)
36
 
AC_SUBST(LIBPNG)
37
 
AC_SUBST(LIBTIFF)
38
 
AC_SUBST(LIBZ)
39
 
 
40
 
dnl Image libraries use math library functions...
41
 
AC_SEARCH_LIBS(pow, m)
42
 
 
43
 
dnl Save the current libraries since we don't want the image libraries
44
 
dnl included with every program...
45
 
SAVELIBS="$LIBS"
46
 
 
47
 
dnl JPEG library...
48
 
if test x$enable_jpeg != xno; then
49
 
    AC_CHECK_HEADER(jpeglib.h,
50
 
        AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
51
 
            AC_DEFINE(HAVE_LIBJPEG)
52
 
            LIBJPEG="-ljpeg"
53
 
            LIBS="$LIBS -ljpeg"))
54
 
else
55
 
    AC_MSG_NOTICE([JPEG support disabled with --disable-jpeg.])
56
 
fi
57
 
 
58
 
dnl ZLIB library...
59
 
AC_CHECK_HEADER(zlib.h,
60
 
    AC_CHECK_LIB(z, gzgets,
61
 
        AC_DEFINE(HAVE_LIBZ)
62
 
        LIBZ="-lz"
63
 
        LIBS="$LIBS -lz"))
64
 
 
65
 
dnl PNG library...
66
 
if test x$enable_png != xno; then
67
 
    AC_CHECK_HEADER(png.h,
68
 
        AC_CHECK_LIB(png, png_create_read_struct,
69
 
            AC_DEFINE(HAVE_LIBPNG)
70
 
            LIBPNG="-lpng"))
71
 
else
72
 
    AC_MSG_NOTICE([PNG support disabled with --disable-png.])
73
 
fi
74
 
 
75
 
dnl TIFF library...
76
 
if test x$enable_tiff != xno; then
77
 
    AC_CHECK_HEADER(tiff.h,
78
 
        AC_CHECK_LIB(tiff, TIFFReadScanline,
79
 
        AC_DEFINE(HAVE_LIBTIFF)
80
 
        LIBTIFF="-ltiff"))
81
 
else
82
 
    AC_MSG_NOTICE([TIFF support disabled with --disable-tiff.])
83
 
fi
84
 
 
85
 
dnl Restore original LIBS settings...
86
 
LIBS="$SAVELIBS"
87
 
 
88
 
AC_CHECK_HEADER(stdlib.h,AC_DEFINE(HAVE_STDLIB_H))
89
 
 
90
 
dnl
91
 
dnl End of "$Id$".
92
 
dnl