From 3025a4aae5a78dfa44343af946bab1e2c534df2c Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 12 Feb 2004 16:56:47 +0000 Subject: 2004-02-12 Ralf Corsepius * aclocal/bspopts.m4: Use AS_HELP_STRING. * aclocal/bsp-configure.m4: Require autoconf-2.59. Use AC_CONFIG_HEADERS. * aclocal/check-custom-bsp.m4: Add bspkit-support. * aclocal/enable-rtemsbsp.m4: Use AS_HELP_STRING. --- c/src/aclocal/check-custom-bsp.m4 | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'c/src/aclocal/check-custom-bsp.m4') diff --git a/c/src/aclocal/check-custom-bsp.m4 b/c/src/aclocal/check-custom-bsp.m4 index 8128906111..402656f3a0 100644 --- a/c/src/aclocal/check-custom-bsp.m4 +++ b/c/src/aclocal/check-custom-bsp.m4 @@ -1,10 +1,24 @@ dnl $Id$ -AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[ -AC_REQUIRE([RTEMS_TOP]) +AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[ + for i in ${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}/*/$1 \ + ${srcdir}/${RTEMS_TOPdir}/make/custom/$1; + do + AC_MSG_CHECKING([for $i]) + AS_IF([test -r $i],[ + $2="$i" + AC_MSG_RESULT([yes]) + break; + ],[ + AC_MSG_RESULT([no]) + ]) + done +]) -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]) + AS_IF([test -z "$BSP_FOUND"],[ + AC_MSG_ERROR([missing [$]$1.cfg]) + ]) ]) -- cgit v1.2.3