| « Prev 4.2.1 Checking for a Compiler | Table of Contents | Next » 4.2.3 Checking for a D Import |
The following methods can be used to check for the presence of a header file:
check_c_header will check for a C header to be presentcheck_cxx_header will check for a C++ header to be presentEach of these methods take the name of the header file to check for as the first argument, and take an optional Hash of arguments as the second argument.
Example calls:
configure do check_c_header "getopt.h", set_define: "HAVE_GETOPT_H" check_c_header "FreeType2.h" check_cxx_header "memory" end
:check_cpppathOptionally specifies an array of paths to look for the header file in.
| « Prev 4.2.1 Checking for a Compiler | Table of Contents | Next » 4.2.3 Checking for a D Import |