diff options
Diffstat (limited to 'm4/rtems-isrtems.m4')
-rw-r--r-- | m4/rtems-isrtems.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/rtems-isrtems.m4 b/m4/rtems-isrtems.m4 new file mode 100644 index 0000000..058be01 --- /dev/null +++ b/m4/rtems-isrtems.m4 @@ -0,0 +1,23 @@ +# Find out if host_os is *rtems*; +# +# Result is exit status, i.e., this macro can e.g., be used +# in a 'if MACRO ; then list; fi' statement. +# +# TILLAC_RTEMS_HOSTOS_IS_RTEMS +AC_DEFUN([TILLAC_RTEMS_HOSTOS_IS_RTEMS], + [AC_REQUIRE([AC_CANONICAL_HOST]) + case "${host_os}" in *rtems* ) : ;; *) false;; esac]dnl +) + + +# Find out if either '--with-rtems-top' was given or +# host_os is *rtems* (or both). +# +# Result is exit status, i.e., this macro can e.g., be used +# in a 'if MACRO ; then list; fi' statement. +# +# TILLAC_RTEMS_OS_IS_RTEMS +AC_DEFUN([TILLAC_RTEMS_OS_IS_RTEMS], + [AC_REQUIRE([AC_CANONICAL_HOST]) + test "${with_rtems_top+set}" = "set" || TILLAC_RTEMS_HOSTOS_IS_RTEMS]dnl +) |