--- 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"
