source: rtems/aclocal/enable-rtemsbsp.m4 @ 2e0fd427

4.104.114.84.9
Last change on this file since 2e0fd427 was 2e0fd427, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 2, 2000 at 3:44:04 PM

2000-11-02 Ralf Corsepius <corsepiu@…>

  • aclocal/*: Replace with contents of macros/*.m4
  • macros/: Remove.
  • aclocal/ar-s.m4 aclocal/tool-prefix.m4: Remove.
  • Makefile.am: Reflect changes to aclocal/ and macros/.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1dnl $Id$
2
3dnl Override the set of BSPs to be built.
4dnl used by the toplevel configure script
5dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
6AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
7[
8AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])dnl
9AC_ARG_ENABLE(rtemsbsp,
10[  --enable-rtemsbsp=bsp1 bsp2 ..      BSPs to include in build],
11[case "${enableval}" in
12  yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
13  *) $1=$enableval;;
14esac],[$1=""])
15])
16
17dnl Pass a single BSP via an environment variable
18dnl used by per BSP configure scripts
19AC_DEFUN(RTEMS_ENV_RTEMSBSP,
20[dnl
21AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
22AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
23AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
24
25AC_MSG_CHECKING([for RTEMS_BSP])
26AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
27[dnl
28  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
29])dnl
30if test -z "$rtems_cv_RTEMS_BSP"; then
31  AC_MSG_ERROR([Missing RTEMS_BSP])
32fi
33RTEMS_BSP="$rtems_cv_RTEMS_BSP"
34AC_MSG_RESULT(${RTEMS_BSP})
35AC_SUBST(RTEMS_BSP)
36
37RTEMS_ENABLE_BARE
38AC_SUBST(BARE_CPU_MODEL)
39AC_SUBST(BARE_CPU_CFLAGS)
40
41RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
42AC_SUBST(RTEMS_ROOT)
43AM_CONDITIONAL(RTEMS_CONFIG_PER_BSP, test x = x);
44])
45
46AC_DEFUN(RTEMS_ENV_RTEMSCPU,
47[AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
48
49if test x"$multilib" = x"no"; then
50  RTEMS_ENV_RTEMSBSP
51  RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
52else
53  rtems_cv_RTEMS_BSP="multilib"
54  RTEMS_BSP="$rtems_cv_RTEMS_BSP"
55  AC_SUBST(RTEMS_BSP)
56  RTEMS_ROOT=$PROJECT_ROOT/c
57  AC_SUBST(RTEMS_ROOT)
58fi
59])
Note: See TracBrowser for help on using the repository browser.