summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-07-19 12:43:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-07-19 12:45:34 +0200
commit85b35ac289f661f64cdddd145deaf419f61f5d4c (patch)
treec3458c433a88fe18f209a623ca8df05615416d53
parent7f9928bfa561ccb6ed4e2baacc7d6960bc1ce231 (diff)
Detect failing Clang with GCC 4.7 headers and --std=gnu++0x scenarios
Change-Id: I6caa48a428ac7fef23f7c3e6fc7896b7e3a8d0fc
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 15adc26b1ef1..081c6f0d4671 100644
--- a/configure.in
+++ b/configure.in
@@ -4778,6 +4778,9 @@ if test "$GCC" = "yes"; then
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <stddef.h>
+#include <vector>
+ // some Clang fail when compiling against GCC 4.7 headers with --std=gnu++0x
+
template <typename T, size_t S> char (&sal_n_array_size( T(&)[S] ))[S];
namespace