autoheader
Generate template header files for configure
TLDR
SYNOPSIS
autoheader [-f] [-W category] [input]
DESCRIPTION
autoheader creates a template header file (config.h.in) for configure to use. It scans configure.ac for AC_DEFINE macros and generates corresponding #define statements.This is part of the autotools workflow, typically run before autoconf.
PARAMETERS
-f, --force
Force regeneration even if current-W category, --warnings=category
Report warnings for the given category (e.g. all, none, error, obsolete).-I dir, --include=dir
Append dir to the include search path. Accumulates over multiple uses.-B dir, --prepend-include=dir
Prepend dir to the include search path.-v, --verbose
Report processing steps.-d, --debug
Do not remove the temporary files.
WORKFLOW
1. Write configure.ac with AC_DEFINE macros2. Run autoheader to generate config.h.in3. Run autoconf to generate configure4. Users run ./configure to generate config.h
CAVEATS
Part of autotools; typically called by autoreconf. Output is template; actual config.h created by configure. Not needed for all projects.
HISTORY
autoheader is part of GNU Autoconf, developed to manage configuration header files in portable software since the early 1990s.
SEE ALSO
autoconf(1), autoreconf(1), automake(1)
