source: rtems/cpukit/aclocal/check-posix.m4 @ 98b30aa

Last change on this file since 98b30aa was 98b30aa, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/18/04 at 07:26:52

Fix m4-underquoting.

  • Property mode set to 100644
File size: 790 bytes
Line 
1dnl $Id$
2dnl
3AC_DEFUN([RTEMS_CHECK_POSIX_API],
4[dnl
5AC_REQUIRE([RTEMS_CHECK_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    unix*)
13      rtems_cv_HAS_POSIX_API="no"
14      ;;
15    *)
16      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
17        rtems_cv_HAS_POSIX_API="yes";
18      else
19        rtems_cv_HAS_POSIX_API="disabled";
20      fi
21      ;;
22    esac])
23if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
24  HAS_POSIX_API="yes";
25else
26  HAS_POSIX_API="no";
27fi
28AC_SUBST(HAS_POSIX_API)dnl
29])
30
31AC_DEFUN([RTEMS_DEFINE_POSIX_API],
32[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
33AS_IF(
34  [test x"${HAS_POSIX_API}" = x"yes"],
35  [AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])
36])
Note: See TracBrowser for help on using the repository browser.