annotate configure.in @ 463:05075ca5a377

Add explicit #include for <cyg/infra/cyg_type.h>
author bartv
date Sun, 15 Dec 2002 21:17:17 +0000
parents f58bc1b2c2bc
children d6a1854fdc1b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
2 dnl ====================================================================
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
3 dnl
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
4 dnl configure.in
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
5 dnl
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
6 dnl Top-level configure script for eCos software.
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
7 dnl
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
8 dnl ====================================================================
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
9 dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN####
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
10 dnl ----------------------------------------------------------------------------
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
11 dnl Copyright (C) 2002 Bart Veer
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
12 dnl Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
13 dnl
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
14 dnl This file is part of the eCos host tools.
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
15 dnl
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
16 dnl This program is free software; you can redistribute it and/or modify it
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
17 dnl under the terms of the GNU General Public License as published by the Free
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
18 dnl Software Foundation; either version 2 of the License, or (at your option)
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
19 dnl any later version.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
20 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
21 dnl This program is distributed in the hope that it will be useful, but WITHOUT
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
22 dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
23 dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
24 dnl more details.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
25 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
26 dnl You should have received a copy of the GNU General Public License along with
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
27 dnl this program; if not, write to the Free Software Foundation, Inc.,
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
28 dnl 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
29 dnl ----------------------------------------------------------------------------
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
30 dnl ####ECOSHOSTGPLCOPYRIGHTEND####
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
31 dnl ====================================================================
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
32 dnl#####DESCRIPTIONBEGIN####
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
33 dnl
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
34 dnl Author(s): bartv
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
35 dnl Contact(s): bartv
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
36 dnl Date: 1998/12/17
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
37 dnl Version: 0.01
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
38 dnl
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
39 dnl####DESCRIPTIONEND####
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
40 dnl ====================================================================
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
41
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
42 dnl eCos is a componentized architecture for deeply embedded systems.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
43 dnl It requires a very different configuration system from typical
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
44 dnl autoconfiscated software such as the various GNU packages.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
45 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
46 dnl The main eCos host-side software is autoconfiscated to some extent,
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
47 dnl in that the usual sequence of "configure;make;make install" will
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
48 dnl work under the right conditions. However it does not conform to
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
49 dnl the GNU coding standards in numerous ways, for example "make dist"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
50 dnl will not work. The main eCos host-side software lives in the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
51 dnl "host" subdirectory, and is built unconditionally.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
52 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
53 dnl The eCos target-side software lives in the "packages" subdirectory,
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
54 dnl and is organized in numerous subdirectories corresponding to different
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
55 dnl packages and potentially different versions of each package. In the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
56 dnl master repository managed by CVS there will only be one version of
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
57 dnl each package, "current", which simplifies things somewhat. Other
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
58 dnl repositories will not be quite so straightforward and require a
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
59 dnl suitable administration tool.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
60 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
61 dnl The various eCos packages are not currently auto-confiscated.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
62 dnl In particular building eCos requires the use of eCos configuration
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
63 dnl technology, not autoconf - there is simply no good way of handling
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
64 dnl a system as highly configurable as eCos using a few command-line
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
65 dnl options passed to "configure". There would also be serious confusion
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
66 dnl between host and target, especially when e.g. cross-compiling the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
67 dnl host tools. However a possible future enhancement
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
68 dnl would involve making eCos releases via configure and make, thus
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
69 dnl allowing for a release process that combines building the various
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
70 dnl host-side tools such as gcc with creating eCos epk's for the various
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
71 dnl packages.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
72 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
73 dnl A complication is that some of the eCos target-side packages also
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
74 dnl contain package-specific host-side support. For example the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
75 dnl Linux synthetic target support uses special host-side software
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
76 dnl to provide I/O facilities: the architectural HAL package provdes
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
77 dnl generic support, the synthetic ethernet package extends this
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
78 dnl with ethernet support, and so on. Such package-specific host-side
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
79 dnl software does not belong in the main host subdirectory, that
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
80 dnl would make it very difficult to distribute new packages or
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
81 dnl new versions of a package. However keeping the code with the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
82 dnl various packages makes building more complicated.
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
83 dnl
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
84 dnl 1) if the entire repository is managed by CVS or anoncvs, this
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
85 dnl configure script will search the packages tree for any packages
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
86 dnl that have host-side software that needs to be built -
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
87 dnl specifically, that have a file "configure" inside a "host"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
88 dnl subdirectory in version "current" of a package.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
89 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
90 dnl 2) if instead the repository contains additional packages
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
91 dnl installed as epk's and managed by an administration tool then
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
92 dnl it is the responsibility of that tool to let the users build
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
93 dnl and rebuild the host-side software as required, for whichever
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
94 dnl host platform or platforms are being used. In other words
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
95 dnl it is the responsibility of the admin tool to create a
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
96 dnl suitable build directory and run "configure; make; make install",
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
97 dnl usually as part of the installation process. Note that several
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
98 dnl versions of a package may be installed, and it is the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
99 dnl responsibility of each package to take this into account
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
100 dnl (although the configure macros are aware of this to some extent,
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
101 dnl and will e.g. generate suitable install directory names).
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
102 dnl Also note that the top-level configure script will not pick
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
103 dnl up such packages because they will be versioned, i.e. the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
104 dnl test for current/host/configure will fail because the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
105 dnl version will not be "current".
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
106 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
107 dnl 3) as a special case it may be desirable to ship pre-built binaries
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
108 dnl of some of the package-specific software. It is not clear
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
109 dnl just what would be the best way of shipping these - putting
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
110 dnl them into the epk's would not be quite right because that would
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
111 dnl make the epk's host-specific rather than generic.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
112 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
113 dnl There is an unresolved problem with possible dependencies between
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
114 dnl packages, if e.g. the host-side of the synthetic ethernet package could
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
115 dnl only be built after the architectural synthetic target package.
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
116
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
117 dnl Some of the eCos documentation is generic and lives in the "doc"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
118 dnl subdirectory. Other eCos documentation is package-specific and lives
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
119 dnl in the appropriate package directory. At present there is no support
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
120 dnl for building the documentation via configure and make, but such
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
121 dnl support may be added in future.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
122 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
123 dnl There is a subdirectory acsupport containing various files such
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
124 dnl as config.guess and install.sh that are common. This also contains
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
125 dnl an acinclude.m4 file with various macros that are useful for
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
126 dnl eCos.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
127
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
128 dnl Generic initialization.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
129 AC_INIT(acsupport/config.guess)
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
130 AC_CONFIG_AUX_DIR(acsupport)
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
131 AC_CANONICAL_HOST
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
132 AM_INIT_AUTOMAKE(eCos,2.0,0)
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
133 AM_MAINTAINER_MODE
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
134 ECOS_CHECK_BUILD_ne_SRC
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
135
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
136 dnl Nothing actually gets built in this directory, so there should be no
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
137 dnl need to worry about compiler flags etc. Instead, the problem is
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
138 dnl figuring out what should actually get built.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
139 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
140 dnl 1) the host subdirectory should always get built.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
141 SUBDIRS="host"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
142
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
143 dnl 2) any package which has a configure script in a
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
144 dnl current/host subdirectory should also get built.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
145 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
146 dnl Searching the directory tree is currently done by shell globbing.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
147 dnl Invoking "find" with suitable arguments might be quicker, but
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
148 dnl less portable. On some hosts there may be problems with environmental
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
149 dnl limits if too many packages provide host-side software.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
150 dnl
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
151 dnl Currently there is no ordering of packages, so e.g. a device
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
152 dnl driver's host-side support cannot depend on some HAL package
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
153 dnl because the latter may not have been built and installed yet.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
154 dnl This is a good thing because packages are meant to be self-contained
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
155 dnl whenever possible. Interaction between packages is typically handled
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
156 dnl at the Tcl level at run-time, so there are no build-time complications.
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
157
283
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
158 PKGHOSTDIRS=""
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
159 FOUND_CONFIGURES=""
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
160 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/current/host/configure"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
161 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/current/host/configure"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
162 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/current/host/configure"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
163 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/current/host/configure"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
164 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/*/current/host/configure"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
165 for configure in ${FOUND_CONFIGURES}; do
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
166 if test -f ${configure}; then
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
167 dnl A configure script has been found in the source tree.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
168 dnl First turn it into a directory, then replace the absolute path
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
169 dnl with a relative one.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
170 hostdir=`dirname ${configure}`
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
171 hostdir=`echo ${hostdir} | sed -e "s:^${srcdir}/::"`
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
172 PKGHOSTDIRS="${PKGHOSTDIRS} ${hostdir}"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
173 fi
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
174 done
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
175
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
176 SUBDIRS="${SUBDIRS} ${PKGHOSTDIRS}"
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
177
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
178 dnl Because the eCos directory layout does not conform to GNU conventions
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
179 dnl it is necessary to create various levels of intermediate directories.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
180 dnl This happens via config.status, prior to the recursion into the
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
181 dnl appropriate directories.
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
182 AC_OUTPUT_COMMANDS([${CONFIG_SHELL-/bin/sh} ${top_srcdir}/acsupport/mkinstalldirs ${REQUIRED_DIRS}],REQUIRED_DIRS="${SUBDIRS}")
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
183
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
184 AC_SUBST(SUBDIRS)
f58bc1b2c2bc Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents: 208
diff changeset
185 AC_CONFIG_SUBDIRS(${SUBDIRS})
208
e0c0827131d1 Merge from eCos master repository on 2002-05-20-20:11:54-BST
jlarmour
parents:
diff changeset
186 AC_OUTPUT(Makefile)