source: rtems/configure @ 9b8baa1

4.104.114.84.95
Last change on this file since 9b8baa1 was 9b8baa1, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 23, 1999 at 6:02:17 PM

Automake II patch from Ralf Corsepius <corsepiu@…>. Email
description follows:

Description:

  • automake for *all* tool subdirectories (Makefile.am, configure.in etc.)
  • autogen now also considers CONFIG_HEADER (generates stamp-h.ins and config.h.ins)
  • c/src/tests/tools/generic/difftest and c/src/tests/tools/generic/sorttimes generated by configure scripts
  • c/update-tools/ampolish, beautifier for Makefile.ams, similar to acpolish
  • rtems-polish.sh added to c/update-tools/ + ampolish support
  • New subdirectory ./automake, contains automake -Makefile fragments to support RTEMS make "debug, debug_install, profile, profile_install" for native Makefile.ams (== ignore these make targets).
  • aclocal/rtems-top.m4's RTEMS_TOP now reads the automake makefile variable VERSION from RTEMS ./VERSION file.
  • ./configure.in uses the macros from aclocal + support for the tools' configure scripts

Remarks:

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