summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/acinclude.m4
blob: 1e8599dc1a97000d7622429bccbfa34aa7fa6eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# RTEMS_CHECK_BSPDIR(RTEMS_BSP)
AC_DEFUN([RTEMS_CHECK_BSPDIR],
[
  RTEMS_BSP_ALIAS(ifelse([$1],,[${RTEMS_BSP}],[$1]),bspdir)
  case "$bspdir" in
  gensh1 )
    AC_CONFIG_SUBDIRS([gensh1]);;
  gensh2 )
    AC_CONFIG_SUBDIRS([gensh2]);;
  gensh4 )
    AC_CONFIG_SUBDIRS([gensh4]);;
  shsim )
    AC_CONFIG_SUBDIRS([shsim]);;
  simsh4 )
    AC_CONFIG_SUBDIRS([simsh4]);;
  *)
    AC_MSG_ERROR([Invalid BSP]);;
  esac
])