X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=7a315e8a7016440d8d0d517d7962724675845765;hb=274773cf3b5c0bf223b8827f31c4486859e78208;hp=d064a13e00151430353af16ace1e10aff39145a5;hpb=5c28497b02f74a982b0102009b0bcca5f41adbef;p=userspace-rcu.git diff --git a/configure.ac b/configure.ac index d064a13..7a315e8 100644 --- a/configure.ac +++ b/configure.ac @@ -77,7 +77,7 @@ AS_CASE([$host_cpu], [ia64], [ARCHTYPE="gcc"], [arm*], [ARCHTYPE="arm"], [mips*], [ARCHTYPE="mips"], - [tile*], [ARCHTYPE="tile"], + [tile*], [ARCHTYPE="gcc"], [ARCHTYPE="unknown"] ) @@ -113,6 +113,21 @@ AS_IF([test "x$ARCHTYPE" = "xarm"],[ ]) ]) +# 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])