LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

autoheader

Generate template header files for configure

TLDR

Generate config.h.in
$ autoheader
copy
Generate from specific input
$ autoheader [configure.ac]
copy
Force regeneration
$ autoheader --force
copy

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

INSTALL

sudo dnf install autoconf
copy
sudo pacman -S autoconf
copy
sudo apk add autoconf
copy
sudo zypper install autoconf
copy
brew install autoconf
copy
nix profile install nixpkgs#autoconf
copy

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

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid