Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would it be possible to get an option for --disable-tiff #1248

Closed
michaelrsweet opened this issue Aug 17, 2005 · 2 comments
Closed

Would it be possible to get an option for --disable-tiff #1248

michaelrsweet opened this issue Aug 17, 2005 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2-feature
CUPS.org User: Ron

I was wondering if it would be possible to make tiff support in cups optional. Right now if it doesn't detect it, it doesn't use it, but something extra is required, --disable-tiff. Here is a patch for it. Would it be possible to get it included?

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

FWIW, I also added --disable-foo options for the JPEG and PNG libraries, fixed the indentation, and used AC_MSG_NOTICE instead of echo.

@michaelrsweet
Copy link
Collaborator Author

"tiff.patch":

--- config-scripts/cups-image.m4 2005-05-10 18:24:35.000000000 -0700
+++ config-scripts/cups-image.m4 2005-05-10 18:26:10.000000000 -0700
@@ -57,10 +57,16 @@ AC_CHECK_HEADER(png.h,
AC_DEFINE(HAVE_LIBPNG)
LIBPNG="-lpng -lm"))

-AC_CHECK_HEADER(tiff.h,

  • AC_CHECK_LIB(tiff, TIFFReadScanline,
  • AC_DEFINE(HAVE_LIBTIFF)
  • LIBTIFF="-ltiff"))
    +AC_ARG_ENABLE(tiff, [ --enable-tiff turn on TIFF support, default=yes])

+if test x$enable_tiff != xno; then

  • AC_CHECK_HEADER(tiff.h,
  •   AC_CHECK_LIB(tiff, TIFFReadScanline,
    
  •   AC_DEFINE(HAVE_LIBTIFF)
    
  •   LIBTIFF="-ltiff"))
    
    +else
  • echo "libtiff support disabled..."
    +fi

dnl Restore original LIBS settings...
LIBS="$SAVELIBS"

@michaelrsweet michaelrsweet added the enhancement New feature or request label Mar 17, 2016
@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant