c_define (optname)
| Specify a global define that will be passed to the compiler.
An
optname of "FOO" would result in the
-DFOO flag being passed to the compiler.
This value is also used by
build.proj.mk. |
c_incdir (dir)
| Specify a directory for include files.
This results in the
-Idir flag being added to the compiler command line.
This value is also used by
build.proj.mk. |
c_incdir_config (dir)
| Specify a target directory for individual include files with configure-script
generated statements (i.e.,
HAVE_FOO is written to
have_foo.h in the specified directory).
Pass an empty argument to disable.
By default,
config/ is used.
|
c_include_config (file)
| Specify a monolithic C include file which will contain configure-script
generated statements (i.e.,
HAVE_FOO defines).
Pass an empty argument to disable (default).
|
c_incprep (dir)
| Specify a target directory for preprocessed C header files.
The ./configure option
--includes is a BSDBuild extension which gives the user the option of either generating
preprocessed headers in the working directory ("--includes=yes", the default)
or alternatively, to create a set of symbolic links to the original headers
in the source directory ("--includes=link").
|
c_option (option)
| Provide a gcc-style compiler option, such as
-Wall, -Werror or
-Wmissing-prototypes. For environments using other compilers, BSDBuild will attempt to set
equivalent options.
|
check_func (fn[, ...])
| Check for the existence of one or more C functions.
If a function
fn called
foo() exists, then
HAVE_FUNCTION_FOO is set.
|
check_func_opts (cflags, libs, fn[, ...])
| Variant of
check_function() with additional
CFLAGS and
LIBS. |
check_header (name[, ...])
| Check whether one or more header files are available (with the current CFLAGS).
If a header such as
sys/foo.h is found, then
HAVE_SYS_FOO_H is set.
|
check_header_opts (cflags, libs, header[, ...])
| Variant of
check_header() with additional
CFLAGS and
LIBS. |
c_extra_warnings() | Request extra compiler warnings.
Exact interpretation is compiler specific.
|
c_fatal_warnings() | Fail compilation if warnings are encountered.
|
hdefine (opt, val)
| Define a C preprocessor style header option.
opt is an unquoted string (uppercase by convention), and the value
val is a string enclosed in double quotes.
For example, if
opt is
ENABLE_FOO, a file
config/enable_foo.h will be generated by configure.
|
hdefine_unquoted (opt, val)
| Variant of
hdefine() which keeps
val unquoted instead of interpreting it as a string.
|
hdefine_if (condition, opt)
| If
condition evaluates true, then generate a define with
hdefine (opt) otherwise call
hundef (opt) . to generate an #undef.
|
hundef (opt)
| Write an #undef directive to
which writes an #undef directive to
config/<option>.h (the opposite of
hdefine()). |
hundef_if (condition, opt)
| If
condition evaluates true, then call
hundef (opt) .
|
ld_option (option)
| Provide a ld-style linker option, such as
-g or
-nostdlib. |
mappend (opt, val)
| Append a space and
val to the exported
make variable
opt. |
mdefine (opt, val)
| Define an exported
make variable
opt with value
val. |