是否应该“配置"?如果configure.ac可用,可以分发脚本吗? [英] Should a "configure" script be distributed if configure.ac is available?
问题描述
当前,我们的安装说明是:
Currently, our installation instructions are:
autoreconf -fi
./configure
...
autoreconf
步骤从configure.ac
生成configure
文件,从Makefile.in
生成Makefile.in
.如果未安装任何一个依赖项(例如pkg-config
),则configure
和autoreconf
都将失败,尽管后者会打印出一个隐秘的错误消息.
The autoreconf
step generates the configure
file from configure.ac
and Makefile.in
from Makefile.in
. If one of the dependencies (say pkg-config
) is not installed, both configure
and autoreconf
fail although the latter prints a cryptic error message.
释放源tarball时,是否应在软件包中提供configure
脚本?如果必须分发,还需要包括哪些其他文件?目录build-aux
和autom4te.cache
以及文件aclocal.m4
也已创建.
When releasing source tarballs, should the configure
script be supplied in the package or not? What other files need to be included if it has to be distributed? The directories build-aux
and autom4te.cache
and files aclocal.m4
were also created.
推荐答案
在SCM存储库中,不应该存在任何自动生成的内容(包括configure,但是开发人员的意见不在这里).压缩文件应包含autoreconf -fi
和/或autogen.sh
之后的状态(或为它选择的任何名称).第三,您还可以使用make dist
,尽管它要求在压缩包中出现的所有文件也必须在Makefiles中列出.
In an SCM repository, nothing autogenerated should be present (including configure — but developer opinions digress here). A tarball should contain the state after autoreconf -fi
and/or autogen.sh
(or whichever name you chose for it). Third, you could also use make dist
, though it requires that all files that shall appear in the tarball are also listed in the Makefiles.
这篇关于是否应该“配置"?如果configure.ac可用,可以分发脚本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!