Autotools的ax_check_compile_flag语法错误
autotools syntax error with ax_check_compile_flag
我正在使用autotools来构建我的c++应用程序。在我的配置中。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机器上它工作得很好,为什么我得到这个错误?
autoreconf
并不是魔法(尽管我遇到过明显相信这一点的软件包维护者)。当您运行autoreconf
时,它无法找到AX_CHECK_COMPILE_FLAG
宏,并产生损坏的configure
脚本。通常这会同时产生一个错误/诊断消息。
'AX_CHECK_COMPILE_FLAG '来自autoconf归档项目,Debian有一个包提供这个,名为autoconf-archive。很可能是你忘记安装了:
sudo apt-get install autoconf-archive
相关文章:
- 1d 智能指针不适用于语法 (*)++
- 助记符和指向成员语法的指针
- 有人能分解一下这个c++模板的语法吗
- C++避免重复声明的语法是什么
- QMetaObject invokeMethod的基于函数指针的语法
- 这个语法std::class<>{}(arg1, arg2) 在C++中是什么意思?
- 为什么包含windows.h会产生语法错误,从而阻止类的实例化?(C2146,C2065)
- 单独定义模板化嵌套类方法的正确语法
- 共享指针和具有自定义删除程序的唯一指针之间的语法差异背后的任何原因
- 错误 C2760:语法错误:映射迭代器上意外的标记"标识符",预期的";"
- 为什么我会收到错误 C2143 语法错误:缺少"*"之前的';'?
- 奇怪的代码抛出编译错误模板< J,int aSize=10> C2143:语法错误:在"<"之前缺少";"
- 使用基类指针调用基类的值构造函数的语法是什么?
- 很好的语法来获取对向量/数组数据的大小引用?
- C++语法运算符功能?
- C++使用 rand 定义函数语法
- 什么文件可以修改 atom 的C++语法?
- 创建模板嵌套类实例的语法?
- C++语法差异:二维和一维数组(指针算术)
- 将信息输入到下面显示的结构向量中的正确语法/格式是什么