1<!DOCTYPE HTML> 2<html> 3<!-- SECTION: Man Pages --> 4<head> 5 <link rel="stylesheet" type="text/css" href="../cups-printable.css"> 6 <title>cups-config(1)</title> 7</head> 8<body> 9<h1 class="title">cups-config(1)</h1> 10<h2 class="title"><a name="NAME">Name</a></h2> 11cups-config - get cups api, compiler, directory, and link information (deprecated). 12<h2 class="title"><a name="SYNOPSIS">Synopsis</a></h2> 13<b>cups-config</b> 14<i>--api-version</i> 15<br> 16<b>cups-config</b> 17<i>--build</i> 18<br> 19<b>cups-config</b> 20<i>--cflags</i> 21<br> 22<b>cups-config</b> 23<i>--datadir</i> 24<br> 25<b>cups-config</b> 26<i>--help</i> 27<br> 28<b>cups-config</b> 29<i>--ldflags</i> 30<br> 31<b>cups-config</b> 32[ 33<i>--image</i> 34] [ 35<i>--static</i> 36] 37<i>--libs</i> 38<br> 39<b>cups-config</b> 40<i>--serverbin</i> 41<br> 42<b>cups-config</b> 43<i>--serverroot</i> 44<br> 45<b>cups-config</b> 46<i>--version</i> 47<br> 48<h2 class="title"><a name="DESCRIPTION">Description</a></h2> 49The <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. 50All values are reported to the standard output. 51<b>Note:</b> 52This command is deprecated and will be removed in a future version of CUPS. 53The 54<b>pkg-config</b>(1) 55command should be used instead. 56<h2 class="title"><a name="OPTIONS">Options</a></h2> 57The <b>cups-config</b> command accepts the following command-line options: 58<dl class="man"> 59<dt><b>--api-version</b> 60<dd style="margin-left: 5.0em">Reports the current API version (major.minor). 61<dt><b>--build</b> 62<dd style="margin-left: 5.0em">Reports a system-specific build number. 63<dt><b>--cflags</b> 64<dd style="margin-left: 5.0em">Reports the necessary compiler options. 65<dt><b>--datadir</b> 66<dd style="margin-left: 5.0em">Reports the default CUPS data directory. 67<dt><b>--help</b> 68<dd style="margin-left: 5.0em">Reports the program usage message. 69<dt><b>--ldflags</b> 70<dd style="margin-left: 5.0em">Reports the necessary linker options. 71<dt><b>--libs</b> 72<dd style="margin-left: 5.0em">Reports the necessary libraries to link to. 73<dt><b>--serverbin</b> 74<dd style="margin-left: 5.0em">Reports the default CUPS binary directory, where filters and backends are stored. 75<dt><b>--serverroot</b> 76<dd style="margin-left: 5.0em">Reports the default CUPS configuration file directory. 77<dt><b>--static</b> 78<dd style="margin-left: 5.0em">When used with <i>--libs</i>, reports the static libraries instead of the default (shared) libraries. 79<dt><b>--version</b> 80<dd style="margin-left: 5.0em">Reports the full version number of the CUPS installation (major.minor.patch). 81</dl> 82<h2 class="title"><a name="EXAMPLES">Examples</a></h2> 83Show the currently installed version of CUPS: 84<pre class="man"> 85 cups-config --version 86 87</pre> 88Compile a simple one-file CUPS filter: 89<pre class="man"> 90 cc `cups-config --cflags --ldflags` -o filter filter.c \ 91 `cups-config --libs` 92</pre> 93<h2 class="title"><a name="DEPRECATED_OPTIONS">Deprecated Options</a></h2> 94The following options are deprecated but continue to work for backwards compatibility: 95<dl class="man"> 96<dt><b>--image</b> 97<dd style="margin-left: 5.0em">Formerly used to add the CUPS imaging library to the list of libraries. 98</dl> 99<h2 class="title"><a name="SEE_ALSO">See Also</a></h2> 100<a href="man-cups.html?TOPIC=Man+Pages"><b>cups</b>(1),</a> 101<b>pkg-config</b>(1), 102CUPS Online Help (<a href="http://localhost:631/help">http://localhost:631/help</a>) 103<h2 class="title"><a name="COPYRIGHT">Copyright</a></h2> 104Copyright © 2020-2024 by OpenPrinting. 105 106</body> 107</html> 108