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

4.104.114.84.9
Last change on this file since c6e26e06 was c6e26e06, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 11, 2004 at 12:21:40 PM

2004-01-11 Ralf Corsepius <corsepiu@…>

  • aclocal/rtems-top.m4: Don't AC_SUBST PROJECT_ROOT. Remove PROJECT_TOPdir (Unused).
  • aclocal/env-rtemscpu.m4: Remove PROJECT_RELEASE. Expand ${PROJECT_ROOT}. Remove RTEMS_ENABLE_BARE (Unused). Don't AC_SUBST RTEMS_BSP.
  • aclocal/enable-bare.m4: Remove (Unused).
  • Property mode set to 100644
File size: 1.5 KB
Line 
1dnl $Id$
2
3AC_DEFUN([RTEMS_ENV_RTEMSCPU],
4[
5  AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
6
7  AS_IF([test x"$multilib" = x"yes"],
8  [
9    AS_IF([test -n "$with_multisubdir"],
10      [MULTIBUILDTOP=`echo "/$with_multisubdir" | sed 's,/[[^\\/]]*,../,g'`])
11    AC_SUBST(MULTIBUILDTOP)
12 
13    AS_IF([test -n "$with_multisubdir"],
14      [MULTISUBDIR="/$with_multisubdir"])
15    AC_SUBST(MULTISUBDIR)
16 
17    AC_SUBST([PROJECT_INCLUDE],["${PROJECT_ROOT}/lib/include"])
18    AC_SUBST([PROJECT_LIB],["${PROJECT_ROOT}/lib\$(MULTISUBDIR)"])
19
20    includedir="\${exec_prefix}/include"
21    libdir="${libdir}\$(MULTISUBDIR)"
22  ],
23  [
24    AC_ARG_VAR([CPU_CFLAGS],[])
25    AC_ARG_VAR([CFLAGS_OPTIMIZE_V],
26      [CFLAGS for building the optimized variant])
27    AC_ARG_VAR([CFLAGS_DEBUG_V],
28      [CFLAGS for building the debugging variant])
29 
30    AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
31    AC_MSG_CHECKING([for RTEMS_BSP])
32    AC_CACHE_VAL(rtems_cv_RTEMS_BSP,[
33      test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"
34    ])
35    AS_IF([test -z "$rtems_cv_RTEMS_BSP"],[
36      AC_MSG_ERROR([Missing RTEMS_BSP])
37    ])
38    RTEMS_BSP="$rtems_cv_RTEMS_BSP"
39    AC_MSG_RESULT(${RTEMS_BSP})
40 
41    includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
42    libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
43
44    AC_SUBST([PROJECT_INCLUDE],["${PROJECT_ROOT}/$RTEMS_BSP/lib/include"])
45    AC_SUBST([PROJECT_LIB],["${PROJECT_ROOT}/$RTEMS_BSP/lib"])
46  ])
47
48  AC_SUBST([project_libdir],["\$(libdir)"])
49  AC_SUBST([project_includedir],["\$(includedir)"])
50
51  AM_CONDITIONAL([MULTILIB],[test x"$multilib" = x"yes"])
52])
Note: See TracBrowser for help on using the repository browser.