summaryrefslogtreecommitdiffstats
path: root/m4/rtems-ismultibsp.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/rtems-ismultibsp.m4')
-rw-r--r--m4/rtems-ismultibsp.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/rtems-ismultibsp.m4 b/m4/rtems-ismultibsp.m4
new file mode 100644
index 0000000..63e8805
--- /dev/null
+++ b/m4/rtems-ismultibsp.m4
@@ -0,0 +1,23 @@
+#
+# Check if the 'enable_rtemsbsp' variable lists a single
+# or multiple BSPs and set exit status accordingly:
+#
+# Result is exit status, i.e., this macro can e.g., be used
+# in a 'if MACRO ; then list; fi' statement.
+#
+# true - if enable_rtembsp lists more than one BSP
+# false - otherwise
+#
+# if TILLAC_RTEMS_CHECK_MULTI_BSPS ; then list ; fi
+AC_DEFUN([TILLAC_RTEMS_CHECK_MULTI_BSPS],
+ [AC_REQUIRE([TILLAC_RTEMS_CHECK_BSPS])
+ ( _tillac_rtems_multi_bsps=no
+ for _tillac_rtems_bspcand in $enable_rtemsbsp ; do
+ if test "$_tillac_rtems_multi_bsps" = "no" ; then
+ _tillac_rtems_multi_bsps=maybe
+ else
+ _tillac_rtems_multi_bsps=yes
+ fi
+ done
+ test "$_tillac_rtems_multi_bsps" = "yes")]dnl
+)