ACLOCAL(1)

πŸ“¦
version 1.17 Β· 3 versions
, in alpine 3.22

πŸ’… aclocal(1) β€” the girlies' guide to User Commands

okay so bestie, welcome to aclocal, one of those little Unix manual pages that's actually doing a LOT under the hood. she lives in the User Commands section of the manual, and she's here to make your configure.ac dreams come true ✨


πŸŽ€ NAME πŸŽ€

aclocal β€” generate aclocal.m4 by scanning configure.ac

like... that's literally her whole job and she's iconic for it πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

aclocal [OPTION]...

yes bestie, just toss options at her, she can handle it πŸ™Œ


🌸 DESCRIPTION 🌸

Generate 'aclocal.m4' by scanning 'configure.ac' or 'configure.in'

that's it. that's the vibe. she reads your configure file, she spits out an m4 file. main character energy fr fr πŸ‘‘


✨ OPTIONS ✨

  • --automake-acdir=DIR β€” the directory that's holding all the m4 files automake provides (her own personal stash πŸ’…)
  • --aclocal-path=PATH β€” a colon-separated list of directories to go searching through for third-party local files, iykyk
  • --system-acdir=DIR β€” the directory holding third-party files that live system-wide πŸ—‚οΈ
  • --diff[=COMMAND] β€” run COMMAND [diff -u] on the M4 files that would be changed. ngl, this one implies --install AND --dry-run, so it's doing the most (affectionate)
  • --dry-run β€” pretend to do the thing, but do NOT actually update any file πŸ™ˆ like a rehearsal, not the real show
  • --force β€” always update the output file, no questions asked, no matter what πŸ’€
  • --help β€” print this help, then exit. classic. love her for it 🫢
  • -I DIR β€” add that directory to the search list for .m4 files πŸ”
  • --install β€” copy those third-party files over to the first -I directory πŸ“¦
  • --output=FILE β€” put the output in FILE (default is aclocal.m4, bestie)
  • --print-ac-dir β€” print the name of the directory holding system-wide third-party m4 files, then exit πŸ–¨οΈβœ¨
  • --verbose β€” don't be silent, spill the tea β˜•
  • --version β€” print version number, then exit πŸ”’
  • -W, --warnings=CATEGORY β€” report the warnings falling in CATEGORY. defaults to $WARNINGS (yes, an environment variable, she's fancy πŸ’œ)

⭐ Warning categories are: ⭐

  • cross β€” cross compilation issues
  • gnu β€” GNU coding standards (this is the 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. every single one. no survivors πŸ”₯
  • none β€” turn off all the warnings. silence. peace. quiet. 😌
  • no-CATEGORY β€” turn off warnings in CATEGORY (so like, no-portability, you get the vibe)
  • error β€” treat all enabled warnings as errors 😭 so like, warnings but make them devastating

πŸ‘‘ AUTHOR πŸ‘‘

Written by Tom Tromey <tromey@redhat.com>

and Alexandre Duret-Lutz <adl@gnu.org>.

two legends, honestly. we stan πŸ’–


πŸ› REPORTING BUGS πŸ›

found a bug? tell them!! they wanna know!! don't suffer in silence bestie 🫢


Copyright Β© 2024 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. like none. zero. don't come for them if it breaks 😭

🧚 SEE ALSO 🧚

The full documentation for aclocal is maintained as a Texinfo manual. If the info and aclocal programs are properly installed at your site, the command

info automake

should give you access to the complete manual. go read it, it's giving lore πŸ“šβœ¨


okay so that's the whole page, and ngl you ate that πŸ’…

GNU automake 1.17 πŸ¦‹ β€” dated May 2025 β€” catch you in the next manpage, bestie!! πŸŽ€πŸ’–

πŸ“¦ where this page comes from