mkc_check_prog(1)

mkc_check_prog1

Detects presense of header file.

Usage

mkc_check_prog [OPTIONS] <progname>

mkc_check_prog -h

Overview

mkc_check_prog takes a name and looks for the file with that name which would be executable. Executable is searched for along the user's PATH. If appropriate executable is found, a path to it is printed. Otherwise, an error message is printed and mkc_check_prog exits with error.

Options

-h

Display help message.

-i progid

progid Will be used as a part of _mkc_* cache file name.

-d

Delete cache and temporary files.

-D

Delete cache files.

Environment

PATH

List of colon-separated directories.

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_prog gawk
   mkc_check_prog c++
   mkc_check_prog lua

Releases

7 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8–13
  2. Arch

-D since Arch Linux 2026-11-01; -d since Arch Linux 2026-11-01.

Author

Aleksey Cheusov <[email protected]>

From mk-configure 0.40.3-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.