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

4.104.114.84.95
Last change on this file since a3c8bda was 1896a650, checked in by Joel Sherrill <joel.sherrill@…>, on 07/30/99 at 17:52:50

Patch from Ralf Corsepius <corsepiu@…>:

The main topic is replacing the hard-coded values for HAS_MP and
HAS_RDBG in custom/*.cfg with per-bsp configuration-time autoconf checks
(This is the patch I had mentioned before earlier this week).

CHANGES

  • HAS_MP removed from custom/*.cfg, replaced with configuration time autoconf check
  • HAS_RDBG removed from custom/*.cfg, replaced with configuration-time autoconf check
  • NEW: c/src/make/bsp.cfg.in, takes configuration-time checked per-bsp values (i.e. HAS_MP, HAS_RDBG), gets installed as $(prefix)/<bsp>/make/bsp.cfg
  • NEW: default.cfg includes bsp.cfg - this change is backward compatible.
  • IMPORT_SRC: apply VPATH instead for ts_386ex/i386ex subdirectory Makefile.ins
  • HACK: a bug in acpolish mis-handles addtions to makefile variables which are enclosed in gmake conditionals: c/src/lib/libbsp/m68k/ods68302/start302/Makefile.in
  • Apply inline_dir, HAS_MP and HAS_RDBG for avoiding configuration of unneeded subdirectories in various configure.in files.
  • Several minor changes in Makefile.ins and configure.ins, wrt. to the order of including *.cfg and defining Makefile variables

APPLYING THE PATCH:

patch -p1 < rtems-rc-19990709-4.diff
./autogen

  • Property mode set to 100644
File size: 3.1 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
10AC_PROG_MAKE_SET
11RTEMS_CANONICAL_TARGET_CPU
12
13AM_MAINTAINER_MODE
14RTEMS_ENABLE_MULTIPROCESSING
15RTEMS_ENABLE_POSIX
16RTEMS_ENABLE_NETWORKING
17RTEMS_ENABLE_INLINES
18RTEMS_ENABLE_CXX
19RTEMS_ENABLE_GCC28
20RTEMS_ENABLE_LIBCDIR
21
22RTEMS_ENV_RTEMSBSP
23
24AC_PROG_LN_S
25AC_PROG_INSTALL
26RTEMS_PATH_KSH
27
28RTEMS_CHECK_CPU
29RTEMS_CANONICAL_HOST
30
31RTEMS_PROJECT_ROOT
32
33dnl check target cc
34RTEMS_PROG_CC_FOR_TARGET
35
36dnl check for g++
37if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
38  RTEMS_PROG_CXX_FOR_TARGET
39fi
40
41RTEMS_CANONICALIZE_TOOLS
42
43dnl if this is an i386, does gas have good code16 support?
44RTEMS_I386_GAS_CODE16
45
46RTEMS_CHECK_SYSV_UNIX
47
48RTEMS_CHECK_NEWLIB
49
50# Check if there is custom/*.cfg for this BSP
51RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
52
53RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
54
55# find all the Executive Makefiles
56RTEMS_CHECK_MAKEFILE(score/cpu/$RTEMS_CPU)
57
58# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
59if test "$RTEMS_USE_MACROS" = "yes"; then
60  inline_dir="macros"
61  if test "$RTEMS_HAS_POSIX_API" = "yes"; then
62    # The problem is that there is currently no code in posix/macros :)
63    AC_MSG_ERROR(Macros are not implemented for the POSIX API)
64  fi
65else
66  inline_dir="inline"
67fi
68
69if test "$RTEMS_HAS_POSIX_API" = "yes"; then
70  makefiles="$makefiles posix/Makefile"
71  makefiles="$makefiles posix/src/Makefile"
72  makefiles="$makefiles posix/include/Makefile"
73  makefiles="$makefiles posix/include/sys/Makefile"
74  makefiles="$makefiles posix/include/rtems/Makefile"
75  makefiles="$makefiles posix/include/rtems/posix/Makefile"
76  makefiles="$makefiles posix/include/wrap/Makefile"
77  makefiles="$makefiles posix/optman/Makefile"
78  makefiles="$makefiles wrapup/posix/Makefile"
79
80  makefiles="$makefiles posix/${inline_dir}/Makefile"
81  makefiles="$makefiles posix/${inline_dir}/rtems/Makefile"
82  makefiles="$makefiles posix/${inline_dir}/rtems/posix/Makefile"
83fi
84
85AC_SUBST(RTEMS_VERSION)
86
87AC_SUBST(rtems_cv_prog_cc_cross)
88AC_SUBST(RTEMS_HAS_CPLUSPLUS)
89AC_SUBST(RTEMS_USE_GCC272)
90AC_SUBST(program_prefix)
91AC_SUBST(CC_CFLAGS_DEFAULT)
92AC_SUBST(CC_CFLAGS_DEBUG_V)
93AC_SUBST(CC_CFLAGS_PROFILE_V)
94AC_SUBST(CC_LDFLAGS_PROFILE_V)
95
96# Try to explicitly list a Makefile here
97AC_OUTPUT(
98Makefile
99rtems/Makefile
100rtems/src/Makefile
101rtems/include/Makefile
102rtems/include/wrap/Makefile
103rtems/include/rtems/Makefile
104rtems/include/rtems/rtems/Makefile
105rtems/optman/Makefile
106rtems/${inline_dir}/Makefile
107rtems/${inline_dir}/rtems/Makefile
108rtems/${inline_dir}/rtems/rtems/Makefile
109sapi/Makefile
110sapi/src/Makefile
111sapi/include/Makefile
112sapi/include/wrap/Makefile
113sapi/include/rtems/Makefile
114sapi/include/rtems/sptables.h
115sapi/${inline_dir}/Makefile
116sapi/${inline_dir}/rtems/Makefile
117sapi/optman/Makefile
118score/Makefile
119score/cpu/Makefile
120score/include/Makefile
121score/include/rtems/Makefile
122score/include/rtems/wrap/Makefile
123score/include/rtems/score/Makefile
124score/${inline_dir}/Makefile
125score/${inline_dir}/rtems/Makefile
126score/${inline_dir}/rtems/score/Makefile
127score/src/Makefile
128wrapup/Makefile
129wrapup/rtems/Makefile
130$makefiles
131)
132
Note: See TracBrowser for help on using the repository browser.