Autoconf学习——简介

版本:2.63

Autoconf是一个用于产生shell脚本的工具,这些脚本能够自动配置软件源码包以适应多种类Posix(Posix-like)系统。Autoconf产生的配置脚本运行的时候无需依赖Autoconf,所以用户并不需要安装Autoconf。

Autoconf运行时无需用户指定任何参数,它会自动进行探测。

对于每一个使用Autoconf的软件包,Autoconf根据一个模板文件(该文件列出了软件包所需要或使用的系统特性)创建一个配置脚本。shell代码确认并反映已经探测出一个系统属性之后,Autoconf允许该属性被多个需要使用该属性的软件包共享。之后如果shell代码需要调整,只需要在一个地方改动。所有的配置脚本都可以根据该更新过的shell代码自动重新产生。

Autoconf也支持交叉编译。

Autoconf并不能解决相关软件包的所有可移植性问题,通常,它需要与其他GNU构建工具一起使用,如Automake和Libtool等。更多信息请看The GNU Build System

Autoconf对C语言中与#if一起使用的宏名强加了一些限制。(see Preprocessor Symbol Index).

Autoconf需要GNU M4 version 1.4.5 or later来产生脚本。 It uses features that some versions of M4, including GNU M4 1.3, do not have. Autoconf works better with GNU M4 version 1.4.11 or later, though this is not required.

查看 Autoconf 1以获得升级版本1的信息。查看 History获取Autoconf开发的历史。查看 FAQ以获得一些关于Autoconf的常见问题的答案。

查看 Autoconf web page 获得更新信息,邮件列表的详细信息, 已知Bug的信息等。

Mail suggestions to the Autoconf mailing list. Past suggestions are archived.

Mail bug reports to the Autoconf Bugs mailing list. Past bug reports are archived.

如果条件允许,请确定你的Bug当前开发版本还没解决,且尚未上报。Be sure to include all the needed information and a short configure.ac that demonstrates the problem.

Autoconf's development tree通过git访问; 查看Autoconf Summary获得详细信息, 或者查看the actual repository。匿名的CVS访问也是允许的,查看README以获得更详细的信息。Patches relative to the current git version can be sent for review to the Autoconf Patches mailing list, with discussion on prior patches archived; and all commits are posted in the read-only Autoconf Commit mailing list, which is also archived.

因为Autoconf有着自身的使命, Autoconf package仅包含了已经被证实有用的一些宏。 尽管如此,如果你想要共享你的宏,或者在存在的宏中查看,看Autoconf Macro Archive,这是由Peter Simons运营的。
posted @ 2011-03-14 19:45  茫茫深海一条鱼  阅读(579)  评论(0编辑  收藏  举报