source: rtems/testsuites/aclocal/env-rtemsbsp.m4 @ 0e8262cf

4.104.114.84.9
Last change on this file since 0e8262cf was 0e8262cf, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 26, 2003 at 6:21:00 AM

2003-11-26 Ralf Corsepius <corsepiu@…>

  • aclocal/canonical-target-name.m4, aclocal/canonicalize-tools.m4, aclocal/check-custom-bsp.m4, aclocal/check-cxx.m4, aclocal/check-itron.m4, aclocal/check-multiprocessing.m4, aclocal/check-networking.m4, aclocal/check-posix.m4, aclocal/check-tool.m4, aclocal/config-subdirs.m4, aclocal/enable-bare.m4, aclocal/enable-cxx.m4, aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4, aclocal/enable-posix.m4, aclocal/enable-rtemsbsp.m4, aclocal/enable-tests.m4, aclocal/env-rtemsbsp.m4, aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4, aclocal/multilib.m4, aclocal/path-ksh.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4, aclocal/project-root.m4, aclocal/rtems-test-no-pause.m4, aclocal/rtems-top.m4, aclocal/target.m4, aclocal/tool-paths.m4: Fix underquoting to silence automake-1.8.
  • Property mode set to 100644
File size: 1.5 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([CPU_CFLAGS],[CFLAGS specifying CPU-dependent features])
12AC_ARG_VAR([CFLAGS_OPTIMIZE_V],[CFLAGS for building the OPTIMIZE variant])
13AC_ARG_VAR([CFLAGS_DEBUG_V],[CFLAGS for building the DEBUG variant])
14AC_ARG_VAR([RTEMS_BSP_FAMILY],[RTEMS's BSP directory])
15AC_ARG_VAR([RTEMS_CPU_MODEL],[RTEMS's cpu model])
16
17AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
18AC_MSG_CHECKING([for RTEMS_BSP])
19AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
20[dnl
21  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
22])dnl
23if test -z "$rtems_cv_RTEMS_BSP"; then
24  AC_MSG_ERROR([Missing RTEMS_BSP])
25fi
26RTEMS_BSP="$rtems_cv_RTEMS_BSP"
27AC_MSG_RESULT(${RTEMS_BSP})
28AC_SUBST(RTEMS_BSP)
29
30RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
31AC_SUBST(RTEMS_BSP_SPECS)
32
33GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
34AC_SUBST(GCC_SPECS)
35
36PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
37AC_SUBST(PROJECT_INCLUDE)
38
39PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"   
40AC_SUBST(PROJECT_RELEASE)
41
42RTEMS_ROOT="\$(PROJECT_ROOT)/c/$RTEMS_BSP"
43AC_SUBST(RTEMS_ROOT)
44
45RTEMS_ENABLE_BARE
46AC_SUBST(BARE_CPU_MODEL)
47AC_SUBST(BARE_CPU_CFLAGS)
48
49AM_CONDITIONAL([MULTILIB],[false])
50
51includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
52libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
53
54bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
55AC_SUBST(bsplibdir)
56])
Note: See TracBrowser for help on using the repository browser.