【发布时间】:2021-09-12 10:17:13
【问题描述】:
ax_boost_base page 表示它设置了 HAVE_BOOST。所以我在我的 configure.ac 文件中尝试了它:
AX_BOOST_BASE([1.48],, [AC_MSG_ERROR([libfoo needs Boost, but it was not found in your system])])
AC_MSG_NOTICE(["HAVE_BOOST value"])
AC_MSG_NOTICE([$HAVE_BOOST])
当我运行configure 时,HAVE_BOOST 似乎没有任何价值:
checking for boostlib >= 1.48 (104800)... yes
configure: "HAVE_BOOST value"
configure:
如何在我的 configure.ac 中使用这个 HAVE_BOOST?具体来说,如果设置了 HAVE_BOOST,我想将一个文件附加到我的 AC_OUTPUT 中。例如,如果没有设置 HAVE_BOOST,那么我想要:
AC_OUTPUT([
Makefile
include/Makefile
comm/Makefile
ordinary_app/Makefile
])
但是如果设置了 HAVE_BOOST,那么我想要这个:
AC_OUTPUT([
Makefile
include/Makefile
comm/Makefile
ordinary_app/Makefile
boost_enabled_app/Makefile
【问题讨论】:
标签: c++ boost makefile configure