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

4.11
Last change on this file since 4778c6e0 was d8bbc3e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 17, 2009 at 3:15:54 PM

2009-10-17 Ralf Corsepius <ralf.corsepius@…>

  • configure.ac: Pick up make/custom/*.
  • aclocal/check-custom-bsp.m4: Adapt to changes to configure.ac.
  • Property mode set to 100644
File size: 515 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  for i in \
8    `ls "${srcdir}/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}"/*/make/custom/$1 2>/dev/null`;
9  do
10    AS_IF([test -r $i],[
11      $2="$i"
12      break
13    ])
14  done
15])
16
17AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
18  _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
19  AS_IF([test -z "$BSP_FOUND"],[
20    AC_MSG_ERROR([missing [$]$1.cfg])
21  ])
22])
Note: See TracBrowser for help on using the repository browser.