source: rtems/testsuites/aclocal/check-custom-bsp.m4 @ 17ad82c

4.104.114.84.95
Last change on this file since 17ad82c was 17ad82c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/19/04 at 05:40:02

2004-02-18 Ralf Corsepius <corsepiu@…>

  • configure.ac: AC_CONFIG_SRCDIR([PROBLEMS]).
  • aclocal/check-custom-bsp.m4: Sync with c/src/aclocal.
  • aclocal/project-root.m4: Remove obsolete comments.
  • aclocal/env-rtemsbsp.m4: Remove RTEMS_ROOT.
  • aclocal/rtems-top.m4: Rework.
  • Property mode set to 100644
File size: 515 bytes
Line 
1dnl $Id$
2
3AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
4  for i in ${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}/*/$1 \
5    ${srcdir}/${RTEMS_TOPdir}/make/custom/$1;
6  do
7    AC_MSG_CHECKING([for $i])
8    AS_IF([test -r $i],[
9      $2="$i"
10      AC_MSG_RESULT([yes])
11      break;
12    ],[
13      AC_MSG_RESULT([no])
14    ])
15  done
16])
17
18AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
19  AC_REQUIRE([RTEMS_TOP])
20  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
21  AS_IF([test -z "$BSP_FOUND"],[
22    AC_MSG_ERROR([missing [$]$1.cfg])
23  ])
24])
Note: See TracBrowser for help on using the repository browser.