configure.ac 和configure.in、Makefile.am 和Makefile.in 之间有什么区别吗?
我在我配置的不同东西中都看到过这两种情况。我有什么区别?只使用一个值得注意吗?或者说使用哪一个并不重要?
I have seen both in different things I have configured. What I the difference? Is it notable to use only one? Or does it not matter which one to use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
configure.ac
和configure.in
是主 Autoconf 源文件的两个可能名称,由autoconf
处理以生成配置 shell 脚本。
configure.ac
是新软件包的首选,configure.in
是一个旧名称,但仍然有效。 (现在建议仅将.in
后缀用于将由config.status
处理的文件,这是运行的结果configure
。)Makefile.am
是一个 Automake 源文件。 Automake对其进行处理并生成Makefile.in
,然后由config.status
进一步处理以生成最终的Makefile。 Automake 生成的Makefile.in
不适合手动编辑。但是,如果项目不使用 Automake(但使用 Autoconf),那么它将只有一个手工编辑的Makefile.in
。有关更多详细信息,请参阅 http://www.gnu.org /software/autoconf/manual/html_node/Making-configure-Scripts.html - 特别是图表。
configure.ac
andconfigure.in
are two possible names for the master Autoconf source file, which is processed byautoconf
to generate theconfigure
shell script.configure.ac
is preferred for new packages,configure.in
is an older name which still works. (The.in
suffix is now recommended to be used only for files which will be processed byconfig.status
, which is the result of runningconfigure
.)Makefile.am
is an Automake source file. Automake processes it and generatesMakefile.in
, which is then further processed byconfig.status
to generate the final Makefile. An Automake-generatedMakefile.in
is not meant to be edited by hand. However, if a project doesn't use Automake (but does use Autoconf), then it will only have aMakefile.in
which is hand-edited.For further details see http://www.gnu.org/software/autoconf/manual/html_node/Making-configure-Scripts.html - particularly the diagrams.