Files
rtems/aclocal/check-custom-bsp.m4
Ralf Corsepius ba5288db0e 2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* alocal/check-custom-bsp.m4: Reflect new location of bspkit*cfg.
2004-10-22 14:47:07 +00:00

25 lines
588 B
Plaintext

dnl $Id$
AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
$2=
AC_MSG_CHECKING([for $1])
for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/cfg/"$1" \
"${srcdir}/${RTEMS_TOPdir}/make/custom/$1";
do
AS_IF([test -r $i],[
$2="$i"
break;
])
done
AS_IF([test -n "[$]$2"],
[AC_MSG_RESULT([[$]$2])],
[AC_MSG_RESULT([no])])
])
AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
AC_REQUIRE([RTEMS_TOP])
_RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
])