【问题标题】:How to full expand variables in autoconf?如何在autoconf中完全展开变量?
【发布时间】:2010-08-19 15:09:09
【问题描述】:

在这个例子中:

configure.ac: 
  ...
  AC_CONFIG_FILES([script1])
  AC_OUTPUT

script1.in: 
  #!/bin/bash
  ...
  config=@datadir@/blah

这个@datadir@扩展为${prefix}/share,有什么办法可以扩展为/usr/local/share

【问题讨论】:

标签: linux packaging autoconf


【解决方案1】:

您可以使用 autoconf 存档中的 adl_RECURSIVE_EVAL 来完全扩展路径。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-12
    • 2013-07-02
    • 1970-01-01
    • 2013-05-10
    • 1970-01-01
    相关资源
    最近更新 更多