source: rtems/c/src/exec/configure @ 1896a650

4.104.114.84.95
Last change on this file since 1896a650 was 1896a650, checked in by Joel Sherrill <joel.sherrill@…>, on 07/30/99 at 17:52:50

Patch from Ralf Corsepius <corsepiu@…>:

The main topic is replacing the hard-coded values for HAS_MP and
HAS_RDBG in custom/*.cfg with per-bsp configuration-time autoconf checks
(This is the patch I had mentioned before earlier this week).

CHANGES

  • HAS_MP removed from custom/*.cfg, replaced with configuration time autoconf check
  • HAS_RDBG removed from custom/*.cfg, replaced with configuration-time autoconf check
  • NEW: c/src/make/bsp.cfg.in, takes configuration-time checked per-bsp values (i.e. HAS_MP, HAS_RDBG), gets installed as $(prefix)/<bsp>/make/bsp.cfg
  • NEW: default.cfg includes bsp.cfg - this change is backward compatible.
  • IMPORT_SRC: apply VPATH instead for ts_386ex/i386ex subdirectory Makefile.ins
  • HACK: a bug in acpolish mis-handles addtions to makefile variables which are enclosed in gmake conditionals: c/src/lib/libbsp/m68k/ods68302/start302/Makefile.in
  • Apply inline_dir, HAS_MP and HAS_RDBG for avoiding configuration of unneeded subdirectories in various configure.in files.
  • Several minor changes in Makefile.ins and configure.ins, wrt. to the order of including *.cfg and defining Makefile variables

APPLYING THE PATCH:

patch -p1 < rtems-rc-19990709-4.diff
./autogen

  • Property mode set to 100644
File size: 93.4 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  --enable-maintainer-mode enable make rules and dependencies not useful
18                          (and sometimes confusing) to the casual installer"
19ac_help="$ac_help
20  --enable-multiprocessing             enable multiprocessing interface"
21ac_help="$ac_help
22  --enable-posix                       enable posix interface"
23ac_help="$ac_help
24  --enable-networking                  enable TCP/IP stack"
25ac_help="$ac_help
26  --enable-rtems-inlines               enable RTEMS inline functions
27                                       (default:enabled, disable to use macros)"
28ac_help="$ac_help
29  --enable-cxx                         enable C++ support,
30                                       and build the rtems++ library"
31ac_help="$ac_help
32  --enable-gcc28                       enable use of gcc 2.8.x features"
33ac_help="$ac_help
34  --enable-libcdir=directory           set the directory for the C library"
35
36# Initialize some variables set by options.
37# The variables have the same names as the options, with
38# dashes changed to underlines.
39build=NONE
40cache_file=./config.cache
41exec_prefix=NONE
42host=NONE
43no_create=
44nonopt=NONE
45no_recursion=
46prefix=NONE
47program_prefix=NONE
48program_suffix=NONE
49program_transform_name=s,x,x,
50silent=
51site=
52srcdir=
53target=NONE
54verbose=
55x_includes=NONE
56x_libraries=NONE
57bindir='${exec_prefix}/bin'
58sbindir='${exec_prefix}/sbin'
59libexecdir='${exec_prefix}/libexec'
60datadir='${prefix}/share'
61sysconfdir='${prefix}/etc'
62sharedstatedir='${prefix}/com'
63localstatedir='${prefix}/var'
64libdir='${exec_prefix}/lib'
65includedir='${prefix}/include'
66oldincludedir='/usr/include'
67infodir='${prefix}/info'
68mandir='${prefix}/man'
69
70# Initialize some other variables.
71subdirs=
72MFLAGS= MAKEFLAGS=
73SHELL=${CONFIG_SHELL-/bin/sh}
74# Maximum number of lines to put in a shell here document.
75ac_max_here_lines=12
76
77ac_prev=
78for ac_option
79do
80
81  # If the previous option needs an argument, assign it.
82  if test -n "$ac_prev"; then
83    eval "$ac_prev=\$ac_option"
84    ac_prev=
85    continue
86  fi
87
88  case "$ac_option" in
89  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90  *) ac_optarg= ;;
91  esac
92
93  # Accept the important Cygnus configure options, so we can diagnose typos.
94
95  case "$ac_option" in
96
97  -bindir | --bindir | --bindi | --bind | --bin | --bi)
98    ac_prev=bindir ;;
99  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100    bindir="$ac_optarg" ;;
101
102  -build | --build | --buil | --bui | --bu)
103    ac_prev=build ;;
104  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105    build="$ac_optarg" ;;
106
107  -cache-file | --cache-file | --cache-fil | --cache-fi \
108  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109    ac_prev=cache_file ;;
110  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112    cache_file="$ac_optarg" ;;
113
114  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115    ac_prev=datadir ;;
116  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117  | --da=*)
118    datadir="$ac_optarg" ;;
119
120  -disable-* | --disable-*)
121    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122    # Reject names that are not valid shell variable names.
123    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125    fi
126    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127    eval "enable_${ac_feature}=no" ;;
128
129  -enable-* | --enable-*)
130    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131    # Reject names that are not valid shell variable names.
132    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134    fi
135    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136    case "$ac_option" in
137      *=*) ;;
138      *) ac_optarg=yes ;;
139    esac
140    eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144  | --exec | --exe | --ex)
145    ac_prev=exec_prefix ;;
146  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148  | --exec=* | --exe=* | --ex=*)
149    exec_prefix="$ac_optarg" ;;
150
151  -gas | --gas | --ga | --g)
152    # Obsolete; use --with-gas.
153    with_gas=yes ;;
154
155  -help | --help | --hel | --he)
156    # Omit some internal or obsolete options to make the list less imposing.
157    # This message is too long to be a string in the A/UX 3.1 sh.
158    cat << EOF
159Usage: configure [options] [host]
160Options: [defaults in brackets after descriptions]
161Configuration:
162  --cache-file=FILE       cache test results in FILE
163  --help                  print this message
164  --no-create             do not create output files
165  --quiet, --silent       do not print \`checking...' messages
166  --version               print the version of autoconf that created configure
167Directory and file names:
168  --prefix=PREFIX         install architecture-independent files in PREFIX
169                          [$ac_default_prefix]
170  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
171                          [same as prefix]
172  --bindir=DIR            user executables in DIR [EPREFIX/bin]
173  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
174  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
175  --datadir=DIR           read-only architecture-independent data in DIR
176                          [PREFIX/share]
177  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
178  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
179                          [PREFIX/com]
180  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
181  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
182  --includedir=DIR        C header files in DIR [PREFIX/include]
183  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
184  --infodir=DIR           info documentation in DIR [PREFIX/info]
185  --mandir=DIR            man documentation in DIR [PREFIX/man]
186  --srcdir=DIR            find the sources in DIR [configure dir or ..]
187  --program-prefix=PREFIX prepend PREFIX to installed program names
188  --program-suffix=SUFFIX append SUFFIX to installed program names
189  --program-transform-name=PROGRAM
190                          run sed PROGRAM on installed program names
191EOF
192    cat << EOF
193Host type:
194  --build=BUILD           configure for building on BUILD [BUILD=HOST]
195  --host=HOST             configure for HOST [guessed]
196  --target=TARGET         configure for TARGET [TARGET=HOST]
197Features and packages:
198  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
199  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
200  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
201  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
202  --x-includes=DIR        X include files are in DIR
203  --x-libraries=DIR       X library files are in DIR
204EOF
205    if test -n "$ac_help"; then
206      echo "--enable and --with options recognized:$ac_help"
207    fi
208    exit 0 ;;
209
210  -host | --host | --hos | --ho)
211    ac_prev=host ;;
212  -host=* | --host=* | --hos=* | --ho=*)
213    host="$ac_optarg" ;;
214
215  -includedir | --includedir | --includedi | --included | --include \
216  | --includ | --inclu | --incl | --inc)
217    ac_prev=includedir ;;
218  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219  | --includ=* | --inclu=* | --incl=* | --inc=*)
220    includedir="$ac_optarg" ;;
221
222  -infodir | --infodir | --infodi | --infod | --info | --inf)
223    ac_prev=infodir ;;
224  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225    infodir="$ac_optarg" ;;
226
227  -libdir | --libdir | --libdi | --libd)
228    ac_prev=libdir ;;
229  -libdir=* | --libdir=* | --libdi=* | --libd=*)
230    libdir="$ac_optarg" ;;
231
232  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233  | --libexe | --libex | --libe)
234    ac_prev=libexecdir ;;
235  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236  | --libexe=* | --libex=* | --libe=*)
237    libexecdir="$ac_optarg" ;;
238
239  -localstatedir | --localstatedir | --localstatedi | --localstated \
240  | --localstate | --localstat | --localsta | --localst \
241  | --locals | --local | --loca | --loc | --lo)
242    ac_prev=localstatedir ;;
243  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246    localstatedir="$ac_optarg" ;;
247
248  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249    ac_prev=mandir ;;
250  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251    mandir="$ac_optarg" ;;
252
253  -nfp | --nfp | --nf)
254    # Obsolete; use --without-fp.
255    with_fp=no ;;
256
257  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258  | --no-cr | --no-c)
259    no_create=yes ;;
260
261  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263    no_recursion=yes ;;
264
265  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267  | --oldin | --oldi | --old | --ol | --o)
268    ac_prev=oldincludedir ;;
269  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272    oldincludedir="$ac_optarg" ;;
273
274  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275    ac_prev=prefix ;;
276  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277    prefix="$ac_optarg" ;;
278
279  -program-prefix | --program-prefix | --program-prefi | --program-pref \
280  | --program-pre | --program-pr | --program-p)
281    ac_prev=program_prefix ;;
282  -program-prefix=* | --program-prefix=* | --program-prefi=* \
283  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284    program_prefix="$ac_optarg" ;;
285
286  -program-suffix | --program-suffix | --program-suffi | --program-suff \
287  | --program-suf | --program-su | --program-s)
288    ac_prev=program_suffix ;;
289  -program-suffix=* | --program-suffix=* | --program-suffi=* \
290  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291    program_suffix="$ac_optarg" ;;
292
293  -program-transform-name | --program-transform-name \
294  | --program-transform-nam | --program-transform-na \
295  | --program-transform-n | --program-transform- \
296  | --program-transform | --program-transfor \
297  | --program-transfo | --program-transf \
298  | --program-trans | --program-tran \
299  | --progr-tra | --program-tr | --program-t)
300    ac_prev=program_transform_name ;;
301  -program-transform-name=* | --program-transform-name=* \
302  | --program-transform-nam=* | --program-transform-na=* \
303  | --program-transform-n=* | --program-transform-=* \
304  | --program-transform=* | --program-transfor=* \
305  | --program-transfo=* | --program-transf=* \
306  | --program-trans=* | --program-tran=* \
307  | --progr-tra=* | --program-tr=* | --program-t=*)
308    program_transform_name="$ac_optarg" ;;
309
310  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311  | -silent | --silent | --silen | --sile | --sil)
312    silent=yes ;;
313
314  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315    ac_prev=sbindir ;;
316  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317  | --sbi=* | --sb=*)
318    sbindir="$ac_optarg" ;;
319
320  -sharedstatedir | --sharedstatedir | --sharedstatedi \
321  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322  | --sharedst | --shareds | --shared | --share | --shar \
323  | --sha | --sh)
324    ac_prev=sharedstatedir ;;
325  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328  | --sha=* | --sh=*)
329    sharedstatedir="$ac_optarg" ;;
330
331  -site | --site | --sit)
332    ac_prev=site ;;
333  -site=* | --site=* | --sit=*)
334    site="$ac_optarg" ;;
335
336  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337    ac_prev=srcdir ;;
338  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339    srcdir="$ac_optarg" ;;
340
341  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342  | --syscon | --sysco | --sysc | --sys | --sy)
343    ac_prev=sysconfdir ;;
344  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346    sysconfdir="$ac_optarg" ;;
347
348  -target | --target | --targe | --targ | --tar | --ta | --t)
349    ac_prev=target ;;
350  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351    target="$ac_optarg" ;;
352
353  -v | -verbose | --verbose | --verbos | --verbo | --verb)
354    verbose=yes ;;
355
356  -version | --version | --versio | --versi | --vers)
357    echo "configure generated by autoconf version 2.13"
358    exit 0 ;;
359
360  -with-* | --with-*)
361    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362    # Reject names that are not valid shell variable names.
363    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365    fi
366    ac_package=`echo $ac_package| sed 's/-/_/g'`
367    case "$ac_option" in
368      *=*) ;;
369      *) ac_optarg=yes ;;
370    esac
371    eval "with_${ac_package}='$ac_optarg'" ;;
372
373  -without-* | --without-*)
374    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375    # Reject names that are not valid shell variable names.
376    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378    fi
379    ac_package=`echo $ac_package| sed 's/-/_/g'`
380    eval "with_${ac_package}=no" ;;
381
382  --x)
383    # Obsolete; use --with-x.
384    with_x=yes ;;
385
386  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387  | --x-incl | --x-inc | --x-in | --x-i)
388    ac_prev=x_includes ;;
389  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391    x_includes="$ac_optarg" ;;
392
393  -x-libraries | --x-libraries | --x-librarie | --x-librari \
394  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395    ac_prev=x_libraries ;;
396  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398    x_libraries="$ac_optarg" ;;
399
400  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401    ;;
402
403  *)
404    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405      echo "configure: warning: $ac_option: invalid host type" 1>&2
406    fi
407    if test "x$nonopt" != xNONE; then
408      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409    fi
410    nonopt="$ac_option"
411    ;;
412
413  esac
414done
415
416if test -n "$ac_prev"; then
417  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418fi
419
420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422# File descriptor usage:
423# 0 standard input
424# 1 file creation
425# 2 errors and warnings
426# 3 some systems may open it to /dev/tty
427# 4 used on the Kubota Titan
428# 6 checking for... messages and results
429# 5 compiler messages saved in config.log
430if test "$silent" = yes; then
431  exec 6>/dev/null
432else
433  exec 6>&1
434fi
435exec 5>./config.log
436
437echo "\
438This file contains any messages produced by compilers while
439running configure, to aid debugging if configure makes a mistake.
440" 1>&5
441
442# Strip out --no-create and --no-recursion so they do not pile up.
443# Also quote any args containing shell metacharacters.
444ac_configure_args=
445for ac_arg
446do
447  case "$ac_arg" in
448  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449  | --no-cr | --no-c) ;;
450  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455  esac
456done
457
458# NLS nuisances.
459# Only set these to C if already set.  These must not be set unconditionally
460# because not all systems understand e.g. LANG=C (notably SCO).
461# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462# Non-C LC_CTYPE values break the ctype check.
463if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
464if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
467
468# confdefs.h avoids OS command line length limits that DEFS can exceed.
469rm -rf conftest* confdefs.h
470# AIX cpp loses on an empty file, so make sure it contains at least a newline.
471echo > confdefs.h
472
473# A filename unique to this package, relative to the directory that
474# configure is in, which we can look for to find out if srcdir is correct.
475ac_unique_file=score
476
477# Find the source files, if location was not specified.
478if test -z "$srcdir"; then
479  ac_srcdir_defaulted=yes
480  # Try the directory containing this script, then its parent.
481  ac_prog=$0
482  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484  srcdir=$ac_confdir
485  if test ! -r $srcdir/$ac_unique_file; then
486    srcdir=..
487  fi
488else
489  ac_srcdir_defaulted=no
490fi
491if test ! -r $srcdir/$ac_unique_file; then
492  if test "$ac_srcdir_defaulted" = yes; then
493    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494  else
495    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496  fi
497fi
498srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
500# Prefer explicitly selected file to automatically selected ones.
501if test -z "$CONFIG_SITE"; then
502  if test "x$prefix" != xNONE; then
503    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504  else
505    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506  fi
507fi
508for ac_site_file in $CONFIG_SITE; do
509  if test -r "$ac_site_file"; then
510    echo "loading site script $ac_site_file"
511    . "$ac_site_file"
512  fi
513done
514
515if test -r "$cache_file"; then
516  echo "loading cache $cache_file"
517  . $cache_file
518else
519  echo "creating cache $cache_file"
520  > $cache_file
521fi
522
523ac_ext=c
524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525ac_cpp='$CPP $CPPFLAGS'
526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528cross_compiling=$ac_cv_prog_cc_cross
529
530ac_exeext=
531ac_objext=o
532if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535    ac_n= ac_c='
536' ac_t='        '
537  else
538    ac_n=-n ac_c= ac_t=
539  fi
540else
541  ac_n= ac_c='\c' ac_t=
542fi
543
544
545# Check whether --with-target-subdir or --without-target-subdir was given.
546if test "${with_target_subdir+set}" = set; then
547  withval="$with_target_subdir"
548  TARGET_SUBDIR="$withval"
549else
550  TARGET_SUBDIR="."
551fi
552
553
554RTEMS_TOPdir="../../..";
555
556
557echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
558echo "configure:559: checking for RTEMS Version" >&5
559if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
560RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
561sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
562else
563{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
564fi
565if test -z "$RTEMS_VERSION"; then
566{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
567fi
568echo "$ac_t""$RTEMS_VERSION" 1>&6
569
570ac_aux_dir=
571for ac_dir in ../../.. $srcdir/../../..; do
572  if test -f $ac_dir/install-sh; then
573    ac_aux_dir=$ac_dir
574    ac_install_sh="$ac_aux_dir/install-sh -c"
575    break
576  elif test -f $ac_dir/install.sh; then
577    ac_aux_dir=$ac_dir
578    ac_install_sh="$ac_aux_dir/install.sh -c"
579    break
580  fi
581done
582if test -z "$ac_aux_dir"; then
583  { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; }
584fi
585ac_config_guess=$ac_aux_dir/config.guess
586ac_config_sub=$ac_aux_dir/config.sub
587ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
588
589
590echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
591echo "configure:592: checking whether ${MAKE-make} sets \${MAKE}" >&5
592set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
593if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
594  echo $ac_n "(cached) $ac_c" 1>&6
595else
596  cat > conftestmake <<\EOF
597all:
598        @echo 'ac_maketemp="${MAKE}"'
599EOF
600# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
601eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
602if test -n "$ac_maketemp"; then
603  eval ac_cv_prog_make_${ac_make}_set=yes
604else
605  eval ac_cv_prog_make_${ac_make}_set=no
606fi
607rm -f conftestmake
608fi
609if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
610  echo "$ac_t""yes" 1>&6
611  SET_MAKE=
612else
613  echo "$ac_t""no" 1>&6
614  SET_MAKE="MAKE=${MAKE-make}"
615fi
616
617
618
619# Do some error checking and defaulting for the host and target type.
620# The inputs are:
621#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
622#
623# The rules are:
624# 1. You are not allowed to specify --host, --target, and nonopt at the
625#    same time.
626# 2. Host defaults to nonopt.
627# 3. If nonopt is not specified, then host defaults to the current host,
628#    as determined by config.guess.
629# 4. Target and build default to nonopt.
630# 5. If nonopt is not specified, then target and build default to host.
631
632# The aliases save the names the user supplied, while $host etc.
633# will get canonicalized.
634case $host---$target---$nonopt in
635NONE---*---* | *---NONE---* | *---*---NONE) ;;
636*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
637esac
638
639
640# Make sure we can run config.sub.
641if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
642else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
643fi
644
645echo $ac_n "checking host system type""... $ac_c" 1>&6
646echo "configure:647: checking host system type" >&5
647
648host_alias=$host
649case "$host_alias" in
650NONE)
651  case $nonopt in
652  NONE)
653    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
654    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
655    fi ;;
656  *) host_alias=$nonopt ;;
657  esac ;;
658esac
659
660host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
661host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664echo "$ac_t""$host" 1>&6
665
666echo $ac_n "checking target system type""... $ac_c" 1>&6
667echo "configure:668: checking target system type" >&5
668
669target_alias=$target
670case "$target_alias" in
671NONE)
672  case $nonopt in
673  NONE) target_alias=$host_alias ;;
674  *) target_alias=$nonopt ;;
675  esac ;;
676esac
677
678target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
679target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
680target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
681target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
682echo "$ac_t""$target" 1>&6
683
684echo $ac_n "checking build system type""... $ac_c" 1>&6
685echo "configure:686: checking build system type" >&5
686
687build_alias=$build
688case "$build_alias" in
689NONE)
690  case $nonopt in
691  NONE) build_alias=$host_alias ;;
692  *) build_alias=$nonopt ;;
693  esac ;;
694esac
695
696build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
697build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
698build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
699build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700echo "$ac_t""$build" 1>&6
701
702test "$host_alias" != "$target_alias" &&
703  test "$program_prefix$program_suffix$program_transform_name" = \
704    NONENONEs,x,x, &&
705  program_prefix=${target_alias}-
706
707echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
708echo "configure:709: checking rtems target cpu" >&5
709case "${target}" in
710  # hpux unix port should go here
711  i[3456]86-go32-rtems*)
712        RTEMS_CPU=i386
713        ;;
714  i[3456]86-pc-linux*)          # unix "simulator" port
715        RTEMS_CPU=unix
716        ;;
717  i[3456]86-*freebsd2*)         # unix "simulator" port
718        RTEMS_CPU=unix
719        ;;
720  no_cpu-*rtems*)
721        RTEMS_CPU=no_cpu
722        ;;
723  sparc-sun-solaris*)           # unix "simulator" port
724        RTEMS_CPU=unix
725        ;;
726  *)
727        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
728        ;;
729esac
730
731echo "$ac_t""$RTEMS_CPU" 1>&6
732
733
734echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
735echo "configure:736: checking whether to enable maintainer-specific portions of Makefiles" >&5
736    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
737if test "${enable_maintainer_mode+set}" = set; then
738  enableval="$enable_maintainer_mode"
739  USE_MAINTAINER_MODE=$enableval
740else
741  USE_MAINTAINER_MODE=no
742fi
743
744  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
745 
746
747if test $USE_MAINTAINER_MODE = yes; then
748  MAINTAINER_MODE_TRUE=
749  MAINTAINER_MODE_FALSE='#'
750else
751  MAINTAINER_MODE_TRUE='#'
752  MAINTAINER_MODE_FALSE=
753fi
754  MAINT=$MAINTAINER_MODE_TRUE
755 
756
757
758# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
759if test "${enable_multiprocessing+set}" = set; then
760  enableval="$enable_multiprocessing"
761  case "${enableval}" in
762  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
763  no) RTEMS_HAS_MULTIPROCESSING=no ;;
764  *)  { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;;
765esac
766else
767  RTEMS_HAS_MULTIPROCESSING=no
768fi
769
770
771
772# Check whether --enable-posix or --disable-posix was given.
773if test "${enable_posix+set}" = set; then
774  enableval="$enable_posix"
775  case "${enableval}" in
776  yes) RTEMS_HAS_POSIX_API=yes ;;
777  no) RTEMS_HAS_POSIX_API=no ;;
778  *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
779esac
780else
781  RTEMS_HAS_POSIX_API=yes
782fi
783 
784
785
786case "${target}" in
787  # hpux unix port should go here
788  i[3456]86-go32-rtems*)
789        RTEMS_HAS_POSIX_API=no
790        ;;
791  i[3456]86-pc-linux*)         # unix "simulator" port
792        RTEMS_HAS_POSIX_API=no
793        ;;
794  i[3456]86-*freebsd2*) # unix "simulator" port
795        RTEMS_HAS_POSIX_API=no
796        ;;
797  no_cpu-*rtems*)
798        RTEMS_HAS_POSIX_API=no
799        ;;
800  sparc-sun-solaris*)             # unix "simulator" port
801        RTEMS_HAS_POSIX_API=no
802        ;;
803  *)
804        ;;
805esac
806
807
808
809# Check whether --enable-networking or --disable-networking was given.
810if test "${enable_networking+set}" = set; then
811  enableval="$enable_networking"
812  case "${enableval}" in
813  yes) RTEMS_HAS_NETWORKING=yes ;;
814  no) RTEMS_HAS_NETWORKING=no ;;
815  *)  { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;
816esac
817else
818  RTEMS_HAS_NETWORKING=yes
819fi
820
821
822# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
823if test "${enable_rtems_inlines+set}" = set; then
824  enableval="$enable_rtems_inlines"
825  case "${enableval}" in
826  yes) RTEMS_USE_MACROS=no ;;
827  no) RTEMS_USE_MACROS=yes ;;
828  *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
829esac
830else
831  RTEMS_USE_MACROS=no
832fi
833
834
835
836# Check whether --enable-cxx or --disable-cxx was given.
837if test "${enable_cxx+set}" = set; then
838  enableval="$enable_cxx"
839  case "${enableval}" in
840  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
841  no) RTEMS_HAS_CPLUSPLUS=no   ;;
842  *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
843esac
844else
845  RTEMS_HAS_CPLUSPLUS=no
846fi
847
848
849
850# Check whether --enable-gcc28 or --disable-gcc28 was given.
851if test "${enable_gcc28+set}" = set; then
852  enableval="$enable_gcc28"
853  case "${enableval}" in
854  yes) RTEMS_USE_GCC272=no ;;
855  no) RTEMS_USE_GCC272=yes ;;
856  *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
857esac
858else
859  RTEMS_USE_GCC272=no
860fi
861
862
863
864# Check whether --enable-libcdir or --disable-libcdir was given.
865if test "${enable_libcdir+set}" = set; then
866  enableval="$enable_libcdir"
867   RTEMS_LIBC_DIR="${enableval}" ; \
868test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
869fi
870
871
872
873echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
874echo "configure:875: checking for RTEMS_BSP" >&5
875if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
876  echo $ac_n "(cached) $ac_c" 1>&6
877else
878    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
879
880fi
881if test -z "$rtems_cv_RTEMS_BSP"; then
882  { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }
883fi
884RTEMS_BSP="$rtems_cv_RTEMS_BSP"
885echo "$ac_t""${RTEMS_BSP}" 1>&6
886
887
888
889echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
890echo "configure:891: checking whether ln -s works" >&5
891if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
892  echo $ac_n "(cached) $ac_c" 1>&6
893else
894  rm -f conftestdata
895if ln -s X conftestdata 2>/dev/null
896then
897  rm -f conftestdata
898  ac_cv_prog_LN_S="ln -s"
899else
900  ac_cv_prog_LN_S=ln
901fi
902fi
903LN_S="$ac_cv_prog_LN_S"
904if test "$ac_cv_prog_LN_S" = "ln -s"; then
905  echo "$ac_t""yes" 1>&6
906else
907  echo "$ac_t""no" 1>&6
908fi
909
910# Find a good install program.  We prefer a C program (faster),
911# so one script is as good as another.  But avoid the broken or
912# incompatible versions:
913# SysV /etc/install, /usr/sbin/install
914# SunOS /usr/etc/install
915# IRIX /sbin/install
916# AIX /bin/install
917# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
918# AFS /usr/afsws/bin/install, which mishandles nonexistent args
919# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
920# ./install, which can be erroneously created by make from ./install.sh.
921echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
922echo "configure:923: checking for a BSD compatible install" >&5
923if test -z "$INSTALL"; then
924if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
925  echo $ac_n "(cached) $ac_c" 1>&6
926else
927    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
928  for ac_dir in $PATH; do
929    # Account for people who put trailing slashes in PATH elements.
930    case "$ac_dir/" in
931    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
932    *)
933      # OSF1 and SCO ODT 3.0 have their own names for install.
934      # Don't use installbsd from OSF since it installs stuff as root
935      # by default.
936      for ac_prog in ginstall scoinst install; do
937        if test -f $ac_dir/$ac_prog; then
938          if test $ac_prog = install &&
939            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
940            # AIX install.  It has an incompatible calling convention.
941            :
942          else
943            ac_cv_path_install="$ac_dir/$ac_prog -c"
944            break 2
945          fi
946        fi
947      done
948      ;;
949    esac
950  done
951  IFS="$ac_save_IFS"
952
953fi
954  if test "${ac_cv_path_install+set}" = set; then
955    INSTALL="$ac_cv_path_install"
956  else
957    # As a last resort, use the slow shell script.  We don't cache a
958    # path for INSTALL within a source directory, because that will
959    # break other packages using the cache if that directory is
960    # removed, or if the path is relative.
961    INSTALL="$ac_install_sh"
962  fi
963fi
964echo "$ac_t""$INSTALL" 1>&6
965
966# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
967# It thinks the first close brace ends the variable substitution.
968test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
969
970test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
971
972test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
973
974
975for ac_prog in bash ksh sh
976do
977# Extract the first word of "$ac_prog", so it can be a program name with args.
978set dummy $ac_prog; ac_word=$2
979echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
980echo "configure:981: checking for $ac_word" >&5
981if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
982  echo $ac_n "(cached) $ac_c" 1>&6
983else
984  case "$KSH" in
985  /*)
986  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
987  ;;
988  ?:/*)                 
989  ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
990  ;;
991  *)
992  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
993  ac_dummy="$PATH"
994  for ac_dir in $ac_dummy; do
995    test -z "$ac_dir" && ac_dir=.
996    if test -f $ac_dir/$ac_word; then
997      ac_cv_path_KSH="$ac_dir/$ac_word"
998      break
999    fi
1000  done
1001  IFS="$ac_save_ifs"
1002  ;;
1003esac
1004fi
1005KSH="$ac_cv_path_KSH"
1006if test -n "$KSH"; then
1007  echo "$ac_t""$KSH" 1>&6
1008else
1009  echo "$ac_t""no" 1>&6
1010fi
1011
1012test -n "$KSH" && break
1013done
1014
1015if test -z "$KSH"; then
1016{ echo "configure: error: ***
1017    Cannot determine a usable shell bash/ksh/sh
1018    Please contact your system administrator " 1>&2; exit 1; };
1019fi
1020
1021
1022
1023
1024# Is this a supported CPU?
1025echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
1026echo "configure:1027: checking if cpu $RTEMS_CPU is supported" >&5
1027if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
1028  echo "$ac_t""yes" 1>&6
1029else
1030  { echo "configure: error: no" 1>&2; exit 1; }
1031fi
1032
1033
1034RTEMS_HOST=$host_os
1035case "${target}" in
1036  # hpux unix port should go here
1037  i[3456]86-pc-linux*)         # unix "simulator" port
1038        RTEMS_HOST=Linux
1039        ;;
1040  i[3456]86-*freebsd2*) # unix "simulator" port
1041        RTEMS_HOST=FreeBSD
1042        ;;
1043  sparc-sun-solaris*)             # unix "simulator" port
1044        RTEMS_HOST=Solaris
1045        ;;
1046  *)
1047        ;;
1048esac
1049
1050
1051
1052
1053if test "$TARGET_SUBDIR" = "." ; then
1054PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
1055else
1056PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
1057fi
1058
1059
1060RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
1061
1062
1063INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
1064
1065
1066PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
1067
1068
1069
1070
1071if [ "${program_prefix}" = "NONE" ] ; then
1072  if [ "${target}" = "${host}" ] ; then
1073    program_prefix=
1074  else
1075    program_prefix=${target}-
1076  fi
1077fi
1078
1079
1080
1081
1082for ac_prog in "$program_prefix"gcc "$program_prefix"cc
1083do
1084# Extract the first word of "$ac_prog", so it can be a program name with args.
1085set dummy $ac_prog; ac_word=$2
1086echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1087echo "configure:1088: checking for $ac_word" >&5
1088if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
1089  echo $ac_n "(cached) $ac_c" 1>&6
1090else
1091  case "$CC_FOR_TARGET" in
1092  /*)
1093  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
1094  ;;
1095  ?:/*)                 
1096  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path.
1097  ;;
1098  *)
1099  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1100  ac_dummy="$PATH"
1101  for ac_dir in $ac_dummy; do
1102    test -z "$ac_dir" && ac_dir=.
1103    if test -f $ac_dir/$ac_word; then
1104      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
1105      break
1106    fi
1107  done
1108  IFS="$ac_save_ifs"
1109  ;;
1110esac
1111fi
1112CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
1113if test -n "$CC_FOR_TARGET"; then
1114  echo "$ac_t""$CC_FOR_TARGET" 1>&6
1115else
1116  echo "$ac_t""no" 1>&6
1117fi
1118
1119test -n "$CC_FOR_TARGET" && break
1120done
1121
1122test -z "$CC_FOR_TARGET" \
1123  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1124
1125rtems_save_CC=$CC
1126rtems_save_CFLAGS=$CFLAGS
1127
1128CC=$CC_FOR_TARGET
1129
1130echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1131echo "configure:1132: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1132
1133ac_ext=c
1134# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1135ac_cpp='$CPP $CPPFLAGS'
1136ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1137ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1138cross_compiling=$ac_cv_prog_cc_cross
1139
1140cat > conftest.$ac_ext << EOF
1141
1142#line 1143 "configure"
1143#include "confdefs.h"
1144
1145main(){return(0);}
1146EOF
1147if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1148  ac_cv_prog_cc_works=yes
1149  # If we can't run a trivial program, we are probably using a cross compiler.
1150  if (./conftest; exit) 2>/dev/null; then
1151    ac_cv_prog_cc_cross=no
1152  else
1153    ac_cv_prog_cc_cross=yes
1154  fi
1155else
1156  echo "configure: failed program was:" >&5
1157  cat conftest.$ac_ext >&5
1158  ac_cv_prog_cc_works=no
1159fi
1160rm -fr conftest*
1161ac_ext=c
1162# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1163ac_cpp='$CPP $CPPFLAGS'
1164ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1165ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1166cross_compiling=$ac_cv_prog_cc_cross
1167
1168echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1169if test $ac_cv_prog_cc_works = no; then
1170  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1171fi
1172echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1173echo "configure:1174: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1174echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1175cross_compiling=$ac_cv_prog_cc_cross
1176
1177echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1178echo "configure:1179: checking whether we are using GNU C" >&5
1179if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1180  echo $ac_n "(cached) $ac_c" 1>&6
1181else
1182  cat > conftest.c <<EOF
1183#ifdef __GNUC__
1184  yes;
1185#endif
1186EOF
1187if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1188  ac_cv_prog_gcc=yes
1189else
1190  ac_cv_prog_gcc=no
1191fi
1192fi
1193
1194echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1195
1196if test $ac_cv_prog_gcc = yes; then
1197  GCC=yes
1198  ac_test_CFLAGS="${CFLAGS+set}"
1199  ac_save_CFLAGS="$CFLAGS"
1200  CFLAGS=
1201  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1202echo "configure:1203: checking whether ${CC-cc} accepts -g" >&5
1203if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1204  echo $ac_n "(cached) $ac_c" 1>&6
1205else
1206  echo 'void f(){}' > conftest.c
1207if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1208  ac_cv_prog_cc_g=yes
1209else
1210  ac_cv_prog_cc_g=no
1211fi
1212rm -f conftest*
1213
1214fi
1215
1216echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1217  if test "$ac_test_CFLAGS" = set; then
1218    CFLAGS="$ac_save_CFLAGS"
1219  elif test $ac_cv_prog_cc_g = yes; then
1220    CFLAGS="-g -O2"
1221  else
1222    CFLAGS="-O2"
1223  fi
1224else
1225  GCC=
1226  test "${CFLAGS+set}" = set || CFLAGS="-g"
1227fi
1228
1229rtems_cv_prog_gcc=$ac_cv_prog_gcc
1230rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1231rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1232rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1233
1234CC=$rtems_save_CC
1235CFLAGS=$rtems_save_CFLAGS
1236
1237unset ac_cv_prog_gcc
1238unset ac_cv_prog_cc_g
1239unset ac_cv_prog_cc_works
1240unset ac_cv_prog_cc_cross
1241
1242
1243echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1244echo "configure:1245: checking whether $CC_FOR_TARGET accepts -specs" >&5
1245if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1246  echo $ac_n "(cached) $ac_c" 1>&6
1247else
1248 
1249rtems_cv_gcc_specs=no
1250if test "$rtems_cv_prog_gcc" = "yes"; then
1251  touch confspec
1252  echo 'void f(){}' >conftest.c
1253  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1254    rtems_cv_gcc_specs=yes
1255  fi
1256fi
1257rm -f confspec conftest*
1258
1259fi
1260
1261echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1262 
1263
1264echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1265echo "configure:1266: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1266if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1267  echo $ac_n "(cached) $ac_c" 1>&6
1268else
1269 
1270rtems_cv_gcc_pipe=no
1271if test "$rtems_cv_prog_gcc" = "yes"; then
1272case "$host_os" in
1273  cygwin*)
1274    ;;
1275  *)
1276    echo 'void f(){}' >conftest.c
1277    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1278      rtems_cv_gcc_pipe=yes
1279    fi
1280    rm -f conftest*
1281    ;;
1282esac
1283fi
1284
1285fi
1286
1287echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1288
1289if test "$RTEMS_USE_GCC272" != "yes" ; then
1290  if test "$rtems_cv_gcc_specs" = "no"; then
1291    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1292      RTEMS_USE_GCC272=yes
1293  fi
1294fi
1295test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1296
1297case $host_os in
1298*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
1299*) ;;
1300esac
1301
1302
1303
1304if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
1305 
1306 
1307
1308for ac_prog in "$program_prefix"g++ "$program_prefix"c++
1309do
1310# Extract the first word of "$ac_prog", so it can be a program name with args.
1311set dummy $ac_prog; ac_word=$2
1312echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1313echo "configure:1314: checking for $ac_word" >&5
1314if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
1315  echo $ac_n "(cached) $ac_c" 1>&6
1316else
1317  case "$CXX_FOR_TARGET" in
1318  /*)
1319  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
1320  ;;
1321  ?:/*)                 
1322  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path.
1323  ;;
1324  *)
1325  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1326  ac_dummy="$PATH"
1327  for ac_dir in $ac_dummy; do
1328    test -z "$ac_dir" && ac_dir=.
1329    if test -f $ac_dir/$ac_word; then
1330      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
1331      break
1332    fi
1333  done
1334  IFS="$ac_save_ifs"
1335  ;;
1336esac
1337fi
1338CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
1339if test -n "$CXX_FOR_TARGET"; then
1340  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
1341else
1342  echo "$ac_t""no" 1>&6
1343fi
1344
1345test -n "$CXX_FOR_TARGET" && break
1346done
1347
1348test -z "$CXX_FOR_TARGET" \
1349  && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1350
1351rtems_save_CXX=$CXX
1352rtems_save_CXXFLAGS=$CXXFLAGS
1353
1354CXX=$CXX_FOR_TARGET
1355
1356echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1357echo "configure:1358: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1358
1359ac_ext=C
1360# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1361ac_cpp='$CXXCPP $CPPFLAGS'
1362ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1363ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1364cross_compiling=$ac_cv_prog_cxx_cross
1365
1366cat > conftest.$ac_ext << EOF
1367
1368#line 1369 "configure"
1369#include "confdefs.h"
1370
1371int main(){return(0);}
1372EOF
1373if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1374  ac_cv_prog_cxx_works=yes
1375  # If we can't run a trivial program, we are probably using a cross compiler.
1376  if (./conftest; exit) 2>/dev/null; then
1377    ac_cv_prog_cxx_cross=no
1378  else
1379    ac_cv_prog_cxx_cross=yes
1380  fi
1381else
1382  echo "configure: failed program was:" >&5
1383  cat conftest.$ac_ext >&5
1384  ac_cv_prog_cxx_works=no
1385fi
1386rm -fr conftest*
1387ac_ext=c
1388# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1389ac_cpp='$CPP $CPPFLAGS'
1390ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1391ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1392cross_compiling=$ac_cv_prog_cc_cross
1393
1394echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1395if test $ac_cv_prog_cxx_works = no; then
1396  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1397fi
1398echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1399echo "configure:1400: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1400echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1401cross_compiling=$ac_cv_prog_cxx_cross
1402
1403echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1404echo "configure:1405: checking whether we are using GNU C++" >&5
1405if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1406  echo $ac_n "(cached) $ac_c" 1>&6
1407else
1408  cat > conftest.C <<EOF
1409#ifdef __GNUC__
1410  yes;
1411#endif
1412EOF
1413if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1414  ac_cv_prog_gxx=yes
1415else
1416  ac_cv_prog_gxx=no
1417fi
1418fi
1419
1420echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1421
1422if test $ac_cv_prog_gxx = yes; then
1423  GXX=yes
1424  ac_test_CXXFLAGS="${CXXFLAGS+set}"
1425  ac_save_CXXFLAGS="$CXXFLAGS"
1426  CXXFLAGS=
1427  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1428echo "configure:1429: checking whether ${CXX-g++} accepts -g" >&5
1429if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1430  echo $ac_n "(cached) $ac_c" 1>&6
1431else
1432  echo 'void f(){}' > conftest.cc
1433if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1434  ac_cv_prog_cxx_g=yes
1435else
1436  ac_cv_prog_cxx_g=no
1437fi
1438rm -f conftest*
1439
1440fi
1441
1442echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1443  if test "$ac_test_CXXFLAGS" = set; then
1444    CXXFLAGS="$ac_save_CXXFLAGS"
1445  elif test $ac_cv_prog_cxx_g = yes; then
1446    CXXFLAGS="-g -O2"
1447  else
1448    CXXFLAGS="-O2"
1449  fi
1450else
1451  GXX=
1452  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1453fi
1454
1455rtems_cv_prog_gxx=$ac_cv_prog_gxx
1456rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
1457rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
1458rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
1459
1460CXX=$rtems_save_CXX
1461CXXFLAGS=$rtems_save_CXXFLAGS
1462
1463unset ac_cv_prog_gxx
1464unset ac_cv_prog_cc_g
1465unset ac_cv_prog_cxx_works
1466unset ac_cv_prog_cxx_cross
1467
1468  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
1469    { echo "configure: error: ***
1470     Inconsistency in compiler configuration:
1471     Target C compiler and Target C++ compiler
1472     must both either be cross compilers or native compilers
1473     Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
1474  fi
1475
1476fi
1477
1478
1479 
1480echo $ac_n "checking target's ar""... $ac_c" 1>&6
1481echo "configure:1482: checking target's ar" >&5
1482if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1483  echo $ac_n "(cached) $ac_c" 1>&6
1484else
1485  :
1486fi
1487
1488echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
1489
1490if test -n "$ac_cv_path_AR_FOR_TARGET"; then
1491    AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
1492else
1493    if test -z "$AR_FOR_TARGET" ; then
1494    if test "$rtems_cv_prog_gcc" = "yes"; then
1495      # We are using gcc, ask it about its tool
1496      # NOTE: Necessary if gcc was configured to use the target's
1497      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1498       case $host_os in
1499  *cygwin*)
1500            AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' `
1501    ;;
1502  *)
1503    AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
1504    ;;
1505  esac
1506
1507    fi
1508  else
1509    # The user set an environment variable.
1510    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1511    # will override the environment variable, which isn't what the user
1512    # intends
1513    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1514echo "configure:1515: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
1515    case "$AR_FOR_TARGET" in
1516    /*) # valid
1517      echo "$ac_t"""yes"" 1>&6
1518    ;;
1519    *)  # invalid for AC_PATH_PROG
1520      echo "$ac_t"""no"" 1>&6
1521      { echo "configure: error: ***
1522        Environment variable AR_FOR_TARGET should either
1523        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1524    ;;
1525    esac
1526  fi
1527
1528  # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
1529set dummy "$program_prefix"ar; ac_word=$2
1530echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1531echo "configure:1532: checking for $ac_word" >&5
1532if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1533  echo $ac_n "(cached) $ac_c" 1>&6
1534else
1535  case "$AR_FOR_TARGET" in
1536  /*)
1537  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
1538  ;;
1539  ?:/*)                 
1540  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
1541  ;;
1542  *)
1543  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1544  ac_dummy="$PATH"
1545  for ac_dir in $ac_dummy; do
1546    test -z "$ac_dir" && ac_dir=.
1547    if test -f $ac_dir/$ac_word; then
1548      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
1549      break
1550    fi
1551  done
1552  IFS="$ac_save_ifs"
1553  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
1554  ;;
1555esac
1556fi
1557AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
1558if test -n "$AR_FOR_TARGET"; then
1559  echo "$ac_t""$AR_FOR_TARGET" 1>&6
1560else
1561  echo "$ac_t""no" 1>&6
1562fi
1563
1564fi
1565
1566 
1567echo $ac_n "checking target's as""... $ac_c" 1>&6
1568echo "configure:1569: checking target's as" >&5
1569if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1570  echo $ac_n "(cached) $ac_c" 1>&6
1571else
1572  :
1573fi
1574
1575echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
1576
1577if test -n "$ac_cv_path_AS_FOR_TARGET"; then
1578    AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
1579else
1580    if test -z "$AS_FOR_TARGET" ; then
1581    if test "$rtems_cv_prog_gcc" = "yes"; then
1582      # We are using gcc, ask it about its tool
1583      # NOTE: Necessary if gcc was configured to use the target's
1584      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1585       case $host_os in
1586  *cygwin*)
1587            AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' `
1588    ;;
1589  *)
1590    AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
1591    ;;
1592  esac
1593
1594    fi
1595  else
1596    # The user set an environment variable.
1597    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1598    # will override the environment variable, which isn't what the user
1599    # intends
1600    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1601echo "configure:1602: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
1602    case "$AS_FOR_TARGET" in
1603    /*) # valid
1604      echo "$ac_t"""yes"" 1>&6
1605    ;;
1606    *)  # invalid for AC_PATH_PROG
1607      echo "$ac_t"""no"" 1>&6
1608      { echo "configure: error: ***
1609        Environment variable AS_FOR_TARGET should either
1610        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1611    ;;
1612    esac
1613  fi
1614
1615  # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
1616set dummy "$program_prefix"as; ac_word=$2
1617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1618echo "configure:1619: checking for $ac_word" >&5
1619if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1620  echo $ac_n "(cached) $ac_c" 1>&6
1621else
1622  case "$AS_FOR_TARGET" in
1623  /*)
1624  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
1625  ;;
1626  ?:/*)                 
1627  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
1628  ;;
1629  *)
1630  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1631  ac_dummy="$PATH"
1632  for ac_dir in $ac_dummy; do
1633    test -z "$ac_dir" && ac_dir=.
1634    if test -f $ac_dir/$ac_word; then
1635      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
1636      break
1637    fi
1638  done
1639  IFS="$ac_save_ifs"
1640  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
1641  ;;
1642esac
1643fi
1644AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
1645if test -n "$AS_FOR_TARGET"; then
1646  echo "$ac_t""$AS_FOR_TARGET" 1>&6
1647else
1648  echo "$ac_t""no" 1>&6
1649fi
1650
1651fi
1652
1653 
1654echo $ac_n "checking target's ld""... $ac_c" 1>&6
1655echo "configure:1656: checking target's ld" >&5
1656if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1657  echo $ac_n "(cached) $ac_c" 1>&6
1658else
1659  :
1660fi
1661
1662echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
1663
1664if test -n "$ac_cv_path_LD_FOR_TARGET"; then
1665    LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
1666else
1667    if test -z "$LD_FOR_TARGET" ; then
1668    if test "$rtems_cv_prog_gcc" = "yes"; then
1669      # We are using gcc, ask it about its tool
1670      # NOTE: Necessary if gcc was configured to use the target's
1671      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1672       case $host_os in
1673  *cygwin*)
1674            LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' `
1675    ;;
1676  *)
1677    LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
1678    ;;
1679  esac
1680
1681    fi
1682  else
1683    # The user set an environment variable.
1684    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1685    # will override the environment variable, which isn't what the user
1686    # intends
1687    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1688echo "configure:1689: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
1689    case "$LD_FOR_TARGET" in
1690    /*) # valid
1691      echo "$ac_t"""yes"" 1>&6
1692    ;;
1693    *)  # invalid for AC_PATH_PROG
1694      echo "$ac_t"""no"" 1>&6
1695      { echo "configure: error: ***
1696        Environment variable LD_FOR_TARGET should either
1697        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1698    ;;
1699    esac
1700  fi
1701
1702  # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
1703set dummy "$program_prefix"ld; ac_word=$2
1704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1705echo "configure:1706: checking for $ac_word" >&5
1706if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1707  echo $ac_n "(cached) $ac_c" 1>&6
1708else
1709  case "$LD_FOR_TARGET" in
1710  /*)
1711  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
1712  ;;
1713  ?:/*)                 
1714  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
1715  ;;
1716  *)
1717  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1718  ac_dummy="$PATH"
1719  for ac_dir in $ac_dummy; do
1720    test -z "$ac_dir" && ac_dir=.
1721    if test -f $ac_dir/$ac_word; then
1722      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
1723      break
1724    fi
1725  done
1726  IFS="$ac_save_ifs"
1727  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
1728  ;;
1729esac
1730fi
1731LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
1732if test -n "$LD_FOR_TARGET"; then
1733  echo "$ac_t""$LD_FOR_TARGET" 1>&6
1734else
1735  echo "$ac_t""no" 1>&6
1736fi
1737
1738fi
1739
1740 
1741echo $ac_n "checking target's nm""... $ac_c" 1>&6
1742echo "configure:1743: checking target's nm" >&5
1743if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1744  echo $ac_n "(cached) $ac_c" 1>&6
1745else
1746  :
1747fi
1748
1749echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
1750
1751if test -n "$ac_cv_path_NM_FOR_TARGET"; then
1752    NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
1753else
1754    if test -z "$NM_FOR_TARGET" ; then
1755    if test "$rtems_cv_prog_gcc" = "yes"; then
1756      # We are using gcc, ask it about its tool
1757      # NOTE: Necessary if gcc was configured to use the target's
1758      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1759       case $host_os in
1760  *cygwin*)
1761            NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' `
1762    ;;
1763  *)
1764    NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
1765    ;;
1766  esac
1767
1768    fi
1769  else
1770    # The user set an environment variable.
1771    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1772    # will override the environment variable, which isn't what the user
1773    # intends
1774    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1775echo "configure:1776: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
1776    case "$NM_FOR_TARGET" in
1777    /*) # valid
1778      echo "$ac_t"""yes"" 1>&6
1779    ;;
1780    *)  # invalid for AC_PATH_PROG
1781      echo "$ac_t"""no"" 1>&6
1782      { echo "configure: error: ***
1783        Environment variable NM_FOR_TARGET should either
1784        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1785    ;;
1786    esac
1787  fi
1788
1789  # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
1790set dummy "$program_prefix"nm; ac_word=$2
1791echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792echo "configure:1793: checking for $ac_word" >&5
1793if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1794  echo $ac_n "(cached) $ac_c" 1>&6
1795else
1796  case "$NM_FOR_TARGET" in
1797  /*)
1798  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
1799  ;;
1800  ?:/*)                 
1801  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
1802  ;;
1803  *)
1804  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1805  ac_dummy="$PATH"
1806  for ac_dir in $ac_dummy; do
1807    test -z "$ac_dir" && ac_dir=.
1808    if test -f $ac_dir/$ac_word; then
1809      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
1810      break
1811    fi
1812  done
1813  IFS="$ac_save_ifs"
1814  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
1815  ;;
1816esac
1817fi
1818NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
1819if test -n "$NM_FOR_TARGET"; then
1820  echo "$ac_t""$NM_FOR_TARGET" 1>&6
1821else
1822  echo "$ac_t""no" 1>&6
1823fi
1824
1825fi
1826
1827
1828 
1829echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
1830echo "configure:1831: checking target's ranlib" >&5
1831if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1832  echo $ac_n "(cached) $ac_c" 1>&6
1833else
1834  :
1835fi
1836
1837echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
1838
1839if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then
1840    RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1841else
1842    if test -z "$RANLIB_FOR_TARGET" ; then
1843    if test "$rtems_cv_prog_gcc" = "yes"; then
1844      # We are using gcc, ask it about its tool
1845      # NOTE: Necessary if gcc was configured to use the target's
1846      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1847       case $host_os in
1848  *cygwin*)
1849            RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' `
1850    ;;
1851  *)
1852    RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
1853    ;;
1854  esac
1855
1856    fi
1857  else
1858    # The user set an environment variable.
1859    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1860    # will override the environment variable, which isn't what the user
1861    # intends
1862    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1863echo "configure:1864: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
1864    case "$RANLIB_FOR_TARGET" in
1865    /*) # valid
1866      echo "$ac_t"""yes"" 1>&6
1867    ;;
1868    *)  # invalid for AC_PATH_PROG
1869      echo "$ac_t"""no"" 1>&6
1870      { echo "configure: error: ***
1871        Environment variable RANLIB_FOR_TARGET should either
1872        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1873    ;;
1874    esac
1875  fi
1876
1877  # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
1878set dummy "$program_prefix"ranlib; ac_word=$2
1879echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880echo "configure:1881: checking for $ac_word" >&5
1881if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1882  echo $ac_n "(cached) $ac_c" 1>&6
1883else
1884  case "$RANLIB_FOR_TARGET" in
1885  /*)
1886  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
1887  ;;
1888  ?:/*)                 
1889  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
1890  ;;
1891  *)
1892  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1893  ac_dummy="$PATH"
1894  for ac_dir in $ac_dummy; do
1895    test -z "$ac_dir" && ac_dir=.
1896    if test -f $ac_dir/$ac_word; then
1897      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
1898      break
1899    fi
1900  done
1901  IFS="$ac_save_ifs"
1902  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
1903  ;;
1904esac
1905fi
1906RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
1907if test -n "$RANLIB_FOR_TARGET"; then
1908  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
1909else
1910  echo "$ac_t""no" 1>&6
1911fi
1912
1913fi
1914
1915  if test "$RANLIB_FOR_TARGET" = "no"; then
1916    # ranlib wasn't found; check if ar -s is available
1917   
1918echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
1919echo "configure:1920: checking whether $AR_FOR_TARGET -s works" >&5
1920if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
1921  echo $ac_n "(cached) $ac_c" 1>&6
1922else
1923 
1924cat > conftest.$ac_ext <<EOF
1925int foo( int b )
1926{ return b; }
1927EOF
1928if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
1929  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
1930  && test -s conftest.a ; \
1931then
1932  rtems_cv_AR_FOR_TARGET_S="yes"
1933else
1934  rtems_cv_AR_FOR_TARGET_S="no"
1935fi
1936  rm -f conftest*
1937
1938fi
1939
1940echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6
1941
1942    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
1943            ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
1944      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1945    else
1946      { echo "configure: error: ***
1947        Can't figure out how to build a library index
1948        Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; }
1949    fi
1950  fi
1951
1952 
1953echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
1954echo "configure:1955: checking target's objcopy" >&5
1955if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
1956  echo $ac_n "(cached) $ac_c" 1>&6
1957else
1958  :
1959fi
1960
1961echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6
1962
1963if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then
1964    OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
1965else
1966    if test -z "$OBJCOPY_FOR_TARGET" ; then
1967    if test "$rtems_cv_prog_gcc" = "yes"; then
1968      # We are using gcc, ask it about its tool
1969      # NOTE: Necessary if gcc was configured to use the target's
1970      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1971       case $host_os in
1972  *cygwin*)
1973            OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' `
1974    ;;
1975  *)
1976    OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy`
1977    ;;
1978  esac
1979
1980    fi
1981  else
1982    # The user set an environment variable.
1983    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1984    # will override the environment variable, which isn't what the user
1985    # intends
1986    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1987echo "configure:1988: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
1988    case "$OBJCOPY_FOR_TARGET" in
1989    /*) # valid
1990      echo "$ac_t"""yes"" 1>&6
1991    ;;
1992    *)  # invalid for AC_PATH_PROG
1993      echo "$ac_t"""no"" 1>&6
1994      { echo "configure: error: ***
1995        Environment variable OBJCOPY_FOR_TARGET should either
1996        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1997    ;;
1998    esac
1999  fi
2000
2001  # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
2002set dummy "$program_prefix"objcopy; ac_word=$2
2003echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2004echo "configure:2005: checking for $ac_word" >&5
2005if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2006  echo $ac_n "(cached) $ac_c" 1>&6
2007else
2008  case "$OBJCOPY_FOR_TARGET" in
2009  /*)
2010  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
2011  ;;
2012  ?:/*)                 
2013  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path.
2014  ;;
2015  *)
2016  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2017  ac_dummy="$PATH"
2018  for ac_dir in $ac_dummy; do
2019    test -z "$ac_dir" && ac_dir=.
2020    if test -f $ac_dir/$ac_word; then
2021      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
2022      break
2023    fi
2024  done
2025  IFS="$ac_save_ifs"
2026  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
2027  ;;
2028esac
2029fi
2030OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
2031if test -n "$OBJCOPY_FOR_TARGET"; then
2032  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
2033else
2034  echo "$ac_t""no" 1>&6
2035fi
2036
2037fi
2038
2039 
2040echo $ac_n "checking target's size""... $ac_c" 1>&6
2041echo "configure:2042: checking target's size" >&5
2042if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2043  echo $ac_n "(cached) $ac_c" 1>&6
2044else
2045  :
2046fi
2047
2048echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6
2049
2050if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then
2051    SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET
2052else
2053    if test -z "$SIZE_FOR_TARGET" ; then
2054    if test "$rtems_cv_prog_gcc" = "yes"; then
2055      # We are using gcc, ask it about its tool
2056      # NOTE: Necessary if gcc was configured to use the target's
2057      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2058       case $host_os in
2059  *cygwin*)
2060            SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' `
2061    ;;
2062  *)
2063    SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size`
2064    ;;
2065  esac
2066
2067    fi
2068  else
2069    # The user set an environment variable.
2070    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2071    # will override the environment variable, which isn't what the user
2072    # intends
2073    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2074echo "configure:2075: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
2075    case "$SIZE_FOR_TARGET" in
2076    /*) # valid
2077      echo "$ac_t"""yes"" 1>&6
2078    ;;
2079    *)  # invalid for AC_PATH_PROG
2080      echo "$ac_t"""no"" 1>&6
2081      { echo "configure: error: ***
2082        Environment variable SIZE_FOR_TARGET should either
2083        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2084    ;;
2085    esac
2086  fi
2087
2088  # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
2089set dummy "$program_prefix"size; ac_word=$2
2090echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2091echo "configure:2092: checking for $ac_word" >&5
2092if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2093  echo $ac_n "(cached) $ac_c" 1>&6
2094else
2095  case "$SIZE_FOR_TARGET" in
2096  /*)
2097  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
2098  ;;
2099  ?:/*)                 
2100  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path.
2101  ;;
2102  *)
2103  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2104  ac_dummy="$PATH"
2105  for ac_dir in $ac_dummy; do
2106    test -z "$ac_dir" && ac_dir=.
2107    if test -f $ac_dir/$ac_word; then
2108      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
2109      break
2110    fi
2111  done
2112  IFS="$ac_save_ifs"
2113  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
2114  ;;
2115esac
2116fi
2117SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
2118if test -n "$SIZE_FOR_TARGET"; then
2119  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
2120else
2121  echo "$ac_t""no" 1>&6
2122fi
2123
2124fi
2125
2126 
2127echo $ac_n "checking target's strip""... $ac_c" 1>&6
2128echo "configure:2129: checking target's strip" >&5
2129if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2130  echo $ac_n "(cached) $ac_c" 1>&6
2131else
2132  :
2133fi
2134
2135echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
2136
2137if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then
2138    STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2139else
2140    if test -z "$STRIP_FOR_TARGET" ; then
2141    if test "$rtems_cv_prog_gcc" = "yes"; then
2142      # We are using gcc, ask it about its tool
2143      # NOTE: Necessary if gcc was configured to use the target's
2144      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2145       case $host_os in
2146  *cygwin*)
2147            STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' `
2148    ;;
2149  *)
2150    STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip`
2151    ;;
2152  esac
2153
2154    fi
2155  else
2156    # The user set an environment variable.
2157    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2158    # will override the environment variable, which isn't what the user
2159    # intends
2160    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2161echo "configure:2162: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
2162    case "$STRIP_FOR_TARGET" in
2163    /*) # valid
2164      echo "$ac_t"""yes"" 1>&6
2165    ;;
2166    *)  # invalid for AC_PATH_PROG
2167      echo "$ac_t"""no"" 1>&6
2168      { echo "configure: error: ***
2169        Environment variable STRIP_FOR_TARGET should either
2170        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2171    ;;
2172    esac
2173  fi
2174
2175  # Extract the first word of ""$program_prefix"strip", so it can be a program name with args.
2176set dummy "$program_prefix"strip; ac_word=$2
2177echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2178echo "configure:2179: checking for $ac_word" >&5
2179if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2180  echo $ac_n "(cached) $ac_c" 1>&6
2181else
2182  case "$STRIP_FOR_TARGET" in
2183  /*)
2184  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
2185  ;;
2186  ?:/*)                 
2187  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
2188  ;;
2189  *)
2190  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2191  ac_dummy="$PATH"
2192  for ac_dir in $ac_dummy; do
2193    test -z "$ac_dir" && ac_dir=.
2194    if test -f $ac_dir/$ac_word; then
2195      ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
2196      break
2197    fi
2198  done
2199  IFS="$ac_save_ifs"
2200  test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no"
2201  ;;
2202esac
2203fi
2204STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
2205if test -n "$STRIP_FOR_TARGET"; then
2206  echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
2207else
2208  echo "$ac_t""no" 1>&6
2209fi
2210
2211fi
2212
2213
2214
2215 if test "${target_cpu}" = "i386"; then
2216    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
2217echo "configure:2218: checking for 16 bit mode assembler support" >&5
2218if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
2219  echo $ac_n "(cached) $ac_c" 1>&6
2220else
2221  cat > conftest.s << EOF
2222         .code16
2223         data32
2224         addr32
2225         lgdt 0
2226EOF
2227      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2228        rtems_cv_prog_gas_code16=yes
2229      else
2230        rtems_cv_prog_gas_code16=no
2231      fi
2232fi
2233
2234echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6
2235    RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
2236  fi
2237 
2238
2239
2240# Extract the first word of "gcc", so it can be a program name with args.
2241set dummy gcc; ac_word=$2
2242echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2243echo "configure:2244: checking for $ac_word" >&5
2244if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2245  echo $ac_n "(cached) $ac_c" 1>&6
2246else
2247  if test -n "$CC"; then
2248  ac_cv_prog_CC="$CC" # Let the user override the test.
2249else
2250  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2251  ac_dummy="$PATH"
2252  for ac_dir in $ac_dummy; do
2253    test -z "$ac_dir" && ac_dir=.
2254    if test -f $ac_dir/$ac_word; then
2255      ac_cv_prog_CC="gcc"
2256      break
2257    fi
2258  done
2259  IFS="$ac_save_ifs"
2260fi
2261fi
2262CC="$ac_cv_prog_CC"
2263if test -n "$CC"; then
2264  echo "$ac_t""$CC" 1>&6
2265else
2266  echo "$ac_t""no" 1>&6
2267fi
2268
2269if test -z "$CC"; then
2270  # Extract the first word of "cc", so it can be a program name with args.
2271set dummy cc; ac_word=$2
2272echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2273echo "configure:2274: checking for $ac_word" >&5
2274if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2275  echo $ac_n "(cached) $ac_c" 1>&6
2276else
2277  if test -n "$CC"; then
2278  ac_cv_prog_CC="$CC" # Let the user override the test.
2279else
2280  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2281  ac_prog_rejected=no
2282  ac_dummy="$PATH"
2283  for ac_dir in $ac_dummy; do
2284    test -z "$ac_dir" && ac_dir=.
2285    if test -f $ac_dir/$ac_word; then
2286      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2287        ac_prog_rejected=yes
2288        continue
2289      fi
2290      ac_cv_prog_CC="cc"
2291      break
2292    fi
2293  done
2294  IFS="$ac_save_ifs"
2295if test $ac_prog_rejected = yes; then
2296  # We found a bogon in the path, so make sure we never use it.
2297  set dummy $ac_cv_prog_CC
2298  shift
2299  if test $# -gt 0; then
2300    # We chose a different compiler from the bogus one.
2301    # However, it has the same basename, so the bogon will be chosen
2302    # first if we set CC to just the basename; use the full file name.
2303    shift
2304    set dummy "$ac_dir/$ac_word" "$@"
2305    shift
2306    ac_cv_prog_CC="$@"
2307  fi
2308fi
2309fi
2310fi
2311CC="$ac_cv_prog_CC"
2312if test -n "$CC"; then
2313  echo "$ac_t""$CC" 1>&6
2314else
2315  echo "$ac_t""no" 1>&6
2316fi
2317
2318  if test -z "$CC"; then
2319    case "`uname -s`" in
2320    *win32* | *WIN32*)
2321      # Extract the first word of "cl", so it can be a program name with args.
2322set dummy cl; ac_word=$2
2323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2324echo "configure:2325: checking for $ac_word" >&5
2325if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2326  echo $ac_n "(cached) $ac_c" 1>&6
2327else
2328  if test -n "$CC"; then
2329  ac_cv_prog_CC="$CC" # Let the user override the test.
2330else
2331  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2332  ac_dummy="$PATH"
2333  for ac_dir in $ac_dummy; do
2334    test -z "$ac_dir" && ac_dir=.
2335    if test -f $ac_dir/$ac_word; then
2336      ac_cv_prog_CC="cl"
2337      break
2338    fi
2339  done
2340  IFS="$ac_save_ifs"
2341fi
2342fi
2343CC="$ac_cv_prog_CC"
2344if test -n "$CC"; then
2345  echo "$ac_t""$CC" 1>&6
2346else
2347  echo "$ac_t""no" 1>&6
2348fi
2349 ;;
2350    esac
2351  fi
2352  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2353fi
2354
2355echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2356echo "configure:2357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2357
2358ac_ext=c
2359# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2362ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2363cross_compiling=$ac_cv_prog_cc_cross
2364
2365cat > conftest.$ac_ext << EOF
2366
2367#line 2368 "configure"
2368#include "confdefs.h"
2369
2370main(){return(0);}
2371EOF
2372if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2373  ac_cv_prog_cc_works=yes
2374  # If we can't run a trivial program, we are probably using a cross compiler.
2375  if (./conftest; exit) 2>/dev/null; then
2376    ac_cv_prog_cc_cross=no
2377  else
2378    ac_cv_prog_cc_cross=yes
2379  fi
2380else
2381  echo "configure: failed program was:" >&5
2382  cat conftest.$ac_ext >&5
2383  ac_cv_prog_cc_works=no
2384fi
2385rm -fr conftest*
2386ac_ext=c
2387# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2390ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2391cross_compiling=$ac_cv_prog_cc_cross
2392
2393echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2394if test $ac_cv_prog_cc_works = no; then
2395  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2396fi
2397echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2398echo "configure:2399: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2399echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2400cross_compiling=$ac_cv_prog_cc_cross
2401
2402echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2403echo "configure:2404: checking whether we are using GNU C" >&5
2404if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2405  echo $ac_n "(cached) $ac_c" 1>&6
2406else
2407  cat > conftest.c <<EOF
2408#ifdef __GNUC__
2409  yes;
2410#endif
2411EOF
2412if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2413  ac_cv_prog_gcc=yes
2414else
2415  ac_cv_prog_gcc=no
2416fi
2417fi
2418
2419echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2420
2421if test $ac_cv_prog_gcc = yes; then
2422  GCC=yes
2423else
2424  GCC=
2425fi
2426
2427ac_test_CFLAGS="${CFLAGS+set}"
2428ac_save_CFLAGS="$CFLAGS"
2429CFLAGS=
2430echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2431echo "configure:2432: checking whether ${CC-cc} accepts -g" >&5
2432if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2433  echo $ac_n "(cached) $ac_c" 1>&6
2434else
2435  echo 'void f(){}' > conftest.c
2436if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2437  ac_cv_prog_cc_g=yes
2438else
2439  ac_cv_prog_cc_g=no
2440fi
2441rm -f conftest*
2442
2443fi
2444
2445echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2446if test "$ac_test_CFLAGS" = set; then
2447  CFLAGS="$ac_save_CFLAGS"
2448elif test $ac_cv_prog_cc_g = yes; then
2449  if test "$GCC" = yes; then
2450    CFLAGS="-g -O2"
2451  else
2452    CFLAGS="-g"
2453  fi
2454else
2455  if test "$GCC" = yes; then
2456    CFLAGS="-O2"
2457  else
2458    CFLAGS=
2459  fi
2460fi
2461
2462
2463if test "$RTEMS_CPU" = "unix" ; then
2464   
2465
2466echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
2467echo "configure:2468: checking whether $RTEMS_HOST supports System V semaphores" >&5
2468if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
2469  echo $ac_n "(cached) $ac_c" 1>&6
2470else
2471 
2472if test "$cross_compiling" = yes; then
2473  :
2474else
2475  cat > conftest.$ac_ext <<EOF
2476#line 2477 "configure"
2477#include "confdefs.h"
2478
2479#include <sys/types.h>
2480#include <sys/ipc.h>
2481#include <sys/sem.h>
2482int main () {
2483#if !defined(sun)
2484  union semun arg ;
2485#else
2486  union semun {
2487    int val;
2488    struct semid_ds *buf;
2489    ushort *array;
2490  } arg;
2491#endif
2492  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
2493  if (id == -1)
2494    exit(1);
2495  arg.val = 0; /* avoid implicit type cast to union */
2496  if (semctl(id, 0, IPC_RMID, arg) == -1)
2497    exit(1);
2498  exit(0);
2499}
2500
2501EOF
2502if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2503then
2504  rtems_cv_sysv_sem="yes"
2505else
2506  echo "configure: failed program was:" >&5
2507  cat conftest.$ac_ext >&5
2508  rm -fr conftest*
2509  rtems_cv_sysv_sem="no"
2510fi
2511rm -fr conftest*
2512fi
2513
2514
2515fi
2516
2517echo "$ac_t""$rtems_cv_sysv_sem" 1>&6
2518
2519  if test "$rtems_cv_sysv_sem" != "yes" ; then
2520    { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; }
2521  fi
2522   
2523
2524echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
2525echo "configure:2526: checking whether $RTEMS_HOST supports System V shared memory" >&5
2526if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
2527  echo $ac_n "(cached) $ac_c" 1>&6
2528else
2529 
2530if test "$cross_compiling" = yes; then
2531  :
2532else
2533  cat > conftest.$ac_ext <<EOF
2534#line 2535 "configure"
2535#include "confdefs.h"
2536
2537#include <sys/types.h>
2538#include <sys/ipc.h>
2539#include <sys/shm.h>
2540int main () {
2541  int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
2542  if (id == -1)
2543    exit(1);
2544  if (shmctl(id, IPC_RMID, 0) == -1)
2545    exit(1);
2546  exit(0);
2547}
2548
2549EOF
2550if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2551then
2552  rtems_cv_sysv_shm="yes"
2553else
2554  echo "configure: failed program was:" >&5
2555  cat conftest.$ac_ext >&5
2556  rm -fr conftest*
2557  rtems_cv_sysv_shm="no"
2558fi
2559rm -fr conftest*
2560fi
2561
2562
2563fi
2564
2565echo "$ac_t""$rtems_cv_sysv_shm" 1>&6
2566
2567  if test "$rtems_cv_sysv_shm" != "yes" ; then
2568    { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; }
2569  fi
2570   
2571
2572echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
2573echo "configure:2574: checking whether $RTEMS_HOST supports System V messages" >&5
2574if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
2575  echo $ac_n "(cached) $ac_c" 1>&6
2576else
2577 
2578if test "$cross_compiling" = yes; then
2579  :
2580else
2581  cat > conftest.$ac_ext <<EOF
2582#line 2583 "configure"
2583#include "confdefs.h"
2584
2585#include <sys/types.h>
2586#include <sys/ipc.h>
2587#include <sys/msg.h>
2588int main () {
2589  int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
2590  if (id == -1)
2591    exit(1);
2592  if (msgctl(id, IPC_RMID, 0) == -1)
2593    exit(1);
2594  exit(0);
2595}
2596
2597EOF
2598if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2599then
2600  rtems_cv_sysv_msg="yes"
2601else
2602  echo "configure: failed program was:" >&5
2603  cat conftest.$ac_ext >&5
2604  rm -fr conftest*
2605  rtems_cv_sysv_msg="no"
2606fi
2607rm -fr conftest*
2608fi
2609
2610
2611fi
2612
2613echo "$ac_t""$rtems_cv_sysv_msg" 1>&6
2614
2615  if test "$rtems_cv_sysv_msg" != "yes" ; then
2616    { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; }
2617  fi
2618fi
2619
2620
2621echo $ac_n "checking for newlib""... $ac_c" 1>&6
2622echo "configure:2623: checking for newlib" >&5
2623if eval "test \"`echo '$''{'rtems_cv_use_newlib'+set}'`\" = set"; then
2624  echo $ac_n "(cached) $ac_c" 1>&6
2625else
2626 
2627    rtems_save_CC=$CC
2628    CC=$CC_FOR_TARGET
2629
2630    cat > conftest.$ac_ext <<EOF
2631#line 2632 "configure"
2632#include "confdefs.h"
2633extern int not_required_by_rtems() ;
2634int main() {
2635not_required_by_rtems()
2636; return 0; }
2637EOF
2638if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2639  rm -rf conftest*
2640  rtems_cv_use_newlib="yes"
2641else
2642  echo "configure: failed program was:" >&5
2643  cat conftest.$ac_ext >&5
2644fi
2645rm -f conftest*
2646
2647    if test -z "$rtems_cv_use_newlib"; then
2648      cat > conftest.$ac_ext <<EOF
2649#line 2650 "configure"
2650#include "confdefs.h"
2651extern int rtems_provides_crt0 ;
2652int main() {
2653rtems_provides_crt0 = 0
2654; return 0; }
2655EOF
2656if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657  rm -rf conftest*
2658  rtems_cv_use_newlib="yes"
2659else
2660  echo "configure: failed program was:" >&5
2661  cat conftest.$ac_ext >&5
2662  rm -rf conftest*
2663  rtems_cv_use_newlib="no"
2664fi
2665rm -f conftest*
2666    fi
2667  CC=$rtems_save_CC
2668fi
2669
2670echo "$ac_t""$rtems_cv_use_newlib" 1>&6
2671RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
2672
2673
2674
2675# Check if there is custom/*.cfg for this BSP
2676echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
2677echo "configure:2678: checking for make/custom/$RTEMS_BSP.cfg" >&5
2678if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
2679  echo "$ac_t""yes" 1>&6
2680else
2681  { echo "configure: error: no" 1>&2; exit 1; }
2682fi
2683
2684
2685echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6
2686echo "configure:2687: checking whether BSP supports multiprocessing" >&5
2687if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then
2688  echo $ac_n "(cached) $ac_c" 1>&6
2689else
2690      if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP}/shmsupp"; then
2691      if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then
2692        rtems_cv_HAS_MP="yes" ;
2693      else
2694        rtems_cv_HAS_MP="disabled";
2695      fi
2696    else
2697      rtems_cv_HAS_MP="no";
2698    fi
2699 
2700fi
2701
2702echo "$ac_t""$rtems_cv_HAS_MP" 1>&6
2703if test "$rtems_cv_HAS_MP" = "yes"; then
2704HAS_MP="yes"
2705else
2706HAS_MP="no"
2707fi
2708
2709
2710
2711# find all the Executive Makefiles
2712
2713echo $ac_n "checking for Makefile.in in score/cpu/$RTEMS_CPU""... $ac_c" 1>&6
2714echo "configure:2715: checking for Makefile.in in score/cpu/$RTEMS_CPU" >&5
2715if test -d $srcdir/score/cpu/$RTEMS_CPU; then
2716  rtems_av_save_dir=`pwd`;
2717  cd $srcdir;
2718  rtems_av_tmp=`find score/cpu/$RTEMS_CPU -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2719  makefiles="$makefiles $rtems_av_tmp";
2720  cd $rtems_av_save_dir;
2721  echo "$ac_t""done" 1>&6
2722else
2723  echo "$ac_t""no" 1>&6
2724fi
2725
2726
2727
2728# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
2729if test "$RTEMS_USE_MACROS" = "yes"; then
2730  inline_dir="macros"
2731  if test "$RTEMS_HAS_POSIX_API" = "yes"; then
2732    # The problem is that there is currently no code in posix/macros :)
2733    { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }
2734  fi
2735else
2736  inline_dir="inline"
2737fi
2738
2739if test "$RTEMS_HAS_POSIX_API" = "yes"; then
2740  makefiles="$makefiles posix/Makefile"
2741  makefiles="$makefiles posix/src/Makefile"
2742  makefiles="$makefiles posix/include/Makefile"
2743  makefiles="$makefiles posix/include/sys/Makefile"
2744  makefiles="$makefiles posix/include/rtems/Makefile"
2745  makefiles="$makefiles posix/include/rtems/posix/Makefile"
2746  makefiles="$makefiles posix/include/wrap/Makefile"
2747  makefiles="$makefiles posix/optman/Makefile"
2748  makefiles="$makefiles wrapup/posix/Makefile"
2749
2750  makefiles="$makefiles posix/${inline_dir}/Makefile"
2751  makefiles="$makefiles posix/${inline_dir}/rtems/Makefile"
2752  makefiles="$makefiles posix/${inline_dir}/rtems/posix/Makefile"
2753fi
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766# Try to explicitly list a Makefile here
2767trap '' 1 2 15
2768cat > confcache <<\EOF
2769# This file is a shell script that caches the results of configure
2770# tests run on this system so they can be shared between configure
2771# scripts and configure runs.  It is not useful on other systems.
2772# If it contains results you don't want to keep, you may remove or edit it.
2773#
2774# By default, configure uses ./config.cache as the cache file,
2775# creating it if it does not exist already.  You can give configure
2776# the --cache-file=FILE option to use a different cache file; that is
2777# what configure does when it calls configure scripts in
2778# subdirectories, so they share the cache.
2779# Giving --cache-file=/dev/null disables caching, for debugging configure.
2780# config.status only pays attention to the cache file if you give it the
2781# --recheck option to rerun configure.
2782#
2783EOF
2784# The following way of writing the cache mishandles newlines in values,
2785# but we know of no workaround that is simple, portable, and efficient.
2786# So, don't put newlines in cache variables' values.
2787# Ultrix sh set writes to stderr and can't be redirected directly,
2788# and sets the high bit in the cache file unless we assign to the vars.
2789(set) 2>&1 |
2790  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2791  *ac_space=\ *)
2792    # `set' does not quote correctly, so add quotes (double-quote substitution
2793    # turns \\\\ into \\, and sed turns \\ into \).
2794    sed -n \
2795      -e "s/'/'\\\\''/g" \
2796      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2797    ;;
2798  *)
2799    # `set' quotes correctly as required by POSIX, so do not add quotes.
2800    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2801    ;;
2802  esac >> confcache
2803if cmp -s $cache_file confcache; then
2804  :
2805else
2806  if test -w $cache_file; then
2807    echo "updating cache $cache_file"
2808    cat confcache > $cache_file
2809  else
2810    echo "not updating unwritable cache $cache_file"
2811  fi
2812fi
2813rm -f confcache
2814
2815trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2816
2817test "x$prefix" = xNONE && prefix=$ac_default_prefix
2818# Let make expand exec_prefix.
2819test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2820
2821# Any assignment to VPATH causes Sun make to only execute
2822# the first set of double-colon rules, so remove it if not needed.
2823# If there is a colon in the path, we need to keep it.
2824if test "x$srcdir" = x.; then
2825  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2826fi
2827
2828trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2829
2830# Transform confdefs.h into DEFS.
2831# Protect against shell expansion while executing Makefile rules.
2832# Protect against Makefile macro expansion.
2833cat > conftest.defs <<\EOF
2834s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2835s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2836s%\[%\\&%g
2837s%\]%\\&%g
2838s%\$%$$%g
2839EOF
2840DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2841rm -f conftest.defs
2842
2843
2844# Without the "./", some shells look in PATH for config.status.
2845: ${CONFIG_STATUS=./config.status}
2846
2847echo creating $CONFIG_STATUS
2848rm -f $CONFIG_STATUS
2849cat > $CONFIG_STATUS <<EOF
2850#! /bin/sh
2851# Generated automatically by configure.
2852# Run this file to recreate the current configuration.
2853# This directory was configured as follows,
2854# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2855#
2856# $0 $ac_configure_args
2857#
2858# Compiler output produced by configure, useful for debugging
2859# configure, is in ./config.log if it exists.
2860
2861ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2862for ac_option
2863do
2864  case "\$ac_option" in
2865  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2866    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2867    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2868  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2869    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2870    exit 0 ;;
2871  -help | --help | --hel | --he | --h)
2872    echo "\$ac_cs_usage"; exit 0 ;;
2873  *) echo "\$ac_cs_usage"; exit 1 ;;
2874  esac
2875done
2876
2877ac_given_srcdir=$srcdir
2878ac_given_INSTALL="$INSTALL"
2879
2880trap 'rm -fr `echo "Makefile
2881rtems/Makefile
2882rtems/src/Makefile
2883rtems/include/Makefile
2884rtems/include/wrap/Makefile
2885rtems/include/rtems/Makefile
2886rtems/include/rtems/rtems/Makefile
2887rtems/optman/Makefile
2888rtems/${inline_dir}/Makefile
2889rtems/${inline_dir}/rtems/Makefile
2890rtems/${inline_dir}/rtems/rtems/Makefile
2891sapi/Makefile
2892sapi/src/Makefile
2893sapi/include/Makefile
2894sapi/include/wrap/Makefile
2895sapi/include/rtems/Makefile
2896sapi/include/rtems/sptables.h
2897sapi/${inline_dir}/Makefile
2898sapi/${inline_dir}/rtems/Makefile
2899sapi/optman/Makefile
2900score/Makefile
2901score/cpu/Makefile
2902score/include/Makefile
2903score/include/rtems/Makefile
2904score/include/rtems/wrap/Makefile
2905score/include/rtems/score/Makefile
2906score/${inline_dir}/Makefile
2907score/${inline_dir}/rtems/Makefile
2908score/${inline_dir}/rtems/score/Makefile
2909score/src/Makefile
2910wrapup/Makefile
2911wrapup/rtems/Makefile
2912$makefiles
2913" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2914EOF
2915cat >> $CONFIG_STATUS <<EOF
2916
2917# Protect against being on the right side of a sed subst in config.status.
2918sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2919 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2920$ac_vpsub
2921$extrasub
2922s%@SHELL@%$SHELL%g
2923s%@CFLAGS@%$CFLAGS%g
2924s%@CPPFLAGS@%$CPPFLAGS%g
2925s%@CXXFLAGS@%$CXXFLAGS%g
2926s%@FFLAGS@%$FFLAGS%g
2927s%@DEFS@%$DEFS%g
2928s%@LDFLAGS@%$LDFLAGS%g
2929s%@LIBS@%$LIBS%g
2930s%@exec_prefix@%$exec_prefix%g
2931s%@prefix@%$prefix%g
2932s%@program_transform_name@%$program_transform_name%g
2933s%@bindir@%$bindir%g
2934s%@sbindir@%$sbindir%g
2935s%@libexecdir@%$libexecdir%g
2936s%@datadir@%$datadir%g
2937s%@sysconfdir@%$sysconfdir%g
2938s%@sharedstatedir@%$sharedstatedir%g
2939s%@localstatedir@%$localstatedir%g
2940s%@libdir@%$libdir%g
2941s%@includedir@%$includedir%g
2942s%@oldincludedir@%$oldincludedir%g
2943s%@infodir@%$infodir%g
2944s%@mandir@%$mandir%g
2945s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
2946s%@SET_MAKE@%$SET_MAKE%g
2947s%@host@%$host%g
2948s%@host_alias@%$host_alias%g
2949s%@host_cpu@%$host_cpu%g
2950s%@host_vendor@%$host_vendor%g
2951s%@host_os@%$host_os%g
2952s%@target@%$target%g
2953s%@target_alias@%$target_alias%g
2954s%@target_cpu@%$target_cpu%g
2955s%@target_vendor@%$target_vendor%g
2956s%@target_os@%$target_os%g
2957s%@build@%$build%g
2958s%@build_alias@%$build_alias%g
2959s%@build_cpu@%$build_cpu%g
2960s%@build_vendor@%$build_vendor%g
2961s%@build_os@%$build_os%g
2962s%@RTEMS_CPU@%$RTEMS_CPU%g
2963s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2964s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2965s%@MAINT@%$MAINT%g
2966s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g
2967s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
2968s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
2969s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
2970s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
2971s%@RTEMS_BSP@%$RTEMS_BSP%g
2972s%@LN_S@%$LN_S%g
2973s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2974s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2975s%@INSTALL_DATA@%$INSTALL_DATA%g
2976s%@KSH@%$KSH%g
2977s%@RTEMS_HOST@%$RTEMS_HOST%g
2978s%@PROJECT_ROOT@%$PROJECT_ROOT%g
2979s%@RTEMS_ROOT@%$RTEMS_ROOT%g
2980s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
2981s%@PACKHEX@%$PACKHEX%g
2982s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
2983s%@GCCSED@%$GCCSED%g
2984s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
2985s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
2986s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
2987s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
2988s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
2989s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
2990s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
2991s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
2992s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
2993s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g
2994s%@CC@%$CC%g
2995s%@RTEMS_USE_NEWLIB@%$RTEMS_USE_NEWLIB%g
2996s%@HAS_MP@%$HAS_MP%g
2997s%@RTEMS_VERSION@%$RTEMS_VERSION%g
2998s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
2999s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
3000s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
3001s%@program_prefix@%$program_prefix%g
3002s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g
3003s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g
3004s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g
3005s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g
3006
3007CEOF
3008EOF
3009
3010cat >> $CONFIG_STATUS <<\EOF
3011
3012# Split the substitutions into bite-sized pieces for seds with
3013# small command number limits, like on Digital OSF/1 and HP-UX.
3014ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3015ac_file=1 # Number of current file.
3016ac_beg=1 # First line for current file.
3017ac_end=$ac_max_sed_cmds # Line after last line for current file.
3018ac_more_lines=:
3019ac_sed_cmds=""
3020while $ac_more_lines; do
3021  if test $ac_beg -gt 1; then
3022    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3023  else
3024    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3025  fi
3026  if test ! -s conftest.s$ac_file; then
3027    ac_more_lines=false
3028    rm -f conftest.s$ac_file
3029  else
3030    if test -z "$ac_sed_cmds"; then
3031      ac_sed_cmds="sed -f conftest.s$ac_file"
3032    else
3033      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3034    fi
3035    ac_file=`expr $ac_file + 1`
3036    ac_beg=$ac_end
3037    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3038  fi
3039done
3040if test -z "$ac_sed_cmds"; then
3041  ac_sed_cmds=cat
3042fi
3043EOF
3044
3045cat >> $CONFIG_STATUS <<EOF
3046
3047CONFIG_FILES=\${CONFIG_FILES-"Makefile
3048rtems/Makefile
3049rtems/src/Makefile
3050rtems/include/Makefile
3051rtems/include/wrap/Makefile
3052rtems/include/rtems/Makefile
3053rtems/include/rtems/rtems/Makefile
3054rtems/optman/Makefile
3055rtems/${inline_dir}/Makefile
3056rtems/${inline_dir}/rtems/Makefile
3057rtems/${inline_dir}/rtems/rtems/Makefile
3058sapi/Makefile
3059sapi/src/Makefile
3060sapi/include/Makefile
3061sapi/include/wrap/Makefile
3062sapi/include/rtems/Makefile
3063sapi/include/rtems/sptables.h
3064sapi/${inline_dir}/Makefile
3065sapi/${inline_dir}/rtems/Makefile
3066sapi/optman/Makefile
3067score/Makefile
3068score/cpu/Makefile
3069score/include/Makefile
3070score/include/rtems/Makefile
3071score/include/rtems/wrap/Makefile
3072score/include/rtems/score/Makefile
3073score/${inline_dir}/Makefile
3074score/${inline_dir}/rtems/Makefile
3075score/${inline_dir}/rtems/score/Makefile
3076score/src/Makefile
3077wrapup/Makefile
3078wrapup/rtems/Makefile
3079$makefiles
3080"}
3081EOF
3082cat >> $CONFIG_STATUS <<\EOF
3083for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3084  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3085  case "$ac_file" in
3086  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3087       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3088  *) ac_file_in="${ac_file}.in" ;;
3089  esac
3090
3091  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3092
3093  # Remove last slash and all that follows it.  Not all systems have dirname.
3094  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3095  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3096    # The file is in a subdirectory.
3097    test ! -d "$ac_dir" && mkdir "$ac_dir"
3098    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3099    # A "../" for each directory in $ac_dir_suffix.
3100    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3101  else
3102    ac_dir_suffix= ac_dots=
3103  fi
3104
3105  case "$ac_given_srcdir" in
3106  .)  srcdir=.
3107      if test -z "$ac_dots"; then top_srcdir=.
3108      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3109  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3110  *) # Relative path.
3111    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3112    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3113  esac
3114
3115  case "$ac_given_INSTALL" in
3116  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3117  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3118  esac
3119
3120  echo creating "$ac_file"
3121  rm -f "$ac_file"
3122  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3123  case "$ac_file" in
3124  *Makefile*) ac_comsub="1i\\
3125# $configure_input" ;;
3126  *) ac_comsub= ;;
3127  esac
3128
3129  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3130  sed -e "$ac_comsub
3131s%@configure_input@%$configure_input%g
3132s%@srcdir@%$srcdir%g
3133s%@top_srcdir@%$top_srcdir%g
3134s%@INSTALL@%$INSTALL%g
3135" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3136fi; done
3137rm -f conftest.s*
3138
3139EOF
3140cat >> $CONFIG_STATUS <<EOF
3141
3142EOF
3143cat >> $CONFIG_STATUS <<\EOF
3144
3145exit 0
3146EOF
3147chmod +x $CONFIG_STATUS
3148rm -fr confdefs* $ac_clean_files
3149test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3150
3151
Note: See TracBrowser for help on using the repository browser.