source: rtems/configure @ 817466c

4.104.114.84.95
Last change on this file since 817466c was 817466c, checked in by Joel Sherrill <joel.sherrill@…>, on 06/14/99 at 18:29:09

Patch ("FIX: MKDIR/INSTALL_VARIANT") from Ralf Corsepius
<corsepiu@…>:

This patch removes MKDIR from RTEMS source tree and fixes another small
bug in the definition of INSTALL_VARIANT (cf. to the patch itself for
details, it should be self-explanatory)

After applying the patch please do:

cvs rm aclocal/mkdir.m4
./autogen

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