| « Prev 4.2.3 Checking for a D Import | Table of Contents | Next » 4.2.5 Checking for a Program |
The check_lib method can be used to check for the presence of a library.
This method takes the name of the library to check for as the first argument, and take an optional Hash of arguments as the second argument.
Example calls:
configure do check_lib "kpty", fail: false, set_define: "HAVE_LIBKPTY" check_lib "GL" end
:check_libpathOptionally specifies an array of paths to look for the library in.
:useIf not set, the library will be used by default in all Environment objects.
If set, the library will only be used in Environment objects that have a
matching :use flag set.
| « Prev 4.2.3 Checking for a D Import | Table of Contents | Next » 4.2.5 Checking for a Program |