cups-config(1) OpenPrinting cups-config(1)

# [NAME](#NAME)

cups-config - get cups api, compiler, directory, and link information (deprecated).

# [SYNOPSIS](#SYNOPSIS)

**cups-config** *--api-version*  
**cups-config** *--build*  
**cups-config** *--cflags*  
**cups-config** *--datadir*  
**cups-config** *--help*  
**cups-config** *--ldflags*  
**cups-config** \[ *--image* ] \[ *--static* ] *--libs*  
**cups-config** *--serverbin*  
**cups-config** *--serverroot*  
**cups-config** *--version*

# [DESCRIPTION](#DESCRIPTION)

The **cups-config** 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. All values are reported to the standard output. **Note:** This command is deprecated and will be removed in a future version of CUPS. The [**pkg-config**(1)](/man/os/cups/pkg-config.1) command should be used instead.

# [OPTIONS](#OPTIONS)

The **cups-config** command accepts the following command-line options:

[**--api-version**](#api-version)

Reports the current API version (major.minor).

[**--build**](#build)

Reports a system-specific build number.

[**--cflags**](#cflags)

Reports the necessary compiler options.

[**--datadir**](#datadir)

Reports the default CUPS data directory.

[**--help**](#help)

Reports the program usage message.

[**--ldflags**](#ldflags)

Reports the necessary linker options.

[**--libs**](#libs)

Reports the necessary libraries to link to.

[**--serverbin**](#serverbin)

Reports the default CUPS binary directory, where filters and backends are stored.

[**--serverroot**](#serverroot)

Reports the default CUPS configuration file directory.

[**--static**](#static)

When used with *--libs*, reports the static libraries instead of the default (shared) libraries.

[**--version**](#version)

Reports the full version number of the CUPS installation (major.minor.patch).

# [EXAMPLES](#EXAMPLES)

Show the currently installed version of CUPS:

```


    cups-config --version
```

Compile a simple one-file CUPS filter:

```


    cc `cups-config --cflags --ldflags` -o filter filter.c \


        `cups-config --libs`
```

# [DEPRECATED OPTIONS](#DEPRECATED_OPTIONS)

The following options are deprecated but continue to work for backwards compatibility:

[**--image**](#image)

Formerly used to add the CUPS imaging library to the list of libraries.

# [SEE ALSO](#SEE_ALSO)

[**cups**(1)](/man/os/cups/cups.1), [**pkg-config**(1)](/man/os/cups/pkg-config.1), CUPS Online Help (http://localhost:631/help)

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2020-2024 by OpenPrinting.

CUPS 2021-03-10

---

Document: cups-config(1) from cups 2.4.19-r6 (Chainguard OS)
Source: https://github.com/OpenPrinting/cups
