)
AM_CONDITIONAL([ENABLE_PSTOPS], [test "x$enable_pstops" = "xyes"])
+# ===================
+# Check for texttopdf
+# ===================
+AC_ARG_ENABLE([texttopdf],
+ [AS_HELP_STRING([--disable-texttopdf], [Disable the texttopdf filter.])],
+ [enable_texttopdf="$enableval"],
+ [enable_texttopdf=yes]
+)
+AM_CONDITIONAL([ENABLE_TEXTTOPDF], [test "x$enable_texttopdf" = "xyes"])
+
# =====================
# Check for rastertopwg
# =====================
AC_CONFIG_FILES([
Makefile
filter/foomatic-rip/foomatic-rip.1
+ mime/cupsfilters-individual.convs
])
AC_OUTPUT
ippfind-path: ${with_ippfind_path}
imagefilters: ${enable_imagefilters}
pstops: ${enable_pstops}
+ texttopdf: ${enable_texttopdf}
rastertopwg: ${enable_rastertopwg}
shell: ${with_shell}
universal CUPS filter: ${enable_universal_cups_filter}
#
application/pdf application/vnd.cups-pdf 66 pdftopdf
-text/plain application/pdf 32 texttopdf
+@ENABLE_TEXTTOPDF_TRUE@text/plain application/pdf 32 texttopdf
image/pwg-raster application/pdf 32 pwgtopdf
image/png application/vnd.cups-pdf 65 imagetopdf
image/jpeg application/vnd.cups-pdf 65 imagetopdf