Blame man/cups-config.man

Packit 2fc92b
.\"
Packit 2fc92b
.\" cups-config man page for CUPS.
Packit 2fc92b
.\"
Packit 2fc92b
.\" Copyright 2007-2014 by Apple Inc.
Packit 2fc92b
.\" Copyright 1997-2006 by Easy Software Products.
Packit 2fc92b
.\"
Packit 2fc92b
.\" These coded instructions, statements, and computer programs are the
Packit 2fc92b
.\" property of Apple Inc. and are protected by Federal copyright
Packit 2fc92b
.\" law.  Distribution and use rights are outlined in the file "LICENSE.txt"
Packit 2fc92b
.\" which should have been included with this file.  If this file is
Packit 2fc92b
.\" file is missing or damaged, see the license at "http://www.cups.org/".
Packit 2fc92b
.\"
Packit 2fc92b
.TH cups-config 1 "CUPS" "15 April 2014" "Apple Inc."
Packit 2fc92b
.SH NAME
Packit 2fc92b
cups\-config \- get cups api, compiler, directory, and link information.
Packit 2fc92b
.SH SYNOPSIS
Packit 2fc92b
.B cups\-config
Packit 2fc92b
.I \-\-api\-version
Packit 2fc92b
.br
Packit 2fc92b
.B cups\-config
Packit 2fc92b
.I \-\-build
Packit 2fc92b
.br
Packit 2fc92b
.B cups\-config
Packit 2fc92b
.I \-\-cflags
Packit 2fc92b
.br
Packit 2fc92b
.B cups\-config
Packit 2fc92b
.I \-\-datadir
Packit 2fc92b
.br
Packit 2fc92b
.B cups\-config
Packit 2fc92b
.I \-\-help
Packit 2fc92b
.br
Packit 2fc92b
.B cups\-config
Packit 2fc92b
.I \-\-ldflags
Packit 2fc92b
.br
Packit 2fc92b
.B cups\-config
Packit 2fc92b
[
Packit 2fc92b
.I \-\-image
Packit 2fc92b
] [
Packit 2fc92b
.I \-\-static
Packit 2fc92b
]
Packit 2fc92b
.I \-\-libs
Packit 2fc92b
.br
Packit 2fc92b
.B cups\-config
Packit 2fc92b
.I \-\-serverbin
Packit 2fc92b
.br
Packit 2fc92b
.B cups\-config
Packit 2fc92b
.I \-\-serverroot
Packit 2fc92b
.br
Packit 2fc92b
.B cups-config
Packit 2fc92b
.I \-\-version
Packit 2fc92b
.br
Packit 2fc92b
.SH DESCRIPTION
Packit 2fc92b
The \fBcups-config\fR 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.
Packit 2fc92b
All values are reported to the standard output.
Packit 2fc92b
.SH OPTIONS
Packit 2fc92b
The \fBcups-config\fR command accepts the following command-line options:
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-api-version
Packit 2fc92b
Reports the current API version (major.minor).
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-build
Packit 2fc92b
Reports a system-specific build number.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-cflags
Packit 2fc92b
Reports the necessary compiler options.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-datadir
Packit 2fc92b
Reports the default CUPS data directory.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-help
Packit 2fc92b
Reports the program usage message.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-image
Packit 2fc92b
When used with \fI\-\-libs\fR, adds the CUPS imaging library to the
Packit 2fc92b
list of libraries.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-ldflags
Packit 2fc92b
Reports the necessary linker options.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-libs
Packit 2fc92b
Reports the necessary libraries to link to.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-serverbin
Packit 2fc92b
Reports the default CUPS binary directory, where filters and backends are stored.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-serverroot
Packit 2fc92b
Reports the default CUPS configuration file directory.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-static
Packit 2fc92b
When used with \fI\-\-libs\fR, reports the static libraries instead of the default (shared) libraries.
Packit 2fc92b
.TP 5
Packit 2fc92b
.B \-\-version
Packit 2fc92b
Reports the full version number of the CUPS installation (major.minor.patch).
Packit 2fc92b
.SH EXAMPLES
Packit 2fc92b
Show the currently installed version of CUPS:
Packit 2fc92b
.nf
Packit 2fc92b
Packit 2fc92b
    cups-config \-\-version
Packit 2fc92b
Packit 2fc92b
.fi
Packit 2fc92b
Compile a simple one-file CUPS filter:
Packit 2fc92b
.nf
Packit 2fc92b
Packit 2fc92b
    cc `cups\-config \-\-cflags \-\-ldflags` \-o filter filter.c \\
Packit 2fc92b
        `cups\-config \-\-libs`
Packit 2fc92b
.fi
Packit 2fc92b
.SH SEE ALSO
Packit 2fc92b
.BR cups (1),
Packit 2fc92b
CUPS Online Help (http://localhost:631/help)
Packit 2fc92b
.SH COPYRIGHT
Packit 2fc92b
Copyright \[co] 2007-2017 by Apple Inc.