source: rtems/configure @ 04c308c

4.104.114.84.95
Last change on this file since 04c308c was 04c308c, checked in by Joel Sherrill <joel.sherrill@…>, on 03/19/99 at 23:11:36

Incorporated automake I patch from Ralf Corsepius <corsepiu@…>:

This is the first real automake patch.

It adds automake support to c/build-tools and cleans up a few minor
issues.

I consider this to be a testing probe to examine problems with automake.
Therefore, this patch is just a more or less harmless replacement of the
former RTEMS Makefiles and I expect it not last for long. If you want to
give automake Makefiles a public try and if you want/need to learn about
problems with it, then it's about time for a new snapshot, IMO. I may
have screwed up something not directly related to automake, but I expect
very few (none to be precise) problems with automake. However, somebody
should at least try building on Cygwin. If you feel a bit more
adventureous, then I also can continue to submit more patches.

[FYI: I still have a couple of automake files laying around, but they
need some cleanup before being submitted as patches. Now, that I am just
into it, I'll perhaps submit another one tonight :-]

After applying this patch (patch -p1 -E <
<path-to>/rtems-rc-19990318-0), first run the "autogen" script from the
toplevel source directory, before committing to CVS. Be careful about
dependencies between Makefile.am and Makefile.ins when cutting tarballs
from CVS. Makefile.ins are required to be newer than Makefile.ams,
otherwise users would need to have automake, autoconf and perl. Some
people recommend to "touch" all Makefile.in after checkout from cvs (cf.
egcs/contrib/egcs_update).

ATTENTION:

  • This patch adds a number of new files.
  • remove aclocal/exeext.m4 and aclocal/cygwin.m4 from CVS, They are now covered by autoconf-2.13`s AC_EXEEXT.

Some features/side-effects which are probably interesting for you:
In a configured build-tree "cd c/build-tools", then try

  • "make RTEMS_BSP=<bsp> install"
  • "make RTEMS_BSP=<bsp> dist"
  • Property mode set to 100644
File size: 128.8 KB
Line 
1#! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26# Guess values for system-dependent variables and create Makefiles.
27# Generated automatically using autoconf version 2.13
28# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
29#
30# This configure script is free software; the Free Software Foundation
31# gives unlimited permission to copy, distribute and modify it.
32
33# Defaults:
34ac_help=
35ac_default_prefix=/usr/local
36# Any additions from configure.in:
37ac_help="$ac_help
38  --with-cross-host=HOST      host (cygnus)"
39ac_help="$ac_help
40  --enable-gmake-print-directory       enable GNU Make's print directory"
41ac_help="$ac_help
42  --enable-multiprocessing             enable multiprocessing interface"
43ac_help="$ac_help
44  --enable-posix                       enable posix interface"
45ac_help="$ac_help
46  --enable-networking                  enable TCP/IP stack"
47ac_help="$ac_help
48  --enable-rdbg                        enable remote debugger"
49ac_help="$ac_help
50  --enable-rtems-inlines               enable RTEMS inline functions
51                                       (default:enabled, disable to use macros)"
52ac_help="$ac_help
53  --enable-cxx                         enable C++ support,
54                                       and build the rtems++ library"
55ac_help="$ac_help
56  --enable-gcc28                       enable use of gcc 2.8.x features"
57ac_help="$ac_help
58  --enable-libcdir=directory           set the directory for the C library"
59ac_help="$ac_help
60  --enable-bare-cpu-cflags             specify a particular cpu cflag
61                                       (bare bsp specific)"
62ac_help="$ac_help
63  --enable-bare-cpu-model              specify a particular cpu model
64                                       (bare bsp specific)"
65ac_help="$ac_help
66\
67    --enable-rtemsbsp=bsp1 bsp2 ..   BSPs to include in build"
68ac_help="$ac_help
69  --enable-tests                       enable tests (default:disabled)"
70ac_help="$ac_help
71\
72  --enable-hwapi                       enable hardware API library"
73
74# Initialize some variables set by options.
75# The variables have the same names as the options, with
76# dashes changed to underlines.
77build=NONE
78cache_file=./config.cache
79exec_prefix=NONE
80host=NONE
81no_create=
82nonopt=NONE
83no_recursion=
84prefix=NONE
85program_prefix=NONE
86program_suffix=NONE
87program_transform_name=s,x,x,
88silent=
89site=
90srcdir=
91target=NONE
92verbose=
93x_includes=NONE
94x_libraries=NONE
95bindir='${exec_prefix}/bin'
96sbindir='${exec_prefix}/sbin'
97libexecdir='${exec_prefix}/libexec'
98datadir='${prefix}/share'
99sysconfdir='${prefix}/etc'
100sharedstatedir='${prefix}/com'
101localstatedir='${prefix}/var'
102libdir='${exec_prefix}/lib'
103includedir='${prefix}/include'
104oldincludedir='/usr/include'
105infodir='${prefix}/info'
106mandir='${prefix}/man'
107
108# Initialize some other variables.
109subdirs=
110MFLAGS= MAKEFLAGS=
111SHELL=${CONFIG_SHELL-/bin/sh}
112# Maximum number of lines to put in a shell here document.
113ac_max_here_lines=12
114
115ac_prev=
116for ac_option
117do
118
119  # If the previous option needs an argument, assign it.
120  if test -n "$ac_prev"; then
121    eval "$ac_prev=\$ac_option"
122    ac_prev=
123    continue
124  fi
125
126  case "$ac_option" in
127  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128  *) ac_optarg= ;;
129  esac
130
131  # Accept the important Cygnus configure options, so we can diagnose typos.
132
133  case "$ac_option" in
134
135  -bindir | --bindir | --bindi | --bind | --bin | --bi)
136    ac_prev=bindir ;;
137  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
138    bindir="$ac_optarg" ;;
139
140  -build | --build | --buil | --bui | --bu)
141    ac_prev=build ;;
142  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
143    build="$ac_optarg" ;;
144
145  -cache-file | --cache-file | --cache-fil | --cache-fi \
146  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
147    ac_prev=cache_file ;;
148  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
149  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
150    cache_file="$ac_optarg" ;;
151
152  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
153    ac_prev=datadir ;;
154  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
155  | --da=*)
156    datadir="$ac_optarg" ;;
157
158  -disable-* | --disable-*)
159    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
160    # Reject names that are not valid shell variable names.
161    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163    fi
164    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165    eval "enable_${ac_feature}=no" ;;
166
167  -enable-* | --enable-*)
168    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169    # Reject names that are not valid shell variable names.
170    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172    fi
173    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174    case "$ac_option" in
175      *=*) ;;
176      *) ac_optarg=yes ;;
177    esac
178    eval "enable_${ac_feature}='$ac_optarg'" ;;
179
180  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
181  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
182  | --exec | --exe | --ex)
183    ac_prev=exec_prefix ;;
184  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
185  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
186  | --exec=* | --exe=* | --ex=*)
187    exec_prefix="$ac_optarg" ;;
188
189  -gas | --gas | --ga | --g)
190    # Obsolete; use --with-gas.
191    with_gas=yes ;;
192
193  -help | --help | --hel | --he)
194    # Omit some internal or obsolete options to make the list less imposing.
195    # This message is too long to be a string in the A/UX 3.1 sh.
196    cat << EOF
197Usage: configure [options] [host]
198Options: [defaults in brackets after descriptions]
199Configuration:
200  --cache-file=FILE       cache test results in FILE
201  --help                  print this message
202  --no-create             do not create output files
203  --quiet, --silent       do not print \`checking...' messages
204  --version               print the version of autoconf that created configure
205Directory and file names:
206  --prefix=PREFIX         install architecture-independent files in PREFIX
207                          [$ac_default_prefix]
208  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
209                          [same as prefix]
210  --bindir=DIR            user executables in DIR [EPREFIX/bin]
211  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
212  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
213  --datadir=DIR           read-only architecture-independent data in DIR
214                          [PREFIX/share]
215  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
216  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
217                          [PREFIX/com]
218  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
219  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
220  --includedir=DIR        C header files in DIR [PREFIX/include]
221  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
222  --infodir=DIR           info documentation in DIR [PREFIX/info]
223  --mandir=DIR            man documentation in DIR [PREFIX/man]
224  --srcdir=DIR            find the sources in DIR [configure dir or ..]
225  --program-prefix=PREFIX prepend PREFIX to installed program names
226  --program-suffix=SUFFIX append SUFFIX to installed program names
227  --program-transform-name=PROGRAM
228                          run sed PROGRAM on installed program names
229EOF
230    cat << EOF
231Host type:
232  --build=BUILD           configure for building on BUILD [BUILD=HOST]
233  --host=HOST             configure for HOST [guessed]
234  --target=TARGET         configure for TARGET [TARGET=HOST]
235Features and packages:
236  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
237  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
238  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
239  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
240  --x-includes=DIR        X include files are in DIR
241  --x-libraries=DIR       X library files are in DIR
242EOF
243    if test -n "$ac_help"; then
244      echo "--enable and --with options recognized:$ac_help"
245    fi
246    exit 0 ;;
247
248  -host | --host | --hos | --ho)
249    ac_prev=host ;;
250  -host=* | --host=* | --hos=* | --ho=*)
251    host="$ac_optarg" ;;
252
253  -includedir | --includedir | --includedi | --included | --include \
254  | --includ | --inclu | --incl | --inc)
255    ac_prev=includedir ;;
256  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257  | --includ=* | --inclu=* | --incl=* | --inc=*)
258    includedir="$ac_optarg" ;;
259
260  -infodir | --infodir | --infodi | --infod | --info | --inf)
261    ac_prev=infodir ;;
262  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
263    infodir="$ac_optarg" ;;
264
265  -libdir | --libdir | --libdi | --libd)
266    ac_prev=libdir ;;
267  -libdir=* | --libdir=* | --libdi=* | --libd=*)
268    libdir="$ac_optarg" ;;
269
270  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271  | --libexe | --libex | --libe)
272    ac_prev=libexecdir ;;
273  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274  | --libexe=* | --libex=* | --libe=*)
275    libexecdir="$ac_optarg" ;;
276
277  -localstatedir | --localstatedir | --localstatedi | --localstated \
278  | --localstate | --localstat | --localsta | --localst \
279  | --locals | --local | --loca | --loc | --lo)
280    ac_prev=localstatedir ;;
281  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284    localstatedir="$ac_optarg" ;;
285
286  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287    ac_prev=mandir ;;
288  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289    mandir="$ac_optarg" ;;
290
291  -nfp | --nfp | --nf)
292    # Obsolete; use --without-fp.
293    with_fp=no ;;
294
295  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296  | --no-cr | --no-c)
297    no_create=yes ;;
298
299  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301    no_recursion=yes ;;
302
303  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305  | --oldin | --oldi | --old | --ol | --o)
306    ac_prev=oldincludedir ;;
307  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310    oldincludedir="$ac_optarg" ;;
311
312  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313    ac_prev=prefix ;;
314  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315    prefix="$ac_optarg" ;;
316
317  -program-prefix | --program-prefix | --program-prefi | --program-pref \
318  | --program-pre | --program-pr | --program-p)
319    ac_prev=program_prefix ;;
320  -program-prefix=* | --program-prefix=* | --program-prefi=* \
321  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322    program_prefix="$ac_optarg" ;;
323
324  -program-suffix | --program-suffix | --program-suffi | --program-suff \
325  | --program-suf | --program-su | --program-s)
326    ac_prev=program_suffix ;;
327  -program-suffix=* | --program-suffix=* | --program-suffi=* \
328  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329    program_suffix="$ac_optarg" ;;
330
331  -program-transform-name | --program-transform-name \
332  | --program-transform-nam | --program-transform-na \
333  | --program-transform-n | --program-transform- \
334  | --program-transform | --program-transfor \
335  | --program-transfo | --program-transf \
336  | --program-trans | --program-tran \
337  | --progr-tra | --program-tr | --program-t)
338    ac_prev=program_transform_name ;;
339  -program-transform-name=* | --program-transform-name=* \
340  | --program-transform-nam=* | --program-transform-na=* \
341  | --program-transform-n=* | --program-transform-=* \
342  | --program-transform=* | --program-transfor=* \
343  | --program-transfo=* | --program-transf=* \
344  | --program-trans=* | --program-tran=* \
345  | --progr-tra=* | --program-tr=* | --program-t=*)
346    program_transform_name="$ac_optarg" ;;
347
348  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349  | -silent | --silent | --silen | --sile | --sil)
350    silent=yes ;;
351
352  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353    ac_prev=sbindir ;;
354  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355  | --sbi=* | --sb=*)
356    sbindir="$ac_optarg" ;;
357
358  -sharedstatedir | --sharedstatedir | --sharedstatedi \
359  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360  | --sharedst | --shareds | --shared | --share | --shar \
361  | --sha | --sh)
362    ac_prev=sharedstatedir ;;
363  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366  | --sha=* | --sh=*)
367    sharedstatedir="$ac_optarg" ;;
368
369  -site | --site | --sit)
370    ac_prev=site ;;
371  -site=* | --site=* | --sit=*)
372    site="$ac_optarg" ;;
373
374  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375    ac_prev=srcdir ;;
376  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377    srcdir="$ac_optarg" ;;
378
379  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
380  | --syscon | --sysco | --sysc | --sys | --sy)
381    ac_prev=sysconfdir ;;
382  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
383  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
384    sysconfdir="$ac_optarg" ;;
385
386  -target | --target | --targe | --targ | --tar | --ta | --t)
387    ac_prev=target ;;
388  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
389    target="$ac_optarg" ;;
390
391  -v | -verbose | --verbose | --verbos | --verbo | --verb)
392    verbose=yes ;;
393
394  -version | --version | --versio | --versi | --vers)
395    echo "configure generated by autoconf version 2.13"
396    exit 0 ;;
397
398  -with-* | --with-*)
399    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400    # Reject names that are not valid shell variable names.
401    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403    fi
404    ac_package=`echo $ac_package| sed 's/-/_/g'`
405    case "$ac_option" in
406      *=*) ;;
407      *) ac_optarg=yes ;;
408    esac
409    eval "with_${ac_package}='$ac_optarg'" ;;
410
411  -without-* | --without-*)
412    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
413    # Reject names that are not valid shell variable names.
414    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416    fi
417    ac_package=`echo $ac_package| sed 's/-/_/g'`
418    eval "with_${ac_package}=no" ;;
419
420  --x)
421    # Obsolete; use --with-x.
422    with_x=yes ;;
423
424  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
425  | --x-incl | --x-inc | --x-in | --x-i)
426    ac_prev=x_includes ;;
427  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
428  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
429    x_includes="$ac_optarg" ;;
430
431  -x-libraries | --x-libraries | --x-librarie | --x-librari \
432  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
433    ac_prev=x_libraries ;;
434  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
435  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
436    x_libraries="$ac_optarg" ;;
437
438  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439    ;;
440
441  *)
442    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443      echo "configure: warning: $ac_option: invalid host type" 1>&2
444    fi
445    if test "x$nonopt" != xNONE; then
446      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447    fi
448    nonopt="$ac_option"
449    ;;
450
451  esac
452done
453
454if test -n "$ac_prev"; then
455  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456fi
457
458trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459
460# File descriptor usage:
461# 0 standard input
462# 1 file creation
463# 2 errors and warnings
464# 3 some systems may open it to /dev/tty
465# 4 used on the Kubota Titan
466# 6 checking for... messages and results
467# 5 compiler messages saved in config.log
468if test "$silent" = yes; then
469  exec 6>/dev/null
470else
471  exec 6>&1
472fi
473exec 5>./config.log
474
475echo "\
476This file contains any messages produced by compilers while
477running configure, to aid debugging if configure makes a mistake.
478" 1>&5
479
480# Strip out --no-create and --no-recursion so they do not pile up.
481# Also quote any args containing shell metacharacters.
482ac_configure_args=
483for ac_arg
484do
485  case "$ac_arg" in
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c) ;;
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
490  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
492  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
493  esac
494done
495
496# NLS nuisances.
497# Only set these to C if already set.  These must not be set unconditionally
498# because not all systems understand e.g. LANG=C (notably SCO).
499# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500# Non-C LC_CTYPE values break the ctype check.
501if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
502if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
505
506# confdefs.h avoids OS command line length limits that DEFS can exceed.
507rm -rf conftest* confdefs.h
508# AIX cpp loses on an empty file, so make sure it contains at least a newline.
509echo > confdefs.h
510
511# A filename unique to this package, relative to the directory that
512# configure is in, which we can look for to find out if srcdir is correct.
513ac_unique_file=README
514
515# Find the source files, if location was not specified.
516if test -z "$srcdir"; then
517  ac_srcdir_defaulted=yes
518  # Try the directory containing this script, then its parent.
519  ac_prog=$0
520  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522  srcdir=$ac_confdir
523  if test ! -r $srcdir/$ac_unique_file; then
524    srcdir=..
525  fi
526else
527  ac_srcdir_defaulted=no
528fi
529if test ! -r $srcdir/$ac_unique_file; then
530  if test "$ac_srcdir_defaulted" = yes; then
531    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532  else
533    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534  fi
535fi
536srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537
538# Prefer explicitly selected file to automatically selected ones.
539if test -z "$CONFIG_SITE"; then
540  if test "x$prefix" != xNONE; then
541    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542  else
543    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544  fi
545fi
546for ac_site_file in $CONFIG_SITE; do
547  if test -r "$ac_site_file"; then
548    echo "loading site script $ac_site_file"
549    . "$ac_site_file"
550  fi
551done
552
553if test -r "$cache_file"; then
554  echo "loading cache $cache_file"
555  . $cache_file
556else
557  echo "creating cache $cache_file"
558  > $cache_file
559fi
560
561ac_ext=c
562# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563ac_cpp='$CPP $CPPFLAGS'
564ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566cross_compiling=$ac_cv_prog_cc_cross
567
568ac_exeext=
569ac_objext=o
570if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
571  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
573    ac_n= ac_c='
574' ac_t='        '
575  else
576    ac_n=-n ac_c= ac_t=
577  fi
578else
579  ac_n= ac_c='\c' ac_t=
580fi
581
582
583RTEMS_TOPdir=".";
584
585
586PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
587
588
589RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
590
591
592
593echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
594echo "configure:595: checking whether ${MAKE-make} sets \${MAKE}" >&5
595set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
596if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
597  echo $ac_n "(cached) $ac_c" 1>&6
598else
599  cat > conftestmake <<\EOF
600all:
601        @echo 'ac_maketemp="${MAKE}"'
602EOF
603# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
604eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
605if test -n "$ac_maketemp"; then
606  eval ac_cv_prog_make_${ac_make}_set=yes
607else
608  eval ac_cv_prog_make_${ac_make}_set=no
609fi
610rm -f conftestmake
611fi
612if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
613  echo "$ac_t""yes" 1>&6
614  SET_MAKE=
615else
616  echo "$ac_t""no" 1>&6
617  SET_MAKE="MAKE=${MAKE-make}"
618fi
619
620ac_aux_dir=
621for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
622  if test -f $ac_dir/install-sh; then
623    ac_aux_dir=$ac_dir
624    ac_install_sh="$ac_aux_dir/install-sh -c"
625    break
626  elif test -f $ac_dir/install.sh; then
627    ac_aux_dir=$ac_dir
628    ac_install_sh="$ac_aux_dir/install.sh -c"
629    break
630  fi
631done
632if test -z "$ac_aux_dir"; then
633  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
634fi
635ac_config_guess=$ac_aux_dir/config.guess
636ac_config_sub=$ac_aux_dir/config.sub
637ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
638
639
640# Do some error checking and defaulting for the host and target type.
641# The inputs are:
642#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
643#
644# The rules are:
645# 1. You are not allowed to specify --host, --target, and nonopt at the
646#    same time.
647# 2. Host defaults to nonopt.
648# 3. If nonopt is not specified, then host defaults to the current host,
649#    as determined by config.guess.
650# 4. Target and build default to nonopt.
651# 5. If nonopt is not specified, then target and build default to host.
652
653# The aliases save the names the user supplied, while $host etc.
654# will get canonicalized.
655case $host---$target---$nonopt in
656NONE---*---* | *---NONE---* | *---*---NONE) ;;
657*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
658esac
659
660
661# Make sure we can run config.sub.
662if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
663else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
664fi
665
666echo $ac_n "checking host system type""... $ac_c" 1>&6
667echo "configure:668: checking host system type" >&5
668
669host_alias=$host
670case "$host_alias" in
671NONE)
672  case $nonopt in
673  NONE)
674    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
675    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
676    fi ;;
677  *) host_alias=$nonopt ;;
678  esac ;;
679esac
680
681host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
682host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685echo "$ac_t""$host" 1>&6
686
687echo $ac_n "checking target system type""... $ac_c" 1>&6
688echo "configure:689: checking target system type" >&5
689
690target_alias=$target
691case "$target_alias" in
692NONE)
693  case $nonopt in
694  NONE) target_alias=$host_alias ;;
695  *) target_alias=$nonopt ;;
696  esac ;;
697esac
698
699target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
700target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
701target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
702target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
703echo "$ac_t""$target" 1>&6
704
705echo $ac_n "checking build system type""... $ac_c" 1>&6
706echo "configure:707: checking build system type" >&5
707
708build_alias=$build
709case "$build_alias" in
710NONE)
711  case $nonopt in
712  NONE) build_alias=$host_alias ;;
713  *) build_alias=$nonopt ;;
714  esac ;;
715esac
716
717build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
718build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
719build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
720build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
721echo "$ac_t""$build" 1>&6
722
723test "$host_alias" != "$target_alias" &&
724  test "$program_prefix$program_suffix$program_transform_name" = \
725    NONENONEs,x,x, &&
726  program_prefix=${target_alias}-
727
728
729# Check whether --with-cross-host or --without-cross-host was given.
730if test "${with_cross_host+set}" = set; then
731  withval="$with_cross_host"
732  \
733host=$withval
734fi
735
736
737
738# Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given.
739if test "${enable_gmake_print_directory+set}" = set; then
740  enableval="$enable_gmake_print_directory"
741  case "${enableval}" in
742  yes) RTEMS_USE_OWN_PDIR=no ;;
743  no) RTEMS_USE_OWN_PDIR=yes ;;
744  *)  { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; }
745;;
746esac
747else
748  RTEMS_USE_OWN_PDIR=yes
749fi
750
751
752
753# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
754if test "${enable_multiprocessing+set}" = set; then
755  enableval="$enable_multiprocessing"
756  case "${enableval}" in
757  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
758  no) RTEMS_HAS_MULTIPROCESSING=no ;;
759  *)  { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;;
760esac
761else
762  RTEMS_HAS_MULTIPROCESSING=no
763fi
764
765
766
767# Check whether --enable-posix or --disable-posix was given.
768if test "${enable_posix+set}" = set; then
769  enableval="$enable_posix"
770  case "${enableval}" in
771  yes) RTEMS_HAS_POSIX_API=yes ;;
772  no) RTEMS_HAS_POSIX_API=no ;;
773  *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
774esac
775else
776  RTEMS_HAS_POSIX_API=yes
777fi
778 
779
780case "${target}" in
781  # hpux unix port should go here
782  i[3456]86-go32-rtems*)
783        RTEMS_HAS_POSIX_API=no
784        ;;
785  i[3456]86-pc-linux*)         # unix "simulator" port
786        RTEMS_HAS_POSIX_API=no
787        ;;
788  i[3456]86-*freebsd2*) # unix "simulator" port
789        RTEMS_HAS_POSIX_API=no
790        ;;
791  no_cpu-*rtems*)
792        RTEMS_HAS_POSIX_API=no
793        ;;
794  sparc-sun-solaris*)             # unix "simulator" port
795        RTEMS_HAS_POSIX_API=no
796        ;;
797  *)
798        ;;
799esac
800
801
802
803# Check whether --enable-networking or --disable-networking was given.
804if test "${enable_networking+set}" = set; then
805  enableval="$enable_networking"
806  case "${enableval}" in
807  yes) RTEMS_HAS_NETWORKING=yes ;;
808  no) RTEMS_HAS_NETWORKING=no ;;
809  *)  { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;
810esac
811else
812  RTEMS_HAS_NETWORKING=yes
813fi
814
815
816
817# Check whether --enable-rdbg or --disable-rdbg was given.
818if test "${enable_rdbg+set}" = set; then
819  enableval="$enable_rdbg"
820  case "${enableval}" in
821  yes) RTEMS_HAS_RDBG=yes ;;
822  no) RTEMS_HAS_RDBG=no ;;
823  *)  { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;;
824esac
825else
826  RTEMS_HAS_RDBG=no
827fi
828
829
830# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
831if test "${enable_rtems_inlines+set}" = set; then
832  enableval="$enable_rtems_inlines"
833  case "${enableval}" in
834  yes) RTEMS_USE_MACROS=no ;;
835  no) RTEMS_USE_MACROS=yes ;;
836  *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
837esac
838else
839  RTEMS_USE_MACROS=no
840fi
841
842
843
844# Check whether --enable-cxx or --disable-cxx was given.
845if test "${enable_cxx+set}" = set; then
846  enableval="$enable_cxx"
847  case "${enableval}" in
848  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
849  no) RTEMS_HAS_CPLUSPLUS=no   ;;
850  *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
851esac
852else
853  RTEMS_HAS_CPLUSPLUS=no
854fi
855
856
857
858# Check whether --enable-gcc28 or --disable-gcc28 was given.
859if test "${enable_gcc28+set}" = set; then
860  enableval="$enable_gcc28"
861  case "${enableval}" in
862  yes) RTEMS_USE_GCC272=no ;;
863  no) RTEMS_USE_GCC272=yes ;;
864  *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
865esac
866else
867  RTEMS_USE_GCC272=no
868fi
869
870
871
872# Check whether --enable-libcdir or --disable-libcdir was given.
873if test "${enable_libcdir+set}" = set; then
874  enableval="$enable_libcdir"
875   RTEMS_LIBC_DIR="${enableval}" ; \
876test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
877fi
878
879
880
881# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
882if test "${enable_bare_cpu_cflags+set}" = set; then
883  enableval="$enable_bare_cpu_cflags"
884  case "${enableval}" in
885  no) BARE_CPU_CFLAGS="" ;;
886  *)    BARE_CPU_CFLAGS="${enableval}" ;;
887esac
888else
889  BARE_CPU_CFLAGS=""
890fi
891
892
893# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
894if test "${enable_bare_cpu_model+set}" = set; then
895  enableval="$enable_bare_cpu_model"
896  case "${enableval}" in
897  no)   BARE_CPU_MODEL="" ;;
898  *)    BARE_CPU_MODEL="${enableval}" ;;
899esac
900else
901  BARE_CPU_MODEL=""
902fi
903
904
905
906RTEMS_PREFIX=${target_cpu}-${target_vendor}
907
908
909# Extract the first word of "cat", so it can be a program name with args.
910set dummy cat; ac_word=$2
911echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912echo "configure:913: checking for $ac_word" >&5
913if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
914  echo $ac_n "(cached) $ac_c" 1>&6
915else
916  case "$CAT" in
917  /*)
918  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
919  ;;
920  ?:/*)                 
921  ac_cv_path_CAT="$CAT" # Let the user override the test with a dos path.
922  ;;
923  *)
924  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
925  ac_dummy="$PATH"
926  for ac_dir in $ac_dummy; do
927    test -z "$ac_dir" && ac_dir=.
928    if test -f $ac_dir/$ac_word; then
929      ac_cv_path_CAT="$ac_dir/$ac_word"
930      break
931    fi
932  done
933  IFS="$ac_save_ifs"
934  ;;
935esac
936fi
937CAT="$ac_cv_path_CAT"
938if test -n "$CAT"; then
939  echo "$ac_t""$CAT" 1>&6
940else
941  echo "$ac_t""no" 1>&6
942fi
943
944# Extract the first word of "rm", so it can be a program name with args.
945set dummy rm; ac_word=$2
946echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
947echo "configure:948: checking for $ac_word" >&5
948if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
949  echo $ac_n "(cached) $ac_c" 1>&6
950else
951  case "$RM" in
952  /*)
953  ac_cv_path_RM="$RM" # Let the user override the test with a path.
954  ;;
955  ?:/*)                 
956  ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
957  ;;
958  *)
959  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
960  ac_dummy="$PATH"
961  for ac_dir in $ac_dummy; do
962    test -z "$ac_dir" && ac_dir=.
963    if test -f $ac_dir/$ac_word; then
964      ac_cv_path_RM="$ac_dir/$ac_word"
965      break
966    fi
967  done
968  IFS="$ac_save_ifs"
969  ;;
970esac
971fi
972RM="$ac_cv_path_RM"
973if test -n "$RM"; then
974  echo "$ac_t""$RM" 1>&6
975else
976  echo "$ac_t""no" 1>&6
977fi
978
979# Extract the first word of "cp", so it can be a program name with args.
980set dummy cp; ac_word=$2
981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982echo "configure:983: checking for $ac_word" >&5
983if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
984  echo $ac_n "(cached) $ac_c" 1>&6
985else
986  case "$CP" in
987  /*)
988  ac_cv_path_CP="$CP" # Let the user override the test with a path.
989  ;;
990  ?:/*)                 
991  ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
992  ;;
993  *)
994  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
995  ac_dummy="$PATH"
996  for ac_dir in $ac_dummy; do
997    test -z "$ac_dir" && ac_dir=.
998    if test -f $ac_dir/$ac_word; then
999      ac_cv_path_CP="$ac_dir/$ac_word"
1000      break
1001    fi
1002  done
1003  IFS="$ac_save_ifs"
1004  ;;
1005esac
1006fi
1007CP="$ac_cv_path_CP"
1008if test -n "$CP"; then
1009  echo "$ac_t""$CP" 1>&6
1010else
1011  echo "$ac_t""no" 1>&6
1012fi
1013
1014# Extract the first word of "mv", so it can be a program name with args.
1015set dummy mv; ac_word=$2
1016echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017echo "configure:1018: checking for $ac_word" >&5
1018if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1019  echo $ac_n "(cached) $ac_c" 1>&6
1020else
1021  case "$MV" in
1022  /*)
1023  ac_cv_path_MV="$MV" # Let the user override the test with a path.
1024  ;;
1025  ?:/*)                 
1026  ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1027  ;;
1028  *)
1029  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1030  ac_dummy="$PATH"
1031  for ac_dir in $ac_dummy; do
1032    test -z "$ac_dir" && ac_dir=.
1033    if test -f $ac_dir/$ac_word; then
1034      ac_cv_path_MV="$ac_dir/$ac_word"
1035      break
1036    fi
1037  done
1038  IFS="$ac_save_ifs"
1039  ;;
1040esac
1041fi
1042MV="$ac_cv_path_MV"
1043if test -n "$MV"; then
1044  echo "$ac_t""$MV" 1>&6
1045else
1046  echo "$ac_t""no" 1>&6
1047fi
1048
1049# Extract the first word of "ln", so it can be a program name with args.
1050set dummy ln; ac_word=$2
1051echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052echo "configure:1053: checking for $ac_word" >&5
1053if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1054  echo $ac_n "(cached) $ac_c" 1>&6
1055else
1056  case "$LN" in
1057  /*)
1058  ac_cv_path_LN="$LN" # Let the user override the test with a path.
1059  ;;
1060  ?:/*)                 
1061  ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
1062  ;;
1063  *)
1064  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1065  ac_dummy="$PATH"
1066  for ac_dir in $ac_dummy; do
1067    test -z "$ac_dir" && ac_dir=.
1068    if test -f $ac_dir/$ac_word; then
1069      ac_cv_path_LN="$ac_dir/$ac_word"
1070      break
1071    fi
1072  done
1073  IFS="$ac_save_ifs"
1074  ;;
1075esac
1076fi
1077LN="$ac_cv_path_LN"
1078if test -n "$LN"; then
1079  echo "$ac_t""$LN" 1>&6
1080else
1081  echo "$ac_t""no" 1>&6
1082fi
1083
1084echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1085echo "configure:1086: checking whether ln -s works" >&5
1086if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1087  echo $ac_n "(cached) $ac_c" 1>&6
1088else
1089  rm -f conftestdata
1090if ln -s X conftestdata 2>/dev/null
1091then
1092  rm -f conftestdata
1093  ac_cv_prog_LN_S="ln -s"
1094else
1095  ac_cv_prog_LN_S=ln
1096fi
1097fi
1098LN_S="$ac_cv_prog_LN_S"
1099if test "$ac_cv_prog_LN_S" = "ln -s"; then
1100  echo "$ac_t""yes" 1>&6
1101else
1102  echo "$ac_t""no" 1>&6
1103fi
1104
1105# Extract the first word of "chmod", so it can be a program name with args.
1106set dummy chmod; ac_word=$2
1107echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1108echo "configure:1109: checking for $ac_word" >&5
1109if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1110  echo $ac_n "(cached) $ac_c" 1>&6
1111else
1112  case "$CHMOD" in
1113  /*)
1114  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1115  ;;
1116  ?:/*)                 
1117  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1118  ;;
1119  *)
1120  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1121  ac_dummy="$PATH"
1122  for ac_dir in $ac_dummy; do
1123    test -z "$ac_dir" && ac_dir=.
1124    if test -f $ac_dir/$ac_word; then
1125      ac_cv_path_CHMOD="$ac_dir/$ac_word"
1126      break
1127    fi
1128  done
1129  IFS="$ac_save_ifs"
1130  ;;
1131esac
1132fi
1133CHMOD="$ac_cv_path_CHMOD"
1134if test -n "$CHMOD"; then
1135  echo "$ac_t""$CHMOD" 1>&6
1136else
1137  echo "$ac_t""no" 1>&6
1138fi
1139
1140# Extract the first word of "sort", so it can be a program name with args.
1141set dummy sort; ac_word=$2
1142echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1143echo "configure:1144: checking for $ac_word" >&5
1144if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
1145  echo $ac_n "(cached) $ac_c" 1>&6
1146else
1147  case "$SORT" in
1148  /*)
1149  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
1150  ;;
1151  ?:/*)                 
1152  ac_cv_path_SORT="$SORT" # Let the user override the test with a dos path.
1153  ;;
1154  *)
1155  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1156  ac_dummy="$PATH"
1157  for ac_dir in $ac_dummy; do
1158    test -z "$ac_dir" && ac_dir=.
1159    if test -f $ac_dir/$ac_word; then
1160      ac_cv_path_SORT="$ac_dir/$ac_word"
1161      break
1162    fi
1163  done
1164  IFS="$ac_save_ifs"
1165  ;;
1166esac
1167fi
1168SORT="$ac_cv_path_SORT"
1169if test -n "$SORT"; then
1170  echo "$ac_t""$SORT" 1>&6
1171else
1172  echo "$ac_t""no" 1>&6
1173fi
1174
1175# Find a good install program.  We prefer a C program (faster),
1176# so one script is as good as another.  But avoid the broken or
1177# incompatible versions:
1178# SysV /etc/install, /usr/sbin/install
1179# SunOS /usr/etc/install
1180# IRIX /sbin/install
1181# AIX /bin/install
1182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1185# ./install, which can be erroneously created by make from ./install.sh.
1186echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1187echo "configure:1188: checking for a BSD compatible install" >&5
1188if test -z "$INSTALL"; then
1189if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1190  echo $ac_n "(cached) $ac_c" 1>&6
1191else
1192    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1193  for ac_dir in $PATH; do
1194    # Account for people who put trailing slashes in PATH elements.
1195    case "$ac_dir/" in
1196    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1197    *)
1198      # OSF1 and SCO ODT 3.0 have their own names for install.
1199      # Don't use installbsd from OSF since it installs stuff as root
1200      # by default.
1201      for ac_prog in ginstall scoinst install; do
1202        if test -f $ac_dir/$ac_prog; then
1203          if test $ac_prog = install &&
1204            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1205            # AIX install.  It has an incompatible calling convention.
1206            :
1207          else
1208            ac_cv_path_install="$ac_dir/$ac_prog -c"
1209            break 2
1210          fi
1211        fi
1212      done
1213      ;;
1214    esac
1215  done
1216  IFS="$ac_save_IFS"
1217
1218fi
1219  if test "${ac_cv_path_install+set}" = set; then
1220    INSTALL="$ac_cv_path_install"
1221  else
1222    # As a last resort, use the slow shell script.  We don't cache a
1223    # path for INSTALL within a source directory, because that will
1224    # break other packages using the cache if that directory is
1225    # removed, or if the path is relative.
1226    INSTALL="$ac_install_sh"
1227  fi
1228fi
1229echo "$ac_t""$INSTALL" 1>&6
1230
1231# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1232# It thinks the first close brace ends the variable substitution.
1233test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1234
1235test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1236
1237test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1238
1239
1240# Extract the first word of "perl", so it can be a program name with args.
1241set dummy perl; ac_word=$2
1242echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243echo "configure:1244: checking for $ac_word" >&5
1244if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1245  echo $ac_n "(cached) $ac_c" 1>&6
1246else
1247  case "$PERL" in
1248  /*)
1249  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1250  ;;
1251  ?:/*)                 
1252  ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1253  ;;
1254  *)
1255  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1256  ac_dummy="$PATH"
1257  for ac_dir in $ac_dummy; do
1258    test -z "$ac_dir" && ac_dir=.
1259    if test -f $ac_dir/$ac_word; then
1260      ac_cv_path_PERL="$ac_dir/$ac_word"
1261      break
1262    fi
1263  done
1264  IFS="$ac_save_ifs"
1265  ;;
1266esac
1267fi
1268PERL="$ac_cv_path_PERL"
1269if test -n "$PERL"; then
1270  echo "$ac_t""$PERL" 1>&6
1271else
1272  echo "$ac_t""no" 1>&6
1273fi
1274
1275if test -z "$PERL" ; then
1276echo "configure: warning: ***
1277   perl was not found
1278   Note: Some tools will not be built." 1>&2
1279fi
1280
1281
1282# Extract the first word of "mkdir", so it can be a program name with args.
1283set dummy mkdir; ac_word=$2
1284echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285echo "configure:1286: checking for $ac_word" >&5
1286if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
1287  echo $ac_n "(cached) $ac_c" 1>&6
1288else
1289  case "$MKDIR" in
1290  /*)
1291  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
1292  ;;
1293  ?:/*)                 
1294  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a dos path.
1295  ;;
1296  *)
1297  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1298  ac_dummy="$PATH"
1299  for ac_dir in $ac_dummy; do
1300    test -z "$ac_dir" && ac_dir=.
1301    if test -f $ac_dir/$ac_word; then
1302      ac_cv_path_MKDIR="$ac_dir/$ac_word"
1303      break
1304    fi
1305  done
1306  IFS="$ac_save_ifs"
1307  ;;
1308esac
1309fi
1310MKDIR="$ac_cv_path_MKDIR"
1311if test -n "$MKDIR"; then
1312  echo "$ac_t""$MKDIR" 1>&6
1313else
1314  echo "$ac_t""no" 1>&6
1315fi
1316
1317
1318
1319
1320echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
1321echo "configure:1322: checking for working $MKDIR -m 0755" >&5
1322if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
1323  echo $ac_n "(cached) $ac_c" 1>&6
1324else
1325  rm -rf conftestdata
1326if $MKDIR -m 0775 conftestdata 2>/dev/null; then
1327rtems_cv_prog_MKDIR_M="yes"
1328else
1329rtems_cv_prog_MKDIR_M="no"
1330fi
1331fi
1332rm -rf conftestdata
1333echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6
1334
1335
1336
1337echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
1338echo "configure:1339: checking for working $MKDIR -p" >&5
1339if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
1340  echo $ac_n "(cached) $ac_c" 1>&6
1341else
1342  rm -rf conftestdata
1343if $MKDIR -p conftestdata 2>/dev/null ;then
1344rtems_cv_prog_MKDIR_P="yes"
1345else
1346rtems_cv_prog_MKDIR_P="no"
1347fi
1348fi
1349rm -rf conftestdata
1350echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6
1351
1352test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p"
1353#test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755"
1354
1355# Extract the first word of "touch", so it can be a program name with args.
1356set dummy touch; ac_word=$2
1357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1358echo "configure:1359: checking for $ac_word" >&5
1359if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
1360  echo $ac_n "(cached) $ac_c" 1>&6
1361else
1362  case "$TOUCH" in
1363  /*)
1364  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
1365  ;;
1366  ?:/*)                 
1367  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a dos path.
1368  ;;
1369  *)
1370  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1371  ac_dummy="$PATH"
1372  for ac_dir in $ac_dummy; do
1373    test -z "$ac_dir" && ac_dir=.
1374    if test -f $ac_dir/$ac_word; then
1375      ac_cv_path_TOUCH="$ac_dir/$ac_word"
1376      break
1377    fi
1378  done
1379  IFS="$ac_save_ifs"
1380  ;;
1381esac
1382fi
1383TOUCH="$ac_cv_path_TOUCH"
1384if test -n "$TOUCH"; then
1385  echo "$ac_t""$TOUCH" 1>&6
1386else
1387  echo "$ac_t""no" 1>&6
1388fi
1389
1390# Extract the first word of "cmp", so it can be a program name with args.
1391set dummy cmp; ac_word=$2
1392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1393echo "configure:1394: checking for $ac_word" >&5
1394if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1395  echo $ac_n "(cached) $ac_c" 1>&6
1396else
1397  case "$CMP" in
1398  /*)
1399  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1400  ;;
1401  ?:/*)                 
1402  ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1403  ;;
1404  *)
1405  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1406  ac_dummy="$PATH"
1407  for ac_dir in $ac_dummy; do
1408    test -z "$ac_dir" && ac_dir=.
1409    if test -f $ac_dir/$ac_word; then
1410      ac_cv_path_CMP="$ac_dir/$ac_word"
1411      break
1412    fi
1413  done
1414  IFS="$ac_save_ifs"
1415  ;;
1416esac
1417fi
1418CMP="$ac_cv_path_CMP"
1419if test -n "$CMP"; then
1420  echo "$ac_t""$CMP" 1>&6
1421else
1422  echo "$ac_t""no" 1>&6
1423fi
1424
1425
1426# Extract the first word of "sed", so it can be a program name with args.
1427set dummy sed; ac_word=$2
1428echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1429echo "configure:1430: checking for $ac_word" >&5
1430if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1431  echo $ac_n "(cached) $ac_c" 1>&6
1432else
1433  case "$SED" in
1434  /*)
1435  ac_cv_path_SED="$SED" # Let the user override the test with a path.
1436  ;;
1437  ?:/*)                 
1438  ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1439  ;;
1440  *)
1441  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1442  ac_dummy="$PATH"
1443  for ac_dir in $ac_dummy; do
1444    test -z "$ac_dir" && ac_dir=.
1445    if test -f $ac_dir/$ac_word; then
1446      ac_cv_path_SED="$ac_dir/$ac_word"
1447      break
1448    fi
1449  done
1450  IFS="$ac_save_ifs"
1451  ;;
1452esac
1453fi
1454SED="$ac_cv_path_SED"
1455if test -n "$SED"; then
1456  echo "$ac_t""$SED" 1>&6
1457else
1458  echo "$ac_t""no" 1>&6
1459fi
1460
1461for ac_prog in gm4 m4
1462do
1463# Extract the first word of "$ac_prog", so it can be a program name with args.
1464set dummy $ac_prog; ac_word=$2
1465echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1466echo "configure:1467: checking for $ac_word" >&5
1467if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
1468  echo $ac_n "(cached) $ac_c" 1>&6
1469else
1470  case "$M4" in
1471  /*)
1472  ac_cv_path_M4="$M4" # Let the user override the test with a path.
1473  ;;
1474  ?:/*)                 
1475  ac_cv_path_M4="$M4" # Let the user override the test with a dos path.
1476  ;;
1477  *)
1478  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1479  ac_dummy="$PATH"
1480  for ac_dir in $ac_dummy; do
1481    test -z "$ac_dir" && ac_dir=.
1482    if test -f $ac_dir/$ac_word; then
1483      ac_cv_path_M4="$ac_dir/$ac_word"
1484      break
1485    fi
1486  done
1487  IFS="$ac_save_ifs"
1488  ;;
1489esac
1490fi
1491M4="$ac_cv_path_M4"
1492if test -n "$M4"; then
1493  echo "$ac_t""$M4" 1>&6
1494else
1495  echo "$ac_t""no" 1>&6
1496fi
1497
1498test -n "$M4" && break
1499done
1500
1501
1502
1503for ac_prog in bash ksh sh
1504do
1505# Extract the first word of "$ac_prog", so it can be a program name with args.
1506set dummy $ac_prog; ac_word=$2
1507echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508echo "configure:1509: checking for $ac_word" >&5
1509if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1510  echo $ac_n "(cached) $ac_c" 1>&6
1511else
1512  case "$KSH" in
1513  /*)
1514  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1515  ;;
1516  ?:/*)                 
1517  ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
1518  ;;
1519  *)
1520  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1521  ac_dummy="$PATH"
1522  for ac_dir in $ac_dummy; do
1523    test -z "$ac_dir" && ac_dir=.
1524    if test -f $ac_dir/$ac_word; then
1525      ac_cv_path_KSH="$ac_dir/$ac_word"
1526      break
1527    fi
1528  done
1529  IFS="$ac_save_ifs"
1530  ;;
1531esac
1532fi
1533KSH="$ac_cv_path_KSH"
1534if test -n "$KSH"; then
1535  echo "$ac_t""$KSH" 1>&6
1536else
1537  echo "$ac_t""no" 1>&6
1538fi
1539
1540test -n "$KSH" && break
1541done
1542
1543if test -z "$KSH"; then
1544{ echo "configure: error: ***
1545    Cannot determine a usable shell bash/ksh/sh
1546    Please contact your system administrator " 1>&2; exit 1; };
1547fi
1548
1549
1550
1551
1552
1553RTEMS_HOST=$host_os
1554
1555
1556
1557echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
1558echo "configure:1559: checking rtems target cpu" >&5
1559case "${target}" in
1560  # hpux unix port should go here
1561  i[3456]86-go32-rtems*)
1562        target_cpu=i386
1563        ;;
1564  i[3456]86-pc-linux*)          # unix "simulator" port
1565        target_cpu=unix
1566        ;;
1567  i[3456]86-*freebsd2*)         # unix "simulator" port
1568        target_cpu=unix
1569        ;;
1570  no_cpu-*rtems*)
1571        target_cpu=no_cpu
1572        ;;
1573  ppc*-*rtems*)
1574        target_cpu=powerpc
1575        ;;
1576  sparc-sun-solaris*)           # unix "simulator" port
1577        target_cpu=unix
1578        ;;
1579  *)
1580        target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1581        ;;
1582esac
1583echo "$ac_t""$target_cpu" 1>&6
1584
1585
1586
1587# Is this a supported CPU?
1588echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
1589echo "configure:1590: checking if cpu $target_cpu is supported" >&5
1590if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then
1591  echo "$ac_t""yes" 1>&6
1592else
1593  { echo "configure: error: no" 1>&2; exit 1; }
1594fi
1595
1596
1597RTEMS_HOST=$host_os
1598case "${target}" in
1599  # hpux unix port should go here
1600  i[3456]86-pc-linux*)         # unix "simulator" port
1601        RTEMS_HOST=Linux
1602        ;;
1603  i[3456]86-*freebsd2*) # unix "simulator" port
1604        RTEMS_HOST=FreeBSD
1605        ;;
1606  sparc-sun-solaris*)             # unix "simulator" port
1607        RTEMS_HOST=Solaris
1608        ;;
1609  *)
1610        ;;
1611esac
1612
1613
1614
1615case "${target}" in
1616  i[3456]86-go32-rtems*)
1617    rtems_bsp="go32 go32_p5"
1618    skip_startfiles="yes"
1619    ;;
1620  *)
1621    ;;
1622esac
1623
1624# Override the set of BSPs to be built.
1625# Check whether --enable-rtemsbsp or --disable-rtemsbsp was given.
1626if test "${enable_rtemsbsp+set}" = set; then
1627  enableval="$enable_rtemsbsp"
1628  \
1629      rtems_bsp=$enableval \
1630
1631fi
1632
1633
1634
1635if [ "${program_prefix}" = "NONE" ] ; then
1636  if [ "${target}" = "${host}" ] ; then
1637    program_prefix=
1638  else
1639    program_prefix=${target}-
1640  fi
1641fi
1642
1643
1644
1645
1646for ac_prog in "$program_prefix"gcc "$program_prefix"cc
1647do
1648# Extract the first word of "$ac_prog", so it can be a program name with args.
1649set dummy $ac_prog; ac_word=$2
1650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1651echo "configure:1652: checking for $ac_word" >&5
1652if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
1653  echo $ac_n "(cached) $ac_c" 1>&6
1654else
1655  case "$CC_FOR_TARGET" in
1656  /*)
1657  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
1658  ;;
1659  ?:/*)                 
1660  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path.
1661  ;;
1662  *)
1663  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1664  ac_dummy="$PATH"
1665  for ac_dir in $ac_dummy; do
1666    test -z "$ac_dir" && ac_dir=.
1667    if test -f $ac_dir/$ac_word; then
1668      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
1669      break
1670    fi
1671  done
1672  IFS="$ac_save_ifs"
1673  ;;
1674esac
1675fi
1676CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
1677if test -n "$CC_FOR_TARGET"; then
1678  echo "$ac_t""$CC_FOR_TARGET" 1>&6
1679else
1680  echo "$ac_t""no" 1>&6
1681fi
1682
1683test -n "$CC_FOR_TARGET" && break
1684done
1685
1686test -z "$CC_FOR_TARGET" \
1687  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1688
1689rtems_save_CC=$CC
1690rtems_save_CFLAGS=$CFLAGS
1691
1692CC=$CC_FOR_TARGET
1693
1694echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1695echo "configure:1696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1696
1697ac_ext=c
1698# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1699ac_cpp='$CPP $CPPFLAGS'
1700ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1701ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1702cross_compiling=$ac_cv_prog_cc_cross
1703
1704cat > conftest.$ac_ext << EOF
1705
1706#line 1707 "configure"
1707#include "confdefs.h"
1708
1709main(){return(0);}
1710EOF
1711if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1712  ac_cv_prog_cc_works=yes
1713  # If we can't run a trivial program, we are probably using a cross compiler.
1714  if (./conftest; exit) 2>/dev/null; then
1715    ac_cv_prog_cc_cross=no
1716  else
1717    ac_cv_prog_cc_cross=yes
1718  fi
1719else
1720  echo "configure: failed program was:" >&5
1721  cat conftest.$ac_ext >&5
1722  ac_cv_prog_cc_works=no
1723fi
1724rm -fr conftest*
1725ac_ext=c
1726# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1727ac_cpp='$CPP $CPPFLAGS'
1728ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1729ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1730cross_compiling=$ac_cv_prog_cc_cross
1731
1732echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1733if test $ac_cv_prog_cc_works = no; then
1734  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1735fi
1736echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1737echo "configure:1738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1738echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1739cross_compiling=$ac_cv_prog_cc_cross
1740
1741echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1742echo "configure:1743: checking whether we are using GNU C" >&5
1743if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1744  echo $ac_n "(cached) $ac_c" 1>&6
1745else
1746  cat > conftest.c <<EOF
1747#ifdef __GNUC__
1748  yes;
1749#endif
1750EOF
1751if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1752  ac_cv_prog_gcc=yes
1753else
1754  ac_cv_prog_gcc=no
1755fi
1756fi
1757
1758echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1759
1760if test $ac_cv_prog_gcc = yes; then
1761  GCC=yes
1762  ac_test_CFLAGS="${CFLAGS+set}"
1763  ac_save_CFLAGS="$CFLAGS"
1764  CFLAGS=
1765  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1766echo "configure:1767: checking whether ${CC-cc} accepts -g" >&5
1767if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1768  echo $ac_n "(cached) $ac_c" 1>&6
1769else
1770  echo 'void f(){}' > conftest.c
1771if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1772  ac_cv_prog_cc_g=yes
1773else
1774  ac_cv_prog_cc_g=no
1775fi
1776rm -f conftest*
1777
1778fi
1779
1780echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1781  if test "$ac_test_CFLAGS" = set; then
1782    CFLAGS="$ac_save_CFLAGS"
1783  elif test $ac_cv_prog_cc_g = yes; then
1784    CFLAGS="-g -O2"
1785  else
1786    CFLAGS="-O2"
1787  fi
1788else
1789  GCC=
1790  test "${CFLAGS+set}" = set || CFLAGS="-g"
1791fi
1792
1793rtems_cv_prog_gcc=$ac_cv_prog_gcc
1794rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1795rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1796rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1797
1798CC=$rtems_save_CC
1799CFLAGS=$rtems_save_CFLAGS
1800
1801unset ac_cv_prog_gcc
1802unset ac_cv_prog_cc_g
1803unset ac_cv_prog_cc_works
1804unset ac_cv_prog_cc_cross
1805
1806
1807echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1808echo "configure:1809: checking whether $CC_FOR_TARGET accepts -specs" >&5
1809if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1810  echo $ac_n "(cached) $ac_c" 1>&6
1811else
1812 
1813rtems_cv_gcc_specs=no
1814if test "$rtems_cv_prog_gcc" = "yes"; then
1815  touch confspec
1816  echo 'void f(){}' >conftest.c
1817  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1818    rtems_cv_gcc_specs=yes
1819  fi
1820fi
1821rm -f confspec conftest*
1822
1823fi
1824
1825echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1826 
1827
1828echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1829echo "configure:1830: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1830if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1831  echo $ac_n "(cached) $ac_c" 1>&6
1832else
1833 
1834rtems_cv_gcc_pipe=no
1835if test "$rtems_cv_prog_gcc" = "yes"; then
1836case "$host_os" in
1837  cygwin32*)
1838    ;;
1839  *)
1840    echo 'void f(){}' >conftest.c
1841    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1842      rtems_cv_gcc_pipe=yes
1843    fi
1844    rm -f conftest*
1845    ;;
1846esac
1847fi
1848
1849fi
1850
1851echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1852
1853
1854if test "$RTEMS_USE_GCC272" != "yes" ; then
1855  if test "$rtems_cv_gcc_specs" = "no"; then
1856    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1857     RTEMS_USE_GCC272=yes
1858  fi
1859fi
1860test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1861
1862if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
1863 
1864
1865for ac_prog in "$program_prefix"g++ "$program_prefix"c++
1866do
1867# Extract the first word of "$ac_prog", so it can be a program name with args.
1868set dummy $ac_prog; ac_word=$2
1869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1870echo "configure:1871: checking for $ac_word" >&5
1871if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
1872  echo $ac_n "(cached) $ac_c" 1>&6
1873else
1874  case "$CXX_FOR_TARGET" in
1875  /*)
1876  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
1877  ;;
1878  ?:/*)                 
1879  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path.
1880  ;;
1881  *)
1882  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1883  ac_dummy="$PATH"
1884  for ac_dir in $ac_dummy; do
1885    test -z "$ac_dir" && ac_dir=.
1886    if test -f $ac_dir/$ac_word; then
1887      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
1888      break
1889    fi
1890  done
1891  IFS="$ac_save_ifs"
1892  ;;
1893esac
1894fi
1895CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
1896if test -n "$CXX_FOR_TARGET"; then
1897  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
1898else
1899  echo "$ac_t""no" 1>&6
1900fi
1901
1902test -n "$CXX_FOR_TARGET" && break
1903done
1904
1905test -z "$CXX_FOR_TARGET" \
1906  && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1907
1908rtems_save_CXX=$CXX
1909rtems_save_CXXFLAGS=$CXXFLAGS
1910
1911CXX=$CXX_FOR_TARGET
1912
1913echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1914echo "configure:1915: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1915
1916ac_ext=C
1917# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1918ac_cpp='$CXXCPP $CPPFLAGS'
1919ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1920ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1921cross_compiling=$ac_cv_prog_cxx_cross
1922
1923cat > conftest.$ac_ext << EOF
1924
1925#line 1926 "configure"
1926#include "confdefs.h"
1927
1928int main(){return(0);}
1929EOF
1930if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1931  ac_cv_prog_cxx_works=yes
1932  # If we can't run a trivial program, we are probably using a cross compiler.
1933  if (./conftest; exit) 2>/dev/null; then
1934    ac_cv_prog_cxx_cross=no
1935  else
1936    ac_cv_prog_cxx_cross=yes
1937  fi
1938else
1939  echo "configure: failed program was:" >&5
1940  cat conftest.$ac_ext >&5
1941  ac_cv_prog_cxx_works=no
1942fi
1943rm -fr conftest*
1944ac_ext=c
1945# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1946ac_cpp='$CPP $CPPFLAGS'
1947ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1948ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1949cross_compiling=$ac_cv_prog_cc_cross
1950
1951echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1952if test $ac_cv_prog_cxx_works = no; then
1953  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1954fi
1955echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1956echo "configure:1957: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1957echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1958cross_compiling=$ac_cv_prog_cxx_cross
1959
1960echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1961echo "configure:1962: checking whether we are using GNU C++" >&5
1962if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1963  echo $ac_n "(cached) $ac_c" 1>&6
1964else
1965  cat > conftest.C <<EOF
1966#ifdef __GNUC__
1967  yes;
1968#endif
1969EOF
1970if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1971  ac_cv_prog_gxx=yes
1972else
1973  ac_cv_prog_gxx=no
1974fi
1975fi
1976
1977echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1978
1979if test $ac_cv_prog_gxx = yes; then
1980  GXX=yes
1981  ac_test_CXXFLAGS="${CXXFLAGS+set}"
1982  ac_save_CXXFLAGS="$CXXFLAGS"
1983  CXXFLAGS=
1984  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1985echo "configure:1986: checking whether ${CXX-g++} accepts -g" >&5
1986if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1987  echo $ac_n "(cached) $ac_c" 1>&6
1988else
1989  echo 'void f(){}' > conftest.cc
1990if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1991  ac_cv_prog_cxx_g=yes
1992else
1993  ac_cv_prog_cxx_g=no
1994fi
1995rm -f conftest*
1996
1997fi
1998
1999echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2000  if test "$ac_test_CXXFLAGS" = set; then
2001    CXXFLAGS="$ac_save_CXXFLAGS"
2002  elif test $ac_cv_prog_cxx_g = yes; then
2003    CXXFLAGS="-g -O2"
2004  else
2005    CXXFLAGS="-O2"
2006  fi
2007else
2008  GXX=
2009  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
2010fi
2011
2012rtems_cv_prog_gxx=$ac_cv_prog_gxx
2013rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
2014rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
2015rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
2016
2017CXX=$rtems_save_CXX
2018CXXFLAGS=$rtems_save_CXXFLAGS
2019
2020unset ac_cv_prog_gxx
2021unset ac_cv_prog_cc_g
2022unset ac_cv_prog_cxx_works
2023unset ac_cv_prog_cxx_cross
2024
2025  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
2026    { echo "configure: error: ***
2027     Inconsistency in compiler configuration:
2028     Target C compiler and Target C++ compiler
2029     must both either be cross compilers or native compilers
2030     Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
2031  fi
2032else
2033  CXX_FOR_TARGET="no"
2034fi
2035
2036
2037 
2038echo $ac_n "checking target's ar""... $ac_c" 1>&6
2039echo "configure:2040: checking target's ar" >&5
2040if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
2041  echo $ac_n "(cached) $ac_c" 1>&6
2042else
2043  :
2044fi
2045
2046echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
2047
2048if test -n "$ac_cv_path_AR_FOR_TARGET"; then
2049    AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2050else
2051    if test -z "$AR_FOR_TARGET" ; then
2052    if test "$rtems_cv_prog_gcc" = "yes"; then
2053      # We are using gcc, ask it about its tool
2054      # NOTE: Necessary if gcc was configured to use the target's
2055      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2056       case $host_os in
2057  *cygwin32*)
2058            AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' `
2059    ;;
2060  *)
2061    AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
2062    ;;
2063  esac
2064
2065    fi
2066  else
2067    # The user set an environment variable.
2068    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2069    # will override the environment variable, which isn't what the user
2070    # intends
2071    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2072echo "configure:2073: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
2073    case "$AR_FOR_TARGET" in
2074    /*) # valid
2075      echo "$ac_t"""yes"" 1>&6
2076    ;;
2077    *)  # invalid for AC_PATH_PROG
2078      echo "$ac_t"""no"" 1>&6
2079      { echo "configure: error: ***
2080        Environment variable AR_FOR_TARGET should either
2081        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2082    ;;
2083    esac
2084  fi
2085
2086  # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
2087set dummy "$program_prefix"ar; ac_word=$2
2088echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089echo "configure:2090: checking for $ac_word" >&5
2090if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
2091  echo $ac_n "(cached) $ac_c" 1>&6
2092else
2093  case "$AR_FOR_TARGET" in
2094  /*)
2095  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
2096  ;;
2097  ?:/*)                 
2098  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
2099  ;;
2100  *)
2101  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2102  ac_dummy="$PATH"
2103  for ac_dir in $ac_dummy; do
2104    test -z "$ac_dir" && ac_dir=.
2105    if test -f $ac_dir/$ac_word; then
2106      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
2107      break
2108    fi
2109  done
2110  IFS="$ac_save_ifs"
2111  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
2112  ;;
2113esac
2114fi
2115AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
2116if test -n "$AR_FOR_TARGET"; then
2117  echo "$ac_t""$AR_FOR_TARGET" 1>&6
2118else
2119  echo "$ac_t""no" 1>&6
2120fi
2121
2122fi
2123
2124 
2125echo $ac_n "checking target's as""... $ac_c" 1>&6
2126echo "configure:2127: checking target's as" >&5
2127if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
2128  echo $ac_n "(cached) $ac_c" 1>&6
2129else
2130  :
2131fi
2132
2133echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
2134
2135if test -n "$ac_cv_path_AS_FOR_TARGET"; then
2136    AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2137else
2138    if test -z "$AS_FOR_TARGET" ; then
2139    if test "$rtems_cv_prog_gcc" = "yes"; then
2140      # We are using gcc, ask it about its tool
2141      # NOTE: Necessary if gcc was configured to use the target's
2142      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2143       case $host_os in
2144  *cygwin32*)
2145            AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' `
2146    ;;
2147  *)
2148    AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
2149    ;;
2150  esac
2151
2152    fi
2153  else
2154    # The user set an environment variable.
2155    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2156    # will override the environment variable, which isn't what the user
2157    # intends
2158    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2159echo "configure:2160: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
2160    case "$AS_FOR_TARGET" in
2161    /*) # valid
2162      echo "$ac_t"""yes"" 1>&6
2163    ;;
2164    *)  # invalid for AC_PATH_PROG
2165      echo "$ac_t"""no"" 1>&6
2166      { echo "configure: error: ***
2167        Environment variable AS_FOR_TARGET should either
2168        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2169    ;;
2170    esac
2171  fi
2172
2173  # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
2174set dummy "$program_prefix"as; ac_word=$2
2175echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2176echo "configure:2177: checking for $ac_word" >&5
2177if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
2178  echo $ac_n "(cached) $ac_c" 1>&6
2179else
2180  case "$AS_FOR_TARGET" in
2181  /*)
2182  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
2183  ;;
2184  ?:/*)                 
2185  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
2186  ;;
2187  *)
2188  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2189  ac_dummy="$PATH"
2190  for ac_dir in $ac_dummy; do
2191    test -z "$ac_dir" && ac_dir=.
2192    if test -f $ac_dir/$ac_word; then
2193      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
2194      break
2195    fi
2196  done
2197  IFS="$ac_save_ifs"
2198  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
2199  ;;
2200esac
2201fi
2202AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
2203if test -n "$AS_FOR_TARGET"; then
2204  echo "$ac_t""$AS_FOR_TARGET" 1>&6
2205else
2206  echo "$ac_t""no" 1>&6
2207fi
2208
2209fi
2210
2211 
2212echo $ac_n "checking target's ld""... $ac_c" 1>&6
2213echo "configure:2214: checking target's ld" >&5
2214if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
2215  echo $ac_n "(cached) $ac_c" 1>&6
2216else
2217  :
2218fi
2219
2220echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
2221
2222if test -n "$ac_cv_path_LD_FOR_TARGET"; then
2223    LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2224else
2225    if test -z "$LD_FOR_TARGET" ; then
2226    if test "$rtems_cv_prog_gcc" = "yes"; then
2227      # We are using gcc, ask it about its tool
2228      # NOTE: Necessary if gcc was configured to use the target's
2229      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2230       case $host_os in
2231  *cygwin32*)
2232            LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' `
2233    ;;
2234  *)
2235    LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
2236    ;;
2237  esac
2238
2239    fi
2240  else
2241    # The user set an environment variable.
2242    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2243    # will override the environment variable, which isn't what the user
2244    # intends
2245    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2246echo "configure:2247: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
2247    case "$LD_FOR_TARGET" in
2248    /*) # valid
2249      echo "$ac_t"""yes"" 1>&6
2250    ;;
2251    *)  # invalid for AC_PATH_PROG
2252      echo "$ac_t"""no"" 1>&6
2253      { echo "configure: error: ***
2254        Environment variable LD_FOR_TARGET should either
2255        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2256    ;;
2257    esac
2258  fi
2259
2260  # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
2261set dummy "$program_prefix"ld; ac_word=$2
2262echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263echo "configure:2264: checking for $ac_word" >&5
2264if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
2265  echo $ac_n "(cached) $ac_c" 1>&6
2266else
2267  case "$LD_FOR_TARGET" in
2268  /*)
2269  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
2270  ;;
2271  ?:/*)                 
2272  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
2273  ;;
2274  *)
2275  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2276  ac_dummy="$PATH"
2277  for ac_dir in $ac_dummy; do
2278    test -z "$ac_dir" && ac_dir=.
2279    if test -f $ac_dir/$ac_word; then
2280      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
2281      break
2282    fi
2283  done
2284  IFS="$ac_save_ifs"
2285  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
2286  ;;
2287esac
2288fi
2289LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
2290if test -n "$LD_FOR_TARGET"; then
2291  echo "$ac_t""$LD_FOR_TARGET" 1>&6
2292else
2293  echo "$ac_t""no" 1>&6
2294fi
2295
2296fi
2297
2298 
2299echo $ac_n "checking target's nm""... $ac_c" 1>&6
2300echo "configure:2301: checking target's nm" >&5
2301if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
2302  echo $ac_n "(cached) $ac_c" 1>&6
2303else
2304  :
2305fi
2306
2307echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
2308
2309if test -n "$ac_cv_path_NM_FOR_TARGET"; then
2310    NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2311else
2312    if test -z "$NM_FOR_TARGET" ; then
2313    if test "$rtems_cv_prog_gcc" = "yes"; then
2314      # We are using gcc, ask it about its tool
2315      # NOTE: Necessary if gcc was configured to use the target's
2316      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2317       case $host_os in
2318  *cygwin32*)
2319            NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' `
2320    ;;
2321  *)
2322    NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
2323    ;;
2324  esac
2325
2326    fi
2327  else
2328    # The user set an environment variable.
2329    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2330    # will override the environment variable, which isn't what the user
2331    # intends
2332    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2333echo "configure:2334: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
2334    case "$NM_FOR_TARGET" in
2335    /*) # valid
2336      echo "$ac_t"""yes"" 1>&6
2337    ;;
2338    *)  # invalid for AC_PATH_PROG
2339      echo "$ac_t"""no"" 1>&6
2340      { echo "configure: error: ***
2341        Environment variable NM_FOR_TARGET should either
2342        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2343    ;;
2344    esac
2345  fi
2346
2347  # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
2348set dummy "$program_prefix"nm; ac_word=$2
2349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2350echo "configure:2351: checking for $ac_word" >&5
2351if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
2352  echo $ac_n "(cached) $ac_c" 1>&6
2353else
2354  case "$NM_FOR_TARGET" in
2355  /*)
2356  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
2357  ;;
2358  ?:/*)                 
2359  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
2360  ;;
2361  *)
2362  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2363  ac_dummy="$PATH"
2364  for ac_dir in $ac_dummy; do
2365    test -z "$ac_dir" && ac_dir=.
2366    if test -f $ac_dir/$ac_word; then
2367      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
2368      break
2369    fi
2370  done
2371  IFS="$ac_save_ifs"
2372  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
2373  ;;
2374esac
2375fi
2376NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
2377if test -n "$NM_FOR_TARGET"; then
2378  echo "$ac_t""$NM_FOR_TARGET" 1>&6
2379else
2380  echo "$ac_t""no" 1>&6
2381fi
2382
2383fi
2384
2385
2386 
2387echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
2388echo "configure:2389: checking target's ranlib" >&5
2389if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
2390  echo $ac_n "(cached) $ac_c" 1>&6
2391else
2392  :
2393fi
2394
2395echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
2396
2397if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then
2398    RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2399else
2400    if test -z "$RANLIB_FOR_TARGET" ; then
2401    if test "$rtems_cv_prog_gcc" = "yes"; then
2402      # We are using gcc, ask it about its tool
2403      # NOTE: Necessary if gcc was configured to use the target's
2404      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2405       case $host_os in
2406  *cygwin32*)
2407            RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' `
2408    ;;
2409  *)
2410    RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
2411    ;;
2412  esac
2413
2414    fi
2415  else
2416    # The user set an environment variable.
2417    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2418    # will override the environment variable, which isn't what the user
2419    # intends
2420    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2421echo "configure:2422: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
2422    case "$RANLIB_FOR_TARGET" in
2423    /*) # valid
2424      echo "$ac_t"""yes"" 1>&6
2425    ;;
2426    *)  # invalid for AC_PATH_PROG
2427      echo "$ac_t"""no"" 1>&6
2428      { echo "configure: error: ***
2429        Environment variable RANLIB_FOR_TARGET should either
2430        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2431    ;;
2432    esac
2433  fi
2434
2435  # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
2436set dummy "$program_prefix"ranlib; ac_word=$2
2437echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438echo "configure:2439: checking for $ac_word" >&5
2439if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
2440  echo $ac_n "(cached) $ac_c" 1>&6
2441else
2442  case "$RANLIB_FOR_TARGET" in
2443  /*)
2444  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
2445  ;;
2446  ?:/*)                 
2447  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
2448  ;;
2449  *)
2450  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2451  ac_dummy="$PATH"
2452  for ac_dir in $ac_dummy; do
2453    test -z "$ac_dir" && ac_dir=.
2454    if test -f $ac_dir/$ac_word; then
2455      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
2456      break
2457    fi
2458  done
2459  IFS="$ac_save_ifs"
2460  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
2461  ;;
2462esac
2463fi
2464RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
2465if test -n "$RANLIB_FOR_TARGET"; then
2466  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
2467else
2468  echo "$ac_t""no" 1>&6
2469fi
2470
2471fi
2472
2473  if test "$RANLIB_FOR_TARGET" = "no"; then
2474    # ranlib wasn't found; check if ar -s is available
2475   
2476echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
2477echo "configure:2478: checking whether $AR_FOR_TARGET -s works" >&5
2478if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
2479  echo $ac_n "(cached) $ac_c" 1>&6
2480else
2481 
2482cat > conftest.$ac_ext <<EOF
2483int foo( int b )
2484{ return b; }
2485EOF
2486if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
2487  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
2488  && test -s conftest.a ; \
2489then
2490  rtems_cv_AR_FOR_TARGET_S="yes"
2491else
2492  rtems_cv_AR_FOR_TARGET_S="no"
2493fi
2494  rm -f conftest*
2495
2496fi
2497
2498echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6
2499
2500    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
2501            ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
2502      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2503    else
2504      { echo "configure: error: ***
2505        Can't figure out how to build a library index
2506        Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; }
2507    fi
2508  fi
2509
2510 
2511echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
2512echo "configure:2513: checking target's objcopy" >&5
2513if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2514  echo $ac_n "(cached) $ac_c" 1>&6
2515else
2516  :
2517fi
2518
2519echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6
2520
2521if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then
2522    OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
2523else
2524    if test -z "$OBJCOPY_FOR_TARGET" ; then
2525    if test "$rtems_cv_prog_gcc" = "yes"; then
2526      # We are using gcc, ask it about its tool
2527      # NOTE: Necessary if gcc was configured to use the target's
2528      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2529       case $host_os in
2530  *cygwin32*)
2531            OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' `
2532    ;;
2533  *)
2534    OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy`
2535    ;;
2536  esac
2537
2538    fi
2539  else
2540    # The user set an environment variable.
2541    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2542    # will override the environment variable, which isn't what the user
2543    # intends
2544    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2545echo "configure:2546: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
2546    case "$OBJCOPY_FOR_TARGET" in
2547    /*) # valid
2548      echo "$ac_t"""yes"" 1>&6
2549    ;;
2550    *)  # invalid for AC_PATH_PROG
2551      echo "$ac_t"""no"" 1>&6
2552      { echo "configure: error: ***
2553        Environment variable OBJCOPY_FOR_TARGET should either
2554        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2555    ;;
2556    esac
2557  fi
2558
2559  # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
2560set dummy "$program_prefix"objcopy; ac_word=$2
2561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2562echo "configure:2563: checking for $ac_word" >&5
2563if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2564  echo $ac_n "(cached) $ac_c" 1>&6
2565else
2566  case "$OBJCOPY_FOR_TARGET" in
2567  /*)
2568  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
2569  ;;
2570  ?:/*)                 
2571  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path.
2572  ;;
2573  *)
2574  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2575  ac_dummy="$PATH"
2576  for ac_dir in $ac_dummy; do
2577    test -z "$ac_dir" && ac_dir=.
2578    if test -f $ac_dir/$ac_word; then
2579      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
2580      break
2581    fi
2582  done
2583  IFS="$ac_save_ifs"
2584  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
2585  ;;
2586esac
2587fi
2588OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
2589if test -n "$OBJCOPY_FOR_TARGET"; then
2590  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
2591else
2592  echo "$ac_t""no" 1>&6
2593fi
2594
2595fi
2596
2597 
2598echo $ac_n "checking target's size""... $ac_c" 1>&6
2599echo "configure:2600: checking target's size" >&5
2600if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2601  echo $ac_n "(cached) $ac_c" 1>&6
2602else
2603  :
2604fi
2605
2606echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6
2607
2608if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then
2609    SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET
2610else
2611    if test -z "$SIZE_FOR_TARGET" ; then
2612    if test "$rtems_cv_prog_gcc" = "yes"; then
2613      # We are using gcc, ask it about its tool
2614      # NOTE: Necessary if gcc was configured to use the target's
2615      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2616       case $host_os in
2617  *cygwin32*)
2618            SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' `
2619    ;;
2620  *)
2621    SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size`
2622    ;;
2623  esac
2624
2625    fi
2626  else
2627    # The user set an environment variable.
2628    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2629    # will override the environment variable, which isn't what the user
2630    # intends
2631    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2632echo "configure:2633: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
2633    case "$SIZE_FOR_TARGET" in
2634    /*) # valid
2635      echo "$ac_t"""yes"" 1>&6
2636    ;;
2637    *)  # invalid for AC_PATH_PROG
2638      echo "$ac_t"""no"" 1>&6
2639      { echo "configure: error: ***
2640        Environment variable SIZE_FOR_TARGET should either
2641        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2642    ;;
2643    esac
2644  fi
2645
2646  # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
2647set dummy "$program_prefix"size; ac_word=$2
2648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2649echo "configure:2650: checking for $ac_word" >&5
2650if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2651  echo $ac_n "(cached) $ac_c" 1>&6
2652else
2653  case "$SIZE_FOR_TARGET" in
2654  /*)
2655  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
2656  ;;
2657  ?:/*)                 
2658  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path.
2659  ;;
2660  *)
2661  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2662  ac_dummy="$PATH"
2663  for ac_dir in $ac_dummy; do
2664    test -z "$ac_dir" && ac_dir=.
2665    if test -f $ac_dir/$ac_word; then
2666      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
2667      break
2668    fi
2669  done
2670  IFS="$ac_save_ifs"
2671  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
2672  ;;
2673esac
2674fi
2675SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
2676if test -n "$SIZE_FOR_TARGET"; then
2677  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
2678else
2679  echo "$ac_t""no" 1>&6
2680fi
2681
2682fi
2683
2684 
2685echo $ac_n "checking target's strip""... $ac_c" 1>&6
2686echo "configure:2687: checking target's strip" >&5
2687if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2688  echo $ac_n "(cached) $ac_c" 1>&6
2689else
2690  :
2691fi
2692
2693echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
2694
2695if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then
2696    STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2697else
2698    if test -z "$STRIP_FOR_TARGET" ; then
2699    if test "$rtems_cv_prog_gcc" = "yes"; then
2700      # We are using gcc, ask it about its tool
2701      # NOTE: Necessary if gcc was configured to use the target's
2702      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2703       case $host_os in
2704  *cygwin32*)
2705            STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' `
2706    ;;
2707  *)
2708    STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip`
2709    ;;
2710  esac
2711
2712    fi
2713  else
2714    # The user set an environment variable.
2715    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2716    # will override the environment variable, which isn't what the user
2717    # intends
2718    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2719echo "configure:2720: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
2720    case "$STRIP_FOR_TARGET" in
2721    /*) # valid
2722      echo "$ac_t"""yes"" 1>&6
2723    ;;
2724    *)  # invalid for AC_PATH_PROG
2725      echo "$ac_t"""no"" 1>&6
2726      { echo "configure: error: ***
2727        Environment variable STRIP_FOR_TARGET should either
2728        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2729    ;;
2730    esac
2731  fi
2732
2733  # Extract the first word of ""$program_prefix"strip", so it can be a program name with args.
2734set dummy "$program_prefix"strip; ac_word=$2
2735echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2736echo "configure:2737: checking for $ac_word" >&5
2737if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2738  echo $ac_n "(cached) $ac_c" 1>&6
2739else
2740  case "$STRIP_FOR_TARGET" in
2741  /*)
2742  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
2743  ;;
2744  ?:/*)                 
2745  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
2746  ;;
2747  *)
2748  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2749  ac_dummy="$PATH"
2750  for ac_dir in $ac_dummy; do
2751    test -z "$ac_dir" && ac_dir=.
2752    if test -f $ac_dir/$ac_word; then
2753      ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
2754      break
2755    fi
2756  done
2757  IFS="$ac_save_ifs"
2758  test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no"
2759  ;;
2760esac
2761fi
2762STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
2763if test -n "$STRIP_FOR_TARGET"; then
2764  echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
2765else
2766  echo "$ac_t""no" 1>&6
2767fi
2768
2769fi
2770
2771
2772
2773if test "${target_cpu}" = "i386"; then
2774    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
2775echo "configure:2776: checking for 16 bit mode assembler support" >&5
2776if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
2777  echo $ac_n "(cached) $ac_c" 1>&6
2778else
2779  cat > conftest.s << EOF
2780         .code16
2781         data32
2782         addr32
2783         lgdt 0
2784EOF
2785      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2786        rtems_cv_prog_gas_code16=yes
2787      else
2788        rtems_cv_prog_gas_code16=no
2789      fi
2790fi
2791
2792echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6
2793    RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
2794  fi
2795
2796
2797# Extract the first word of "gcc", so it can be a program name with args.
2798set dummy gcc; ac_word=$2
2799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2800echo "configure:2801: checking for $ac_word" >&5
2801if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2802  echo $ac_n "(cached) $ac_c" 1>&6
2803else
2804  if test -n "$CC"; then
2805  ac_cv_prog_CC="$CC" # Let the user override the test.
2806else
2807  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2808  ac_dummy="$PATH"
2809  for ac_dir in $ac_dummy; do
2810    test -z "$ac_dir" && ac_dir=.
2811    if test -f $ac_dir/$ac_word; then
2812      ac_cv_prog_CC="gcc"
2813      break
2814    fi
2815  done
2816  IFS="$ac_save_ifs"
2817fi
2818fi
2819CC="$ac_cv_prog_CC"
2820if test -n "$CC"; then
2821  echo "$ac_t""$CC" 1>&6
2822else
2823  echo "$ac_t""no" 1>&6
2824fi
2825
2826if test -z "$CC"; then
2827  # Extract the first word of "cc", so it can be a program name with args.
2828set dummy cc; ac_word=$2
2829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2830echo "configure:2831: checking for $ac_word" >&5
2831if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2832  echo $ac_n "(cached) $ac_c" 1>&6
2833else
2834  if test -n "$CC"; then
2835  ac_cv_prog_CC="$CC" # Let the user override the test.
2836else
2837  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2838  ac_prog_rejected=no
2839  ac_dummy="$PATH"
2840  for ac_dir in $ac_dummy; do
2841    test -z "$ac_dir" && ac_dir=.
2842    if test -f $ac_dir/$ac_word; then
2843      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2844        ac_prog_rejected=yes
2845        continue
2846      fi
2847      ac_cv_prog_CC="cc"
2848      break
2849    fi
2850  done
2851  IFS="$ac_save_ifs"
2852if test $ac_prog_rejected = yes; then
2853  # We found a bogon in the path, so make sure we never use it.
2854  set dummy $ac_cv_prog_CC
2855  shift
2856  if test $# -gt 0; then
2857    # We chose a different compiler from the bogus one.
2858    # However, it has the same basename, so the bogon will be chosen
2859    # first if we set CC to just the basename; use the full file name.
2860    shift
2861    set dummy "$ac_dir/$ac_word" "$@"
2862    shift
2863    ac_cv_prog_CC="$@"
2864  fi
2865fi
2866fi
2867fi
2868CC="$ac_cv_prog_CC"
2869if test -n "$CC"; then
2870  echo "$ac_t""$CC" 1>&6
2871else
2872  echo "$ac_t""no" 1>&6
2873fi
2874
2875  if test -z "$CC"; then
2876    case "`uname -s`" in
2877    *win32* | *WIN32*)
2878      # Extract the first word of "cl", so it can be a program name with args.
2879set dummy cl; ac_word=$2
2880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2881echo "configure:2882: checking for $ac_word" >&5
2882if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2883  echo $ac_n "(cached) $ac_c" 1>&6
2884else
2885  if test -n "$CC"; then
2886  ac_cv_prog_CC="$CC" # Let the user override the test.
2887else
2888  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2889  ac_dummy="$PATH"
2890  for ac_dir in $ac_dummy; do
2891    test -z "$ac_dir" && ac_dir=.
2892    if test -f $ac_dir/$ac_word; then
2893      ac_cv_prog_CC="cl"
2894      break
2895    fi
2896  done
2897  IFS="$ac_save_ifs"
2898fi
2899fi
2900CC="$ac_cv_prog_CC"
2901if test -n "$CC"; then
2902  echo "$ac_t""$CC" 1>&6
2903else
2904  echo "$ac_t""no" 1>&6
2905fi
2906 ;;
2907    esac
2908  fi
2909  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2910fi
2911
2912echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2913echo "configure:2914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2914
2915ac_ext=c
2916# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2917ac_cpp='$CPP $CPPFLAGS'
2918ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2919ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2920cross_compiling=$ac_cv_prog_cc_cross
2921
2922cat > conftest.$ac_ext << EOF
2923
2924#line 2925 "configure"
2925#include "confdefs.h"
2926
2927main(){return(0);}
2928EOF
2929if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2930  ac_cv_prog_cc_works=yes
2931  # If we can't run a trivial program, we are probably using a cross compiler.
2932  if (./conftest; exit) 2>/dev/null; then
2933    ac_cv_prog_cc_cross=no
2934  else
2935    ac_cv_prog_cc_cross=yes
2936  fi
2937else
2938  echo "configure: failed program was:" >&5
2939  cat conftest.$ac_ext >&5
2940  ac_cv_prog_cc_works=no
2941fi
2942rm -fr conftest*
2943ac_ext=c
2944# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2945ac_cpp='$CPP $CPPFLAGS'
2946ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2947ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2948cross_compiling=$ac_cv_prog_cc_cross
2949
2950echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2951if test $ac_cv_prog_cc_works = no; then
2952  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2953fi
2954echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2955echo "configure:2956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2956echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2957cross_compiling=$ac_cv_prog_cc_cross
2958
2959echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2960echo "configure:2961: checking whether we are using GNU C" >&5
2961if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2962  echo $ac_n "(cached) $ac_c" 1>&6
2963else
2964  cat > conftest.c <<EOF
2965#ifdef __GNUC__
2966  yes;
2967#endif
2968EOF
2969if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2970  ac_cv_prog_gcc=yes
2971else
2972  ac_cv_prog_gcc=no
2973fi
2974fi
2975
2976echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2977
2978if test $ac_cv_prog_gcc = yes; then
2979  GCC=yes
2980else
2981  GCC=
2982fi
2983
2984ac_test_CFLAGS="${CFLAGS+set}"
2985ac_save_CFLAGS="$CFLAGS"
2986CFLAGS=
2987echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2988echo "configure:2989: checking whether ${CC-cc} accepts -g" >&5
2989if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2990  echo $ac_n "(cached) $ac_c" 1>&6
2991else
2992  echo 'void f(){}' > conftest.c
2993if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2994  ac_cv_prog_cc_g=yes
2995else
2996  ac_cv_prog_cc_g=no
2997fi
2998rm -f conftest*
2999
3000fi
3001
3002echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3003if test "$ac_test_CFLAGS" = set; then
3004  CFLAGS="$ac_save_CFLAGS"
3005elif test $ac_cv_prog_cc_g = yes; then
3006  if test "$GCC" = yes; then
3007    CFLAGS="-g -O2"
3008  else
3009    CFLAGS="-g"
3010  fi
3011else
3012  if test "$GCC" = yes; then
3013    CFLAGS="-O2"
3014  else
3015    CFLAGS=
3016  fi
3017fi
3018
3019echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3020echo "configure:3021: checking for Cygwin environment" >&5
3021if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3022  echo $ac_n "(cached) $ac_c" 1>&6
3023else
3024  cat > conftest.$ac_ext <<EOF
3025#line 3026 "configure"
3026#include "confdefs.h"
3027
3028int main() {
3029
3030#ifndef __CYGWIN__
3031#define __CYGWIN__ __CYGWIN32__
3032#endif
3033return __CYGWIN__;
3034; return 0; }
3035EOF
3036if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3037  rm -rf conftest*
3038  ac_cv_cygwin=yes
3039else
3040  echo "configure: failed program was:" >&5
3041  cat conftest.$ac_ext >&5
3042  rm -rf conftest*
3043  ac_cv_cygwin=no
3044fi
3045rm -f conftest*
3046rm -f conftest*
3047fi
3048
3049echo "$ac_t""$ac_cv_cygwin" 1>&6
3050CYGWIN=
3051test "$ac_cv_cygwin" = yes && CYGWIN=yes
3052echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3053echo "configure:3054: checking for mingw32 environment" >&5
3054if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3055  echo $ac_n "(cached) $ac_c" 1>&6
3056else
3057  cat > conftest.$ac_ext <<EOF
3058#line 3059 "configure"
3059#include "confdefs.h"
3060
3061int main() {
3062return __MINGW32__;
3063; return 0; }
3064EOF
3065if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3066  rm -rf conftest*
3067  ac_cv_mingw32=yes
3068else
3069  echo "configure: failed program was:" >&5
3070  cat conftest.$ac_ext >&5
3071  rm -rf conftest*
3072  ac_cv_mingw32=no
3073fi
3074rm -f conftest*
3075rm -f conftest*
3076fi
3077
3078echo "$ac_t""$ac_cv_mingw32" 1>&6
3079MINGW32=
3080test "$ac_cv_mingw32" = yes && MINGW32=yes
3081
3082
3083echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3084echo "configure:3085: checking for executable suffix" >&5
3085if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3086  echo $ac_n "(cached) $ac_c" 1>&6
3087else
3088  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3089  ac_cv_exeext=.exe
3090else
3091  rm -f conftest*
3092  echo 'int main () { return 0; }' > conftest.$ac_ext
3093  ac_cv_exeext=
3094  if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3095    for file in conftest.*; do
3096      case $file in
3097      *.c | *.o | *.obj) ;;
3098      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3099      esac
3100    done
3101  else
3102    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3103  fi
3104  rm -f conftest*
3105  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3106fi
3107fi
3108
3109EXEEXT=""
3110test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3111echo "$ac_t""${ac_cv_exeext}" 1>&6
3112ac_exeext=$EXEEXT
3113
3114
3115case $host_os in
3116*cygwin32*)     GCCSED="| sed 's%\\\\%/%g'" ;;
3117*) ;;
3118esac
3119
3120
3121if test "$ac_cv_prog_gcc" = "yes"; then
3122  CC_CFLAGS_DEFAULT=-Wall
3123  CC_CFLAGS_PROFILE_V=${CC_CFLAGS_PROFILE_V-"-pg"}
3124  CC_LDFLAGS_PROFILE_V=${CC_LDFLAGS_PROFILE_V-$CC_CFLAGS_PROFILE_V}
3125fi
3126
3127test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"}
3128
3129if test "$target_cpu" = "unix" ; then
3130   
3131
3132echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
3133echo "configure:3134: checking whether $RTEMS_HOST supports System V semaphores" >&5
3134if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
3135  echo $ac_n "(cached) $ac_c" 1>&6
3136else
3137 
3138if test "$cross_compiling" = yes; then
3139  :
3140else
3141  cat > conftest.$ac_ext <<EOF
3142#line 3143 "configure"
3143#include "confdefs.h"
3144
3145#include <sys/types.h>
3146#include <sys/ipc.h>
3147#include <sys/sem.h>
3148int main () {
3149#if !defined(sun)
3150  union semun arg ;
3151#else
3152  union semun {
3153    int val;
3154    struct semid_ds *buf;
3155    ushort *array;
3156  } arg;
3157#endif
3158  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3159  if (id == -1)
3160    exit(1);
3161  arg.val = 0; /* avoid implicit type cast to union */
3162  if (semctl(id, 0, IPC_RMID, arg) == -1)
3163    exit(1);
3164  exit(0);
3165}
3166
3167EOF
3168if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3169then
3170  rtems_cv_sysv_sem="yes"
3171else
3172  echo "configure: failed program was:" >&5
3173  cat conftest.$ac_ext >&5
3174  rm -fr conftest*
3175  rtems_cv_sysv_sem="no"
3176fi
3177rm -fr conftest*
3178fi
3179
3180
3181fi
3182
3183echo "$ac_t""$rtems_cv_sysv_sem" 1>&6
3184
3185  if test "$rtems_cv_sysv_sem" != "yes" ; then
3186    { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; }
3187  fi
3188   
3189
3190echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
3191echo "configure:3192: checking whether $RTEMS_HOST supports System V shared memory" >&5
3192if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
3193  echo $ac_n "(cached) $ac_c" 1>&6
3194else
3195 
3196if test "$cross_compiling" = yes; then
3197  :
3198else
3199  cat > conftest.$ac_ext <<EOF
3200#line 3201 "configure"
3201#include "confdefs.h"
3202
3203#include <sys/types.h>
3204#include <sys/ipc.h>
3205#include <sys/shm.h>
3206int main () {
3207  int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3208  if (id == -1)
3209    exit(1);
3210  if (shmctl(id, IPC_RMID, 0) == -1)
3211    exit(1);
3212  exit(0);
3213}
3214
3215EOF
3216if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3217then
3218  rtems_cv_sysv_shm="yes"
3219else
3220  echo "configure: failed program was:" >&5
3221  cat conftest.$ac_ext >&5
3222  rm -fr conftest*
3223  rtems_cv_sysv_shm="no"
3224fi
3225rm -fr conftest*
3226fi
3227
3228
3229fi
3230
3231echo "$ac_t""$rtems_cv_sysv_shm" 1>&6
3232
3233  if test "$rtems_cv_sysv_shm" != "yes" ; then
3234    { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; }
3235  fi
3236   
3237
3238echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
3239echo "configure:3240: checking whether $RTEMS_HOST supports System V messages" >&5
3240if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
3241  echo $ac_n "(cached) $ac_c" 1>&6
3242else
3243 
3244if test "$cross_compiling" = yes; then
3245  :
3246else
3247  cat > conftest.$ac_ext <<EOF
3248#line 3249 "configure"
3249#include "confdefs.h"
3250
3251#include <sys/types.h>
3252#include <sys/ipc.h>
3253#include <sys/msg.h>
3254int main () {
3255  int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
3256  if (id == -1)
3257    exit(1);
3258  if (msgctl(id, IPC_RMID, 0) == -1)
3259    exit(1);
3260  exit(0);
3261}
3262
3263EOF
3264if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3265then
3266  rtems_cv_sysv_msg="yes"
3267else
3268  echo "configure: failed program was:" >&5
3269  cat conftest.$ac_ext >&5
3270  rm -fr conftest*
3271  rtems_cv_sysv_msg="no"
3272fi
3273rm -fr conftest*
3274fi
3275
3276
3277fi
3278
3279echo "$ac_t""$rtems_cv_sysv_msg" 1>&6
3280
3281  if test "$rtems_cv_sysv_msg" != "yes" ; then
3282    { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; }
3283  fi
3284fi
3285
3286# find all the Executive Makefiles
3287
3288echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
3289echo "configure:3290: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
3290if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
3291  rtems_av_save_dir=`pwd`;
3292  cd $srcdir;
3293  rtems_av_tmp=`find c/src/exec/score/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3294  makefiles="$makefiles $rtems_av_tmp";
3295  cd $rtems_av_save_dir;
3296  echo "$ac_t""done" 1>&6
3297else
3298  echo "$ac_t""no" 1>&6
3299fi
3300
3301
3302
3303echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
3304echo "configure:3305: checking for Makefile.in in c/src/exec/rtems" >&5
3305if test -d $srcdir/c/src/exec/rtems; then
3306  rtems_av_save_dir=`pwd`;
3307  cd $srcdir;
3308  rtems_av_tmp=`find c/src/exec/rtems -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3309  makefiles="$makefiles $rtems_av_tmp";
3310  cd $rtems_av_save_dir;
3311  echo "$ac_t""done" 1>&6
3312else
3313  echo "$ac_t""no" 1>&6
3314fi
3315
3316
3317
3318echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
3319echo "configure:3320: checking for Makefile.in in c/src/exec/sapi" >&5
3320if test -d $srcdir/c/src/exec/sapi; then
3321  rtems_av_save_dir=`pwd`;
3322  cd $srcdir;
3323  rtems_av_tmp=`find c/src/exec/sapi -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3324  makefiles="$makefiles $rtems_av_tmp";
3325  cd $rtems_av_save_dir;
3326  echo "$ac_t""done" 1>&6
3327else
3328  echo "$ac_t""no" 1>&6
3329fi
3330
3331
3332
3333echo $ac_n "checking for Makefile.in in c/src/exec/score/cpu/$target_cpu""... $ac_c" 1>&6
3334echo "configure:3335: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&5
3335if test -d $srcdir/c/src/exec/score/cpu/$target_cpu; then
3336  rtems_av_save_dir=`pwd`;
3337  cd $srcdir;
3338  rtems_av_tmp=`find c/src/exec/score/cpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3339  makefiles="$makefiles $rtems_av_tmp";
3340  cd $rtems_av_save_dir;
3341  echo "$ac_t""done" 1>&6
3342else
3343  echo "$ac_t""no" 1>&6
3344fi
3345
3346
3347
3348if test "$RTEMS_HAS_POSIX_API" = "yes"; then
3349 
3350echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
3351echo "configure:3352: checking for Makefile.in in c/src/exec/posix" >&5
3352if test -d $srcdir/c/src/exec/posix; then
3353  rtems_av_save_dir=`pwd`;
3354  cd $srcdir;
3355  rtems_av_tmp=`find c/src/exec/posix -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3356  makefiles="$makefiles $rtems_av_tmp";
3357  cd $rtems_av_save_dir;
3358  echo "$ac_t""done" 1>&6
3359else
3360  echo "$ac_t""no" 1>&6
3361fi
3362
3363
3364  makefiles="$makefiles c/src/exec/wrapup/posix/Makefile"
3365fi
3366
3367# find all the Makefiles for the BSPs
3368if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
3369  makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
3370
3371  if test -z "$rtems_bsp"; then
3372    echo $ac_n "checking for bsps""... $ac_c" 1>&6
3373echo "configure:3374: checking for bsps" >&5
3374    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
3375    for file in $files; do
3376      case $file in
3377        shared*);;
3378        Makefile*);;
3379        READ*);;
3380        CVS*);;
3381        pxfl*);;
3382        go32*);;       # so the i386 port can pick up the other Makefiles
3383        # Now account for BSPs with build variants
3384        gen68360)      rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
3385        p4000)         rtems_bsp="$rtems_bsp p4600 p4650";;
3386        mvme162)       rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
3387        *) rtems_bsp="$rtems_bsp $file";;
3388      esac;
3389    done
3390
3391    makefiles="$makefiles c/src/lib/libbsp/bare/Makefile"
3392
3393    echo "$ac_t""$rtems_bsp done" 1>&6
3394  fi
3395
3396  # collect makefiles for each bsp
3397  for i in $rtems_bsp; do
3398    # make sure there is a make/custom file for the bsp
3399    if test ! -r "$srcdir/make/custom/${i}.cfg"; then
3400      { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; }
3401    fi
3402 
3403    # account for "aliased" bsps which share source code
3404    case $i in
3405      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
3406      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
3407      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
3408      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
3409      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
3410      *)            bspdir=$i;;
3411    esac
3412
3413    # Is there code where there should be for this BSP?
3414    # The bare bsp is a special case as it is not under the target_cpu path
3415    case $i in
3416      bare)
3417        bspcpudir=
3418        if test "X${BARE_CPU_CFLAGS}" = "X" ; then
3419          { echo "configure: error: --enable-bare-cpu-cflags not specified for bare bsp" 1>&2; exit 1; }
3420        fi
3421        if test "X${BARE_CPU_MODEL}" = "X" ; then
3422          { echo "configure: error: --enable-bare-cpu-model not specified for bare bsp" 1>&2; exit 1; }
3423        fi
3424        ;;
3425      *)
3426        bspcpudir=$target_cpu/
3427        ;;
3428    esac
3429     
3430    if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
3431      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
3432      # make sure the Makefiles in a bsp directory are only done once
3433      echo $bspdirs | grep $bspdir >/dev/null 2>&1
3434      if test $? -ne 0 ; then
3435        bspdirs="$bspdirs $bspdir"
3436       
3437echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6
3438echo "configure:3439: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5
3439if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then
3440  rtems_av_save_dir=`pwd`;
3441  cd $srcdir;
3442  rtems_av_tmp=`find c/src/lib/libbsp/$bspcpudir$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3443  makefiles="$makefiles $rtems_av_tmp";
3444  cd $rtems_av_save_dir;
3445  echo "$ac_t""done" 1>&6
3446else
3447  echo "$ac_t""no" 1>&6
3448fi
3449
3450
3451       
3452echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6
3453echo "configure:3454: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5
3454if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then
3455  rtems_av_save_dir=`pwd`;
3456  cd $srcdir;
3457  rtems_av_tmp=`find c/src/lib/libbsp/${bspcpudir}shared -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3458  makefiles="$makefiles $rtems_av_tmp";
3459  cd $rtems_av_save_dir;
3460  echo "$ac_t""done" 1>&6
3461else
3462  echo "$ac_t""no" 1>&6
3463fi
3464
3465
3466      fi
3467    else
3468      { echo "configure: error: unable to find libbsp directory ($bspdir) for  $i" 1>&2; exit 1; }
3469    fi
3470  done
3471fi
3472
3473# find all the CPU dependent library Makefiles
3474
3475echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
3476echo "configure:3477: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
3477if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
3478  rtems_av_save_dir=`pwd`;
3479  cd $srcdir;
3480  rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3481  makefiles="$makefiles $rtems_av_tmp";
3482  cd $rtems_av_save_dir;
3483  echo "$ac_t""done" 1>&6
3484else
3485  echo "$ac_t""no" 1>&6
3486fi
3487
3488
3489
3490if test "$skip_startfiles" != "yes"; then
3491 
3492echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
3493echo "configure:3494: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
3494if test -d $srcdir/c/src/lib/start/$target_cpu; then
3495  rtems_av_save_dir=`pwd`;
3496  cd $srcdir;
3497  rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3498  makefiles="$makefiles $rtems_av_tmp";
3499  cd $rtems_av_save_dir;
3500  echo "$ac_t""done" 1>&6
3501else
3502  echo "$ac_t""no" 1>&6
3503fi
3504
3505
3506fi
3507
3508
3509PROJECT_ROOT=`pwd;`
3510
3511# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
3512if test "$RTEMS_USE_MACROS" = "yes"; then
3513  inline_dir=macros
3514  if test "$RTEMS_HAS_POSIX_API" = "yes"; then
3515    # The problem is that there is currently no code in posix/macros :)
3516    { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }
3517  fi
3518else
3519  inline_dir=inline
3520fi
3521
3522# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
3523echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6
3524echo "configure:3525: checking if networking is enabled? " >&5
3525echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6
3526if test "$RTEMS_HAS_NETWORKING" = "yes"; then
3527 
3528echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6
3529echo "configure:3530: checking for Makefile.in in c/src/lib/libnetworking" >&5
3530if test -d $srcdir/c/src/lib/libnetworking; then
3531  rtems_av_save_dir=`pwd`;
3532  cd $srcdir;
3533  rtems_av_tmp=`find c/src/lib/libnetworking -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3534  makefiles="$makefiles $rtems_av_tmp";
3535  cd $rtems_av_save_dir;
3536  echo "$ac_t""done" 1>&6
3537else
3538  echo "$ac_t""no" 1>&6
3539fi
3540
3541
3542 
3543echo $ac_n "checking for Makefile.in in c/src/lib/librpc""... $ac_c" 1>&6
3544echo "configure:3545: checking for Makefile.in in c/src/lib/librpc" >&5
3545if test -d $srcdir/c/src/lib/librpc; then
3546  rtems_av_save_dir=`pwd`;
3547  cd $srcdir;
3548  rtems_av_tmp=`find c/src/lib/librpc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3549  makefiles="$makefiles $rtems_av_tmp";
3550  cd $rtems_av_save_dir;
3551  echo "$ac_t""done" 1>&6
3552else
3553  echo "$ac_t""no" 1>&6
3554fi
3555
3556
3557  if test "$RTEMS_HAS_RDBG" = "yes"; then
3558   
3559echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6
3560echo "configure:3561: checking for Makefile.in in c/src/lib/librdbg" >&5
3561if test -d $srcdir/c/src/lib/librdbg; then
3562  rtems_av_save_dir=`pwd`;
3563  cd $srcdir;
3564  rtems_av_tmp=`find c/src/lib/librdbg -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3565  makefiles="$makefiles $rtems_av_tmp";
3566  cd $rtems_av_save_dir;
3567  echo "$ac_t""done" 1>&6
3568else
3569  echo "$ac_t""no" 1>&6
3570fi
3571
3572
3573  fi
3574fi
3575
3576# If the C++ support is enabled, then include the Makefiles
3577if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
3578  makefiles="$makefiles c/src/lib/librtems++/Makefile"
3579fi
3580
3581
3582# If the tests are enabled, then find all the test suite Makefiles
3583echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
3584echo "configure:3585: checking if the test suites are enabled? " >&5
3585tests_enabled=yes
3586# Check whether --enable-tests or --disable-tests was given.
3587if test "${enable_tests+set}" = set; then
3588  enableval="$enable_tests"
3589  case "${enableval}" in
3590    yes) echo "$ac_t""yes" 1>&6 ;;
3591    no)  echo "$ac_t""no" 1>&6 ; tests_enabled=no ;;
3592    *)   { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;
3593  esac
3594else
3595  echo "$ac_t""no" 1>&6
3596fi
3597
3598
3599
3600
3601echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
3602echo "configure:3603: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
3603if test -d $srcdir/c/src/tests/tools/$target_cpu; then
3604  rtems_av_save_dir=`pwd`;
3605  cd $srcdir;
3606  rtems_av_tmp=`find c/src/tests/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3607  makefiles="$makefiles $rtems_av_tmp";
3608  cd $rtems_av_save_dir;
3609  echo "$ac_t""done" 1>&6
3610else
3611  echo "$ac_t""no" 1>&6
3612fi
3613
3614
3615
3616if test "$tests_enabled" = "yes"; then
3617   
3618echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
3619echo "configure:3620: checking for Makefile.in in c/src/tests/libtests" >&5
3620if test -d $srcdir/c/src/tests/libtests; then
3621  rtems_av_save_dir=`pwd`;
3622  cd $srcdir;
3623  rtems_av_tmp=`find c/src/tests/libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3624  makefiles="$makefiles $rtems_av_tmp";
3625  cd $rtems_av_save_dir;
3626  echo "$ac_t""done" 1>&6
3627else
3628  echo "$ac_t""no" 1>&6
3629fi
3630
3631
3632   
3633echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
3634echo "configure:3635: checking for Makefile.in in c/src/tests/sptests" >&5
3635if test -d $srcdir/c/src/tests/sptests; then
3636  rtems_av_save_dir=`pwd`;
3637  cd $srcdir;
3638  rtems_av_tmp=`find c/src/tests/sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3639  makefiles="$makefiles $rtems_av_tmp";
3640  cd $rtems_av_save_dir;
3641  echo "$ac_t""done" 1>&6
3642else
3643  echo "$ac_t""no" 1>&6
3644fi
3645
3646
3647   
3648echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
3649echo "configure:3650: checking for Makefile.in in c/src/tests/tmtests" >&5
3650if test -d $srcdir/c/src/tests/tmtests; then
3651  rtems_av_save_dir=`pwd`;
3652  cd $srcdir;
3653  rtems_av_tmp=`find c/src/tests/tmtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3654  makefiles="$makefiles $rtems_av_tmp";
3655  cd $rtems_av_save_dir;
3656  echo "$ac_t""done" 1>&6
3657else
3658  echo "$ac_t""no" 1>&6
3659fi
3660
3661
3662   if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then
3663       
3664echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
3665echo "configure:3666: checking for Makefile.in in c/src/tests/mptests" >&5
3666if test -d $srcdir/c/src/tests/mptests; then
3667  rtems_av_save_dir=`pwd`;
3668  cd $srcdir;
3669  rtems_av_tmp=`find c/src/tests/mptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3670  makefiles="$makefiles $rtems_av_tmp";
3671  cd $rtems_av_save_dir;
3672  echo "$ac_t""done" 1>&6
3673else
3674  echo "$ac_t""no" 1>&6
3675fi
3676
3677
3678   fi
3679   if test "$RTEMS_HAS_POSIX_API" = "yes"; then
3680     
3681echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
3682echo "configure:3683: checking for Makefile.in in c/src/tests/psxtests" >&5
3683if test -d $srcdir/c/src/tests/psxtests; then
3684  rtems_av_save_dir=`pwd`;
3685  cd $srcdir;
3686  rtems_av_tmp=`find c/src/tests/psxtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3687  makefiles="$makefiles $rtems_av_tmp";
3688  cd $rtems_av_save_dir;
3689  echo "$ac_t""done" 1>&6
3690else
3691  echo "$ac_t""no" 1>&6
3692fi
3693
3694
3695   fi
3696fi
3697
3698# If the HWAPI is enabled, the find the HWAPI Makefiles
3699# Check whether --enable-hwapi or --disable-hwapi was given.
3700if test "${enable_hwapi+set}" = set; then
3701  enableval="$enable_hwapi"
3702  case "${enableval}" in
3703    yes) RTEMS_HAS_HWAPI=yes ;;
3704    no)  RTEMS_HAS_HWAPI=no ;;
3705    *)  { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;;
3706  esac
3707else
3708  RTEMS_HAS_HWAPI=no
3709fi
3710
3711
3712if test "$RTEMS_HAS_HWAPI" = "yes"; then
3713  echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6
3714echo "configure:3715: checking whether libwapi is present" >&5
3715  if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
3716    echo "$ac_t""yes" 1>&6
3717    makefiles="$makefiles c/src/lib/libhwapi/Makefile"
3718   
3719echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
3720echo "configure:3721: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
3721if test -d $srcdir/c/src/lib/libhwapi/analog; then
3722  rtems_av_save_dir=`pwd`;
3723  cd $srcdir;
3724  rtems_av_tmp=`find c/src/lib/libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3725  makefiles="$makefiles $rtems_av_tmp";
3726  cd $rtems_av_save_dir;
3727  echo "$ac_t""done" 1>&6
3728else
3729  echo "$ac_t""no" 1>&6
3730fi
3731
3732
3733   
3734echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
3735echo "configure:3736: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
3736if test -d $srcdir/c/src/lib/libhwapi/discrete; then
3737  rtems_av_save_dir=`pwd`;
3738  cd $srcdir;
3739  rtems_av_tmp=`find c/src/lib/libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3740  makefiles="$makefiles $rtems_av_tmp";
3741  cd $rtems_av_save_dir;
3742  echo "$ac_t""done" 1>&6
3743else
3744  echo "$ac_t""no" 1>&6
3745fi
3746
3747
3748   
3749echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
3750echo "configure:3751: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
3751if test -d $srcdir/c/src/lib/libhwapi/drivers; then
3752  rtems_av_save_dir=`pwd`;
3753  cd $srcdir;
3754  rtems_av_tmp=`find c/src/lib/libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3755  makefiles="$makefiles $rtems_av_tmp";
3756  cd $rtems_av_save_dir;
3757  echo "$ac_t""done" 1>&6
3758else
3759  echo "$ac_t""no" 1>&6
3760fi
3761
3762
3763   
3764echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
3765echo "configure:3766: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
3766if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
3767  rtems_av_save_dir=`pwd`;
3768  cd $srcdir;
3769  rtems_av_tmp=`find c/src/lib/libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3770  makefiles="$makefiles $rtems_av_tmp";
3771  cd $rtems_av_save_dir;
3772  echo "$ac_t""done" 1>&6
3773else
3774  echo "$ac_t""no" 1>&6
3775fi
3776
3777
3778   
3779echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
3780echo "configure:3781: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
3781if test -d $srcdir/c/src/lib/libhwapi/serial; then
3782  rtems_av_save_dir=`pwd`;
3783  cd $srcdir;
3784  rtems_av_tmp=`find c/src/lib/libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3785  makefiles="$makefiles $rtems_av_tmp";
3786  cd $rtems_av_save_dir;
3787  echo "$ac_t""done" 1>&6
3788else
3789  echo "$ac_t""no" 1>&6
3790fi
3791
3792
3793   
3794echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
3795echo "configure:3796: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
3796if test -d $srcdir/c/src/lib/libhwapi/support; then
3797  rtems_av_save_dir=`pwd`;
3798  cd $srcdir;
3799  rtems_av_tmp=`find c/src/lib/libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3800  makefiles="$makefiles $rtems_av_tmp";
3801  cd $rtems_av_save_dir;
3802  echo "$ac_t""done" 1>&6
3803else
3804  echo "$ac_t""no" 1>&6
3805fi
3806
3807
3808   
3809echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
3810echo "configure:3811: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
3811if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
3812  rtems_av_save_dir=`pwd`;
3813  cd $srcdir;
3814  rtems_av_tmp=`find c/src/lib/libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3815  makefiles="$makefiles $rtems_av_tmp";
3816  cd $rtems_av_save_dir;
3817  echo "$ac_t""done" 1>&6
3818else
3819  echo "$ac_t""no" 1>&6
3820fi
3821
3822
3823  else
3824    { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; }
3825  fi
3826fi
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850# pick up all the Makefiles in required parts of the tree
3851
3852echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
3853echo "configure:3854: checking for Makefile.in in make" >&5
3854if test -d $srcdir/make; then
3855  rtems_av_save_dir=`pwd`;
3856  cd $srcdir;
3857  rtems_av_tmp=`find make -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3858  makefiles="$makefiles $rtems_av_tmp";
3859  cd $rtems_av_save_dir;
3860  echo "$ac_t""done" 1>&6
3861else
3862  echo "$ac_t""no" 1>&6
3863fi
3864
3865
3866
3867echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6
3868echo "configure:3869: checking for Makefile.in in c/src/lib/libchip" >&5
3869if test -d $srcdir/c/src/lib/libchip; then
3870  rtems_av_save_dir=`pwd`;
3871  cd $srcdir;
3872  rtems_av_tmp=`find c/src/lib/libchip -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3873  makefiles="$makefiles $rtems_av_tmp";
3874  cd $rtems_av_save_dir;
3875  echo "$ac_t""done" 1>&6
3876else
3877  echo "$ac_t""no" 1>&6
3878fi
3879
3880
3881
3882echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
3883echo "configure:3884: checking for Makefile.in in c/src/lib/libmisc" >&5
3884if test -d $srcdir/c/src/lib/libmisc; then
3885  rtems_av_save_dir=`pwd`;
3886  cd $srcdir;
3887  rtems_av_tmp=`find c/src/lib/libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3888  makefiles="$makefiles $rtems_av_tmp";
3889  cd $rtems_av_save_dir;
3890  echo "$ac_t""done" 1>&6
3891else
3892  echo "$ac_t""no" 1>&6
3893fi
3894
3895
3896
3897echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
3898echo "configure:3899: checking for Makefile.in in c/src/tests/samples" >&5
3899if test -d $srcdir/c/src/tests/samples; then
3900  rtems_av_save_dir=`pwd`;
3901  cd $srcdir;
3902  rtems_av_tmp=`find c/src/tests/samples -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3903  makefiles="$makefiles $rtems_av_tmp";
3904  cd $rtems_av_save_dir;
3905  echo "$ac_t""done" 1>&6
3906else
3907  echo "$ac_t""no" 1>&6
3908fi
3909
3910
3911
3912subdirs="c/build-tools"
3913
3914# FIXME: libwapi needs a separate configure.in in future ;-
3915# AC_CONFIG_SUBDIRS(c/src/lib/libwapi)
3916
3917# try not to explicitly list a Makefile here
3918trap '' 1 2 15
3919cat > confcache <<\EOF
3920# This file is a shell script that caches the results of configure
3921# tests run on this system so they can be shared between configure
3922# scripts and configure runs.  It is not useful on other systems.
3923# If it contains results you don't want to keep, you may remove or edit it.
3924#
3925# By default, configure uses ./config.cache as the cache file,
3926# creating it if it does not exist already.  You can give configure
3927# the --cache-file=FILE option to use a different cache file; that is
3928# what configure does when it calls configure scripts in
3929# subdirectories, so they share the cache.
3930# Giving --cache-file=/dev/null disables caching, for debugging configure.
3931# config.status only pays attention to the cache file if you give it the
3932# --recheck option to rerun configure.
3933#
3934EOF
3935# The following way of writing the cache mishandles newlines in values,
3936# but we know of no workaround that is simple, portable, and efficient.
3937# So, don't put newlines in cache variables' values.
3938# Ultrix sh set writes to stderr and can't be redirected directly,
3939# and sets the high bit in the cache file unless we assign to the vars.
3940(set) 2>&1 |
3941  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3942  *ac_space=\ *)
3943    # `set' does not quote correctly, so add quotes (double-quote substitution
3944    # turns \\\\ into \\, and sed turns \\ into \).
3945    sed -n \
3946      -e "s/'/'\\\\''/g" \
3947      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3948    ;;
3949  *)
3950    # `set' quotes correctly as required by POSIX, so do not add quotes.
3951    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3952    ;;
3953  esac >> confcache
3954if cmp -s $cache_file confcache; then
3955  :
3956else
3957  if test -w $cache_file; then
3958    echo "updating cache $cache_file"
3959    cat confcache > $cache_file
3960  else
3961    echo "not updating unwritable cache $cache_file"
3962  fi
3963fi
3964rm -f confcache
3965
3966trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3967
3968test "x$prefix" = xNONE && prefix=$ac_default_prefix
3969# Let make expand exec_prefix.
3970test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3971
3972# Any assignment to VPATH causes Sun make to only execute
3973# the first set of double-colon rules, so remove it if not needed.
3974# If there is a colon in the path, we need to keep it.
3975if test "x$srcdir" = x.; then
3976  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3977fi
3978
3979trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3980
3981# Transform confdefs.h into DEFS.
3982# Protect against shell expansion while executing Makefile rules.
3983# Protect against Makefile macro expansion.
3984cat > conftest.defs <<\EOF
3985s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3986s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3987s%\[%\\&%g
3988s%\]%\\&%g
3989s%\$%$$%g
3990EOF
3991DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3992rm -f conftest.defs
3993
3994
3995# Without the "./", some shells look in PATH for config.status.
3996: ${CONFIG_STATUS=./config.status}
3997
3998echo creating $CONFIG_STATUS
3999rm -f $CONFIG_STATUS
4000cat > $CONFIG_STATUS <<EOF
4001#! /bin/sh
4002# Generated automatically by configure.
4003# Run this file to recreate the current configuration.
4004# This directory was configured as follows,
4005# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4006#
4007# $0 $ac_configure_args
4008#
4009# Compiler output produced by configure, useful for debugging
4010# configure, is in ./config.log if it exists.
4011
4012ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4013for ac_option
4014do
4015  case "\$ac_option" in
4016  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4017    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4018    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4019  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4020    echo "$CONFIG_STATUS generated by autoconf version 2.13"
4021    exit 0 ;;
4022  -help | --help | --hel | --he | --h)
4023    echo "\$ac_cs_usage"; exit 0 ;;
4024  *) echo "\$ac_cs_usage"; exit 1 ;;
4025  esac
4026done
4027
4028ac_given_srcdir=$srcdir
4029ac_given_INSTALL="$INSTALL"
4030
4031trap 'rm -fr `echo "Makefile
4032make/host.cfg
4033make/target.cfg
4034make/Templates/Makefile.inc
4035make/compilers/gcc.cfg
4036c/Makefile
4037c/src/Makefile
4038c/src/exec/Makefile
4039c/src/exec/score/Makefile
4040c/src/exec/score/cpu/Makefile
4041c/src/exec/score/include/Makefile
4042c/src/exec/score/include/rtems/Makefile
4043c/src/exec/score/include/rtems/wrap/Makefile
4044c/src/exec/score/include/rtems/score/Makefile
4045c/src/exec/score/${inline_dir}/Makefile
4046c/src/exec/score/${inline_dir}/rtems/Makefile
4047c/src/exec/score/${inline_dir}/rtems/score/Makefile
4048c/src/exec/score/src/Makefile
4049c/src/exec/score/tools/Makefile
4050c/src/exec/score/tools/generic/Makefile
4051c/src/exec/wrapup/Makefile
4052c/src/exec/wrapup/rtems/Makefile
4053c/src/lib/Makefile
4054c/src/lib/include/Makefile
4055c/src/lib/libbsp/Makefile
4056c/src/lib/libbsp/shmdr/Makefile
4057c/src/lib/libc/Makefile
4058c/src/lib/libcpu/Makefile
4059c/src/lib/start/Makefile
4060c/src/lib/wrapup/Makefile
4061c/src/tests/Makefile
4062c/src/tests/support/Makefile
4063c/src/tests/support/include/Makefile
4064c/src/tests/support/stubdr/Makefile
4065c/src/tests/support/wrapup/Makefile
4066c/src/tests/tools/Makefile
4067c/src/tests/tools/generic/Makefile
4068$makefiles
4069c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4070EOF
4071cat >> $CONFIG_STATUS <<EOF
4072
4073# Protect against being on the right side of a sed subst in config.status.
4074sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4075 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4076$ac_vpsub
4077$extrasub
4078s%@SHELL@%$SHELL%g
4079s%@CFLAGS@%$CFLAGS%g
4080s%@CPPFLAGS@%$CPPFLAGS%g
4081s%@CXXFLAGS@%$CXXFLAGS%g
4082s%@FFLAGS@%$FFLAGS%g
4083s%@DEFS@%$DEFS%g
4084s%@LDFLAGS@%$LDFLAGS%g
4085s%@LIBS@%$LIBS%g
4086s%@exec_prefix@%$exec_prefix%g
4087s%@prefix@%$prefix%g
4088s%@program_transform_name@%$program_transform_name%g
4089s%@bindir@%$bindir%g
4090s%@sbindir@%$sbindir%g
4091s%@libexecdir@%$libexecdir%g
4092s%@datadir@%$datadir%g
4093s%@sysconfdir@%$sysconfdir%g
4094s%@sharedstatedir@%$sharedstatedir%g
4095s%@localstatedir@%$localstatedir%g
4096s%@libdir@%$libdir%g
4097s%@includedir@%$includedir%g
4098s%@oldincludedir@%$oldincludedir%g
4099s%@infodir@%$infodir%g
4100s%@mandir@%$mandir%g
4101s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
4102s%@PROJECT_ROOT@%$PROJECT_ROOT%g
4103s%@RTEMS_ROOT@%$RTEMS_ROOT%g
4104s%@SET_MAKE@%$SET_MAKE%g
4105s%@host@%$host%g
4106s%@host_alias@%$host_alias%g
4107s%@host_cpu@%$host_cpu%g
4108s%@host_vendor@%$host_vendor%g
4109s%@host_os@%$host_os%g
4110s%@target@%$target%g
4111s%@target_alias@%$target_alias%g
4112s%@target_cpu@%$target_cpu%g
4113s%@target_vendor@%$target_vendor%g
4114s%@target_os@%$target_os%g
4115s%@build@%$build%g
4116s%@build_alias@%$build_alias%g
4117s%@build_cpu@%$build_cpu%g
4118s%@build_vendor@%$build_vendor%g
4119s%@build_os@%$build_os%g
4120s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
4121s%@CAT@%$CAT%g
4122s%@RM@%$RM%g
4123s%@CP@%$CP%g
4124s%@MV@%$MV%g
4125s%@LN@%$LN%g
4126s%@LN_S@%$LN_S%g
4127s%@CHMOD@%$CHMOD%g
4128s%@SORT@%$SORT%g
4129s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4130s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4131s%@INSTALL_DATA@%$INSTALL_DATA%g
4132s%@PERL@%$PERL%g
4133s%@MKDIR@%$MKDIR%g
4134s%@TOUCH@%$TOUCH%g
4135s%@CMP@%$CMP%g
4136s%@SED@%$SED%g
4137s%@M4@%$M4%g
4138s%@KSH@%$KSH%g
4139s%@RTEMS_HOST@%$RTEMS_HOST%g
4140s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4141s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4142s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4143s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4144s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4145s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4146s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4147s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
4148s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
4149s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
4150s%@CC@%$CC%g
4151s%@EXEEXT@%$EXEEXT%g
4152s%@GCCSED@%$GCCSED%g
4153s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g
4154s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
4155s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
4156s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
4157s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g
4158s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
4159s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g
4160s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
4161s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
4162s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
4163s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g
4164s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g
4165s%@program_prefix@%$program_prefix%g
4166s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g
4167s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g
4168s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g
4169s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g
4170s%@subdirs@%$subdirs%g
4171
4172CEOF
4173EOF
4174
4175cat >> $CONFIG_STATUS <<\EOF
4176
4177# Split the substitutions into bite-sized pieces for seds with
4178# small command number limits, like on Digital OSF/1 and HP-UX.
4179ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4180ac_file=1 # Number of current file.
4181ac_beg=1 # First line for current file.
4182ac_end=$ac_max_sed_cmds # Line after last line for current file.
4183ac_more_lines=:
4184ac_sed_cmds=""
4185while $ac_more_lines; do
4186  if test $ac_beg -gt 1; then
4187    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4188  else
4189    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4190  fi
4191  if test ! -s conftest.s$ac_file; then
4192    ac_more_lines=false
4193    rm -f conftest.s$ac_file
4194  else
4195    if test -z "$ac_sed_cmds"; then
4196      ac_sed_cmds="sed -f conftest.s$ac_file"
4197    else
4198      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4199    fi
4200    ac_file=`expr $ac_file + 1`
4201    ac_beg=$ac_end
4202    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4203  fi
4204done
4205if test -z "$ac_sed_cmds"; then
4206  ac_sed_cmds=cat
4207fi
4208EOF
4209
4210cat >> $CONFIG_STATUS <<EOF
4211
4212CONFIG_FILES=\${CONFIG_FILES-"Makefile
4213make/host.cfg
4214make/target.cfg
4215make/Templates/Makefile.inc
4216make/compilers/gcc.cfg
4217c/Makefile
4218c/src/Makefile
4219c/src/exec/Makefile
4220c/src/exec/score/Makefile
4221c/src/exec/score/cpu/Makefile
4222c/src/exec/score/include/Makefile
4223c/src/exec/score/include/rtems/Makefile
4224c/src/exec/score/include/rtems/wrap/Makefile
4225c/src/exec/score/include/rtems/score/Makefile
4226c/src/exec/score/${inline_dir}/Makefile
4227c/src/exec/score/${inline_dir}/rtems/Makefile
4228c/src/exec/score/${inline_dir}/rtems/score/Makefile
4229c/src/exec/score/src/Makefile
4230c/src/exec/score/tools/Makefile
4231c/src/exec/score/tools/generic/Makefile
4232c/src/exec/wrapup/Makefile
4233c/src/exec/wrapup/rtems/Makefile
4234c/src/lib/Makefile
4235c/src/lib/include/Makefile
4236c/src/lib/libbsp/Makefile
4237c/src/lib/libbsp/shmdr/Makefile
4238c/src/lib/libc/Makefile
4239c/src/lib/libcpu/Makefile
4240c/src/lib/start/Makefile
4241c/src/lib/wrapup/Makefile
4242c/src/tests/Makefile
4243c/src/tests/support/Makefile
4244c/src/tests/support/include/Makefile
4245c/src/tests/support/stubdr/Makefile
4246c/src/tests/support/wrapup/Makefile
4247c/src/tests/tools/Makefile
4248c/src/tests/tools/generic/Makefile
4249$makefiles
4250c/update-tools/Makefile"}
4251EOF
4252cat >> $CONFIG_STATUS <<\EOF
4253for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4254  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4255  case "$ac_file" in
4256  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4257       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4258  *) ac_file_in="${ac_file}.in" ;;
4259  esac
4260
4261  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4262
4263  # Remove last slash and all that follows it.  Not all systems have dirname.
4264  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4265  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4266    # The file is in a subdirectory.
4267    test ! -d "$ac_dir" && mkdir "$ac_dir"
4268    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4269    # A "../" for each directory in $ac_dir_suffix.
4270    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4271  else
4272    ac_dir_suffix= ac_dots=
4273  fi
4274
4275  case "$ac_given_srcdir" in
4276  .)  srcdir=.
4277      if test -z "$ac_dots"; then top_srcdir=.
4278      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4279  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4280  *) # Relative path.
4281    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4282    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4283  esac
4284
4285  case "$ac_given_INSTALL" in
4286  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4287  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4288  esac
4289
4290  echo creating "$ac_file"
4291  rm -f "$ac_file"
4292  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4293  case "$ac_file" in
4294  *Makefile*) ac_comsub="1i\\
4295# $configure_input" ;;
4296  *) ac_comsub= ;;
4297  esac
4298
4299  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4300  sed -e "$ac_comsub
4301s%@configure_input@%$configure_input%g
4302s%@srcdir@%$srcdir%g
4303s%@top_srcdir@%$top_srcdir%g
4304s%@INSTALL@%$INSTALL%g
4305" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4306fi; done
4307rm -f conftest.s*
4308
4309EOF
4310cat >> $CONFIG_STATUS <<EOF
4311
4312EOF
4313cat >> $CONFIG_STATUS <<\EOF
4314
4315exit 0
4316EOF
4317chmod +x $CONFIG_STATUS
4318rm -fr confdefs* $ac_clean_files
4319test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4320
4321if test "$no_recursion" != yes; then
4322
4323  # Remove --cache-file and --srcdir arguments so they do not pile up.
4324  ac_sub_configure_args=
4325  ac_prev=
4326  for ac_arg in $ac_configure_args; do
4327    if test -n "$ac_prev"; then
4328      ac_prev=
4329      continue
4330    fi
4331    case "$ac_arg" in
4332    -cache-file | --cache-file | --cache-fil | --cache-fi \
4333    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4334      ac_prev=cache_file ;;
4335    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4336    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4337      ;;
4338    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4339      ac_prev=srcdir ;;
4340    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4341      ;;
4342    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4343    esac
4344  done
4345
4346  for ac_config_dir in c/build-tools; do
4347
4348    # Do not complain, so a configure script can configure whichever
4349    # parts of a large source tree are present.
4350    if test ! -d $srcdir/$ac_config_dir; then
4351      continue
4352    fi
4353
4354    echo configuring in $ac_config_dir
4355
4356    case "$srcdir" in
4357    .) ;;
4358    *)
4359      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4360      else
4361        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4362      fi
4363      ;;
4364    esac
4365
4366    ac_popdir=`pwd`
4367    cd $ac_config_dir
4368
4369      # A "../" for each directory in /$ac_config_dir.
4370      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4371
4372    case "$srcdir" in
4373    .) # No --srcdir option.  We are building in place.
4374      ac_sub_srcdir=$srcdir ;;
4375    /*) # Absolute path.
4376      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4377    *) # Relative path.
4378      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4379    esac
4380
4381    # Check for guested configure; otherwise get Cygnus style configure.
4382    if test -f $ac_sub_srcdir/configure; then
4383      ac_sub_configure=$ac_sub_srcdir/configure
4384    elif test -f $ac_sub_srcdir/configure.in; then
4385      ac_sub_configure=$ac_configure
4386    else
4387      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4388      ac_sub_configure=
4389    fi
4390
4391    # The recursion is here.
4392    if test -n "$ac_sub_configure"; then
4393
4394      # Make the cache file name correct relative to the subdirectory.
4395      case "$cache_file" in
4396      /*) ac_sub_cache_file=$cache_file ;;
4397      *) # Relative path.
4398        ac_sub_cache_file="$ac_dots$cache_file" ;;
4399      esac
4400  case "$ac_given_INSTALL" in
4401        [/$]*) INSTALL="$ac_given_INSTALL" ;;
4402        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4403        esac
4404
4405      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4406      # The eval makes quoting arguments work.
4407      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4408      then :
4409      else
4410        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4411      fi
4412    fi
4413
4414    cd $ac_popdir
4415  done
4416fi
4417
4418
4419echo
4420echo target architecture: $target_cpu.
4421echo available BSPs: $rtems_bsp.
4422echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
4423echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
4424echo
Note: See TracBrowser for help on using the repository browser.