]>
Commit | Line | Data |
---|---|---|
e1d6a774 | 1 | dnl |
bc44d920 | 2 | dnl "$Id: cups-pdf.m4 6649 2007-07-11 21:46:42Z mike $" |
e1d6a774 | 3 | dnl |
4 | dnl PDF filter configuration stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
bc44d920 | 6 | dnl Copyright 2007 by Apple Inc. |
e1d6a774 | 7 | dnl Copyright 2006 by Easy Software Products, all rights reserved. |
8 | dnl | |
9 | dnl These coded instructions, statements, and computer programs are the | |
bc44d920 | 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/". | |
e1d6a774 | 14 | dnl |
15 | ||
16 | AC_ARG_ENABLE(pdftops, [ --enable-pdftops build pdftops filter, default=auto ]) | |
17 | ||
18 | PDFTOPS="" | |
19 | ||
20 | if test "x$enable_pdftops" != xno; then | |
91c84a35 MS |
21 | AC_PATH_PROG(CUPS_PDFTOPS, pdftops) |
22 | AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS") | |
23 | ||
24 | if test "x$CUPS_PDFTOPS" != x; then | |
25 | AC_MSG_CHECKING(whether to build pdftops filter) | |
26 | if test x$enable_pdftops = xyes -o $uname != Darwin; then | |
27 | PDFTOPS="pdftops" | |
28 | AC_MSG_RESULT(yes) | |
29 | else | |
30 | AC_MSG_RESULT(no) | |
31 | fi | |
32 | elif test x$enable_pdftops = xyes; then | |
33 | AC_MSG_ERROR(Unable to find pdftops program!) | |
34 | exit 1 | |
e1d6a774 | 35 | fi |
36 | fi | |
37 | ||
38 | AC_SUBST(PDFTOPS) | |
39 | ||
40 | dnl | |
bc44d920 | 41 | dnl End of "$Id: cups-pdf.m4 6649 2007-07-11 21:46:42Z mike $". |
e1d6a774 | 42 | dnl |