autoconf和automake流程图中的哪些过程由谁和何时执行? [英] Which processes in the autoconf and automake flowchart are performed by who and when?

查看:99
本文介绍了autoconf和automake流程图中的哪些过程由谁和何时执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在来自 https://en.wikipedia.org/wiki/Automake的autoconf和automake流程图中,有几个过程

  • 自动扫描
  • 本地
  • 自动标题
  • autoconf
  • 自动制作
  • 配置
  • 制作

执行了哪些过程

  • 软件程序的用户在下载了软件程序的发行版本后
  • 由从其源代码创建软件程序发行版的一方(谁可能是软件程序的作者)?

之所以问这个问题,是因为我记得当我以某个软件程序的用户的身份下载其源代码发行版后,运行用于从源代码发行版构建可执行文件的命令是autoconf./configuremake.因此,我猜想流程图中的其他过程是由软件程序的作者在创建发行版时执行的.我说得对吗?

I ask this question, because I remember that after I, as a user of some software program, downloaded its source distribution, the commands I ran to build an executable from the source distribution were autoconf, ./configure, and make. So I guess that the other processes in the flowchart had been performed during the creation of the distribution by the author of the software program. Am I correct?

谢谢.

推荐答案

软件程序的用户在下载了软件程序的发行版后将执行哪些处理

Which processes are performed by a user of a software program after he downloaded the distribution of the software program

这取决于您要执行的操作.很多人只是在使用基本的构建命令来配置,构建和安装软件包之后:

It depends on what you want to do. Lots of people are only after the basic build commands to configure, build, and install the software package:

# ./configure; make; make install

,即使您正在修补源代码,在这种情况下也无需调用autoreconfautoconfautomake.如果修改的范围足够大,需要修改configure.acMakefile.am文件,则可能需要调用 其他工具. configure通常足够聪明,可以代表您自动调用它们.

and you'll not need to invoke autoreconf, autoconf, automake in those cases, even if you're patching source. If the modifications are extensive enough to need to modify configure.ac or Makefile.am files, then maybe the other tools will need to be invoked. Often configure is smart enough to automatically invoke them on your behalf.

autoscan实际上仅对将软件包移植到GNU Build System有用.对于autoheader也是一样.一旦有了基本的configure.acconfig.h.in,您将不再需要这些工具.这些工具不错,但不是必需的来生成上述文件.

autoscan is really only useful for for porting your software package to the GNU Build System. The same for autoheader. Once you've got a basic configure.ac and config.h.in you're not going to be needing those tools again. These tools are nice, but not required to produce the aforementioned files.

哪个过程由从其源代码创建软件程序发行版的一方(并且可能是软件程序的作者)执行?

Which processes are performed by the party who creates the distribution of the software program from its source code (and who is likely the author of the software program)?

如果您具有某种自动构建的软件,我想它会在从VCS重新签出后调用autoreconf -fvi并可能执行其他一些步骤.这就是为什么有bootstrap.shautogen.sh脚本的原因.这基本上会调用aclocalautoconfautomake来编写configure.然后基本上configure; make distcheck;进行分配.

If you have some kind of automated software build, I'd imagine it'd invoke autoreconf -fvi and possibly a few other steps after a fresh checkout from a VCS. That's why there are bootstrap.sh or autogen.sh scripts. That basically invokes aclocal, autoconf and automake to write configure. Then basically configure; make distcheck; to make the distribution.

这篇关于autoconf和automake流程图中的哪些过程由谁和何时执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