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">When used with
<i>--libs
</i>, adds the CUPS imaging library to the
68 <dd style=
"margin-left: 5.0em">Reports the necessary linker options.
70 <dd style=
"margin-left: 5.0em">Reports the necessary libraries to link to.
71 <dt><b>--serverbin
</b>
72 <dd style=
"margin-left: 5.0em">Reports the default CUPS binary directory, where filters and backends are stored.
73 <dt><b>--serverroot
</b>
74 <dd style=
"margin-left: 5.0em">Reports the default CUPS configuration file directory.
76 <dd style=
"margin-left: 5.0em">When used with
<i>--libs
</i>, reports the static libraries instead of the default (shared) libraries.
78 <dd style=
"margin-left: 5.0em">Reports the full version number of the CUPS installation (major.minor.patch).
80 <h2 class=
"title"><a name=
"EXAMPLES">Examples
</a></h2>
81 Show the currently installed version of CUPS:
87 Compile a simple one-file CUPS filter:
90 cc `cups-config --cflags --ldflags` -o filter filter.c \
93 <h2 class=
"title"><a name=
"SEE_ALSO">See Also
</a></h2>
94 <a href=
"man-cups.html?TOPIC=Man+Pages"><b>cups
</b>(
1),
</a>
95 CUPS Online Help (
<a href=
"http://localhost:631/help">http://localhost:
631/help
</a>)
96 <h2 class=
"title"><a name=
"COPYRIGHT">Copyright
</a></h2>
97 Copyright
© 2007-
2016 by Apple Inc.