diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-06-17 08:52:47 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-06-17 08:52:47 +0000 |
commit | ed8ec1cf119e0886f816697e3ee367476d90bea2 (patch) | |
tree | 0b3c7846d92f35bd6fe8038814d8e89ac667e761 /cpukit/aclocal/check-posix.m4 | |
parent | 2002-06-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-ed8ec1cf119e0886f816697e3ee367476d90bea2.tar.bz2 |
2002-06-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* copied over from aclocal/.
Diffstat (limited to 'cpukit/aclocal/check-posix.m4')
-rw-r--r-- | cpukit/aclocal/check-posix.m4 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cpukit/aclocal/check-posix.m4 b/cpukit/aclocal/check-posix.m4 new file mode 100644 index 0000000000..7512f663f5 --- /dev/null +++ b/cpukit/aclocal/check-posix.m4 @@ -0,0 +1,36 @@ +dnl $Id$ +dnl +AC_DEFUN(RTEMS_CHECK_POSIX_API, +[dnl +AC_REQUIRE([RTEMS_CHECK_CPU])dnl +AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl + +AC_CACHE_CHECK([whether CPU supports libposix], + rtems_cv_HAS_POSIX_API, + [dnl + case "$RTEMS_CPU" in + unix*) + rtems_cv_HAS_POSIX_API="no" + ;; + *) + if test "${RTEMS_HAS_POSIX_API}" = "yes"; then + rtems_cv_HAS_POSIX_API="yes"; + else + rtems_cv_HAS_POSIX_API="disabled"; + fi + ;; + esac]) +if test "$rtems_cv_HAS_POSIX_API" = "yes"; then + HAS_POSIX_API="yes"; +else + HAS_POSIX_API="no"; +fi +AC_SUBST(HAS_POSIX_API)dnl +]) + +AC_DEFUN(RTEMS_DEFINE_POSIX_API, +[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl +AS_IF( + [test x"${HAS_POSIX_API}" = x"yes"], + [AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])]) +]) |