aclocal

用途

创建aclocal.m4文件

语法

aclocal [options]

描述

根据已经安装的宏,用户定义宏和acinclude.m4文件中的宏将configure.ac文件所需要的宏集中定义到文件 aclocal.m4中。aclocal是一个perl 脚本程序,它的定义是:“aclocal - create aclocal.m4 by scanning configure.ac”

GNU autoconf tool. Place m4 macro definitions needed by autoconf into a single file. The aclocal command first scans for macro definitions in m4 files in its default directory (/usr/share/aclocal on some systems) and in the file acinclude.m4. It next scans for macros used in the configure.in file. It generates an aclocal.m4 file that contains definitions of all m4 macros required by autoconf.

参数

--acdir=dir    Look for macro files in directory dir instead of the default directory.
--help    Print help message, then exit.
-I dir    Additionally, search directory dir for m4 macro definitions.
--output=file    Save output to file instead of aclocal.m4.
--print-ac-dir    Print the name of the directory to be searched for m4 files, then exit.
--verbose    Print names of files being processed.
--version    Print version number, then exit.

例子

user input files   optional input     process          output files
================   ==============     =======          ============

                    acinclude.m4 - - - - -.
                                          V
                                      .-------,
configure.ac ------------------------>|aclocal|
                 {user macro files} ->|       |------> aclocal.m4
                                      `-------'

相关参数

shells/commands/aclocal.txt · 最后更改: 2011/10/19 14:06 由 Leon
[unknown link type]到顶部
GNU Free Documentation License 1.3
京ICP备05034962号 Debian Driven by DokuWiki get firefox browser Recent changes RSS feed Valid XHTML 1.0