source: rtems/c/src/make/aclocal/check-itron.m4 @ de3311c

4.104.114.84.95
Last change on this file since de3311c was de3311c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/04/05 at 16:25:44

2005-02-04 Ralf Corsepius <ralf.corsepius@…>

  • aclocal/check-itron.m4: Allow unix.
  • Property mode set to 100644
File size: 744 bytes
Line 
1dnl $Id$
2dnl
3AC_DEFUN([RTEMS_CHECK_ITRON_API],
4[dnl
5AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
6AC_REQUIRE([RTEMS_ENABLE_ITRON])dnl
7
8AC_CACHE_CHECK([whether CPU supports libitron],
9  rtems_cv_HAS_ITRON_API,
10  [dnl
11    case "$RTEMS_CPU" in
12    *)
13      if test "${RTEMS_HAS_ITRON_API}" = "yes"; then
14        rtems_cv_HAS_ITRON_API="yes";
15      else
16        rtems_cv_HAS_ITRON_API="disabled";
17      fi
18      ;;
19    esac])
20if test "$rtems_cv_HAS_ITRON_API" = "yes"; then
21  HAS_ITRON_API="yes";
22else
23  HAS_ITRON_API="no";
24fi
25AC_SUBST(HAS_ITRON_API)dnl
26])
27
28AC_DEFUN([RTEMS_DEFINE_ITRON_API],
29[AC_REQUIRE([RTEMS_CHECK_ITRON_API])dnl
30if test x"${HAS_ITRON_API}" = x"yes";
31then
32  AC_DEFINE_UNQUOTED(RTEMS_ITRON_API,1,[if itron api is supported])
33fi
34])
Note: See TracBrowser for help on using the repository browser.