---
name: "sane-config"
section: "1"
platform: "linux"
package: "sane"
version: "1.4.0-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/sane-config"
---

# sane-config(1)

get information about the installed version of libsane

## NAME

sane-config - get information about the installed version of libsane

## SYNOPSIS

**sane-config \[--prefix\] \[--exec-prefix\] \[--libs\] \[--cflags\] \[--ldflags\] \[--version\] \[--help *\[OPTION\]*\]**

## DESCRIPTION

**sane-config** is a tool that is used to determine the compiler and linker flags that should be used to compile and link SANE frontends to a SANE backend library (libsane).

## OPTIONS

**sane-config** accepts the following options (you can't use more than one option at the same time):

- **--version**

  Print the currently installed version of libsane on the standard output.

- **--help OPTION**

  Print a short usage message. If *OPTION* is specified, help for that option (e.g. **--libs**) is printed (if available).

- **--libs**

  Print the additional libraries that are necessary to link a SANE frontend to libsane.

- **--ldflags**

  Print the linker flags that are necessary to link a SANE frontend to libsane.

- **--cflags**

  Print the compiler flags that are necessary to compile a SANE frontend.

- **--prefix**

  Print the prefix used during compilation of libsane.

- **--exec-prefix**

  Print the exec-prefix used during compilation of libsane.

## SEE ALSO

[**sane**(7)](/sane/7.md)

## AUTHOR

This manual page was written by Julien BLACHE \<*jblache@debian.org*\>*,* for the Debian GNU/Linux system (but may be used by others).
