MKC_CHECK_HEADER(1) | MKC_CHECK_HEADER(1) |
mkc_check_header - detects presense of header file.
mkc_check_header [OPTIONS] <headers>
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.
mkc_check_header stdint.h
mkc_check_header getopt.h
mkc_check_header sys/types.h,sys/stat.h,fts.h
#include <header1.h>
... #include <headerN.h> int __fake_variable;
Aleksey Cheusov <vle@gmx.net>
March 30, 2019 |