source: rtems/c/configure @ 08b5f55

4.104.114.84.95
Last change on this file since 08b5f55 was eb299af, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 26, 1999 at 8:20:22 PM

This is part of a major patch from Ralf Corsepius <corsepiu@…>
to move RTEMS more to automake/autoconf and GNU compliance.

Finally, here they are: the "big-patch" patches - merged into one big
patch (~1.5MB).

Sorry for the delay, but testing took much more time than I had expected

  • esp. reworking the acpolish script triggered many more tiny issues than I had expected (cf. below).

At least, now you've got something to spend your weekend with :-.

WARNINGS:

  • I've gone a little (??) further than I had announced before.
  • Several directories have been moved.
  • Several files have been added and removed
  • I have tested it with many BSPs/CPUs and a variety of permutiations of configuration flags, but not with all.
  • Most parts of the patch are automatically generated, however there are many tiny manual modifications.

APPLYING THE PATCH:

./autogen -c
mkdir tools
mv c/src/exec/score/tools tools/cpu
mv c/build-tools tools/build
mv c/update-tools tools/update
patch -p1 -E < rtems-rc-19990709-0.diff
./autogen

If the patch doesn't apply to rtems-cvs, I would suggest that you should
try to apply it brute-force and then to run tools/update/rtems-polish.sh
-ac -am afterwards. A recursive diff between rtems-19990709 + patch and
rtems-cvs + patch then should report only a few dozen significant
changes to configuration files which need to be merged manually (IIRC, I
did not change any source files).

* Attention: There are files to be removed, moved, copied and added
in/to CVS!

