source: rtems/c/src/aclocal/check-posix.m4 @ 39c37b3

4.104.11
Last change on this file since 39c37b3 was 39c37b3, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 14, 2009 at 12:20:20 PM

Remove posix/unix.

  • Property mode set to 100644
File size: 747 bytes
Line 
1dnl $Id$
2dnl
3AC_DEFUN([RTEMS_CHECK_POSIX_API],
4[dnl
5AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
6AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
7
8AC_CACHE_CHECK([whether CPU supports libposix],
9  rtems_cv_HAS_POSIX_API,
10  [dnl
11    case "$RTEMS_CPU" in
12    *)
13      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
14        rtems_cv_HAS_POSIX_API="yes";
15      else
16        rtems_cv_HAS_POSIX_API="disabled";
17      fi
18      ;;
19    esac])
20if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
21  HAS_POSIX_API="yes";
22else
23  HAS_POSIX_API="no";
24fi
25AC_SUBST(HAS_POSIX_API)dnl
26])
27
28AC_DEFUN([RTEMS_DEFINE_POSIX_API],
29[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
30AS_IF(
31  [test x"${HAS_POSIX_API}" = x"yes"],
32  [AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])
33])
Note: See TracBrowser for help on using the repository browser.