From e07b3293e45d2926fb00f3229da2dbf3c8a37ffa Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 3 Sep 2016 10:49:17 +0200 Subject: [PATCH] configure.ac: improve detection of 5-argument setLangDefaults In particular, include all the required header files to avoid the test failing because of issues unrelated to the number of arguments of CompilerInvocation::setLangDefaults. Signed-off-by: Sven Verdoolaege --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bf013333..152f00b7 100644 --- a/configure.ac +++ b/configure.ac @@ -235,7 +235,11 @@ system) [clang/Basic/Builtins.h], [], [AC_DEFINE([initializeBuiltins], [InitializeBuiltins], [Define to InitializeBuiltins for older versions of clang])]) - AC_TRY_COMPILE([#include ], [ + AC_TRY_COMPILE([ + #include + #include + #include + ], [ using namespace clang; CompilerInstance *Clang; TargetOptions TO; -- 2.11.4.GIT