Autoconf:打破字符串中的长行

ph0*_*nix 3 autoconf

在我的configure.ac文件中,我有这样的警告和错误:

AC_MSG_ERROR([Could not find the Boost Math header files, did you specify the --with-boost-include-path option correctly?])
Run Code Online (Sandbox Code Playgroud)

我比较守旧,喜欢将行宽控制在 80 个字符以内。然而,当我像这样分割线时(我也喜欢一些适当的缩进)

AC_MSG_ERROR([Could not find the Boost Math header files, did you
 specify the --with-boost-include-path option correctly?])
Run Code Online (Sandbox Code Playgroud)

当通过 打印在屏幕上时,错误消息会保留换行符和缩进./configure

在 Autoconf 中断开字符串的正确方法是什么?

lan*_*oxx 5

这是一个老问题,但我找到了另一个解决方案,您可以m4_normalize像这样使用:

AC_MSG_ERROR(m4_normalize([Could not find the Boost Math header files, did you 
             specify the --with-boost-include-path option correctly?]))
Run Code Online (Sandbox Code Playgroud)

甚至:

AC_MSG_ERROR(m4_normalize([
    Could not find the Boost Math header files, did you
    specify the --with-boost-include-path option correctly?
]))
Run Code Online (Sandbox Code Playgroud)