source: rtems/c/src/exec/configure.in @ 39607984

4.104.114.84.95
Last change on this file since 39607984 was 39607984, checked in by Joel Sherrill <joel.sherrill@…>, on 07/12/00 at 19:23:14

Patch rtems-rc-20000712-1-cvs.diff from Ralf Corsepius <corsepiu@…>
that is yet another multilib-related structual cleanup patch:

Changes:

  • Make RTEMS_DEBUG a global per-cpu configuration option
  • Remove RTEMS_DEBUG from targopts.h
  • Add a global --enable-rtems-debug option disabled by default.
  • Add RTEMS_DEBUG to cpuopts.h
  • Remove all references to RTEMS_DEBUG from custom/*.cfg

Notes:

  • RTEMS_DEBUG is set in c/src/exec/configure.in only (RTEMS_CHECK_RTEMS_DEBUG) and should be defined in cpuopts.h only. BSPs should not redefine it, but use the value being provided by cpuopts.h. => With multilibs, users have to choose: Either enable RTEMS_DEBUG

for all BSPs and CPU_MODELs of a cpu or not.

  • Only few BSPs had RTEMS_DEBUG enabled, therefore I set the default to disabled.
  • This patch influences the per-BSP building scheme. Existing BSPs which set RTEMS_DEBUG in their make-target-options rule might have problems at runtime.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl  $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(score)
7RTEMS_TOP(../../..)
8AC_CONFIG_AUX_DIR(../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE(rtems-c-src-exec,$RTEMS_VERSION,no)
13AM_MAINTAINER_MODE
14
15RTEMS_ENABLE_MULTILIB
16RTEMS_ENABLE_MULTIPROCESSING
17RTEMS_ENABLE_POSIX
18RTEMS_ENABLE_ITRON
19RTEMS_ENABLE_INLINES
20RTEMS_ENABLE_GCC28
21RTEMS_ENABLE_RTEMS_DEBUG
22
23RTEMS_ENV_RTEMSCPU
24RTEMS_CHECK_RTEMS_DEBUG
25
26RTEMS_CHECK_CPU
27RTEMS_CANONICAL_HOST
28
29RTEMS_PROJECT_ROOT
30
31RTEMS_PROG_CC_FOR_TARGET
32RTEMS_CANONICALIZE_TOOLS
33
34RTEMS_CHECK_NEWLIB
35
36RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
37RTEMS_CHECK_POSIX_API(RTEMS_BSP)
38RTEMS_CHECK_ITRON_API(RTEMS_BSP)
39
40# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
41if test "$RTEMS_USE_MACROS" = "yes"; then
42  INLINEdir="macros"
43  if test "$HAS_POSIX_API" = "yes"; then
44    # The problem is that there is currently no code in posix/macros :)
45    AC_MSG_ERROR(Macros are not implemented for the POSIX API)
46  fi
47  if test "$HAS_ITRON_API" = "yes"; then
48    # The problem is that there is currently no code in itron/macros :)
49    AC_MSG_ERROR(Macros are not implemented for the ITRON API)
50  fi
51else
52  INLINEdir="inline"
53fi
54AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" )
55AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" )
56AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes" )
57
58AC_SUBST(RTEMS_VERSION)
59
60AM_CONDITIONAL(HAS_POSIX,test "$HAS_POSIX_API" = "yes")
61AM_CONDITIONAL(HAS_ITRON,test "$HAS_ITRON_API" = "yes")
62
63if test "$HAS_POSIX_API" = "yes"; then
64  cfg_subdirs="posix"
65fi
66if test "$HAS_ITRON_API" = "yes"; then
67  cfg_subdirs="$cfg_subdirs itron"
68fi
69AC_CONFIG_SUBDIRS($cfg_subdirs)
70AC_CONFIG_SUBDIRS(score/cpu/$RTEMS_CPU)
71
72AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
73
74# Explicitly list all Makefiles here
75AC_OUTPUT(
76Makefile
77rtems/Makefile
78rtems/src/Makefile
79rtems/include/Makefile
80rtems/include/rtems/Makefile
81rtems/include/rtems/rtems/Makefile
82rtems/optman/Makefile
83rtems/inline/Makefile
84rtems/inline/rtems/Makefile
85rtems/inline/rtems/rtems/Makefile
86rtems/macros/Makefile
87rtems/macros/rtems/Makefile
88rtems/macros/rtems/rtems/Makefile
89sapi/Makefile
90sapi/src/Makefile
91sapi/include/Makefile
92sapi/include/rtems/Makefile
93sapi/include/rtems/sptables.h
94sapi/inline/Makefile
95sapi/inline/rtems/Makefile
96sapi/macros/Makefile
97sapi/macros/rtems/Makefile
98sapi/optman/Makefile
99score/Makefile
100score/cpu/Makefile
101score/include/Makefile
102score/include/rtems/Makefile
103score/include/rtems/score/Makefile
104score/inline/Makefile
105score/inline/rtems/Makefile
106score/inline/rtems/score/Makefile
107score/macros/Makefile
108score/macros/rtems/Makefile
109score/macros/rtems/score/Makefile
110score/src/Makefile
111wrapup/Makefile
112wrapup/rtems/Makefile
113wrapup/itron/Makefile
114wrapup/posix/Makefile
115)
Note: See TracBrowser for help on using the repository browser.