Automake:Makefile.am 中的条件语法

发布于 2024-09-12 04:09:35 字数 140 浏览 0 评论 0原文

我熟悉 if VAR_NAME,其中 VAR_NAME 是由 configure.ac 内的 AM_CONDITIONAL 子句定义的。

Makefile.am 中是否有相应的“如果未定义”构造?

I am familiar with the if VAR_NAME, where VAR_NAME is defined by an AM_CONDITIONAL clause inside of configure.ac.

Is there a corresponding "if not defined" construct in Makefile.am?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

春庭雪 2024-09-19 04:09:35

不存在“如果未定义”的构造。必须编写configure.ac,以便始终定义条件。但是,如果您想测试条件是否为假,则可以执行“if !VAR_NAME”。

There is no "if not defined" construct. The configure.ac must be written so that the conditional is always defined. However, you can do "if ! VAR_NAME" if you want to test that the condition is false.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文