diff options
author | Jonathan Blandford <jrb@redhat.com> | 2005-05-22 03:21:31 (GMT) |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2005-05-22 03:21:31 (GMT) |
commit | dbf6fafd2939f4ff959d2eff4181f880ebd7ceaf (patch) | |
tree | f7b1919c60aeadf4e491710c6f364e2f9dbb7e16 /configure.ac | |
parent | 149bce2cdc9dc615871a6c3626cf7a72275aff3c (diff) |
Rough TIFF backend.
Sat May 21 23:18:30 2005 Jonathan Blandford <jrb@redhat.com>
* tiff/tiff-document.c: Rough TIFF backend.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 71c6338..b43a5c0 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,36 @@ AC_DEFINE_UNQUOTED(ALPHA_PARAMS, "$AA_PARMS", [Anti-aliasing parameters for Ghos AC_MSG_RESULT(Antialiasing parameters for Ghostscript: $AA_PARMS) dnl ======================== End of ggv checks ================================= +dnl ================== tiff checks =================================================== +AC_ARG_WITH(libtiff, + [AC_HELP_STRING([--without-libtiff], + [disable TIFF loader for gdk-pixbuf])]) + +dnl Test for libtiff + if test x$with_libtiff != xno && test -z "$LIBTIFF"; then + AC_CHECK_LIB(tiff, TIFFReadScanline, + [AC_CHECK_HEADER(tiffio.h, + TIFF='tiff'; LIBTIFF='-ltiff', + AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))], + [AC_CHECK_LIB(tiff, TIFFWriteScanline, + [AC_CHECK_HEADER(tiffio.h, + TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz', + AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))], + [AC_CHECK_LIB(tiff34, TIFFFlushData, + [AC_CHECK_HEADER(tiffio.h, + TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz', + AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))], + AC_MSG_WARN(*** TIFF loader will not be built (TIFF library not found) ***), -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm) + fi + + if test x$with_libtiff != xno && test -z "$LIBTIFF"; then + AC_MSG_ERROR([ +*** Checks for TIFF loader failed. You can build without it by passing +*** --without-libtiff to configure ]) + fi +AC_SUBST(LIBTIFF) +dnl ================== end of tiff checks ============================================ + dnl ================== djvu checks =================================================== AC_ARG_ENABLE(djvu, @@ -239,6 +269,7 @@ data/evince.desktop.in lib/Makefile pdf/Makefile pixbuf/Makefile +tiff/Makefile ps/Makefile djvu/Makefile dvi/Makefile |