简体   繁体   English

configure.ac和configure.in,Makefile.am和Makefile.in之间有什么区别?

[英]Any difference between configure.ac and configure.in, and Makefile.am and 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? 或者使用哪一个无关紧要?

configure.ac and configure.in are two possible names for the master Autoconf source file, which is processed by autoconf to generate the configure shell script. configure.acconfigure.in是主Autoconf源文件的两个可能名称,由autoconf处理以生成configure shell脚本。 configure.ac is preferred for new packages, configure.in is an older name which still works. configure.ac是新包的首选, configure.in是一个旧的名称,仍然有效。 (The .in suffix is now recommended to be used only for files which will be processed by config.status , which is the result of running configure .) (现在建议.in后缀仅用于将由config.status处理的文件,这是运行configure结果 。)

Makefile.am is an Automake source file. Makefile.am是一个Automake源文件。 Automake processes it and generates Makefile.in , which is then further processed by config.status to generate the final Makefile. Automake处理它并生成Makefile.in ,然后由config.status进一步处理以生成最终的Makefile。 An Automake-generated Makefile.in is not meant to be edited by hand. Automake生成的Makefile.in不是手动编辑的。 However, if a project doesn't use Automake (but does use Autoconf), then it will only have a Makefile.in which is hand-edited. 但是,如果项目不使用Automake的(但会使用Autoconf的),那么它只会产生Makefile.in手工编辑。

For further details see http://www.gnu.org/software/autoconf/manual/html_node/Making-configure-Scripts.html - particularly the diagrams. 有关详细信息,请参阅http://www.gnu.org/software/autoconf/manual/html_node/Making-configure-Scripts.html - 尤其是图表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM