2 dnl "$Id: cups-pdf.m4 7449 2008-04-14 18:27:53Z mike $"
4 dnl PDF filter configuration stuff for the Common UNIX Printing System (CUPS).
6 dnl Copyright 2007-2009 by Apple Inc.
7 dnl Copyright 2006 by Easy Software Products, all rights reserved.
9 dnl These coded instructions, statements, and computer programs are the
10 dnl property of Apple Inc. and are protected by Federal copyright
11 dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 dnl which should have been included with this file. If this file is
13 dnl file is missing or damaged, see the license at "http://www.cups.org/".
16 AC_ARG_WITH(pdftops, [ --with-pdftops set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops ])
22 case "x$with_pdftops" in
24 if test $uname != Darwin; then
25 AC_PATH_PROG(CUPS_PDFTOPS, pdftops)
26 if test "x$CUPS_PDFTOPS" != x; then
27 AC_DEFINE(HAVE_PDFTOPS)
30 AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs)
31 if test "x$CUPS_GHOSTSCRIPT" != x; then
32 AC_DEFINE(HAVE_GHOSTSCRIPT)
40 AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs)
41 if test "x$CUPS_GHOSTSCRIPT" != x; then
42 AC_DEFINE(HAVE_GHOSTSCRIPT)
45 AC_MSG_ERROR(Unable to find gs program!)
50 x/*/gs) # Use /path/to/gs without any check:
51 CUPS_GHOSTSCRIPT="$with_pdftops"
52 AC_DEFINE(HAVE_GHOSTSCRIPT)
57 AC_PATH_PROG(CUPS_PDFTOPS, pdftops)
58 if test "x$CUPS_PDFTOPS" != x; then
59 AC_DEFINE(HAVE_PDFTOPS)
62 AC_MSG_ERROR(Unable to find pdftops program!)
67 x/*/pdftops) # Use /path/to/pdftops without any check:
68 CUPS_PDFTOPS="$with_pdftops"
69 AC_DEFINE(HAVE_PDFTOPS)
73 xnone) # Make no pdftops filter if with_pdftops=none:
76 *) # Invalid with_pdftops value:
77 AC_MSG_ERROR(Invalid with_pdftops value!)
82 AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
83 AC_DEFINE_UNQUOTED(CUPS_GHOSTSCRIPT, "$CUPS_GHOSTSCRIPT")
87 dnl End of "$Id: cups-pdf.m4 7449 2008-04-14 18:27:53Z mike $".