source: rtems/aclocal/enable-rtemsbsp.m4 @ 03d5706

4.104.114.84.9
Last change on this file since 03d5706 was 03d5706, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 12, 2000 at 12:52:12 PM

2000-09-12 Ralf Corsepius <corsepiu@…>

  • aclocal/enable-rtemsbsp.m4: Add RTEMS_ENABLE_BARE, AC_SUBST(BARE_CPU_MODEL),AC_SUBST(BARE_CPU_CFLAGS).
  • aclocal/i386-gas-code16.m4: AC_DEFINE NEW_GAS.
  • aclocal/target.m4: Cleanup comments
  • Automake/compile.am: Add DEFS support to keep building happy.
  • Property mode set to 100644
File size: 1.4 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
41## RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
42## AC_SUBST(RTEMS_ROOT)
43])
44
45AC_DEFUN(RTEMS_ENV_RTEMSCPU,
46[AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
47
48if test x"$multilib" = x"no"; then
49  RTEMS_ENV_RTEMSBSP
50  RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
51else
52  rtems_cv_RTEMS_BSP="multilib"
53  RTEMS_BSP="$rtems_cv_RTEMS_BSP"
54  AC_SUBST(RTEMS_BSP)
55## RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c
56## AC_SUBST(RTEMS_ROOT)
57fi
58])
Note: See TracBrowser for help on using the repository browser.