Autotools:在./configure.sh中包含python脚本

时间:2023-01-27 23:08:04

Building of our Linux C application is performed by GNU Autotools, and during the one we need to look through client's file system and construct quite complex configurational files. From our point of view, Python scripting is the best way to solve this problem.

我们的Linux C应用程序的构建由GNU Autotools执行,在此期间我们需要查看客户端的文件系统并构建相当复杂的配置文件。从我们的角度来看,Python脚本是解决此问题的最佳方法。

  1. So, is it possible to run custom python script inside ./configure.sh?
  2. 那么,是否可以在./configure.sh中运行自定义python脚本?
  3. How should the configure.ac and Makefile.am files be changed for this purpose?
  4. 如何为此目的更改configure.ac和Makefile.am文件?

Thank you.

谢谢。

1 个解决方案

#1


1  

I'm kind of assuming configure.sh is configure.

我有点假设configure.sh是configure。

  1. Sure. configure is just a shell script.
  2. 当然。 configure只是一个shell脚本。
  3. automake has facilities for Python, the Autoconf Macro Archive has some Python macros also.
  4. automake具有Python功能,Autoconf Macro Archive也有一些Python宏。

#1


1  

I'm kind of assuming configure.sh is configure.

我有点假设configure.sh是configure。

  1. Sure. configure is just a shell script.
  2. 当然。 configure只是一个shell脚本。
  3. automake has facilities for Python, the Autoconf Macro Archive has some Python macros also.
  4. automake具有Python功能,Autoconf Macro Archive也有一些Python宏。