source: rtems/aclocal/check-custom-bsp.m4 @ c9b005a9

4.104.114.84.95
Last change on this file since c9b005a9 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: 588 bytes
Line 
1dnl $Id$
2
3AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
4AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
5AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
6  $2=
7  AC_MSG_CHECKING([for $1])
8  for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/cfg/"$1" \
9    "${srcdir}/${RTEMS_TOPdir}/make/custom/$1";
10  do
11    AS_IF([test -r $i],[
12      $2="$i"
13      break;
14    ])
15  done
16  AS_IF([test -n "[$]$2"],
17    [AC_MSG_RESULT([[$]$2])],
18    [AC_MSG_RESULT([no])])
19])
20
21AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
22  AC_REQUIRE([RTEMS_TOP])
23  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
24])
Note: See TracBrowser for help on using the repository browser.