source: rtems/configure.in @ d6c20ff3

4.104.114.84.95
Last change on this file since d6c20ff3 was 48ad47cc, checked in by Joel Sherrill <joel.sherrill@…>, on 03/01/01 at 20:46:21

2001-02-22 Ralf Corsepius <corsepiu@…>

  • configure.in: Reworked for Canadian Cross support.
  • Makefile.am: Reflect changes to configure.in.
  • config.guess, config.sub: Update from subversions.gnu.org.
  • README.cdn-X: New file.
  • tools/Makefile.am: Remove build, tools from SUBDIRS.
  • 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
5AC_PREREQ(2.13)
6AC_INIT(c)
7RTEMS_TOP(.)
8
9# Abort if trying to build inside of the source tree.
10if test -f VERSION; then
11  rm -f config.cache config.log confdefs.h
12  AC_MSG_ERROR([***]
13    [Attempt to build inside of the source tree]
14    [Please use a separate build directory, instead] )
15fi
16
17AC_CANONICAL_SYSTEM
18AM_INIT_AUTOMAKE(rtems,$RTEMS_VERSION,no)
19AM_MAINTAINER_MODE
20
21dnl These option are only in here to let --help report all supported
22dnl options.
23RTEMS_ENABLE_MULTIPROCESSING
24RTEMS_ENABLE_POSIX
25RTEMS_ENABLE_ITRON
26RTEMS_ENABLE_NETWORKING
27RTEMS_ENABLE_RDBG
28RTEMS_ENABLE_INLINES
29RTEMS_ENABLE_CXX
30RTEMS_ENABLE_GCC28
31RTEMS_ENABLE_LIBCDIR
32RTEMS_ENABLE_TESTS 
33RTEMS_ENABLE_RTEMS_DEBUG
34RTEMS_ENABLE_RTEMSBSP(dummy)
35
36if test $host != $build; then
37AC_MSG_WARN([]
38[*** *** *** WARNING *** *** ***]
39[]
40[Entering BEYOND BLEEDING EDGE TERRITORY]
41[]
42[You are trying to build RTEMS Canadian cross]
43[If you really mean it, feel free to continue ...]
44[*** *** *** *** *** *** *** ***])
45fi
46
47## NOTES:
48## The tools/*-directories situation is unclear
49## * tools/build are host-native tools to be installed on the host.
50## * tools/cpu are host-native or host-cross-target-tools
51## * tools/update are build-host-native tools
52
53# these tools are built for the build environment
54#
55build_tools="tools/update"
56
57# these libraries are built for the host environment
58#
59host_libs=""
60
61# these tools are built for the host environment
62#
63host_tools="tools/build tools/cpu"
64
65# these libraries are built for the target environment, and are built after
66# the host libraries and the host tools (which may be a cross compiler)
67#
68target_libs="c"
69
70# these tools are built using the target libs, and are intended to run only
71# in the target environment
72#
73target_tools=""
74
75## All tools belong in one of the five categories, and are assigned above.
76## ${host_configdirs} is directories we build using the host tools.
77## ${target_configdirs} is directories we build using the target tools.
78#
79host_configdirs="${host_libs} ${host_tools}"
80AC_SUBST(host_configdirs)
81
82target_configdirs="${target_libs} ${target_tools}"
83AC_SUBST(target_configdirs)
84
85RTEMS_TARGET_CONFIG_PREPARE
86target_subdir=${target_alias}
87
88RTEMS_HOST_CONFIG_PREPARE
89host_subdir=${host_alias}
90
91if test $build = $host;
92then
93  BUILD_SUBDIRS="$build_tools $host_configdirs"
94
95  if test $build = $target;
96  then
97    BUILD_SUBDIRS="$BUILD_SUBDIRS $target_configdirs";
98  else
99    TARGET_SUBDIRS=`echo "$target_configdirs" | \
100      sed -e "s%\([[^ ]][[^ ]]*\)%$target_alias/\1%g"`
101  fi
102else
103## If building Canadian cross, disable the target directories
104  target_configdirs=""
105  BUILD_SUBDIRS="$build_tools"
106  TARGET_SUBDIRS=`echo "$host_configdirs" | \
107    sed -e "s%\([[^ ]][[^ ]]*\)%$host_alias/\1%g"`
108fi
109
110AC_CONFIG_SUBDIRS($BUILD_SUBDIRS)
111AC_SUBST(TARGET_SUBDIRS)
112AC_SUBST(BUILD_SUBDIRS)
113
114AC_OUTPUT(
115Makefile
116tools/Makefile
117make/Makefile
118make/custom/Makefile
119make/Templates/Makefile
120make/compilers/Makefile
121doc/Makefile)
122
123RTEMS_TARGET_CONFIG_SUBDIRS
124RTEMS_HOST_CONFIG_SUBDIRS
Note: See TracBrowser for help on using the repository browser.