source: rtems/tools/cpu/sh/configure @ 6693a68

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