AUTOCONF(1)

๐Ÿ‘‘ NAME ๐Ÿ‘‘

okay so bestie, meet autoconf โ€” she's a User Command and her whole thing is Generate configuration scripts. that's it. that's the job. iconic behavior honestly ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

autoconf [OPTION]... [TEMPLATE-FILE]

โœจ DESCRIPTION โœจ

so here's the tea ๐Ÿซ–: autoconf generates a configuration script. from what, you ask? from a TEMPLATE-FILE if you give it one, or from 'configure.ac' if that one's hanging around, or else from 'configure.in'. yes she has a whole priority list, she's organized like that.

and where does the output go? ๐Ÿ‘€ if you passed a TEMPLATE-FILE, it goes to standard output. if you didn't, it goes into 'configure'. no cap.


๐Ÿ”ง Operation modes:

  • -h, --help โ€” prints the help, then dips. bye ๐Ÿ‘‹
  • -V, --version โ€” prints the version number, then exits.
  • -v, --verbose โ€” verbosely report processing. she will tell you EVERYTHING.
  • -d, --debug โ€” don't remove temporary files. leaving the mess behind on purpose, fr.
  • -f, --force โ€” consider all files obsolete.
  • -o, --output=FILE โ€” save output in FILE. (stdout is the default, just so you know.)
  • -W, --warnings=CATEGORY โ€” report the warnings falling in CATEGORY. and yes, a comma-separated list is accepted, she's flexible like that ๐Ÿ’–

โš ๏ธ Warning categories are:

  • cross โ€” cross compilation issues.
  • gnu โ€” GNU coding standards. (default in gnu and gnits modes)
  • obsolete โ€” obsolete features or constructions. (default)
  • override โ€” user redefinitions of Automake rules or variables.
  • portability โ€” portability issues. (default in gnu and gnits modes)
  • portability-recursive โ€” nested Make variables. (default with -Wportability)
  • extra-portability โ€” extra portability issues related to obscure tools.
  • syntax โ€” dubious syntactic constructs. (default)
  • unsupported โ€” unsupported or incomplete features. (default)

๐Ÿฆ‹ -W also understands:

  • all โ€” turn on all the warnings. ALL of them. go big or go home.
  • none โ€” turn off all the warnings. silence is golden โœจ
  • no-CATEGORY โ€” turn off warnings in CATEGORY.
  • error โ€” treat all enabled warnings as errors. scary but effective ๐Ÿ˜ญ

๐Ÿ“š Library directories:

  • -B, --prepend-include=DIR โ€” prepend directory DIR to search path.
  • -I, --include=DIR โ€” append directory DIR to search path.

(one goes in the front, one goes in the back. placement matters, iykyk ๐Ÿ’…)


๐Ÿ” Tracing:

  • -t, --trace=MACRO[:FORMAT] โ€” report the list of calls to MACRO.
  • -i, --initialization โ€” also trace Autoconf's initialization process.
๐Ÿšจ real talk: in tracing mode, no configuration script is created. like, at all. don't come for her later.

and FORMAT defaults to '$f:$l:$n:$%' โ€” and if you wanna know more about FORMAT, go read autom4te --help. she'll fill you in ๐Ÿซถ


๐Ÿงš AUTHOR ๐Ÿงš

Written by David J. MacKenzie and Akim Demaille. legends, honestly. ๐Ÿ‘‘


๐Ÿ’Œ REPORTING BUGS ๐Ÿ’Œ

found a bug? not me being the one to tell you but โ€” report it to bug-autoconf@gnu.org, or slide into the Savannah support page:

https://savannah.gnu.org/support/?group=autoconf

Copyright ยฉ 2026 Free Software Foundation, Inc.

License: GPLv3+/Autoconf: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html https://gnu.org/licenses/exceptions.html

This is free software: you are free to change and redistribute it. and there is NO WARRANTY, to the extent permitted by law. (that last part is in all caps in the original and it's in all caps here too, because it MATTERS ๐Ÿ”ฅ)


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

and bestie, the full documentation for Autoconf is maintained as a Texinfo manual ๐Ÿ“– if you wanna read it locally, just run:

info autoconf

you can also check out the Web version of the manual right here:

https://gnu.org/software/autoconf/manual/

okay that's the whole page!! this is GNU Autoconf 2.73, and she was written up in March 2026, filed under AUTOCONF(1) in the User Commands section ๐Ÿ’–โœจ go forth and configure, bestie ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from