一旦安装了软件并且源代码仍然存在,如何找到--configure字符串?

Pet*_*ins 1 install autotools configure

这是一个典型的场景 - 您从源代码安装软件,花一个小时搞清楚配置选项,最后运行:

./configure --prefix=/a/b/c --with-X --with-Y=/usr/local/Y/lib \
            --disable-Z --with-extension=foo --build=bar ...
Run Code Online (Sandbox Code Playgroud)

一年过去了,一个新的软件版本问世了,你想要升级.为此,您需要在新的源代码上再次运行configure.但是,您已经忘记了配置标志是什么,但您仍然在主目录中的某处具有旧源代码和旧版本.

一年后当你忘记原始配置字符串是什么时,如何恢复配置字符串?

Pet*_*ins 5

回答我自己:

./config.status --config
Run Code Online (Sandbox Code Playgroud)

诀窍.