diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-04-22 22:06:58 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-04-22 22:06:58 +0000 |
commit | a8bf95d0249565f4210ccab5c13232d501ce0c2d (patch) | |
tree | e01f2eca98add8dba13eec23a95fa22120638890 /m4/rtems-ismultibsp.m4 | |
parent | This commit was manufactured by cvs2svn to create branch 'base'. (diff) | |
download | libbsdport-a8bf95d0249565f4210ccab5c13232d501ce0c2d.tar.bz2 |
- importing updated version from SLAC as of 20090422
Diffstat (limited to 'm4/rtems-ismultibsp.m4')
-rw-r--r-- | m4/rtems-ismultibsp.m4 | 23 |
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 +) |