Browse Source

Merge commit 'b4a90e5' into bfgminer

Luke Dashjr 12 years ago
parent
commit
7d02f06f28
1 changed files with 12 additions and 0 deletions
  1. 12 0
      configure.ac

+ 12 - 0
configure.ac

@@ -1427,6 +1427,18 @@ if test "x$found_endian" = "xno"; then
 fi
 
 
+AC_MSG_CHECKING([if good static asserts compile])
+AC_TRY_LINK([
+], [
+	_Static_assert(1, ":)");
+], [
+	AC_MSG_RESULT([yes])
+], [
+	AC_MSG_RESULT([no])
+	AC_DEFINE_UNQUOTED([_Static_assert(...)], [], [Turns _Static_assert into noop for compilers that don't support it])
+])
+
+
 AC_MSG_CHECKING([if GNU format attribute compiles])
 AC_TRY_COMPILE([
 	#define FORMAT_SYNTAX_CHECK(...) __attribute__(( format(__VA_ARGS__) ))