source: rtems/c/src/make/configure.in @ 1896a650

4.104.114.84.95
Last change on this file since 1896a650 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: 2.9 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl  $Id$
4
5dnl
6dnl This script configures the configuration files below make/
7dnl
8
9AC_PREREQ(2.13)
10AC_INIT(main.cfg.in)
11RTEMS_TOP(../../..)
12AC_CONFIG_AUX_DIR(../../..)
13
14AC_PROG_MAKE_SET
15RTEMS_CANONICAL_TARGET_CPU
16
17AM_INIT_AUTOMAKE(rtems-c-src-make,$RTEMS_VERSION,no)
18AM_MAINTAINER_MODE
19
20RTEMS_ENABLE_MULTIPROCESSING
21RTEMS_ENABLE_POSIX
22RTEMS_ENABLE_NETWORKING
23RTEMS_ENABLE_RDBG
24RTEMS_ENABLE_INLINES
25RTEMS_ENABLE_CXX
26RTEMS_ENABLE_GCC28
27RTEMS_ENABLE_LIBCDIR
28RTEMS_ENABLE_BARE
29
30RTEMS_ENV_RTEMSBSP
31
32dnl BEGIN configure.host.in
33
34AC_PATH_PROG(CAT,cat)
35AC_PATH_PROG(RM,rm)
36AC_PATH_PROG(CP,cp)
37AC_PATH_PROG(MV,mv)
38AC_PATH_PROG(LN,ln)
39AC_PROG_LN_S
40AC_PATH_PROG(CHMOD,chmod)
41AC_PATH_PROG(SORT,sort)
42AC_PROG_INSTALL
43RTEMS_PATH_PERL
44
45AC_PATH_PROG(TOUCH,touch)
46AC_PATH_PROG(CMP,cmp)
47
48AC_PATH_PROG(SED,sed)
49AC_PATH_PROGS(M4,gm4 m4)
50
51RTEMS_PATH_KSH
52
53dnl BEGIN configure.target.in
54
55RTEMS_CHECK_CPU
56RTEMS_CANONICAL_HOST
57
58RTEMS_PROJECT_ROOT
59
60dnl check target cc
61RTEMS_PROG_CC_FOR_TARGET
62
63dnl check for g++
64if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
65  RTEMS_PROG_CXX_FOR_TARGET
66fi
67
68RTEMS_CANONICALIZE_TOOLS
69
70dnl if this is an i386, does gas have good code16 support?
71RTEMS_I386_GAS_CODE16
72
73RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
74RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
75RTEMS_CHECK_RDBG(RTEMS_BSP)
76
77AC_SUBST(rtems_cv_prog_cc_cross)
78AC_SUBST(RTEMS_HAS_CPLUSPLUS)
79AC_SUBST(RTEMS_USE_GCC272)
80AC_SUBST(BARE_CPU_CFLAGS)
81AC_SUBST(BARE_CPU_MODEL)
82AC_SUBST(program_prefix)
83AC_SUBST(CC_CFLAGS_DEFAULT)
84AC_SUBST(CC_CFLAGS_DEBUG_V)
85AC_SUBST(CC_CFLAGS_PROFILE_V)
86AC_SUBST(CC_LDFLAGS_PROFILE_V)
87
88# Collect the files needed to build a BSP
89cfg_dir="${RTEMS_TOPdir}/make"
90cfg_srcs=""
91cfg_dsts=""
92CUSTOM_CFG_FILES=""
93f="${RTEMS_BSP}.cfg"
94while test -n "$f"; do
95  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
96    cfg_srcs="$cfg_srcs ${cfg_dir}/custom/$f"
97    cfg_dsts="$cfg_dsts custom/$f"
98    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES $f"
99    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
100    | sed \
101      -e 's%^.*custom\/%%' \
102      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
103      -e 's%default\.cfg%%'`;
104  else break; fi;
105done
106AC_SUBST(CUSTOM_CFG_FILES)
107
108# Symlink the *.cfg files from the toplevel make directory into the build
109# trees c/<bsp>/make subdirectories
110AC_LINK_FILES($cfg_srcs,$cfg_dsts)
111AC_LINK_FILES($cfg_dir/Templates/Makefile.lib,Templates/Makefile.lib)
112AC_LINK_FILES($cfg_dir/Templates/Makefile.leaf,Templates/Makefile.leaf)
113AC_LINK_FILES($cfg_dir/Templates/Makefile.dir,Templates/Makefile.dir)
114AC_LINK_FILES($cfg_dir/compilers/gcc-target-default.cfg,compilers/gcc-target-default.cfg)
115AC_LINK_FILES($cfg_dir/directory.cfg,directory.cfg)
116AC_LINK_FILES($cfg_dir/leaf.cfg,leaf.cfg)
117AC_LINK_FILES($cfg_dir/lib.cfg,lib.cfg)
118AC_LINK_FILES($cfg_dir/README,README)
119
120AC_OUTPUT(
121Makefile
122Makefile.inc
123main.cfg
124host.cfg
125target.cfg
126bsp.cfg
127Templates/Makefile
128custom/Makefile
129custom/default.cfg
130compilers/Makefile
131compilers/gcc.cfg
132)
Note: See TracBrowser for help on using the repository browser.