diff options
Diffstat (limited to 'aclocal/check-custom-bsp.m4')
-rw-r--r-- | aclocal/check-custom-bsp.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/aclocal/check-custom-bsp.m4 b/aclocal/check-custom-bsp.m4 new file mode 100644 index 0000000..c4ea9d4 --- /dev/null +++ b/aclocal/check-custom-bsp.m4 @@ -0,0 +1,19 @@ +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= + for i in \ + `ls "${srcdir}/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}"/*/make/custom/$1 2>/dev/null`; + do + AS_IF([test -r $i],[ + $2="$i" + break; + ]) + done +]) + +AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[ + _RTEMS_CHECK_CUSTOM_BSP([[$]$1],[BSP_FOUND]) +]) |