我試圖使用autotools將Google測試框架添加到我的應用程序。 但我得到了一些stange錯誤。 在configure.ac:C++ Autotools Google測試框架
AC_CHECK_HEADER([gtest/gtest.h], [AC_DEFINE([HAVE_GTEST_H], 1)])
但在日誌中我得到:
...
checking for limits.h... yes
checking gtest/gtest.h usability... no
checking gtest/gtest.h presence... no
checking for gtest/gtest.h... no
的config.log:
configure:3276: checking gtest/gtest.h presence
configure:3276: gcc -E conftest.c
In file included from conftest.c:19:0:
/usr/include/gtest/gtest.h:54:18: fatal error: limits: No such file or directory
compilation terminated.
這兩個文件都存在。正如我所知,/ usr/include是默認包含。