source: rtems/cpukit/aclocal/env-rtemscpu.m4 @ 894b7f97

4.104.114.84.95
Last change on this file since 894b7f97 was 894b7f97, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/29/04 at 12:35:15

2004-03-29 Ralf Corsepius <ralf_corsepius@…>

  • aclocal/rtems-top.m4: Add MULTISUBDIR. Add MULTIBUILDTOP. Add rtems_updir. Remove version.m4 check. Add PROJECT_ROOT/with_project_root processing. Add PROJECT_INCLUDE. Add PROJECT_LIB.
  • aclocal/env-rtemscpu.a4: Remove cpukit_topdir. Remove with_project_root processing. Remove PROJECT_INCLUDE, PROJECT_LIB.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1dnl $Id$
2
3# PROJECT_ROOT .. Directory to put the temporary installed files into
4
5# FIXME: to be revisited - featureladden, bloated
6AC_DEFUN([RTEMS_ENV_RTEMSCPU],
7[
8  AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
9
10  AS_IF([test -n "$enable_rtemsbsp"],
11  [ # Per BSP
12    AC_ARG_VAR([CPU_CFLAGS],[])
13    AC_ARG_VAR([CFLAGS_OPTIMIZE_V],
14      [CFLAGS for building the optimized variant])
15    AC_ARG_VAR([CFLAGS_DEBUG_V],
16      [CFLAGS for building the debugging variant])
17 
18    AC_MSG_CHECKING([for RTEMS_BSP])
19    AC_CACHE_VAL(rtems_cv_RTEMS_BSP,[
20      test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$enable_rtemsbsp"
21    ])
22    AS_IF([test -z "$rtems_cv_RTEMS_BSP"],[
23      AC_MSG_ERROR([Missing RTEMS_BSP])
24    ])
25    RTEMS_BSP="$rtems_cv_RTEMS_BSP"
26    AC_MSG_RESULT(${RTEMS_BSP})
27
28    includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
29    libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
30  ],[
31    includedir="\${exec_prefix}/include"
32    libdir="${libdir}\$(MULTISUBDIR)"
33  ])
34
35  AC_SUBST([project_libdir],["\$(libdir)"])
36  AC_SUBST([project_includedir],["\$(includedir)"])
37
38  AM_CONDITIONAL([MULTILIB],[test x"$multilib" = x"yes"])
39])
Note: See TracBrowser for help on using the repository browser.