4 * Configuration file for CUPS.
6 * Copyright 2007-2011 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products.
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
16 #ifndef _CUPSFILTERS_CONFIG_H_
17 #define _CUPSFILTERS_CONFIG_H_
21 * Version of software...
24 #define CUPSFILTERS_SVERSION ""
28 * Where are files stored?
30 * Note: These are defaults, which can be overridden by environment
31 * variables at run-time...
34 #define CUPS_DATADIR "/usr/share/cups"
35 #define CUPS_FONTPATH "/usr/share/cups/fonts"
36 #define CUPS_SERVERBIN "/usr/lib/cups"
40 * Do we have various image libraries?
50 * Do we have the long long type?
56 # define CUPS_LLFMT "%lld"
57 # define CUPS_LLCAST (long long)
59 # define CUPS_LLFMT "%ld"
60 # define CUPS_LLCAST (long)
61 #endif /* HAVE_LONG_LONG */
65 * Do we have the strtoll() function?
71 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
72 #endif /* !HAVE_STRTOLL */
76 * Do we have the strXXX() functions?
85 * Do we have the (v)snprintf() functions?
93 * What signal functions to use?
101 * What wait functions to use?
109 * Do we have <sys/ioctl.h>?
112 #undef HAVE_SYS_IOCTL_H
116 * Default settings for the pdftops filter...
119 #define CUPS_PDFTOPS_RENDERER GS
120 #define CUPS_PDFTOPS_MAX_RESOLUTION 1440
123 * Location of the poppler/Xpdf pdftops program...
126 #undef HAVE_POPPLER_PDFTOPS
127 #undef HAVE_POPPLER_PDFTOPS_WITH_ORIGPAGESIZES
128 #undef HAVE_POPPLER_PDFTOPS_WITH_RESOLUTION
129 #define CUPS_POPPLER_PDFTOPS "/usr/bin/pdftops"
132 * Location of the Ghostscript gs program...
135 #undef HAVE_GHOSTSCRIPT
136 #undef HAVE_GHOSTSCRIPT_PS2WRITE
137 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
141 * Select/poll interfaces...
150 * Which random number generator function to use...
153 #undef HAVE_ARC4RANDOM
157 #ifdef HAVE_ARC4RANDOM
158 # define CUPS_RAND() arc4random()
159 # define CUPS_SRAND(v) arc4random_stir()
160 #elif defined(HAVE_RANDOM)
161 # define CUPS_RAND() random()
162 # define CUPS_SRAND(v) srandom(v)
163 #elif defined(HAVE_LRAND48)
164 # define CUPS_RAND() lrand48()
165 # define CUPS_SRAND(v) srand48(v)
167 # define CUPS_RAND() rand()
168 # define CUPS_SRAND(v) srand(v)
169 #endif /* HAVE_ARC4RANDOM */
172 /* CUPS Version is 1.1 */
175 /* CUPS Version is 1.4 or newer */
178 /* Use libjpeg instead of builtin jpeg decoder. */
179 #undef ENABLE_LIBJPEG
181 /* Use zlib instead of builtin zlib decoder. */
184 /* Have FreeType2 include files */
185 #undef HAVE_FREETYPE_H
187 /* Define to 1 if you have the <inttypes.h> header file. */
188 #undef HAVE_INTTYPES_H
190 /* Define to 1 if you have the "cups" library (-lcups). */
191 #define HAVE_LIBCUPS 1
193 /* Define to 1 if you have the "cupsimage" library (-lcupsimage). */
194 #define HAVE_LIBCUPSIMAGE 1
196 /* Define to 1 if you have the <memory.h> header file. */
199 /* have new GfxFontType */
200 #undef HAVE_NEW_GFX_FONTTYPE
202 /* Define to 1 if you have the "popen" function. */
205 /* Define to 1 if you have the <stdint.h> header file. */
208 /* Define to 1 if you have the <stdlib.h> header file. */
209 #define HAVE_STDLIB_H 1
211 /* Define to 1 if you have the <dirent.h> header file, and it defines "DIR".
215 /* Define to 1 if you have the <ndir.h> header file, and it defines "DIR". */
218 /* Define to 1 if you have the <sys/dir.h> header file, and it defines "DIR".
220 #undef HAVE_SYS_DIR_H
222 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines "DIR".
224 #undef HAVE_SYS_NDIR_H
226 /* Define to 1 if you have the <sys/stat.h> header file. */
227 #define HAVE_SYS_STAT_H 1
229 /* Define to 1 if you have the <sys/types.h> header file. */
230 #define HAVE_SYS_TYPES_H 1
232 /* Define to 1 if you have the <unistd.h> header file. */
233 #define HAVE_UNISTD_H 1
235 /* Define to 1 if you have the <zlib.h> header file. */
238 /* Parser::Parser has two arguments. */
239 #undef PARSER_HAS_2_ARGS
241 /* Define to 1 if you have the "poppler" library (-lpoppler). */
242 #undef HAVE_LIBPOPPLER
244 /* New font type enumeration */
245 #undef FONTTYPE_ENUM2
247 /* poppler version */
248 #undef POPPLER_VERSION_MAJOR
249 #undef POPPLER_VERSION_MINOR
250 #undef POPPLER_VERSION_MICRO
252 /* SplashFontEngine enableSlightHinting */
253 #undef SPLASH_SLIGHT_HINTING
255 /* GlobalParams::GlobalParams has a argument. */
256 #undef GLOBALPARAMS_HAS_A_ARG
258 /* Have Stream::getUndecodedStream */
259 #undef HAVE_GETUNDECODEDSTREAM
261 /* Have UGooString.h */
262 #undef HAVE_UGOOSTRING_H
264 /* Old CharCodeToUnicode::mapToUnicode */
265 #undef OLD_MAPTOUNICODE
267 /* Old GfxColorSpace::parse */
270 /* Poppler uses CMS */
273 /* Poppler data dir */
274 #undef POPPLER_DATADIR
276 /* Are we using lcms1? */
279 #endif /* !_CUPSFILTERS_CONFIG_H_ */