NEWS/CHANGES:

  1. Configuration takes place in 3 stages: 1. per host (toplevel configure script), 2. per target (c/configure), 3. per bsp c/src/configure automatically triggered from ./configure and c/Makefile.am.
  2. Building of subdirectory c/ takes place in c/$(target_alias) for cross-targets in c/ for native targets
  3. Building of subdirectory c/src takes place in c/${target_alias}/<bsp> for cross-targets, c/<bsp> for native targets
  4. c/build-tools moved to tools/build
  5. c/src/exec/score/cpu/tools moved to tools/cpu (=cpu-tools split out)
  6. c/update-tools moved to tools/update
  7. New subdirectory c/src/make, handles files from make/ on a per BSP basis
  8. Maintainer mode support: Ie. if configuring with --enable-maintainer-mode disabled (the default), then tracking of many dependencies will be disabled in Makefiles. Esp. many dependencies for auto* generated files will be switched off in Makefiles. Ie. if not using "--enable-maintainer-mode" many auto* generated files will not be updated automatically, i.e. normal users should not be required to have auto* tools anymore (untested).
  9. Independent configuration scripts for / (toplevel), tools/build, tools/cpu, tools/update, c/, c/src/, c/src/exec, c/src/lib, c/src/tests, c/src/make
  10. Automake support for all directories above and besides c/src
  11. "preinstall" now is implemented as depth-first recursive make target
  1. host compiled tools (exception bsp-tools) are accessed in location in the build tree instead of inside the build-tree when building RTEMS.
  2. RTEMS_ROOT and PROJECT_ROOT now point to directories inside the build-tree - many tiny changes as consequence from this.
  3. --with-cross-host support removed (offically announced obsolete by cygnus)
  4. Changing the order of building libraries below c/src/lib/
  5. Former toplevel configure script broken into aclocal/*.m4 macros
  6. Newlib now detected by configure macros, RTEMS_HAS_NEWLIB removed from *cfg.
  7. sptables.h now generated by autoconf
  8. Rules for "mkinstalldirs temporary installation tree" moved from c/Makefile to subdirectories.
  9. Cpu-tools do not get installed.
  10. FIX: Use ACLOCAL_AMFLAGS instead of ACLOCAL = -I ... in Makefile.ams which are in directories with own configure scripts.
  11. Hardcoding BSP names into libbsp/.../tools to avoid RTEMS_BSP get overridden from the environment.
  12. FIX: Handling of MP_PIECES in various Makefiles
  13. FIX: Removing "::" rules from some Makefile.ins
  14. FIX: File permission chaos: (-m 444 and -m 555 vs. -m 644 and -m 755) - Now all include files use -m 644.
  15. Removed many gnumake-conditionals in Makefile.ins - Partially replaced with automake-conditional, partially replaced with conditionalized Makefile variables (... _yes_V)
  16. Massively reworked acpolish: acpolish now parses Makefile.ins and interprets parts of the Makefile.ins.
  17. FIX: Some $(wildcard $(srcdir)/*.h) macros removed / replaced with explicit lists of files in Makefile.ins.
  18. FIX: Replacing MKLIB with RANLIB in Makefile.ins
  19. HACK: Add preinstallation for pc386 specific $(PROJECT_RELEASE)/BootImgs? directory

... many more details, I can't recall

KNOWN BUGS:

  1. make [debug|profile]_install do not do what they are promissing. "make [debug|profile] install" does what "make [debug|profile]_install" has been doing. Proposal: remove [debug|profile]_install
  2. Dependencies between temporary installation tree and source tree are not yet handled correctly.
  3. Dependencies between temporary installation tree and source tree are handled ineffencently (Using INSTALL_CHANGE instead of make dependencies)
  4. RTEMS_ROOT, PROJECT_ROOT, top_builddir, RTEMS_TOPdir now are redundant.
  5. The new configure scripts still are in their infancy. They contain redundant checks and might still contain bugs, too.
  6. RTEMS autoconf Makefile.ins use a mixture of configuration information gathered in c/$(target_alias)/<bsp>/make and of information collected from their configure scripts.
  7. make dist is not fully functional
  8. Subdirectory host-/build-/target- configure options (--target, --host, --build) do not conform to Cygnus/GNU conventions.
  9. Some RTEMS autoconf Makefile.in's makefile targets are not supported in automake Makefile.ams/ins (e.g. get, clobber).
  10. Some automake standard targets are not propagated from toplevel and c/Makefile.am to autoconf subdirectories (eg. make dist).
  11. rpcgen generated files are not part of the source-tree (Automake conventions favor supplying generated files inside the source-tree, however there is no support for rpcgen generated files in automake, cf. yacc/lex support in automake).
  12. RTEMS_HAS_RDBG handling is flaky. make/*.cfg use RTEMS_HAS_RDBG per CPU, while librdb's sources can only be built per BSP. Raises the more general question whether librdbg located correctly in the source-tree.
  13. All make/*cfg files are configured per cpu, currently there is no location to store per-bsp configuration information --> bsp.cfg, per aconfig.h?
  14. "make install" without having run "make all" beforehand does not work.
  15. handling of --enable-multiprocessing seems to be broken in make/custom/*
  16. Makefile.ins still exploit many gmake features.
  17. File permisson chaos on libraries (no explict -m for libraries/rels/etc).
  18. mcp750 Makefiles are broken (Note: I *do* mean buggy - I am not talking about "not-conforming to conventions", here :-).
  19. Dependencies between configure scripts are not handled, eg. aborting "make RTEMS_BSP=<bsp>" can leave the build-tree in an unusable state.
  20. "make clean" does not delete <build-tree>/<bsp>. This is intentional for now, because rerunning "make" after "make clean" requires an explicit "make preinstall" afterwards now. This should be done automatically, but doesn't work in this case for now. To work around this problem <build-tree>/<bsp> is kept during "make clean" for now (HACK).

TODO:

  1. split out host-compiled bsp-tools
  2. Use Cygnus/GNU standards for cross-compiling target-subdir (CC=CC_FOR_TARGET .. configure --host=${target_alias} --build=`config.guess'}), to be added to toplevel configure script after splitting out bsp-tools.
  3. Exploit per cpu support directory (c/src/<cpu>)- Splitting out per-cpu libraries - Are there any?
  4. Further automake support
  5. Converting subdirectories into standalone / self-contained subdirectories (Esp. moving their headers to the same common root as their sources, eg. mv lib/include/rtems++ lib/librtems++/include/rtems++) - This is the main obstacle which prevents moving further towards automake.
  6. Propagating values from *.cfg into Makefiles instead of propagating them at make time via Makefile-fragments (i.e. try to avoid using *.cfg).
  7. Testing on cygwin host (I *do* expect cygwin specific problems).
  8. The ARCH in o-$(ARCH)-$(VARIANT) build-subdirectories is not needed anymore.

GENERAL ISSUES:

  1. Temporary installation tree -- Ian and I seem to disagree basically. Though I think that I understand his argumentation, I do not share it. IMO, his way of using the buildtree is mis-using the build-tree, relying on an inofficial feature of RTEMS's current implementation, which doesn't even work correctly in the current build-tree, though it attempts hard to do so. From my very POV, it unnecessarily complicates the structures of the source- and build-trees. It is not supported by automake (No automatic generation for the necessary rules) and complicates the transition to automake significantly (Generating the rules with an enhanced version of acpolish could be possible). As Ian correctly pointed out, here a management decision is needed - though I don't see the need to draw this decision in short terms.
  1. preinstallation generally is a sure means to spoil the structure of the source tree, IMHO (No ranting intended, I am completly serious about this one). eg. through tree dependencies. The worst problem related to this I have found in the meantime is bsp_specs. bsp_specs is part of libbsp, ie. there is *no* way to build *any* part of the source tree *without* having a BSP *preinstalled*. Note: This issue is related to issue 1., but is not identical - The difference is the change of the order make rules have to be triggered. While preinstallation triggers rules spread all over the source tree before a "make all" can be run, a temporary installation tree could also be installed by post "make all" hooks (all-local:, to be run after make all in a directory is completed) if the directories' dependencies would be a tree,
  1. Stuctural dependencies between subdirectories.
  2. Depth of the source tree (Prevents multilibbing and introduces many unnecessary configure scripts).
  3. per cpu vs. per bsp configuration (There are no real per-cpu parts yets :-).
  4. automake does not support $makefiles in AC_OUTPUT. Unlike before, we now should try to avoid RTEMS_CHECK_MAKEFILE and to hard-code as much paths to Makefiles as possible.
  5. General redesign of the source tree
  6. Main installation point - Changing it to ${prefix}/${target_alias}. ?

Besides item 8. (which is a must, IMHO), as far as I see most of them
can not be solved soon and will remain issues in the mid- to long-term
:-.

REMARKS:

  • You (as the maintainer) should always use --enable-maintainer-mode when building RTEMS to ensure that maintainer mode generated files (esp. those in c/src/make) will be updated when make/* files have changed.
  • Use @RTEMS_BSP@ in Makefile.ins and Makefile.ams below c/src/, $(RTEMS_BSP) or ${RTEMS_BSP} will be overridden from environment variables when using make RTEMS_BSP="....".
  • c/src/make is a temporary cludge until configuration issues are solved. At the moment it is configured per bsp, but contains per-target/cpu info only. Its main purpose now is to circumvent modifying make/*.cfg files, because I consider make/* to be frozen for backward compatibilty.
  • This patch should only affect configuration files. At least I do not remember having touched any source files.
  • To build the bare bsp you now need to mention it in --enable-rtemsbsp.

Example: building gensh1 and sh1/bare simultaneously:
../rtems-rc-19990709-1/configure --target=sh-rtems \
--enable-rtemsbsp="bare gensh1" \
--prefix=/tmp/rtems \
--enable-bare-cpu-cflags='-DMHZ=20 -m1
-DCPU_CONSOLE_DEVNAME=\"/dev/null\"' \
--enable-bare-cpu-model=sh7032 \
--enable-maintainer-mode \
--enable-cxx
make
make install

  • The next steps in development would be to split out bsp-tools and then to change to Cygnus/GNU canonicalization conventions for building the c/ subdirectory afterwards (i.e. many standard AC_*.m4 macros could be used instead of customized versions)

FINAL REMARK:
The issues mentioned in the lists above sound much worser than the
situation actually is. Most of them are not specific to this patch, but
are also valid for the snapshot. I just wrote down what I came across
when working on the patch over the last few weeks.

I wouldn't be too surprised if you don't like the patch at the current
point in development. I am willing to discuss details and problems, I
also have no problem if you would post-pone applying this patch to times
after 4.1, but rejecting it as a whole for all times would be a false
management decision, IMHO.

Therefore I would suggest that you, if your time constaints allow it,
should at least play a little while with this patch to understand what
is going on and before drawing a decision on how to handle this
proposal. I know this patch is neither perfect nor complete, but I
consider it to be a major breakthrough. Don't be anxious because of the
size of the patch, the core of the patch is rather small, the size is
mainly the side effect of some systematic cleanups inside the Makefiles
(result of acpolish).

Feel free to ask if you encounter problems, if you don't understand
something or if you meet bugs - I am far from being perfect and am
prepared to answer them.

Ralf.

--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@… FAX: +49/731/501-999
http://www.faw.uni-ulm.de

  • Property mode set to 100644
File size: 46.5 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-target-subdir=DIR"
16ac_help="$ac_help
17  --enable-maintainer-mode enable make rules and dependencies not useful
18                          (and sometimes confusing) to the casual installer"
19ac_help="$ac_help
20  --enable-bare-cpu-cflags             specify a particular cpu cflag
21                                       (bare bsp specific)"
22ac_help="$ac_help
23  --enable-bare-cpu-model              specify a particular cpu model
24                                       (bare bsp specific)"
25ac_help="$ac_help
26  --enable-rtemsbsp=bsp1 bsp2 ..      BSPs to include in build"
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
49bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
61
62# Initialize some other variables.
63subdirs=
64MFLAGS= MAKEFLAGS=
65SHELL=${CONFIG_SHELL-/bin/sh}
66# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
68
69ac_prev=
70for ac_option
71do
72
73  # If the previous option needs an argument, assign it.
74  if test -n "$ac_prev"; then
75    eval "$ac_prev=\$ac_option"
76    ac_prev=
77    continue
78  fi
79
80  case "$ac_option" in
81  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82  *) ac_optarg= ;;
83  esac
84
85  # Accept the important Cygnus configure options, so we can diagnose typos.
86
87  case "$ac_option" in
88
89  -bindir | --bindir | --bindi | --bind | --bin | --bi)
90    ac_prev=bindir ;;
91  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92    bindir="$ac_optarg" ;;
93
94  -build | --build | --buil | --bui | --bu)
95    ac_prev=build ;;
96  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97    build="$ac_optarg" ;;
98
99  -cache-file | --cache-file | --cache-fil | --cache-fi \
100  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101    ac_prev=cache_file ;;
102  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104    cache_file="$ac_optarg" ;;
105
106  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107    ac_prev=datadir ;;
108  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109  | --da=*)
110    datadir="$ac_optarg" ;;
111
112  -disable-* | --disable-*)
113    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114    # Reject names that are not valid shell variable names.
115    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117    fi
118    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119    eval "enable_${ac_feature}=no" ;;
120
121  -enable-* | --enable-*)
122    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123    # Reject names that are not valid shell variable names.
124    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126    fi
127    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128    case "$ac_option" in
129      *=*) ;;
130      *) ac_optarg=yes ;;
131    esac
132    eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136  | --exec | --exe | --ex)
137    ac_prev=exec_prefix ;;
138  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140  | --exec=* | --exe=* | --ex=*)
141    exec_prefix="$ac_optarg" ;;
142
143  -gas | --gas | --ga | --g)
144    # Obsolete; use --with-gas.
145    with_gas=yes ;;
146
147  -help | --help | --hel | --he)
148    # Omit some internal or obsolete options to make the list less imposing.
149    # This message is too long to be a string in the A/UX 3.1 sh.
150    cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154  --cache-file=FILE       cache test results in FILE
155  --help                  print this message
156  --no-create             do not create output files
157  --quiet, --silent       do not print \`checking...' messages
158  --version               print the version of autoconf that created configure
159Directory and file names:
160  --prefix=PREFIX         install architecture-independent files in PREFIX
161                          [$ac_default_prefix]
162  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
163                          [same as prefix]
164  --bindir=DIR            user executables in DIR [EPREFIX/bin]
165  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
166  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
167  --datadir=DIR           read-only architecture-independent data in DIR
168                          [PREFIX/share]
169  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
170  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
171                          [PREFIX/com]
172  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
173  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
174  --includedir=DIR        C header files in DIR [PREFIX/include]
175  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
176  --infodir=DIR           info documentation in DIR [PREFIX/info]
177  --mandir=DIR            man documentation in DIR [PREFIX/man]
178  --srcdir=DIR            find the sources in DIR [configure dir or ..]
179  --program-prefix=PREFIX prepend PREFIX to installed program names
180  --program-suffix=SUFFIX append SUFFIX to installed program names
181  --program-transform-name=PROGRAM
182                          run sed PROGRAM on installed program names
183EOF
184    cat << EOF
185Host type:
186  --build=BUILD           configure for building on BUILD [BUILD=HOST]
187  --host=HOST             configure for HOST [guessed]
188  --target=TARGET         configure for TARGET [TARGET=HOST]
189Features and packages:
190  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
191  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
192  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
193  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
194  --x-includes=DIR        X include files are in DIR
195  --x-libraries=DIR       X library files are in DIR
196EOF
197    if test -n "$ac_help"; then
198      echo "--enable and --with options recognized:$ac_help"
199    fi
200    exit 0 ;;
201
202  -host | --host | --hos | --ho)
203    ac_prev=host ;;
204  -host=* | --host=* | --hos=* | --ho=*)
205    host="$ac_optarg" ;;
206
207  -includedir | --includedir | --includedi | --included | --include \
208  | --includ | --inclu | --incl | --inc)
209    ac_prev=includedir ;;
210  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211  | --includ=* | --inclu=* | --incl=* | --inc=*)
212    includedir="$ac_optarg" ;;
213
214  -infodir | --infodir | --infodi | --infod | --info | --inf)
215    ac_prev=infodir ;;
216  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217    infodir="$ac_optarg" ;;
218
219  -libdir | --libdir | --libdi | --libd)
220    ac_prev=libdir ;;
221  -libdir=* | --libdir=* | --libdi=* | --libd=*)
222    libdir="$ac_optarg" ;;
223
224  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225  | --libexe | --libex | --libe)
226    ac_prev=libexecdir ;;
227  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228  | --libexe=* | --libex=* | --libe=*)
229    libexecdir="$ac_optarg" ;;
230
231  -localstatedir | --localstatedir | --localstatedi | --localstated \
232  | --localstate | --localstat | --localsta | --localst \
233  | --locals | --local | --loca | --loc | --lo)
234    ac_prev=localstatedir ;;
235  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238    localstatedir="$ac_optarg" ;;
239
240  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241    ac_prev=mandir ;;
242  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243    mandir="$ac_optarg" ;;
244
245  -nfp | --nfp | --nf)
246    # Obsolete; use --without-fp.
247    with_fp=no ;;
248
249  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250  | --no-cr | --no-c)
251    no_create=yes ;;
252
253  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255    no_recursion=yes ;;
256
257  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259  | --oldin | --oldi | --old | --ol | --o)
260    ac_prev=oldincludedir ;;
261  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264    oldincludedir="$ac_optarg" ;;
265
266  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267    ac_prev=prefix ;;
268  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269    prefix="$ac_optarg" ;;
270
271  -program-prefix | --program-prefix | --program-prefi | --program-pref \
272  | --program-pre | --program-pr | --program-p)
273    ac_prev=program_prefix ;;
274  -program-prefix=* | --program-prefix=* | --program-prefi=* \
275  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276    program_prefix="$ac_optarg" ;;
277
278  -program-suffix | --program-suffix | --program-suffi | --program-suff \
279  | --program-suf | --program-su | --program-s)
280    ac_prev=program_suffix ;;
281  -program-suffix=* | --program-suffix=* | --program-suffi=* \
282  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283    program_suffix="$ac_optarg" ;;
284
285  -program-transform-name | --program-transform-name \
286  | --program-transform-nam | --program-transform-na \
287  | --program-transform-n | --program-transform- \
288  | --program-transform | --program-transfor \
289  | --program-transfo | --program-transf \
290  | --program-trans | --program-tran \
291  | --progr-tra | --program-tr | --program-t)
292    ac_prev=program_transform_name ;;
293  -program-transform-name=* | --program-transform-name=* \
294  | --program-transform-nam=* | --program-transform-na=* \
295  | --program-transform-n=* | --program-transform-=* \
296  | --program-transform=* | --program-transfor=* \
297  | --program-transfo=* | --program-transf=* \
298  | --program-trans=* | --program-tran=* \
299  | --progr-tra=* | --program-tr=* | --program-t=*)
300    program_transform_name="$ac_optarg" ;;
301
302  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303  | -silent | --silent | --silen | --sile | --sil)
304    silent=yes ;;
305
306  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307    ac_prev=sbindir ;;
308  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309  | --sbi=* | --sb=*)
310    sbindir="$ac_optarg" ;;
311
312  -sharedstatedir | --sharedstatedir | --sharedstatedi \
313  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314  | --sharedst | --shareds | --shared | --share | --shar \
315  | --sha | --sh)
316    ac_prev=sharedstatedir ;;
317  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320  | --sha=* | --sh=*)
321    sharedstatedir="$ac_optarg" ;;
322
323  -site | --site | --sit)
324    ac_prev=site ;;
325  -site=* | --site=* | --sit=*)
326    site="$ac_optarg" ;;
327
328  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329    ac_prev=srcdir ;;
330  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331    srcdir="$ac_optarg" ;;
332
333  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334  | --syscon | --sysco | --sysc | --sys | --sy)
335    ac_prev=sysconfdir ;;
336  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338    sysconfdir="$ac_optarg" ;;
339
340  -target | --target | --targe | --targ | --tar | --ta | --t)
341    ac_prev=target ;;
342  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343    target="$ac_optarg" ;;
344
345  -v | -verbose | --verbose | --verbos | --verbo | --verb)
346    verbose=yes ;;
347
348  -version | --version | --versio | --versi | --vers)
349    echo "configure generated by autoconf version 2.13"
350    exit 0 ;;
351
352  -with-* | --with-*)
353    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354    # Reject names that are not valid shell variable names.
355    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357    fi
358    ac_package=`echo $ac_package| sed 's/-/_/g'`
359    case "$ac_option" in
360      *=*) ;;
361      *) ac_optarg=yes ;;
362    esac
363    eval "with_${ac_package}='$ac_optarg'" ;;
364
365  -without-* | --without-*)
366    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367    # Reject names that are not valid shell variable names.
368    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370    fi
371    ac_package=`echo $ac_package| sed 's/-/_/g'`
372    eval "with_${ac_package}=no" ;;
373
374  --x)
375    # Obsolete; use --with-x.
376    with_x=yes ;;
377
378  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379  | --x-incl | --x-inc | --x-in | --x-i)
380    ac_prev=x_includes ;;
381  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383    x_includes="$ac_optarg" ;;
384
385  -x-libraries | --x-libraries | --x-librarie | --x-librari \
386  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387    ac_prev=x_libraries ;;
388  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390    x_libraries="$ac_optarg" ;;
391
392  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393    ;;
394
395  *)
396    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397      echo "configure: warning: $ac_option: invalid host type" 1>&2
398    fi
399    if test "x$nonopt" != xNONE; then
400      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401    fi
402    nonopt="$ac_option"
403    ;;
404
405  esac
406done
407
408if test -n "$ac_prev"; then
409  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423  exec 6>/dev/null
424else
425  exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439  case "$ac_arg" in
440  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441  | --no-cr | --no-c) ;;
442  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447  esac
448done
449
450# NLS nuisances.
451# Only set these to C if already set.  These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
455if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=README
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471  ac_srcdir_defaulted=yes
472  # Try the directory containing this script, then its parent.
473  ac_prog=$0
474  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476  srcdir=$ac_confdir
477  if test ! -r $srcdir/$ac_unique_file; then
478    srcdir=..
479  fi
480else
481  ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484  if test "$ac_srcdir_defaulted" = yes; then
485    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486  else
487    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488  fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494  if test "x$prefix" != xNONE; then
495    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496  else
497    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498  fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501  if test -r "$ac_site_file"; then
502    echo "loading site script $ac_site_file"
503    . "$ac_site_file"
504  fi
505done
506
507if test -r "$cache_file"; then
508  echo "loading cache $cache_file"
509  . $cache_file
510else
511  echo "creating cache $cache_file"
512  > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520cross_compiling=$ac_cv_prog_cc_cross
521
522ac_exeext=
523ac_objext=o
524if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527    ac_n= ac_c='
528' ac_t='        '
529  else
530    ac_n=-n ac_c= ac_t=
531  fi
532else
533  ac_n= ac_c='\c' ac_t=
534fi
535
536
537# Check whether --with-target-subdir or --without-target-subdir was given.
538if test "${with_target_subdir+set}" = set; then
539  withval="$with_target_subdir"
540  TARGET_SUBDIR="$withval"
541else
542  TARGET_SUBDIR="."
543fi
544
545
546RTEMS_TOPdir="..";
547
548
549echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
550echo "configure:551: checking for RTEMS Version" >&5
551if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
552RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
553sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
554else
555{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
556fi
557if test -z "$RTEMS_VERSION"; then
558{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
559fi
560echo "$ac_t""$RTEMS_VERSION" 1>&6
561
562ac_aux_dir=
563for ac_dir in .. $srcdir/..; do
564  if test -f $ac_dir/install-sh; then
565    ac_aux_dir=$ac_dir
566    ac_install_sh="$ac_aux_dir/install-sh -c"
567    break
568  elif test -f $ac_dir/install.sh; then
569    ac_aux_dir=$ac_dir
570    ac_install_sh="$ac_aux_dir/install.sh -c"
571    break
572  fi
573done
574if test -z "$ac_aux_dir"; then
575  { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
576fi
577ac_config_guess=$ac_aux_dir/config.guess
578ac_config_sub=$ac_aux_dir/config.sub
579ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
580
581
582
583
584# Do some error checking and defaulting for the host and target type.
585# The inputs are:
586#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
587#
588# The rules are:
589# 1. You are not allowed to specify --host, --target, and nonopt at the
590#    same time.
591# 2. Host defaults to nonopt.
592# 3. If nonopt is not specified, then host defaults to the current host,
593#    as determined by config.guess.
594# 4. Target and build default to nonopt.
595# 5. If nonopt is not specified, then target and build default to host.
596
597# The aliases save the names the user supplied, while $host etc.
598# will get canonicalized.
599case $host---$target---$nonopt in
600NONE---*---* | *---NONE---* | *---*---NONE) ;;
601*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
602esac
603
604
605# Make sure we can run config.sub.
606if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
607else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
608fi
609
610echo $ac_n "checking host system type""... $ac_c" 1>&6
611echo "configure:612: checking host system type" >&5
612
613host_alias=$host
614case "$host_alias" in
615NONE)
616  case $nonopt in
617  NONE)
618    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
619    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620    fi ;;
621  *) host_alias=$nonopt ;;
622  esac ;;
623esac
624
625host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
626host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
627host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
628host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
629echo "$ac_t""$host" 1>&6
630
631echo $ac_n "checking target system type""... $ac_c" 1>&6
632echo "configure:633: checking target system type" >&5
633
634target_alias=$target
635case "$target_alias" in
636NONE)
637  case $nonopt in
638  NONE) target_alias=$host_alias ;;
639  *) target_alias=$nonopt ;;
640  esac ;;
641esac
642
643target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
644target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647echo "$ac_t""$target" 1>&6
648
649echo $ac_n "checking build system type""... $ac_c" 1>&6
650echo "configure:651: checking build system type" >&5
651
652build_alias=$build
653case "$build_alias" in
654NONE)
655  case $nonopt in
656  NONE) build_alias=$host_alias ;;
657  *) build_alias=$nonopt ;;
658  esac ;;
659esac
660
661build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
662build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665echo "$ac_t""$build" 1>&6
666
667test "$host_alias" != "$target_alias" &&
668  test "$program_prefix$program_suffix$program_transform_name" = \
669    NONENONEs,x,x, &&
670  program_prefix=${target_alias}-
671
672echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
673echo "configure:674: checking rtems target cpu" >&5
674case "${target}" in
675  # hpux unix port should go here
676  i[3456]86-go32-rtems*)
677        RTEMS_CPU=i386
678        ;;
679  i[3456]86-pc-linux*)          # unix "simulator" port
680        RTEMS_CPU=unix
681        ;;
682  i[3456]86-*freebsd2*)         # unix "simulator" port
683        RTEMS_CPU=unix
684        ;;
685  no_cpu-*rtems*)
686        RTEMS_CPU=no_cpu
687        ;;
688  sparc-sun-solaris*)           # unix "simulator" port
689        RTEMS_CPU=unix
690        ;;
691  *)
692        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
693        ;;
694esac
695
696echo "$ac_t""$RTEMS_CPU" 1>&6
697
698
699# Find a good install program.  We prefer a C program (faster),
700# so one script is as good as another.  But avoid the broken or
701# incompatible versions:
702# SysV /etc/install, /usr/sbin/install
703# SunOS /usr/etc/install
704# IRIX /sbin/install
705# AIX /bin/install
706# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
707# AFS /usr/afsws/bin/install, which mishandles nonexistent args
708# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
709# ./install, which can be erroneously created by make from ./install.sh.
710echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
711echo "configure:712: checking for a BSD compatible install" >&5
712if test -z "$INSTALL"; then
713if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
714  echo $ac_n "(cached) $ac_c" 1>&6
715else
716    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
717  for ac_dir in $PATH; do
718    # Account for people who put trailing slashes in PATH elements.
719    case "$ac_dir/" in
720    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
721    *)
722      # OSF1 and SCO ODT 3.0 have their own names for install.
723      # Don't use installbsd from OSF since it installs stuff as root
724      # by default.
725      for ac_prog in ginstall scoinst install; do
726        if test -f $ac_dir/$ac_prog; then
727          if test $ac_prog = install &&
728            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
729            # AIX install.  It has an incompatible calling convention.
730            :
731          else
732            ac_cv_path_install="$ac_dir/$ac_prog -c"
733            break 2
734          fi
735        fi
736      done
737      ;;
738    esac
739  done
740  IFS="$ac_save_IFS"
741
742fi
743  if test "${ac_cv_path_install+set}" = set; then
744    INSTALL="$ac_cv_path_install"
745  else
746    # As a last resort, use the slow shell script.  We don't cache a
747    # path for INSTALL within a source directory, because that will
748    # break other packages using the cache if that directory is
749    # removed, or if the path is relative.
750    INSTALL="$ac_install_sh"
751  fi
752fi
753echo "$ac_t""$INSTALL" 1>&6
754
755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
756# It thinks the first close brace ends the variable substitution.
757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
758
759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
760
761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
762
763echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
764echo "configure:765: checking whether build environment is sane" >&5
765# Just in case
766sleep 1
767echo timestamp > conftestfile
768# Do `set' in a subshell so we don't clobber the current shell's
769# arguments.  Must try -L first in case configure is actually a
770# symlink; some systems play weird games with the mod time of symlinks
771# (eg FreeBSD returns the mod time of the symlink's containing
772# directory).
773if (
774   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
775   if test "$*" = "X"; then
776      # -L didn't work.
777      set X `ls -t $srcdir/configure conftestfile`
778   fi
779   if test "$*" != "X $srcdir/configure conftestfile" \
780      && test "$*" != "X conftestfile $srcdir/configure"; then
781
782      # If neither matched, then we have a broken ls.  This can happen
783      # if, for instance, CONFIG_SHELL is bash and it inherits a
784      # broken ls alias from the environment.  This has actually
785      # happened.  Such a system could not be considered "sane".
786      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
787alias in your environment" 1>&2; exit 1; }
788   fi
789
790   test "$2" = conftestfile
791   )
792then
793   # Ok.
794   :
795else
796   { echo "configure: error: newly created file is older than distributed files!
797Check your system clock" 1>&2; exit 1; }
798fi
799rm -f conftest*
800echo "$ac_t""yes" 1>&6
801if test "$program_transform_name" = s,x,x,; then
802  program_transform_name=
803else
804  # Double any \ or $.  echo might interpret backslashes.
805  cat <<\EOF_SED > conftestsed
806s,\\,\\\\,g; s,\$,$$,g
807EOF_SED
808  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
809  rm -f conftestsed
810fi
811test "$program_prefix" != NONE &&
812  program_transform_name="s,^,${program_prefix},; $program_transform_name"
813# Use a double $ so make ignores it.
814test "$program_suffix" != NONE &&
815  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
816
817# sed with no file args requires a program.
818test "$program_transform_name" = "" && program_transform_name="s,x,x,"
819
820echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
821echo "configure:822: checking whether ${MAKE-make} sets \${MAKE}" >&5
822set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
823if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
824  echo $ac_n "(cached) $ac_c" 1>&6
825else
826  cat > conftestmake <<\EOF
827all:
828        @echo 'ac_maketemp="${MAKE}"'
829EOF
830# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
831eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
832if test -n "$ac_maketemp"; then
833  eval ac_cv_prog_make_${ac_make}_set=yes
834else
835  eval ac_cv_prog_make_${ac_make}_set=no
836fi
837rm -f conftestmake
838fi
839if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
840  echo "$ac_t""yes" 1>&6
841  SET_MAKE=
842else
843  echo "$ac_t""no" 1>&6
844  SET_MAKE="MAKE=${MAKE-make}"
845fi
846
847
848PACKAGE=rtems-c
849
850VERSION=$RTEMS_VERSION
851
852if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
853  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
854fi
855
856
857
858missing_dir=`cd $ac_aux_dir && pwd`
859echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
860echo "configure:861: checking for working aclocal" >&5
861# Run test in a subshell; some versions of sh will print an error if
862# an executable is not found, even if stderr is redirected.
863# Redirect stdin to placate older versions of autoconf.  Sigh.
864if (aclocal --version) < /dev/null > /dev/null 2>&1; then
865   ACLOCAL=aclocal
866   echo "$ac_t""found" 1>&6
867else
868   ACLOCAL="$missing_dir/missing aclocal"
869   echo "$ac_t""missing" 1>&6
870fi
871
872echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
873echo "configure:874: checking for working autoconf" >&5
874# Run test in a subshell; some versions of sh will print an error if
875# an executable is not found, even if stderr is redirected.
876# Redirect stdin to placate older versions of autoconf.  Sigh.
877if (autoconf --version) < /dev/null > /dev/null 2>&1; then
878   AUTOCONF=autoconf
879   echo "$ac_t""found" 1>&6
880else
881   AUTOCONF="$missing_dir/missing autoconf"
882   echo "$ac_t""missing" 1>&6
883fi
884
885echo $ac_n "checking for working automake""... $ac_c" 1>&6
886echo "configure:887: checking for working automake" >&5
887# Run test in a subshell; some versions of sh will print an error if
888# an executable is not found, even if stderr is redirected.
889# Redirect stdin to placate older versions of autoconf.  Sigh.
890if (automake --version) < /dev/null > /dev/null 2>&1; then
891   AUTOMAKE=automake
892   echo "$ac_t""found" 1>&6
893else
894   AUTOMAKE="$missing_dir/missing automake"
895   echo "$ac_t""missing" 1>&6
896fi
897
898echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
899echo "configure:900: checking for working autoheader" >&5
900# Run test in a subshell; some versions of sh will print an error if
901# an executable is not found, even if stderr is redirected.
902# Redirect stdin to placate older versions of autoconf.  Sigh.
903if (autoheader --version) < /dev/null > /dev/null 2>&1; then
904   AUTOHEADER=autoheader
905   echo "$ac_t""found" 1>&6
906else
907   AUTOHEADER="$missing_dir/missing autoheader"
908   echo "$ac_t""missing" 1>&6
909fi
910
911echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
912echo "configure:913: checking for working makeinfo" >&5
913# Run test in a subshell; some versions of sh will print an error if
914# an executable is not found, even if stderr is redirected.
915# Redirect stdin to placate older versions of autoconf.  Sigh.
916if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
917   MAKEINFO=makeinfo
918   echo "$ac_t""found" 1>&6
919else
920   MAKEINFO="$missing_dir/missing makeinfo"
921   echo "$ac_t""missing" 1>&6
922fi
923
924
925echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
926echo "configure:927: checking whether to enable maintainer-specific portions of Makefiles" >&5
927    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
928if test "${enable_maintainer_mode+set}" = set; then
929  enableval="$enable_maintainer_mode"
930  USE_MAINTAINER_MODE=$enableval
931else
932  USE_MAINTAINER_MODE=no
933fi
934
935  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
936 
937
938if test $USE_MAINTAINER_MODE = yes; then
939  MAINTAINER_MODE_TRUE=
940  MAINTAINER_MODE_FALSE='#'
941else
942  MAINTAINER_MODE_TRUE='#'
943  MAINTAINER_MODE_FALSE=
944fi
945  MAINT=$MAINTAINER_MODE_TRUE
946 
947
948
949
950# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
951if test "${enable_bare_cpu_cflags+set}" = set; then
952  enableval="$enable_bare_cpu_cflags"
953  case "${enableval}" in
954  no) BARE_CPU_CFLAGS="" ;;
955  *)    BARE_CPU_CFLAGS="${enableval}" ;;
956esac
957else
958  BARE_CPU_CFLAGS=""
959fi
960
961
962# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
963if test "${enable_bare_cpu_model+set}" = set; then
964  enableval="$enable_bare_cpu_model"
965  case "${enableval}" in
966  no)   BARE_CPU_MODEL="" ;;
967  *)    BARE_CPU_MODEL="${enableval}" ;;
968esac
969else
970  BARE_CPU_MODEL=""
971fi
972
973
974
975# Check whether --enable-rtemsbsp or --disable-rtemsbsp was given.
976if test "${enable_rtemsbsp+set}" = set; then
977  enableval="$enable_rtemsbsp"
978  case "${enableval}" in
979  yes|no) { echo "configure: error: missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"" 1>&2; exit 1; };;
980  *) rtems_bsp=$enableval;;
981esac
982else
983  rtems_bsp=""
984fi
985
986
987
988
989
990# Is this a supported CPU?
991echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
992echo "configure:993: checking if cpu $RTEMS_CPU is supported" >&5
993if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
994  echo "$ac_t""yes" 1>&6
995else
996  { echo "configure: error: no" 1>&2; exit 1; }
997fi
998
999
1000RTEMS_HOST=$host_os
1001case "${target}" in
1002  # hpux unix port should go here
1003  i[3456]86-pc-linux*)         # unix "simulator" port
1004        RTEMS_HOST=Linux
1005        ;;
1006  i[3456]86-*freebsd2*) # unix "simulator" port
1007        RTEMS_HOST=FreeBSD
1008        ;;
1009  sparc-sun-solaris*)             # unix "simulator" port
1010        RTEMS_HOST=Solaris
1011        ;;
1012  *)
1013        ;;
1014esac
1015
1016
1017
1018if test -z "$rtems_bsp"; then
1019 
1020echo $ac_n "checking for bsps""... $ac_c" 1>&6
1021echo "configure:1022: checking for bsps" >&5
1022case "${target}" in
1023  i[3456]86-go32-rtems*)
1024    rtems_bsp="go32 go32_p5"
1025    ;;
1026  *)
1027    files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
1028    for file in $files; do
1029      case $file in
1030        shared*);;
1031        Makefile*);;
1032        READ*);;
1033        CVS*);;
1034        pxfl*);;
1035        go32*);;       # so the i386 port can pick up the other Makefiles
1036        # Now account for BSPs with build variants
1037        gen68360)      rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
1038        p4000)         rtems_bsp="$rtems_bsp p4600 p4650";;
1039        mvme162)       rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
1040        *) rtems_bsp="$rtems_bsp $file";;
1041      esac;
1042    done
1043    ;;
1044esac
1045echo "$ac_t""$rtems_bsp .. done" 1>&6
1046
1047fi
1048
1049for i in $rtems_bsp; do
1050
1051    # make sure there is a make/custom file for the bsp
1052    echo $ac_n "checking for make/custom/$i.cfg""... $ac_c" 1>&6
1053echo "configure:1054: checking for make/custom/$i.cfg" >&5
1054if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$i.cfg"; then
1055  echo "$ac_t""yes" 1>&6
1056else
1057  { echo "configure: error: no" 1>&2; exit 1; }
1058fi
1059
1060 
1061   
1062    # account for "aliased" bsps which share source code
1063    case $i in
1064      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
1065      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
1066      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
1067      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
1068      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
1069      *)            bspdir=$i;;
1070    esac
1071
1072
1073    # Is there code where there should be for this BSP?
1074    # The bare bsp is a special case as it is not under the RTEMS_CPU path
1075    case $i in
1076      bare)
1077        bspcpudir=
1078        if test "X${BARE_CPU_CFLAGS}" = "X" ; then
1079          { echo "configure: error: --enable-bare-cpu-cflags not specified for bare bsp" 1>&2; exit 1; }
1080        fi
1081        if test "X${BARE_CPU_MODEL}" = "X" ; then
1082          { echo "configure: error: --enable-bare-cpu-model not specified for bare bsp" 1>&2; exit 1; }
1083        fi
1084        ;;
1085      *)
1086        bspcpudir=$RTEMS_CPU/
1087        ;;
1088    esac
1089     
1090    if test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
1091      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
1092    else
1093      { echo "configure: error: unable to find libbsp directory ($bspdir) for  $i" 1>&2; exit 1; }
1094    fi
1095done
1096
1097#
1098# Compose the configuration arguments to be passed to c/src/configure
1099#
1100##
1101## Partially borrowed from autoconf-2.13
1102##
1103
1104## Adjust paths
1105case $srcdir in
1106/*) rtems_bsp_configure="$srcdir/src/configure";;
1107*)  rtems_bsp_configure="../$srcdir/src/configure";;
1108esac
1109
1110## Remove --cache-file, --srcdir and --enable-rtemsbsp arguments
1111## so they do not pile up
1112  rtems_bsp_configure_args=
1113  for ac_arg in $ac_configure_args; do
1114    if test -n "$ac_prev"; then
1115      ac_prev=
1116      continue
1117    fi
1118    case "$ac_arg" in
1119    -cache-file | --cache-file | --cache-fil | --cache-fi \
1120    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1121      ac_prev=cache_file ;;
1122    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1123    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1124      ;;
1125    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126      ac_prev=srcdir ;;
1127    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128      ;;
1129    --enable-rtemsbsp*) ;;
1130    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131      ;;
1132    *) rtems_bsp_configure_args="$rtems_bsp_configure_args $ac_arg" ;;
1133    esac
1134  done
1135
1136rtems_bsp_configure="$rtems_bsp_configure $rtems_bsp_configure_args"
1137
1138
1139
1140
1141trap '' 1 2 15
1142cat > confcache <<\EOF
1143# This file is a shell script that caches the results of configure
1144# tests run on this system so they can be shared between configure
1145# scripts and configure runs.  It is not useful on other systems.
1146# If it contains results you don't want to keep, you may remove or edit it.
1147#
1148# By default, configure uses ./config.cache as the cache file,
1149# creating it if it does not exist already.  You can give configure
1150# the --cache-file=FILE option to use a different cache file; that is
1151# what configure does when it calls configure scripts in
1152# subdirectories, so they share the cache.
1153# Giving --cache-file=/dev/null disables caching, for debugging configure.
1154# config.status only pays attention to the cache file if you give it the
1155# --recheck option to rerun configure.
1156#
1157EOF
1158# The following way of writing the cache mishandles newlines in values,
1159# but we know of no workaround that is simple, portable, and efficient.
1160# So, don't put newlines in cache variables' values.
1161# Ultrix sh set writes to stderr and can't be redirected directly,
1162# and sets the high bit in the cache file unless we assign to the vars.
1163(set) 2>&1 |
1164  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1165  *ac_space=\ *)
1166    # `set' does not quote correctly, so add quotes (double-quote substitution
1167    # turns \\\\ into \\, and sed turns \\ into \).
1168    sed -n \
1169      -e "s/'/'\\\\''/g" \
1170      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1171    ;;
1172  *)
1173    # `set' quotes correctly as required by POSIX, so do not add quotes.
1174    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1175    ;;
1176  esac >> confcache
1177if cmp -s $cache_file confcache; then
1178  :
1179else
1180  if test -w $cache_file; then
1181    echo "updating cache $cache_file"
1182    cat confcache > $cache_file
1183  else
1184    echo "not updating unwritable cache $cache_file"
1185  fi
1186fi
1187rm -f confcache
1188
1189trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1190
1191test "x$prefix" = xNONE && prefix=$ac_default_prefix
1192# Let make expand exec_prefix.
1193test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1194
1195# Any assignment to VPATH causes Sun make to only execute
1196# the first set of double-colon rules, so remove it if not needed.
1197# If there is a colon in the path, we need to keep it.
1198if test "x$srcdir" = x.; then
1199  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1200fi
1201
1202trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1203
1204# Transform confdefs.h into DEFS.
1205# Protect against shell expansion while executing Makefile rules.
1206# Protect against Makefile macro expansion.
1207cat > conftest.defs <<\EOF
1208s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1209s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1210s%\[%\\&%g
1211s%\]%\\&%g
1212s%\$%$$%g
1213EOF
1214DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1215rm -f conftest.defs
1216
1217
1218# Without the "./", some shells look in PATH for config.status.
1219: ${CONFIG_STATUS=./config.status}
1220
1221echo creating $CONFIG_STATUS
1222rm -f $CONFIG_STATUS
1223cat > $CONFIG_STATUS <<EOF
1224#! /bin/sh
1225# Generated automatically by configure.
1226# Run this file to recreate the current configuration.
1227# This directory was configured as follows,
1228# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1229#
1230# $0 $ac_configure_args
1231#
1232# Compiler output produced by configure, useful for debugging
1233# configure, is in ./config.log if it exists.
1234
1235ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1236for ac_option
1237do
1238  case "\$ac_option" in
1239  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1240    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1241    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1242  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1243    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1244    exit 0 ;;
1245  -help | --help | --hel | --he | --h)
1246    echo "\$ac_cs_usage"; exit 0 ;;
1247  *) echo "\$ac_cs_usage"; exit 1 ;;
1248  esac
1249done
1250
1251ac_given_srcdir=$srcdir
1252ac_given_INSTALL="$INSTALL"
1253
1254trap 'rm -fr `echo "Makefile
1255" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1256EOF
1257cat >> $CONFIG_STATUS <<EOF
1258
1259# Protect against being on the right side of a sed subst in config.status.
1260sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1261 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1262$ac_vpsub
1263$extrasub
1264s%@SHELL@%$SHELL%g
1265s%@CFLAGS@%$CFLAGS%g
1266s%@CPPFLAGS@%$CPPFLAGS%g
1267s%@CXXFLAGS@%$CXXFLAGS%g
1268s%@FFLAGS@%$FFLAGS%g
1269s%@DEFS@%$DEFS%g
1270s%@LDFLAGS@%$LDFLAGS%g
1271s%@LIBS@%$LIBS%g
1272s%@exec_prefix@%$exec_prefix%g
1273s%@prefix@%$prefix%g
1274s%@program_transform_name@%$program_transform_name%g
1275s%@bindir@%$bindir%g
1276s%@sbindir@%$sbindir%g
1277s%@libexecdir@%$libexecdir%g
1278s%@datadir@%$datadir%g
1279s%@sysconfdir@%$sysconfdir%g
1280s%@sharedstatedir@%$sharedstatedir%g
1281s%@localstatedir@%$localstatedir%g
1282s%@libdir@%$libdir%g
1283s%@includedir@%$includedir%g
1284s%@oldincludedir@%$oldincludedir%g
1285s%@infodir@%$infodir%g
1286s%@mandir@%$mandir%g
1287s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
1288s%@host@%$host%g
1289s%@host_alias@%$host_alias%g
1290s%@host_cpu@%$host_cpu%g
1291s%@host_vendor@%$host_vendor%g
1292s%@host_os@%$host_os%g
1293s%@target@%$target%g
1294s%@target_alias@%$target_alias%g
1295s%@target_cpu@%$target_cpu%g
1296s%@target_vendor@%$target_vendor%g
1297s%@target_os@%$target_os%g
1298s%@build@%$build%g
1299s%@build_alias@%$build_alias%g
1300s%@build_cpu@%$build_cpu%g
1301s%@build_vendor@%$build_vendor%g
1302s%@build_os@%$build_os%g
1303s%@RTEMS_CPU@%$RTEMS_CPU%g
1304s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1305s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1306s%@INSTALL_DATA@%$INSTALL_DATA%g
1307s%@PACKAGE@%$PACKAGE%g
1308s%@VERSION@%$VERSION%g
1309s%@ACLOCAL@%$ACLOCAL%g
1310s%@AUTOCONF@%$AUTOCONF%g
1311s%@AUTOMAKE@%$AUTOMAKE%g
1312s%@AUTOHEADER@%$AUTOHEADER%g
1313s%@MAKEINFO@%$MAKEINFO%g
1314s%@SET_MAKE@%$SET_MAKE%g
1315s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1316s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1317s%@MAINT@%$MAINT%g
1318s%@RTEMS_HOST@%$RTEMS_HOST%g
1319s%@rtems_bsp_configure@%$rtems_bsp_configure%g
1320s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
1321
1322CEOF
1323EOF
1324
1325cat >> $CONFIG_STATUS <<\EOF
1326
1327# Split the substitutions into bite-sized pieces for seds with
1328# small command number limits, like on Digital OSF/1 and HP-UX.
1329ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1330ac_file=1 # Number of current file.
1331ac_beg=1 # First line for current file.
1332ac_end=$ac_max_sed_cmds # Line after last line for current file.
1333ac_more_lines=:
1334ac_sed_cmds=""
1335while $ac_more_lines; do
1336  if test $ac_beg -gt 1; then
1337    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1338  else
1339    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1340  fi
1341  if test ! -s conftest.s$ac_file; then
1342    ac_more_lines=false
1343    rm -f conftest.s$ac_file
1344  else
1345    if test -z "$ac_sed_cmds"; then
1346      ac_sed_cmds="sed -f conftest.s$ac_file"
1347    else
1348      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1349    fi
1350    ac_file=`expr $ac_file + 1`
1351    ac_beg=$ac_end
1352    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1353  fi
1354done
1355if test -z "$ac_sed_cmds"; then
1356  ac_sed_cmds=cat
1357fi
1358EOF
1359
1360cat >> $CONFIG_STATUS <<EOF
1361
1362CONFIG_FILES=\${CONFIG_FILES-"Makefile
1363"}
1364EOF
1365cat >> $CONFIG_STATUS <<\EOF
1366for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1367  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1368  case "$ac_file" in
1369  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1370       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1371  *) ac_file_in="${ac_file}.in" ;;
1372  esac
1373
1374  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1375
1376  # Remove last slash and all that follows it.  Not all systems have dirname.
1377  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1378  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1379    # The file is in a subdirectory.
1380    test ! -d "$ac_dir" && mkdir "$ac_dir"
1381    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1382    # A "../" for each directory in $ac_dir_suffix.
1383    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1384  else
1385    ac_dir_suffix= ac_dots=
1386  fi
1387
1388  case "$ac_given_srcdir" in
1389  .)  srcdir=.
1390      if test -z "$ac_dots"; then top_srcdir=.
1391      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1392  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1393  *) # Relative path.
1394    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1395    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1396  esac
1397
1398  case "$ac_given_INSTALL" in
1399  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1400  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1401  esac
1402
1403  echo creating "$ac_file"
1404  rm -f "$ac_file"
1405  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1406  case "$ac_file" in
1407  *Makefile*) ac_comsub="1i\\
1408# $configure_input" ;;
1409  *) ac_comsub= ;;
1410  esac
1411
1412  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1413  sed -e "$ac_comsub
1414s%@configure_input@%$configure_input%g
1415s%@srcdir@%$srcdir%g
1416s%@top_srcdir@%$top_srcdir%g
1417s%@INSTALL@%$INSTALL%g
1418" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1419fi; done
1420rm -f conftest.s*
1421
1422EOF
1423cat >> $CONFIG_STATUS <<EOF
1424
1425EOF
1426cat >> $CONFIG_STATUS <<\EOF
1427
1428exit 0
1429EOF
1430chmod +x $CONFIG_STATUS
1431rm -fr confdefs* $ac_clean_files
1432test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1433
1434
1435echo
1436echo target architecture: $target_cpu.
1437echo available BSPs: $rtems_bsp.
1438echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
1439echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
1440echo
Note: See TracBrowser for help on using the repository browser.