--- config-scripts/cups-pdf.m4.orig 2009-03-12 22:50:44.000000000 +0100 +++ config-scripts/cups-pdf.m4 2009-08-04 12:43:12.000000000 +0200 @@ -13,7 +13,7 @@ dnl which should have been included wi dnl file is missing or damaged, see the license at "http://www.cups.org/". dnl -AC_ARG_WITH(pdftops, [ --with-pdftops set pdftops filter (gs,pdftops,none), default=pdftops ]) +AC_ARG_WITH(pdftops, [ --with-pdftops set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops ]) PDFTOPS="" CUPS_PDFTOPS="" @@ -47,6 +47,12 @@ case "x$with_pdftops" in fi ;; + x/*/gs) # Use /path/to/gs without any check: + CUPS_GHOSTSCRIPT="$with_pdftops" + AC_DEFINE(HAVE_GHOSTSCRIPT) + PDFTOPS="pdftops" + ;; + xpdftops) AC_PATH_PROG(CUPS_PDFTOPS, pdftops) if test "x$CUPS_PDFTOPS" != x; then @@ -57,6 +63,17 @@ case "x$with_pdftops" in exit 1 fi ;; + + x/*/pdftops) # Use /path/to/pdftops without any check: + CUPS_PDFTOPS="$with_pdftops" + AC_DEFINE(HAVE_PDFTOPS) + PDFTOPS="pdftops" + ;; + + *) # Invalid with_pdftops value: + AC_MSG_ERROR(Invalid with_pdftops value!) + exit 1 + ;; esac AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")