【发布时间】:2015-05-23 22:55:12
【问题描述】:
我正在使用自动工具来构建我的 C++ 应用程序。在我的 configure.ac 我有以下行:
AX_CHECK_COMPILE_FLAG([-Wall], [CPPFLAGS="$CPPFLAGS -Wall"])
执行./configure时(运行autoreconf -i后)会导致以下错误:
./configure: line 3825: syntax error near unexpected token `-Wall,'
./configure: line 3825: `AX_CHECK_COMPILE_FLAG(-Wall, CPPFLAGS="$CPPFLAGS -Wall")'
我的系统:Linux web 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux
在我的 Ubuntu 机器上运行良好,为什么会出现这个错误?
【问题讨论】:
标签: c++ linux autotools configure