summaryrefslogtreecommitdiffstats
path: root/c/src/aclocal/check-custom-bsp.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-02-12 16:56:47 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-02-12 16:56:47 +0000
commit3025a4aae5a78dfa44343af946bab1e2c534df2c (patch)
tree77b0ba7ff1137142c20ef65698d933d321653d90 /c/src/aclocal/check-custom-bsp.m4
parent2004-02-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-3025a4aae5a78dfa44343af946bab1e2c534df2c.tar.bz2
2004-02-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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.
Diffstat (limited to 'c/src/aclocal/check-custom-bsp.m4')
-rw-r--r--c/src/aclocal/check-custom-bsp.m426
1 files changed, 20 insertions, 6 deletions
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])
+ ])
])