summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal/check-custom-bsp.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-02-19 05:40:02 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-02-19 05:40:02 +0000
commit17ad82ca8bfc48f4701791a5090a79331ddf360b (patch)
treecf2f22b87ace78ae56a25b5cca36fbd590e9d4cc /testsuites/aclocal/check-custom-bsp.m4
parent2004-02-17 RTEMS (diff)
downloadrtems-17ad82ca8bfc48f4701791a5090a79331ddf360b.tar.bz2
2004-02-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AC_CONFIG_SRCDIR([PROBLEMS]). * aclocal/check-custom-bsp.m4: Sync with c/src/aclocal. * aclocal/project-root.m4: Remove obsolete comments. * aclocal/env-rtemsbsp.m4: Remove RTEMS_ROOT. * aclocal/rtems-top.m4: Rework.
Diffstat (limited to 'testsuites/aclocal/check-custom-bsp.m4')
-rw-r--r--testsuites/aclocal/check-custom-bsp.m426
1 files changed, 20 insertions, 6 deletions
diff --git a/testsuites/aclocal/check-custom-bsp.m4 b/testsuites/aclocal/check-custom-bsp.m4
index 8128906111..402656f3a0 100644
--- a/testsuites/aclocal/check-custom-bsp.m4
+++ b/testsuites/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])
+ ])
])