source: rtems/configure @ fcee56c0

4.104.114.84.95
Last change on this file since fcee56c0 was 8c92fa3, checked in by Joel Sherrill <joel.sherrill@…>, on 06/16/99 at 14:55:28

Patcg from Ralf Corsepius <corsepiu@…>:

-- configure now fails to detect the toolchain for linux-posix.

As work-around, I have reverted to the old behavior of RTEMS_TARGET_CPU_NAME,
thus no_cpu/no_bsp will fail badly in configure again.

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