source: rtems/c/src/aclocal/check-custom-bsp.m4 @ a7479f2

4.104.114.84.95
Last change on this file since a7479f2 was ba5288d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/22/04 at 14:47:07

2004-10-22 Ralf Corsepius <ralf_corsepius@…>

  • alocal/check-custom-bsp.m4: Reflect new location of bspkit*cfg.
  • Property mode set to 100644
File size: 521 bytes
Line 
1dnl $Id$
2
3AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
4  for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/cfg/$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.