diff options
Diffstat (limited to 'cpukit/aclocal/check-posix.m4')
-rw-r--r-- | cpukit/aclocal/check-posix.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cpukit/aclocal/check-posix.m4 b/cpukit/aclocal/check-posix.m4 new file mode 100644 index 0000000000..a00dc2456b --- /dev/null +++ b/cpukit/aclocal/check-posix.m4 @@ -0,0 +1,20 @@ +dnl $Id$ +dnl +AC_DEFUN([RTEMS_CHECK_POSIX_API], +[dnl +AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl +AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl + +AC_CACHE_CHECK([whether CPU supports libposix], + rtems_cv_HAS_POSIX_API, + [dnl + case "$host" in + *-*-rtems*) + if test "${RTEMS_HAS_POSIX_API}" = "yes"; then + rtems_cv_HAS_POSIX_API="yes"; + else + rtems_cv_HAS_POSIX_API="disabled"; + fi + ;; + esac]) +]) |