source: rtems/configure @ 7a8dfad

4.104.114.84.95
Last change on this file since 7a8dfad was 6b7ab9bf, checked in by Joel Sherrill <joel.sherrill@…>, on 04/16/99 at 18:23:48

Patch from Ralf Corsepius <corsepiu@…>:

FYI: I am not talking about using "make -C <dir>", which probably
is much faster on M$ hosts than RTEMS's implementation, but about
removing --enable-gmake-print support and to apply a variant of
automake's subdirectory.

Automake's subdirectory rule seems to be a little bit faster, but I
wouldn't bet on this.

Attached to this mail is my proposal.

After applying the patch, please run

cvs rm aclocal/enable-gmake-print.m4
./autogen

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