Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道 AC_SUBST(VAR) 将 VAR 传递给 Makefile.am。
是否有任何语法可以将我的#define 生成到 configure.ac 中的 config.h 中?
只要您使用AC_CONFIG_HEADERS - 例如,AC_CONFIG_HEADERS([config.h])在configure.ac- AC_DEFINE#define ...宏将在标题中生成一个。
AC_CONFIG_HEADERS([config.h])
configure.ac
#define ...