In some cases, you may want to set additional compiler options for
use within the Gnulib import directory. For example, the
‘relocatable’ module operates better if you define the C macros
INSTALLDIR during its
There are two ways to do so: Use of the
--makefile-name, and a kitchen-sink module.
--makefile-name, you are
gnulib-tool to generate an includable
portion, rather than a self-contained
Makefile.am. For example,
when you use
Makefile.gnulib, and you will provide a
Makefile.am that includes
through a line such as
Before this include, you need to initialize this set of
pkgdata_DATA(only with Automake ≥ 1.11.4)
AUTOMAKE_OPTIONS should be initialized as described in
Changing Automake’s Behavior in GNU Automake.
The other variables can be initialized to empty. However, you will most
likely want to initialize some of them with non-empty values, in order
to achieve the desired customization.
The other approach, the kitchen-sink module, is more advanced. See chapter Extending Gnulib.