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

4.104.11
Last change on this file since c14858f0 was c14858f0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 16, 2009 at 1:41:54 AM

Cosmetics.

  • Property mode set to 100644
File size: 606 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 \
9    "${srcdir}/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU"/*/make/custom/$1 \
10    "${srcdir}/${RTEMS_TOPdir}/make/custom/$1";
11  do
12    AS_IF([test -r $i],[
13      $2="$i"
14      break;
15    ])
16  done
17  AS_IF([test -n "[$]$2"],
18    [AC_MSG_RESULT([[$]$2])],
19    [AC_MSG_RESULT([no])])
20])
21
22AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
23  AC_REQUIRE([RTEMS_TOP])
24  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
25])
Note: See TracBrowser for help on using the repository browser.