source: rtems/aclocal/env-rtemsbsp.m4 @ ba748523

4.104.114.84.95
Last change on this file since ba748523 was ba748523, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 20, 2001 at 5:33:23 PM

2001-12-20 Ralf Corsepius <corsepiu@…>

  • configure.ac: Reworked for multilibs, reflect changes to aclocal/*.m4.
  • aclocal/subdirs.m4: New file.
  • aclocal/multi.m4: New file, adopted from autoconf-2.52 w/ modifications.
  • aclocal/check-posix.m4: Apply AS_IF.
  • aclocal/config-subdirs.m4: Reflect changes to other m4-macros.
  • aclocal/env-rtemsbsp.m4: Add PROJECT_INCLUDE, PROJECT_RELEASE. Add AM_CONDITIONAL(MULTILIB). Adapt GCC_SPECS to multilibs.
  • aclocal/env-rtemscpu.m4: Remove RTEMS_BSP. Add support for MULTIBUILDTOP, MULTISUBDIR. Adapt GCC_SPECS to multilibs. Add PROJECT_INCLUDE, PROJECT_RELEASE, includedir, libdir.
  • aclocal/multilib.m4: Fix m4-quoting, adopt automake-1.5's OUTPUT_COMMANDS.
  • aclocal/project-root.m4: Remove PROJECT_INCLUDE, PROJECT_RELEASE.
  • aclocal/rtems-debug.m4: Minor cleanups.
  • aclocal/rtems-top.m4: Minor cleanups.
  • automake/compile.am: Further steps towards automake's rules.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1dnl $Id$
2
3dnl Pass a single BSP via an environment variable
4dnl used by per BSP configure scripts
5AC_DEFUN(RTEMS_ENV_RTEMSBSP,
6[dnl
7AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
8AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
9AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
10
11AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
12AC_MSG_CHECKING([for RTEMS_BSP])
13AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
14[dnl
15  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
16])dnl
17if test -z "$rtems_cv_RTEMS_BSP"; then
18  AC_MSG_ERROR([Missing RTEMS_BSP])
19fi
20RTEMS_BSP="$rtems_cv_RTEMS_BSP"
21AC_MSG_RESULT(${RTEMS_BSP})
22AC_SUBST(RTEMS_BSP)
23
24RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
25AC_SUBST(RTEMS_BSP_SPECS)
26
27GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
28AC_SUBST(GCC_SPECS)
29
30PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
31AC_SUBST(PROJECT_INCLUDE)
32
33PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"   
34AC_SUBST(PROJECT_RELEASE)
35
36RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
37AC_SUBST(RTEMS_ROOT)
38
39RTEMS_ENABLE_BARE
40AC_SUBST(BARE_CPU_MODEL)
41AC_SUBST(BARE_CPU_CFLAGS)
42
43AM_CONDITIONAL([RTEMS_CONFIG_PER_BSP],[true])
44AM_CONDITIONAL([MULTILIB],[false])
45
46includedir="\${exec_prefix}/\$(RTEMS_BSP)/lib/include"
47])
Note: See TracBrowser for help on using the repository browser.