---
name: "mkc_check_header"
section: "1"
platform: "linux"
package: "mk-configure"
version: "0.40.3-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mkc_check_header"
---

# mkc\_check\_header(1)

detects presense of header file.

## NAME

mkc\_check\_header - detects presense of header file.

## SYNOPSIS

**mkc\_check\_header** *\[OPTIONS\] \<headers\>*

## DESCRIPTION

**mkc\_check\_header** detects presense of header file. As a result it prints either 1 (true) or 0 (false) to stdout. *headers* may be either a single header file or a list of headers separated by comma. In this case all mentioned headers are put into a single .c file and *${CC}* is run. By default *$CC -c* is used for checking. By default, temporary and cache files \_mkc\_header\_*lheader\_h*.{c,err,res} are created under **MKC\_CACHEDIR** directory. Here, *lheader\_h* is the last header from comma-separated list *headers*.

## OPTIONS

- **-h**

  Display help message.

- **-e**

  Use *$CC -E* for checking instead of *$CC -c*.

- **-d**

  Delete cache and temporary files.

- **-D**

  Delete cache files.

## ENVIRONMENT

- **CC**

  Compiler. By default *cc* is used.

- **CPPFLAGS, CFLAGS**

  Options passed to the compiler.

- **MKC\_VERBOSE**

  If set to 1, verbose messages are output to stderr.

- **MKC\_SHOW\_CACHED**

  If set to 1 and MKC\_VERBOSE is set to 1, cached results are output to stderr.

- **MKC\_CACHEDIR**

  Directory where temporary and cache files are created. If unset they are created in a current directory.

- **MKC\_NOCACHE**

  All results are cached unless MKC\_NOCACHE variable is set to 1.

- **MKC\_DELETE\_TMPFILES**

  If set to 1, temporary files are removed.

## EXAMPLES

```
   mkc_check_header stdint.h
   mkc_check_header getopt.h
   mkc_check_header sys/types.h,sys/stat.h,fts.h
```

## C FILE CONTENT

```
#include <header1.h>
 ...
#include <headerN.h>
int __fake_variable;
```

## AUTHOR

Aleksey Cheusov \<vle@gmx.net\>
