作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我的 configure.ac
文件中,我有这样的警告和错误:
AC_MSG_ERROR([找不到 Boost Math 头文件,您是否正确指定了 --with-boost-include-path 选项?])
我比较守旧,喜欢把行宽控制在 80 个字符以内。但是,当我像这样拆分行时(我也喜欢适当的缩进)
AC_MSG_ERROR([Could not find the Boost Math header files, did you
specify the --with-boost-include-path option correctly?])
错误消息在通过./configure
打印在屏幕上时保留换行和缩进。
在 Autoconf 中断开字符串的正确方法是什么?
最佳答案
这是一个老问题,但我找到了另一个解决方案,你可以像这样使用 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?]))
甚至:
AC_MSG_ERROR(m4_normalize([
Could not find the Boost Math header files, did you
specify the --with-boost-include-path option correctly?
]))
关于Autoconf:打破字符串中的长行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26547455/
我正在使用 grep 仅返回多个文件中模式 (-o) 之间的字符串,例如 grep -i -r -o 'Rows="[^#][^"]*"' * 我希望它在第一个匹配模式后停止,我试过 grep -m
我是一名优秀的程序员,十分优秀!