forked from Imagelibrary/rtems
New.
This commit is contained in:
13
cpukit/aclocal/check-atomic.m4
Normal file
13
cpukit/aclocal/check-atomic.m4
Normal file
@@ -0,0 +1,13 @@
|
||||
dnl
|
||||
AC_DEFUN([RTEMS_CHECK_ATOMIC],
|
||||
[dnl
|
||||
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
|
||||
|
||||
AC_CACHE_CHECK([whether CPU supports atomic operations],
|
||||
[rtems_cv_ATOMIC],[
|
||||
AS_IF(
|
||||
[test -f "${srcdir}/score/cpu/$RTEMS_CPU/rtems/score/cpuatomic.h"],
|
||||
[rtems_cv_ATOMIC="yes"],
|
||||
[rtems_cv_ATOMIC="no"])
|
||||
])
|
||||
])
|
||||
Reference in New Issue
Block a user