3 <!-- SECTION: Man Pages -->
5 <link rel=
"stylesheet" type=
"text/css" href=
"../cups-printable.css">
6 <title>cups-config(
1)
</title>
9 <h1 class=
"title">cups-config(
1)
</h1>
10 <h2 class=
"title"><a name=
"NAME">Name
</a></h2>
11 cups-config - get cups api, compiler, directory, and link information.
12 <h2 class=
"title"><a name=
"SYNOPSIS">Synopsis
</a></h2>
48 <h2 class=
"title"><a name=
"DESCRIPTION">Description
</a></h2>
49 The
<b>cups-config
</b> command allows application developers to determine the necessary command-line options for the compiler and linker, as well as the installation directories for filters, configuration files, and drivers.
50 All values are reported to the standard output.
51 <h2 class=
"title"><a name=
"OPTIONS">Options
</a></h2>
52 The
<b>cups-config
</b> command accepts the following command-line options:
54 <dt><b>--api-version
</b>
55 <dd style=
"margin-left: 5.0em">Reports the current API version (major.minor).
57 <dd style=
"margin-left: 5.0em">Reports a system-specific build number.
59 <dd style=
"margin-left: 5.0em">Reports the necessary compiler options.
61 <dd style=
"margin-left: 5.0em">Reports the default CUPS data directory.
63 <dd style=
"margin-left: 5.0em">Reports the program usage message.
65 <dd style=
"margin-left: 5.0em">Reports the necessary linker options.
67 <dd style=
"margin-left: 5.0em">Reports the necessary libraries to link to.
68 <dt><b>--serverbin
</b>
69 <dd style=
"margin-left: 5.0em">Reports the default CUPS binary directory, where filters and backends are stored.
70 <dt><b>--serverroot
</b>
71 <dd style=
"margin-left: 5.0em">Reports the default CUPS configuration file directory.
73 <dd style=
"margin-left: 5.0em">When used with
<i>--libs
</i>, reports the static libraries instead of the default (shared) libraries.
75 <dd style=
"margin-left: 5.0em">Reports the full version number of the CUPS installation (major.minor.patch).
77 <h2 class=
"title"><a name=
"EXAMPLES">Examples
</a></h2>
78 Show the currently installed version of CUPS:
84 Compile a simple one-file CUPS filter:
87 cc `cups-config --cflags --ldflags` -o filter filter.c \
90 <h2 class=
"title"><a name=
"DEPRECATED_OPTIONS">Deprecated Options
</a></h2>
91 The following options are deprecated but continue to work for backwards compatibility:
94 <dd style=
"margin-left: 5.0em">Formerly used to add the CUPS imaging library to the list of libraries.
96 <h2 class=
"title"><a name=
"SEE_ALSO">See Also
</a></h2>
98 CUPS Online Help (
<a href=
"http://localhost:631/help">http://localhost:
631/help
</a>)
99 <h2 class=
"title"><a name=
"COPYRIGHT">Copyright
</a></h2>
100 Copyright
© 2007-
2019 by Apple Inc.