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

4.104.114.84.9
Last change on this file since b7235805 was b7235805, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 13, 2003 at 9:31:17 AM

2003-12-13 Ralf Corsepius <corsepiu@…>

  • aclocal/env-rtemscpu.m4: Remove stray '/' in PROJECT_LIB.
  • wrapup/Makefile.am: Remove duplicate $(PROJECT_LIB) rule.
  • Property mode set to 100644
File size: 1.8 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    AC_SUBST([PROJECT_RELEASE],["\$(PROJECT_ROOT)"])
20
21    includedir="\${exec_prefix}/include"
22    libdir="${libdir}\$(MULTISUBDIR)"
23  ],
24  [
25    AC_ARG_VAR([CPU_CFLAGS],[])
26    AC_ARG_VAR([CFLAGS_OPTIMIZE_V],
27      [CFLAGS for building the optimized variant])
28    AC_ARG_VAR([CFLAGS_DEBUG_V],
29      [CFLAGS for building the debugging variant])
30 
31    AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
32    AC_MSG_CHECKING([for RTEMS_BSP])
33    AC_CACHE_VAL(rtems_cv_RTEMS_BSP,[
34      test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"
35    ])
36    AS_IF([test -z "$rtems_cv_RTEMS_BSP"],[
37      AC_MSG_ERROR([Missing RTEMS_BSP])
38    ])
39    RTEMS_BSP="$rtems_cv_RTEMS_BSP"
40    AC_MSG_RESULT(${RTEMS_BSP})
41    AC_SUBST(RTEMS_BSP)
42 
43    includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
44    libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
45
46    AC_SUBST([PROJECT_INCLUDE],["\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"])
47    AC_SUBST([PROJECT_LIB],["\$(PROJECT_ROOT)/$RTEMS_BSP/lib"])
48    AC_SUBST([PROJECT_RELEASE],["\$(PROJECT_ROOT)/$RTEMS_BSP"])
49
50    RTEMS_ENABLE_BARE
51    AC_SUBST(BARE_CPU_MODEL)
52    AC_SUBST(BARE_CPU_CFLAGS)
53  ])
54
55  AC_SUBST([project_libdir],["\$(libdir)"])
56  AC_SUBST([project_includedir],["\$(includedir)"])
57
58  AM_CONDITIONAL([MULTILIB],[test x"$multilib" = x"yes"])
59])
Note: See TracBrowser for help on using the repository browser.