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

4.104.115
Last change on this file since ebc9ae0 was ebc9ae0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 14, 2009 at 6:34:25 AM

Change *.cfg handling.

  • Property mode set to 100644
File size: 527 bytes
Line 
1dnl $Id$
2
3AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
4  for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/cfg/$1.cfg \
5    "${srcdir}/${RTEMS_TOPdir}/make/custom/"$1.cfg;
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],[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.