[ia64], [ARCHTYPE="gcc"],
[arm*], [ARCHTYPE="arm"],
[mips*], [ARCHTYPE="mips"],
+ [tile*], [ARCHTYPE="gcc"],
[ARCHTYPE="unknown"]
)
])
])
+# Tile-specific checks
+AS_IF([echo "$host_cpu" | grep "^tile"],[
+ AC_MSG_CHECKING([for Tile architecture type])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #ifndef __tilegx__
+ #error
+ #endif
+ ]])
+ ],[
+ AC_MSG_RESULT([ok])
+ ],[
+ AC_MSG_FAILURE([URCU has only been tested on the TileGx architecture. For other Tile* architectures, please run the tests first and report the results to the maintainer so that proper support can be added.])
+ ])
+])
+
# x86-specific checks
AS_IF([test "x$ARCHTYPE" = "xx86"],[
AC_MSG_CHECKING([if architecture really supports the mfence instruction])