mk_check_function — Check for a function
MODULES="... compiler ..."
mk_check_function
FUNCTION=
func
HEADERDEPS=
headers
Specifies any headers which might be needed in order for a prototype of the function to be available. Unlike autoconf, MakeKit checks that both the function prototype and symbol are available, so specifying this option correctly is vital.
LIBDEPS=
deps
Specifies any libraries which might be needed for the function to be available.
Checks for the availability of a function, setting
result
to the result ("yes" or "no").
If func
is specified as a full function prototype,
the test will only succeed if the function which was found
had the same prototype. If func
is specified as
a simple name, the test will succeed as long as the function
has an available prototype and symbol.