From 504112db99e82100cbbd53c4e181e3f15931b1bc Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 18 Oct 2004 09:38:02 +0000 Subject: 2004-10-18 Ralf Corsepius * aclocal/check-bsps.m4: Add bspkit support. Don't check for presence of *.cfg. * aclocal/check-custom-bsp.m4: Add bspkit support. --- aclocal/check-custom-bsp.m4 | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'aclocal/check-custom-bsp.m4') diff --git a/aclocal/check-custom-bsp.m4 b/aclocal/check-custom-bsp.m4 index 101d3cf79f..dc87133a17 100644 --- a/aclocal/check-custom-bsp.m4 +++ b/aclocal/check-custom-bsp.m4 @@ -1,11 +1,24 @@ dnl $Id$ -AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP], -[ -AC_REQUIRE([RTEMS_TOP]) +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}"/*/"$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_MSG_CHECKING([for make/custom/[$]$1.cfg]) -AS_IF([test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"], - [AC_MSG_RESULT([yes])], - [AC_MSG_ERROR([no])]) +AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[ + AC_REQUIRE([RTEMS_TOP]) + _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND]) ]) -- cgit v1.2.3