source: rtems/c/src/make/configure.in @ dd9c6e0d

4.104.114.84.95
Last change on this file since dd9c6e0d was dd9c6e0d, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 18, 1999 at 2:06:48 PM

Patch rtems-rc-19991117-0.diff.gz from Ralf Corsepius
<corsepiu@…> which corrects some configuration
problems and cleans up a few Makefile.in's.

  • Property mode set to 100644
File size: 3.0 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
14RTEMS_CANONICAL_TARGET_CPU
15
16AM_INIT_AUTOMAKE(rtems-c-src-make,$RTEMS_VERSION,no)
17AM_MAINTAINER_MODE
18
19RTEMS_ENABLE_MULTIPROCESSING
20RTEMS_ENABLE_POSIX
21RTEMS_ENABLE_ITRON
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)
42RTEMS_PATH_PERL
43
44AC_PATH_PROG(TOUCH,touch)
45AC_PATH_PROG(CMP,cmp)
46
47AC_PATH_PROG(SED,sed)
48AC_PATH_PROGS(M4,gm4 m4)
49
50RTEMS_PATH_KSH
51
52dnl BEGIN configure.target.in
53
54RTEMS_CHECK_CPU
55RTEMS_CANONICAL_HOST
56
57RTEMS_PROJECT_ROOT
58
59dnl check target cc
60RTEMS_PROG_CC_FOR_TARGET
61
62dnl check for g++
63if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
64  RTEMS_PROG_CXX_FOR_TARGET
65fi
66
67RTEMS_CANONICALIZE_TOOLS
68
69dnl if this is an i386, does gas have good code16 support?
70RTEMS_I386_GAS_CODE16
71
72RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
73RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
74RTEMS_CHECK_NETWORKING(RTEMS_BSP)
75RTEMS_CHECK_RDBG(RTEMS_BSP)
76RTEMS_CHECK_POSIX_API(RTEMS_BSP)
77RTEMS_CHECK_CXX(RTEMS_BSP)
78RTEMS_CHECK_ITRON_API(RTEMS_BSP)
79
80AC_SUBST(rtems_cv_prog_cc_cross)
81AC_SUBST(RTEMS_HAS_CPLUSPLUS)
82AC_SUBST(RTEMS_USE_GCC272)
83AC_SUBST(BARE_CPU_CFLAGS)
84AC_SUBST(BARE_CPU_MODEL)
85AC_SUBST(program_prefix)
86AC_SUBST(CC_CFLAGS_DEFAULT)
87AC_SUBST(CC_CFLAGS_DEBUG_V)
88AC_SUBST(CC_CFLAGS_PROFILE_V)
89AC_SUBST(CC_LDFLAGS_PROFILE_V)
90
91# Collect the files needed to build a BSP
92cfg_dir="${RTEMS_TOPdir}/make"
93cfg_srcs=""
94cfg_dsts=""
95CUSTOM_CFG_FILES=""
96f="${RTEMS_BSP}.cfg"
97while test -n "$f"; do
98  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
99    cfg_srcs="$cfg_srcs ${cfg_dir}/custom/$f"
100    cfg_dsts="$cfg_dsts custom/$f"
101    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES $f"
102    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
103    | sed \
104      -e 's%^.*custom\/%%' \
105      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
106      -e 's%default\.cfg%%'`;
107  else break; fi;
108done
109AC_SUBST(CUSTOM_CFG_FILES)
110
111# Symlink the *.cfg files from the toplevel make directory into the build
112# trees c/<bsp>/make subdirectories
113AC_LINK_FILES($cfg_srcs,$cfg_dsts)
114AC_LINK_FILES($cfg_dir/Templates/Makefile.lib,Templates/Makefile.lib)
115AC_LINK_FILES($cfg_dir/Templates/Makefile.leaf,Templates/Makefile.leaf)
116AC_LINK_FILES($cfg_dir/Templates/Makefile.dir,Templates/Makefile.dir)
117AC_LINK_FILES($cfg_dir/compilers/gcc-target-default.cfg,compilers/gcc-target-default.cfg)
118AC_LINK_FILES($cfg_dir/directory.cfg,directory.cfg)
119AC_LINK_FILES($cfg_dir/leaf.cfg,leaf.cfg)
120AC_LINK_FILES($cfg_dir/lib.cfg,lib.cfg)
121AC_LINK_FILES($cfg_dir/README,README)
122
123AC_OUTPUT(
124Makefile
125Makefile.inc
126main.cfg
127host.cfg
128bsp.cfg
129custom/Makefile
130custom/default.cfg
131compilers/Makefile
132)
Note: See TracBrowser for help on using the repository browser.