Linux command
aclocal 命令
趣味
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Generate
aclocal
Example
aclocal -I [m4/]
aclocal --print-ac-dir
Example
aclocal --warnings=obsolete
Install
aclocal -I [m4/] --install
说明
aclocal is part of the GNU Automake build system. It generates an aclocal.m4 file by scanning configure.ac (or configure.in) for macro invocations and collecting the required macro definitions from installed .m4 files. The generated aclocal.m4 file contains all the M4 macros needed by autoconf to process configure.ac. This tool is essential for projects using the GNU build system (autotools) as it bridges Automake and Autoconf.
参数
- -I _dir_
- Add directory to search path for .m4 files
- --output=_file_
- Write output to specified file instead of aclocal.m4
- --print-ac-dir
- Print the directory where system .m4 files are stored
- --warnings=_category_
- Enable warnings: syntax, unsupported, obsolete, all, none, error
- --install
- Copy third-party macros to the local m4 directory (requires -I)
- --force
- Always regenerate output file
- --dry-run
- Do not actually create or modify any files
- --verbose
- Print names of files being processed
- --version
- Print version information
- --help
- Display help information
FAQ
What is the aclocal command used for?
aclocal is part of the GNU Automake build system. It generates an aclocal.m4 file by scanning configure.ac (or configure.in) for macro invocations and collecting the required macro definitions from installed .m4 files. The generated aclocal.m4 file contains all the M4 macros needed by autoconf to process configure.ac. This tool is essential for projects using the GNU build system (autotools) as it bridges Automake and Autoconf.
How do I run a basic aclocal example?
Run `aclocal` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -I _dir_ do in aclocal?
Add directory to search path for .m4 files