source: rtems/c/src/lib/librdbg/configure @ 4075af6f

4.104.114.84.95
Last change on this file since 4075af6f was 4075af6f, checked in by Joel Sherrill <joel.sherrill@…>, on 10/05/99 at 13:49:54

Regenerated.

  • Property mode set to 100644
File size: 72.8 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-networking                  enable TCP/IP stack"
21ac_help="$ac_help
22  --enable-rdbg                        enable remote debugger"
23ac_help="$ac_help
24  --enable-libcdir=directory           set the directory for the C library"
25ac_help="$ac_help
26  --enable-bare-cpu-cflags             specify a particular cpu cflag
27                                       (bare bsp specific)"
28ac_help="$ac_help
29  --enable-bare-cpu-model              specify a particular cpu model
30                                       (bare bsp specific)"
31
32# Initialize some variables set by options.
33# The variables have the same names as the options, with
34# dashes changed to underlines.
35build=NONE
36cache_file=./config.cache
37exec_prefix=NONE
38host=NONE
39no_create=
40nonopt=NONE
41no_recursion=
42prefix=NONE
43program_prefix=NONE
44program_suffix=NONE
45program_transform_name=s,x,x,
46silent=
47site=
48srcdir=
49target=NONE
50verbose=
51x_includes=NONE
52x_libraries=NONE
53bindir='${exec_prefix}/bin'
54sbindir='${exec_prefix}/sbin'
55libexecdir='${exec_prefix}/libexec'
56datadir='${prefix}/share'
57sysconfdir='${prefix}/etc'
58sharedstatedir='${prefix}/com'
59localstatedir='${prefix}/var'
60libdir='${exec_prefix}/lib'
61includedir='${prefix}/include'
62oldincludedir='/usr/include'
63infodir='${prefix}/info'
64mandir='${prefix}/man'
65
66# Initialize some other variables.
67subdirs=
68MFLAGS= MAKEFLAGS=
69SHELL=${CONFIG_SHELL-/bin/sh}
70# Maximum number of lines to put in a shell here document.
71ac_max_here_lines=12
72
73ac_prev=
74for ac_option
75do
76
77  # If the previous option needs an argument, assign it.
78  if test -n "$ac_prev"; then
79    eval "$ac_prev=\$ac_option"
80    ac_prev=
81    continue
82  fi
83
84  case "$ac_option" in
85  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86  *) ac_optarg= ;;
87  esac
88
89  # Accept the important Cygnus configure options, so we can diagnose typos.
90
91  case "$ac_option" in
92
93  -bindir | --bindir | --bindi | --bind | --bin | --bi)
94    ac_prev=bindir ;;
95  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96    bindir="$ac_optarg" ;;
97
98  -build | --build | --buil | --bui | --bu)
99    ac_prev=build ;;
100  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101    build="$ac_optarg" ;;
102
103  -cache-file | --cache-file | --cache-fil | --cache-fi \
104  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105    ac_prev=cache_file ;;
106  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108    cache_file="$ac_optarg" ;;
109
110  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111    ac_prev=datadir ;;
112  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113  | --da=*)
114    datadir="$ac_optarg" ;;
115
116  -disable-* | --disable-*)
117    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118    # Reject names that are not valid shell variable names.
119    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121    fi
122    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123    eval "enable_${ac_feature}=no" ;;
124
125  -enable-* | --enable-*)
126    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127    # Reject names that are not valid shell variable names.
128    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130    fi
131    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132    case "$ac_option" in
133      *=*) ;;
134      *) ac_optarg=yes ;;
135    esac
136    eval "enable_${ac_feature}='$ac_optarg'" ;;
137
138  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140  | --exec | --exe | --ex)
141    ac_prev=exec_prefix ;;
142  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144  | --exec=* | --exe=* | --ex=*)
145    exec_prefix="$ac_optarg" ;;
146
147  -gas | --gas | --ga | --g)
148    # Obsolete; use --with-gas.
149    with_gas=yes ;;
150
151  -help | --help | --hel | --he)
152    # Omit some internal or obsolete options to make the list less imposing.
153    # This message is too long to be a string in the A/UX 3.1 sh.
154    cat << EOF
155Usage: configure [options] [host]
156Options: [defaults in brackets after descriptions]
157Configuration:
158  --cache-file=FILE       cache test results in FILE
159  --help                  print this message
160  --no-create             do not create output files
161  --quiet, --silent       do not print \`checking...' messages
162  --version               print the version of autoconf that created configure
163Directory and file names:
164  --prefix=PREFIX         install architecture-independent files in PREFIX
165                          [$ac_default_prefix]
166  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
167                          [same as prefix]
168  --bindir=DIR            user executables in DIR [EPREFIX/bin]
169  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
170  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
171  --datadir=DIR           read-only architecture-independent data in DIR
172                          [PREFIX/share]
173  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
174  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
175                          [PREFIX/com]
176  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
177  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
178  --includedir=DIR        C header files in DIR [PREFIX/include]
179  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
180  --infodir=DIR           info documentation in DIR [PREFIX/info]
181  --mandir=DIR            man documentation in DIR [PREFIX/man]
182  --srcdir=DIR            find the sources in DIR [configure dir or ..]
183  --program-prefix=PREFIX prepend PREFIX to installed program names
184  --program-suffix=SUFFIX append SUFFIX to installed program names
185  --program-transform-name=PROGRAM
186                          run sed PROGRAM on installed program names
187EOF
188    cat << EOF
189Host type:
190  --build=BUILD           configure for building on BUILD [BUILD=HOST]
191  --host=HOST             configure for HOST [guessed]
192  --target=TARGET         configure for TARGET [TARGET=HOST]
193Features and packages:
194  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
195  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
196  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
197  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
198  --x-includes=DIR        X include files are in DIR
199  --x-libraries=DIR       X library files are in DIR
200EOF
201    if test -n "$ac_help"; then
202      echo "--enable and --with options recognized:$ac_help"
203    fi
204    exit 0 ;;
205
206  -host | --host | --hos | --ho)
207    ac_prev=host ;;
208  -host=* | --host=* | --hos=* | --ho=*)
209    host="$ac_optarg" ;;
210
211  -includedir | --includedir | --includedi | --included | --include \
212  | --includ | --inclu | --incl | --inc)
213    ac_prev=includedir ;;
214  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215  | --includ=* | --inclu=* | --incl=* | --inc=*)
216    includedir="$ac_optarg" ;;
217
218  -infodir | --infodir | --infodi | --infod | --info | --inf)
219    ac_prev=infodir ;;
220  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221    infodir="$ac_optarg" ;;
222
223  -libdir | --libdir | --libdi | --libd)
224    ac_prev=libdir ;;
225  -libdir=* | --libdir=* | --libdi=* | --libd=*)
226    libdir="$ac_optarg" ;;
227
228  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229  | --libexe | --libex | --libe)
230    ac_prev=libexecdir ;;
231  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232  | --libexe=* | --libex=* | --libe=*)
233    libexecdir="$ac_optarg" ;;
234
235  -localstatedir | --localstatedir | --localstatedi | --localstated \
236  | --localstate | --localstat | --localsta | --localst \
237  | --locals | --local | --loca | --loc | --lo)
238    ac_prev=localstatedir ;;
239  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242    localstatedir="$ac_optarg" ;;
243
244  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245    ac_prev=mandir ;;
246  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247    mandir="$ac_optarg" ;;
248
249  -nfp | --nfp | --nf)
250    # Obsolete; use --without-fp.
251    with_fp=no ;;
252
253  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254  | --no-cr | --no-c)
255    no_create=yes ;;
256
257  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259    no_recursion=yes ;;
260
261  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263  | --oldin | --oldi | --old | --ol | --o)
264    ac_prev=oldincludedir ;;
265  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268    oldincludedir="$ac_optarg" ;;
269
270  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271    ac_prev=prefix ;;
272  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273    prefix="$ac_optarg" ;;
274
275  -program-prefix | --program-prefix | --program-prefi | --program-pref \
276  | --program-pre | --program-pr | --program-p)
277    ac_prev=program_prefix ;;
278  -program-prefix=* | --program-prefix=* | --program-prefi=* \
279  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280    program_prefix="$ac_optarg" ;;
281
282  -program-suffix | --program-suffix | --program-suffi | --program-suff \
283  | --program-suf | --program-su | --program-s)
284    ac_prev=program_suffix ;;
285  -program-suffix=* | --program-suffix=* | --program-suffi=* \
286  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287    program_suffix="$ac_optarg" ;;
288
289  -program-transform-name | --program-transform-name \
290  | --program-transform-nam | --program-transform-na \
291  | --program-transform-n | --program-transform- \
292  | --program-transform | --program-transfor \
293  | --program-transfo | --program-transf \
294  | --program-trans | --program-tran \
295  | --progr-tra | --program-tr | --program-t)
296    ac_prev=program_transform_name ;;
297  -program-transform-name=* | --program-transform-name=* \
298  | --program-transform-nam=* | --program-transform-na=* \
299  | --program-transform-n=* | --program-transform-=* \
300  | --program-transform=* | --program-transfor=* \
301  | --program-transfo=* | --program-transf=* \
302  | --program-trans=* | --program-tran=* \
303  | --progr-tra=* | --program-tr=* | --program-t=*)
304    program_transform_name="$ac_optarg" ;;
305
306  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307  | -silent | --silent | --silen | --sile | --sil)
308    silent=yes ;;
309
310  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311    ac_prev=sbindir ;;
312  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313  | --sbi=* | --sb=*)
314    sbindir="$ac_optarg" ;;
315
316  -sharedstatedir | --sharedstatedir | --sharedstatedi \
317  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318  | --sharedst | --shareds | --shared | --share | --shar \
319  | --sha | --sh)
320    ac_prev=sharedstatedir ;;
321  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324  | --sha=* | --sh=*)
325    sharedstatedir="$ac_optarg" ;;
326
327  -site | --site | --sit)
328    ac_prev=site ;;
329  -site=* | --site=* | --sit=*)
330    site="$ac_optarg" ;;
331
332  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333    ac_prev=srcdir ;;
334  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335    srcdir="$ac_optarg" ;;
336
337  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338  | --syscon | --sysco | --sysc | --sys | --sy)
339    ac_prev=sysconfdir ;;
340  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342    sysconfdir="$ac_optarg" ;;
343
344  -target | --target | --targe | --targ | --tar | --ta | --t)
345    ac_prev=target ;;
346  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347    target="$ac_optarg" ;;
348
349  -v | -verbose | --verbose | --verbos | --verbo | --verb)
350    verbose=yes ;;
351
352  -version | --version | --versio | --versi | --vers)
353    echo "configure generated by autoconf version 2.13"
354    exit 0 ;;
355
356  -with-* | --with-*)
357    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358    # Reject names that are not valid shell variable names.
359    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361    fi
362    ac_package=`echo $ac_package| sed 's/-/_/g'`
363    case "$ac_option" in
364      *=*) ;;
365      *) ac_optarg=yes ;;
366    esac
367    eval "with_${ac_package}='$ac_optarg'" ;;
368
369  -without-* | --without-*)
370    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371    # Reject names that are not valid shell variable names.
372    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374    fi
375    ac_package=`echo $ac_package| sed 's/-/_/g'`
376    eval "with_${ac_package}=no" ;;
377
378  --x)
379    # Obsolete; use --with-x.
380    with_x=yes ;;
381
382  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383  | --x-incl | --x-inc | --x-in | --x-i)
384    ac_prev=x_includes ;;
385  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387    x_includes="$ac_optarg" ;;
388
389  -x-libraries | --x-libraries | --x-librarie | --x-librari \
390  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391    ac_prev=x_libraries ;;
392  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394    x_libraries="$ac_optarg" ;;
395
396  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397    ;;
398
399  *)
400    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401      echo "configure: warning: $ac_option: invalid host type" 1>&2
402    fi
403    if test "x$nonopt" != xNONE; then
404      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405    fi
406    nonopt="$ac_option"
407    ;;
408
409  esac
410done
411
412if test -n "$ac_prev"; then
413  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414fi
415
416trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
418# File descriptor usage:
419# 0 standard input
420# 1 file creation
421# 2 errors and warnings
422# 3 some systems may open it to /dev/tty
423# 4 used on the Kubota Titan
424# 6 checking for... messages and results
425# 5 compiler messages saved in config.log
426if test "$silent" = yes; then
427  exec 6>/dev/null
428else
429  exec 6>&1
430fi
431exec 5>./config.log
432
433echo "\
434This file contains any messages produced by compilers while
435running configure, to aid debugging if configure makes a mistake.
436" 1>&5
437
438# Strip out --no-create and --no-recursion so they do not pile up.
439# Also quote any args containing shell metacharacters.
440ac_configure_args=
441for ac_arg
442do
443  case "$ac_arg" in
444  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445  | --no-cr | --no-c) ;;
446  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451  esac
452done
453
454# NLS nuisances.
455# Only set these to C if already set.  These must not be set unconditionally
456# because not all systems understand e.g. LANG=C (notably SCO).
457# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458# Non-C LC_CTYPE values break the ctype check.
459if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
460if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
463
464# confdefs.h avoids OS command line length limits that DEFS can exceed.
465rm -rf conftest* confdefs.h
466# AIX cpp loses on an empty file, so make sure it contains at least a newline.
467echo > confdefs.h
468
469# A filename unique to this package, relative to the directory that
470# configure is in, which we can look for to find out if srcdir is correct.
471ac_unique_file=awk.svc
472
473# Find the source files, if location was not specified.
474if test -z "$srcdir"; then
475  ac_srcdir_defaulted=yes
476  # Try the directory containing this script, then its parent.
477  ac_prog=$0
478  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480  srcdir=$ac_confdir
481  if test ! -r $srcdir/$ac_unique_file; then
482    srcdir=..
483  fi
484else
485  ac_srcdir_defaulted=no
486fi
487if test ! -r $srcdir/$ac_unique_file; then
488  if test "$ac_srcdir_defaulted" = yes; then
489    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490  else
491    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492  fi
493fi
494srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
496# Prefer explicitly selected file to automatically selected ones.
497if test -z "$CONFIG_SITE"; then
498  if test "x$prefix" != xNONE; then
499    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500  else
501    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502  fi
503fi
504for ac_site_file in $CONFIG_SITE; do
505  if test -r "$ac_site_file"; then
506    echo "loading site script $ac_site_file"
507    . "$ac_site_file"
508  fi
509done
510
511if test -r "$cache_file"; then
512  echo "loading cache $cache_file"
513  . $cache_file
514else
515  echo "creating cache $cache_file"
516  > $cache_file
517fi
518
519ac_ext=c
520# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521ac_cpp='$CPP $CPPFLAGS'
522ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524cross_compiling=$ac_cv_prog_cc_cross
525
526ac_exeext=
527ac_objext=o
528if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531    ac_n= ac_c='
532' ac_t='        '
533  else
534    ac_n=-n ac_c= ac_t=
535  fi
536else
537  ac_n= ac_c='\c' ac_t=
538fi
539
540
541
542# Check whether --with-target-subdir or --without-target-subdir was given.
543if test "${with_target_subdir+set}" = set; then
544  withval="$with_target_subdir"
545  TARGET_SUBDIR="$withval"
546else
547  TARGET_SUBDIR="."
548fi
549
550
551RTEMS_TOPdir="../../../..";
552
553
554echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
555echo "configure:556: checking for RTEMS Version" >&5
556if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
557RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
558sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
559else
560{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
561fi
562if test -z "$RTEMS_VERSION"; then
563{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
564fi
565echo "$ac_t""$RTEMS_VERSION" 1>&6
566
567ac_aux_dir=
568for ac_dir in ../../../.. $srcdir/../../../..; do
569  if test -f $ac_dir/install-sh; then
570    ac_aux_dir=$ac_dir
571    ac_install_sh="$ac_aux_dir/install-sh -c"
572    break
573  elif test -f $ac_dir/install.sh; then
574    ac_aux_dir=$ac_dir
575    ac_install_sh="$ac_aux_dir/install.sh -c"
576    break
577  fi
578done
579if test -z "$ac_aux_dir"; then
580  { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
581fi
582ac_config_guess=$ac_aux_dir/config.guess
583ac_config_sub=$ac_aux_dir/config.sub
584ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
585
586
587
588
589# Do some error checking and defaulting for the host and target type.
590# The inputs are:
591#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
592#
593# The rules are:
594# 1. You are not allowed to specify --host, --target, and nonopt at the
595#    same time.
596# 2. Host defaults to nonopt.
597# 3. If nonopt is not specified, then host defaults to the current host,
598#    as determined by config.guess.
599# 4. Target and build default to nonopt.
600# 5. If nonopt is not specified, then target and build default to host.
601
602# The aliases save the names the user supplied, while $host etc.
603# will get canonicalized.
604case $host---$target---$nonopt in
605NONE---*---* | *---NONE---* | *---*---NONE) ;;
606*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
607esac
608
609
610# Make sure we can run config.sub.
611if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
612else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
613fi
614
615echo $ac_n "checking host system type""... $ac_c" 1>&6
616echo "configure:617: checking host system type" >&5
617
618host_alias=$host
619case "$host_alias" in
620NONE)
621  case $nonopt in
622  NONE)
623    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
624    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
625    fi ;;
626  *) host_alias=$nonopt ;;
627  esac ;;
628esac
629
630host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
631host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634echo "$ac_t""$host" 1>&6
635
636echo $ac_n "checking target system type""... $ac_c" 1>&6
637echo "configure:638: checking target system type" >&5
638
639target_alias=$target
640case "$target_alias" in
641NONE)
642  case $nonopt in
643  NONE) target_alias=$host_alias ;;
644  *) target_alias=$nonopt ;;
645  esac ;;
646esac
647
648target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
649target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652echo "$ac_t""$target" 1>&6
653
654echo $ac_n "checking build system type""... $ac_c" 1>&6
655echo "configure:656: checking build system type" >&5
656
657build_alias=$build
658case "$build_alias" in
659NONE)
660  case $nonopt in
661  NONE) build_alias=$host_alias ;;
662  *) build_alias=$nonopt ;;
663  esac ;;
664esac
665
666build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
667build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
668build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
669build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670echo "$ac_t""$build" 1>&6
671
672test "$host_alias" != "$target_alias" &&
673  test "$program_prefix$program_suffix$program_transform_name" = \
674    NONENONEs,x,x, &&
675  program_prefix=${target_alias}-
676
677echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
678echo "configure:679: checking rtems target cpu" >&5
679case "${target}" in
680  # hpux unix port should go here
681  i[3456]86-go32-rtems*)
682        RTEMS_CPU=i386
683        ;;
684  i[3456]86-pc-linux*)          # unix "simulator" port
685        RTEMS_CPU=unix
686        ;;
687  i[3456]86-*freebsd2*)         # unix "simulator" port
688        RTEMS_CPU=unix
689        ;;
690  no_cpu-*rtems*)
691        RTEMS_CPU=no_cpu
692        ;;
693  sparc-sun-solaris*)           # unix "simulator" port
694        RTEMS_CPU=unix
695        ;;
696  *)
697        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
698        ;;
699esac
700
701echo "$ac_t""$RTEMS_CPU" 1>&6
702
703
704echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
705echo "configure:706: checking whether ${MAKE-make} sets \${MAKE}" >&5
706set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
707if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
708  echo $ac_n "(cached) $ac_c" 1>&6
709else
710  cat > conftestmake <<\EOF
711all:
712        @echo 'ac_maketemp="${MAKE}"'
713EOF
714# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
715eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
716if test -n "$ac_maketemp"; then
717  eval ac_cv_prog_make_${ac_make}_set=yes
718else
719  eval ac_cv_prog_make_${ac_make}_set=no
720fi
721rm -f conftestmake
722fi
723if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
724  echo "$ac_t""yes" 1>&6
725  SET_MAKE=
726else
727  echo "$ac_t""no" 1>&6
728  SET_MAKE="MAKE=${MAKE-make}"
729fi
730
731# Find a good install program.  We prefer a C program (faster),
732# so one script is as good as another.  But avoid the broken or
733# incompatible versions:
734# SysV /etc/install, /usr/sbin/install
735# SunOS /usr/etc/install
736# IRIX /sbin/install
737# AIX /bin/install
738# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
739# AFS /usr/afsws/bin/install, which mishandles nonexistent args
740# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
741# ./install, which can be erroneously created by make from ./install.sh.
742echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
743echo "configure:744: checking for a BSD compatible install" >&5
744if test -z "$INSTALL"; then
745if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
746  echo $ac_n "(cached) $ac_c" 1>&6
747else
748    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
749  for ac_dir in $PATH; do
750    # Account for people who put trailing slashes in PATH elements.
751    case "$ac_dir/" in
752    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
753    *)
754      # OSF1 and SCO ODT 3.0 have their own names for install.
755      # Don't use installbsd from OSF since it installs stuff as root
756      # by default.
757      for ac_prog in ginstall scoinst install; do
758        if test -f $ac_dir/$ac_prog; then
759          if test $ac_prog = install &&
760            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
761            # AIX install.  It has an incompatible calling convention.
762            :
763          else
764            ac_cv_path_install="$ac_dir/$ac_prog -c"
765            break 2
766          fi
767        fi
768      done
769      ;;
770    esac
771  done
772  IFS="$ac_save_IFS"
773
774fi
775  if test "${ac_cv_path_install+set}" = set; then
776    INSTALL="$ac_cv_path_install"
777  else
778    # As a last resort, use the slow shell script.  We don't cache a
779    # path for INSTALL within a source directory, because that will
780    # break other packages using the cache if that directory is
781    # removed, or if the path is relative.
782    INSTALL="$ac_install_sh"
783  fi
784fi
785echo "$ac_t""$INSTALL" 1>&6
786
787# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
788# It thinks the first close brace ends the variable substitution.
789test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
790
791test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
792
793test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
794
795# AM_INIT_AUTOMAKE(rtems-c-src-lib-librdbg,$RTEMS_VERSION,no)
796echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
797echo "configure:798: checking whether to enable maintainer-specific portions of Makefiles" >&5
798    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
799if test "${enable_maintainer_mode+set}" = set; then
800  enableval="$enable_maintainer_mode"
801  USE_MAINTAINER_MODE=$enableval
802else
803  USE_MAINTAINER_MODE=no
804fi
805
806  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
807 
808
809if test $USE_MAINTAINER_MODE = yes; then
810  MAINTAINER_MODE_TRUE=
811  MAINTAINER_MODE_FALSE='#'
812else
813  MAINTAINER_MODE_TRUE='#'
814  MAINTAINER_MODE_FALSE=
815fi
816  MAINT=$MAINTAINER_MODE_TRUE
817 
818
819
820
821
822# Check whether --enable-networking or --disable-networking was given.
823if test "${enable_networking+set}" = set; then
824  enableval="$enable_networking"
825  case "${enableval}" in
826  yes) RTEMS_HAS_NETWORKING=yes ;;
827  no) RTEMS_HAS_NETWORKING=no ;;
828  *)  { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;
829esac
830else
831  RTEMS_HAS_NETWORKING=yes
832fi
833
834
835
836
837# Check whether --enable-rdbg or --disable-rdbg was given.
838if test "${enable_rdbg+set}" = set; then
839  enableval="$enable_rdbg"
840  case "${enableval}" in
841  yes) RTEMS_HAS_RDBG=yes ;;
842  no) RTEMS_HAS_RDBG=no ;;
843  *)  { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;;
844esac
845else
846  RTEMS_HAS_RDBG=no
847fi
848
849
850
851# Check whether --enable-libcdir or --disable-libcdir was given.
852if test "${enable_libcdir+set}" = set; then
853  enableval="$enable_libcdir"
854   RTEMS_LIBC_DIR="${enableval}" ; \
855test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
856fi
857
858
859
860# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
861if test "${enable_bare_cpu_cflags+set}" = set; then
862  enableval="$enable_bare_cpu_cflags"
863  case "${enableval}" in
864  no) BARE_CPU_CFLAGS="" ;;
865  *)    BARE_CPU_CFLAGS="${enableval}" ;;
866esac
867else
868  BARE_CPU_CFLAGS=""
869fi
870
871
872# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
873if test "${enable_bare_cpu_model+set}" = set; then
874  enableval="$enable_bare_cpu_model"
875  case "${enableval}" in
876  no)   BARE_CPU_MODEL="" ;;
877  *)    BARE_CPU_MODEL="${enableval}" ;;
878esac
879else
880  BARE_CPU_MODEL=""
881fi
882
883
884
885
886echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
887echo "configure:888: checking for RTEMS_BSP" >&5
888if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
889  echo $ac_n "(cached) $ac_c" 1>&6
890else
891    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
892
893fi
894if test -z "$rtems_cv_RTEMS_BSP"; then
895  { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }
896fi
897RTEMS_BSP="$rtems_cv_RTEMS_BSP"
898echo "$ac_t""${RTEMS_BSP}" 1>&6
899
900
901
902
903
904
905# Is this a supported CPU?
906echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
907echo "configure:908: checking if cpu $RTEMS_CPU is supported" >&5
908if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
909  echo "$ac_t""yes" 1>&6
910else
911  { echo "configure: error: no" 1>&2; exit 1; }
912fi
913
914
915RTEMS_HOST=$host_os
916case "${target}" in
917  # hpux unix port should go here
918  i[3456]86-pc-linux*)         # unix "simulator" port
919        RTEMS_HOST=Linux
920        ;;
921  i[3456]86-*freebsd2*) # unix "simulator" port
922        RTEMS_HOST=FreeBSD
923        ;;
924  sparc-sun-solaris*)             # unix "simulator" port
925        RTEMS_HOST=Solaris
926        ;;
927  *)
928        ;;
929esac
930
931
932
933
934if test "$TARGET_SUBDIR" = "." ; then
935PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
936else
937PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
938fi
939
940
941RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
942
943
944INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
945
946
947PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
948
949
950
951
952if [ "${program_prefix}" = "NONE" ] ; then
953  if [ "${target}" = "${host}" ] ; then
954    program_prefix=
955  else
956    program_prefix=${target}-
957  fi
958fi
959
960
961
962
963for ac_prog in "$program_prefix"gcc "$program_prefix"cc
964do
965# Extract the first word of "$ac_prog", so it can be a program name with args.
966set dummy $ac_prog; ac_word=$2
967echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968echo "configure:969: checking for $ac_word" >&5
969if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
970  echo $ac_n "(cached) $ac_c" 1>&6
971else
972  case "$CC_FOR_TARGET" in
973  /*)
974  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
975  ;;
976  ?:/*)                 
977  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path.
978  ;;
979  *)
980  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
981  ac_dummy="$PATH"
982  for ac_dir in $ac_dummy; do
983    test -z "$ac_dir" && ac_dir=.
984    if test -f $ac_dir/$ac_word; then
985      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
986      break
987    fi
988  done
989  IFS="$ac_save_ifs"
990  ;;
991esac
992fi
993CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
994if test -n "$CC_FOR_TARGET"; then
995  echo "$ac_t""$CC_FOR_TARGET" 1>&6
996else
997  echo "$ac_t""no" 1>&6
998fi
999
1000test -n "$CC_FOR_TARGET" && break
1001done
1002
1003test -z "$CC_FOR_TARGET" \
1004  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1005
1006rtems_save_CC=$CC
1007rtems_save_CFLAGS=$CFLAGS
1008
1009CC=$CC_FOR_TARGET
1010
1011echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1012echo "configure:1013: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1013
1014ac_ext=c
1015# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1016ac_cpp='$CPP $CPPFLAGS'
1017ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1018ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1019cross_compiling=$ac_cv_prog_cc_cross
1020
1021cat > conftest.$ac_ext << EOF
1022
1023#line 1024 "configure"
1024#include "confdefs.h"
1025
1026main(){return(0);}
1027EOF
1028if { (eval echo configure:1029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1029  ac_cv_prog_cc_works=yes
1030  # If we can't run a trivial program, we are probably using a cross compiler.
1031  if (./conftest; exit) 2>/dev/null; then
1032    ac_cv_prog_cc_cross=no
1033  else
1034    ac_cv_prog_cc_cross=yes
1035  fi
1036else
1037  echo "configure: failed program was:" >&5
1038  cat conftest.$ac_ext >&5
1039  ac_cv_prog_cc_works=no
1040fi
1041rm -fr conftest*
1042ac_ext=c
1043# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1044ac_cpp='$CPP $CPPFLAGS'
1045ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1046ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1047cross_compiling=$ac_cv_prog_cc_cross
1048
1049echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1050if test $ac_cv_prog_cc_works = no; then
1051  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1052fi
1053echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1054echo "configure:1055: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1055echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1056cross_compiling=$ac_cv_prog_cc_cross
1057
1058echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1059echo "configure:1060: checking whether we are using GNU C" >&5
1060if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1061  echo $ac_n "(cached) $ac_c" 1>&6
1062else
1063  cat > conftest.c <<EOF
1064#ifdef __GNUC__
1065  yes;
1066#endif
1067EOF
1068if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1069  ac_cv_prog_gcc=yes
1070else
1071  ac_cv_prog_gcc=no
1072fi
1073fi
1074
1075echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1076
1077if test $ac_cv_prog_gcc = yes; then
1078  GCC=yes
1079  ac_test_CFLAGS="${CFLAGS+set}"
1080  ac_save_CFLAGS="$CFLAGS"
1081  CFLAGS=
1082  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1083echo "configure:1084: checking whether ${CC-cc} accepts -g" >&5
1084if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1085  echo $ac_n "(cached) $ac_c" 1>&6
1086else
1087  echo 'void f(){}' > conftest.c
1088if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1089  ac_cv_prog_cc_g=yes
1090else
1091  ac_cv_prog_cc_g=no
1092fi
1093rm -f conftest*
1094
1095fi
1096
1097echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1098  if test "$ac_test_CFLAGS" = set; then
1099    CFLAGS="$ac_save_CFLAGS"
1100  elif test $ac_cv_prog_cc_g = yes; then
1101    CFLAGS="-g -O2"
1102  else
1103    CFLAGS="-O2"
1104  fi
1105else
1106  GCC=
1107  test "${CFLAGS+set}" = set || CFLAGS="-g"
1108fi
1109
1110rtems_cv_prog_gcc=$ac_cv_prog_gcc
1111rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1112rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1113rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1114
1115CC=$rtems_save_CC
1116CFLAGS=$rtems_save_CFLAGS
1117
1118unset ac_cv_prog_gcc
1119unset ac_cv_prog_cc_g
1120unset ac_cv_prog_cc_works
1121unset ac_cv_prog_cc_cross
1122
1123
1124echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1125echo "configure:1126: checking whether $CC_FOR_TARGET accepts -specs" >&5
1126if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1127  echo $ac_n "(cached) $ac_c" 1>&6
1128else
1129 
1130rtems_cv_gcc_specs=no
1131if test "$rtems_cv_prog_gcc" = "yes"; then
1132  touch confspec
1133  echo 'void f(){}' >conftest.c
1134  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1135    rtems_cv_gcc_specs=yes
1136  fi
1137fi
1138rm -f confspec conftest*
1139
1140fi
1141
1142echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1143 
1144
1145echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1146echo "configure:1147: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1147if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1148  echo $ac_n "(cached) $ac_c" 1>&6
1149else
1150 
1151rtems_cv_gcc_pipe=no
1152if test "$rtems_cv_prog_gcc" = "yes"; then
1153case "$host_os" in
1154  cygwin*)
1155    ;;
1156  *)
1157    echo 'void f(){}' >conftest.c
1158    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1159      rtems_cv_gcc_pipe=yes
1160    fi
1161    rm -f conftest*
1162    ;;
1163esac
1164fi
1165
1166fi
1167
1168echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1169
1170if test "$RTEMS_USE_GCC272" != "yes" ; then
1171  if test "$rtems_cv_gcc_specs" = "no"; then
1172    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1173      RTEMS_USE_GCC272=yes
1174  fi
1175fi
1176test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1177
1178case $host_os in
1179*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
1180*) ;;
1181esac
1182
1183
1184
1185 
1186echo $ac_n "checking target's ar""... $ac_c" 1>&6
1187echo "configure:1188: checking target's ar" >&5
1188if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1189  echo $ac_n "(cached) $ac_c" 1>&6
1190else
1191  :
1192fi
1193
1194echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
1195
1196if test -n "$ac_cv_path_AR_FOR_TARGET"; then
1197    AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
1198else
1199    if test -z "$AR_FOR_TARGET" ; then
1200    if test "$rtems_cv_prog_gcc" = "yes"; then
1201      # We are using gcc, ask it about its tool
1202      # NOTE: Necessary if gcc was configured to use the target's
1203      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1204       case $host_os in
1205  *cygwin*)
1206            AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' `
1207    ;;
1208  *)
1209    AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
1210    ;;
1211  esac
1212
1213    fi
1214  else
1215    # The user set an environment variable.
1216    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1217    # will override the environment variable, which isn't what the user
1218    # intends
1219    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1220echo "configure:1221: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
1221    case "$AR_FOR_TARGET" in
1222    /*) # valid
1223      echo "$ac_t"""yes"" 1>&6
1224    ;;
1225    *)  # invalid for AC_PATH_PROG
1226      echo "$ac_t"""no"" 1>&6
1227      { echo "configure: error: ***
1228        Environment variable AR_FOR_TARGET should either
1229        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1230    ;;
1231    esac
1232  fi
1233
1234  # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
1235set dummy "$program_prefix"ar; ac_word=$2
1236echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1237echo "configure:1238: checking for $ac_word" >&5
1238if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1239  echo $ac_n "(cached) $ac_c" 1>&6
1240else
1241  case "$AR_FOR_TARGET" in
1242  /*)
1243  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
1244  ;;
1245  ?:/*)                 
1246  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
1247  ;;
1248  *)
1249  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1250  ac_dummy="$PATH"
1251  for ac_dir in $ac_dummy; do
1252    test -z "$ac_dir" && ac_dir=.
1253    if test -f $ac_dir/$ac_word; then
1254      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
1255      break
1256    fi
1257  done
1258  IFS="$ac_save_ifs"
1259  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
1260  ;;
1261esac
1262fi
1263AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
1264if test -n "$AR_FOR_TARGET"; then
1265  echo "$ac_t""$AR_FOR_TARGET" 1>&6
1266else
1267  echo "$ac_t""no" 1>&6
1268fi
1269
1270fi
1271
1272 
1273echo $ac_n "checking target's as""... $ac_c" 1>&6
1274echo "configure:1275: checking target's as" >&5
1275if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1276  echo $ac_n "(cached) $ac_c" 1>&6
1277else
1278  :
1279fi
1280
1281echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
1282
1283if test -n "$ac_cv_path_AS_FOR_TARGET"; then
1284    AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
1285else
1286    if test -z "$AS_FOR_TARGET" ; then
1287    if test "$rtems_cv_prog_gcc" = "yes"; then
1288      # We are using gcc, ask it about its tool
1289      # NOTE: Necessary if gcc was configured to use the target's
1290      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1291       case $host_os in
1292  *cygwin*)
1293            AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' `
1294    ;;
1295  *)
1296    AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
1297    ;;
1298  esac
1299
1300    fi
1301  else
1302    # The user set an environment variable.
1303    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1304    # will override the environment variable, which isn't what the user
1305    # intends
1306    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1307echo "configure:1308: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
1308    case "$AS_FOR_TARGET" in
1309    /*) # valid
1310      echo "$ac_t"""yes"" 1>&6
1311    ;;
1312    *)  # invalid for AC_PATH_PROG
1313      echo "$ac_t"""no"" 1>&6
1314      { echo "configure: error: ***
1315        Environment variable AS_FOR_TARGET should either
1316        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1317    ;;
1318    esac
1319  fi
1320
1321  # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
1322set dummy "$program_prefix"as; ac_word=$2
1323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324echo "configure:1325: checking for $ac_word" >&5
1325if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1326  echo $ac_n "(cached) $ac_c" 1>&6
1327else
1328  case "$AS_FOR_TARGET" in
1329  /*)
1330  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
1331  ;;
1332  ?:/*)                 
1333  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
1334  ;;
1335  *)
1336  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1337  ac_dummy="$PATH"
1338  for ac_dir in $ac_dummy; do
1339    test -z "$ac_dir" && ac_dir=.
1340    if test -f $ac_dir/$ac_word; then
1341      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
1342      break
1343    fi
1344  done
1345  IFS="$ac_save_ifs"
1346  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
1347  ;;
1348esac
1349fi
1350AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
1351if test -n "$AS_FOR_TARGET"; then
1352  echo "$ac_t""$AS_FOR_TARGET" 1>&6
1353else
1354  echo "$ac_t""no" 1>&6
1355fi
1356
1357fi
1358
1359 
1360echo $ac_n "checking target's ld""... $ac_c" 1>&6
1361echo "configure:1362: checking target's ld" >&5
1362if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1363  echo $ac_n "(cached) $ac_c" 1>&6
1364else
1365  :
1366fi
1367
1368echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
1369
1370if test -n "$ac_cv_path_LD_FOR_TARGET"; then
1371    LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
1372else
1373    if test -z "$LD_FOR_TARGET" ; then
1374    if test "$rtems_cv_prog_gcc" = "yes"; then
1375      # We are using gcc, ask it about its tool
1376      # NOTE: Necessary if gcc was configured to use the target's
1377      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1378       case $host_os in
1379  *cygwin*)
1380            LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' `
1381    ;;
1382  *)
1383    LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
1384    ;;
1385  esac
1386
1387    fi
1388  else
1389    # The user set an environment variable.
1390    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1391    # will override the environment variable, which isn't what the user
1392    # intends
1393    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1394echo "configure:1395: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
1395    case "$LD_FOR_TARGET" in
1396    /*) # valid
1397      echo "$ac_t"""yes"" 1>&6
1398    ;;
1399    *)  # invalid for AC_PATH_PROG
1400      echo "$ac_t"""no"" 1>&6
1401      { echo "configure: error: ***
1402        Environment variable LD_FOR_TARGET should either
1403        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1404    ;;
1405    esac
1406  fi
1407
1408  # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
1409set dummy "$program_prefix"ld; ac_word=$2
1410echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1411echo "configure:1412: checking for $ac_word" >&5
1412if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1413  echo $ac_n "(cached) $ac_c" 1>&6
1414else
1415  case "$LD_FOR_TARGET" in
1416  /*)
1417  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
1418  ;;
1419  ?:/*)                 
1420  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
1421  ;;
1422  *)
1423  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1424  ac_dummy="$PATH"
1425  for ac_dir in $ac_dummy; do
1426    test -z "$ac_dir" && ac_dir=.
1427    if test -f $ac_dir/$ac_word; then
1428      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
1429      break
1430    fi
1431  done
1432  IFS="$ac_save_ifs"
1433  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
1434  ;;
1435esac
1436fi
1437LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
1438if test -n "$LD_FOR_TARGET"; then
1439  echo "$ac_t""$LD_FOR_TARGET" 1>&6
1440else
1441  echo "$ac_t""no" 1>&6
1442fi
1443
1444fi
1445
1446 
1447echo $ac_n "checking target's nm""... $ac_c" 1>&6
1448echo "configure:1449: checking target's nm" >&5
1449if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1450  echo $ac_n "(cached) $ac_c" 1>&6
1451else
1452  :
1453fi
1454
1455echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
1456
1457if test -n "$ac_cv_path_NM_FOR_TARGET"; then
1458    NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
1459else
1460    if test -z "$NM_FOR_TARGET" ; then
1461    if test "$rtems_cv_prog_gcc" = "yes"; then
1462      # We are using gcc, ask it about its tool
1463      # NOTE: Necessary if gcc was configured to use the target's
1464      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1465       case $host_os in
1466  *cygwin*)
1467            NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' `
1468    ;;
1469  *)
1470    NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
1471    ;;
1472  esac
1473
1474    fi
1475  else
1476    # The user set an environment variable.
1477    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1478    # will override the environment variable, which isn't what the user
1479    # intends
1480    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1481echo "configure:1482: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
1482    case "$NM_FOR_TARGET" in
1483    /*) # valid
1484      echo "$ac_t"""yes"" 1>&6
1485    ;;
1486    *)  # invalid for AC_PATH_PROG
1487      echo "$ac_t"""no"" 1>&6
1488      { echo "configure: error: ***
1489        Environment variable NM_FOR_TARGET should either
1490        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1491    ;;
1492    esac
1493  fi
1494
1495  # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
1496set dummy "$program_prefix"nm; ac_word=$2
1497echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1498echo "configure:1499: checking for $ac_word" >&5
1499if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1500  echo $ac_n "(cached) $ac_c" 1>&6
1501else
1502  case "$NM_FOR_TARGET" in
1503  /*)
1504  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
1505  ;;
1506  ?:/*)                 
1507  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
1508  ;;
1509  *)
1510  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1511  ac_dummy="$PATH"
1512  for ac_dir in $ac_dummy; do
1513    test -z "$ac_dir" && ac_dir=.
1514    if test -f $ac_dir/$ac_word; then
1515      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
1516      break
1517    fi
1518  done
1519  IFS="$ac_save_ifs"
1520  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
1521  ;;
1522esac
1523fi
1524NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
1525if test -n "$NM_FOR_TARGET"; then
1526  echo "$ac_t""$NM_FOR_TARGET" 1>&6
1527else
1528  echo "$ac_t""no" 1>&6
1529fi
1530
1531fi
1532
1533
1534 
1535echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
1536echo "configure:1537: checking target's ranlib" >&5
1537if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1538  echo $ac_n "(cached) $ac_c" 1>&6
1539else
1540  :
1541fi
1542
1543echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
1544
1545if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then
1546    RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1547else
1548    if test -z "$RANLIB_FOR_TARGET" ; then
1549    if test "$rtems_cv_prog_gcc" = "yes"; then
1550      # We are using gcc, ask it about its tool
1551      # NOTE: Necessary if gcc was configured to use the target's
1552      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1553       case $host_os in
1554  *cygwin*)
1555            RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' `
1556    ;;
1557  *)
1558    RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
1559    ;;
1560  esac
1561
1562    fi
1563  else
1564    # The user set an environment variable.
1565    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1566    # will override the environment variable, which isn't what the user
1567    # intends
1568    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1569echo "configure:1570: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
1570    case "$RANLIB_FOR_TARGET" in
1571    /*) # valid
1572      echo "$ac_t"""yes"" 1>&6
1573    ;;
1574    *)  # invalid for AC_PATH_PROG
1575      echo "$ac_t"""no"" 1>&6
1576      { echo "configure: error: ***
1577        Environment variable RANLIB_FOR_TARGET should either
1578        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1579    ;;
1580    esac
1581  fi
1582
1583  # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
1584set dummy "$program_prefix"ranlib; ac_word=$2
1585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1586echo "configure:1587: checking for $ac_word" >&5
1587if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1588  echo $ac_n "(cached) $ac_c" 1>&6
1589else
1590  case "$RANLIB_FOR_TARGET" in
1591  /*)
1592  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
1593  ;;
1594  ?:/*)                 
1595  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
1596  ;;
1597  *)
1598  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1599  ac_dummy="$PATH"
1600  for ac_dir in $ac_dummy; do
1601    test -z "$ac_dir" && ac_dir=.
1602    if test -f $ac_dir/$ac_word; then
1603      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
1604      break
1605    fi
1606  done
1607  IFS="$ac_save_ifs"
1608  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
1609  ;;
1610esac
1611fi
1612RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
1613if test -n "$RANLIB_FOR_TARGET"; then
1614  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
1615else
1616  echo "$ac_t""no" 1>&6
1617fi
1618
1619fi
1620
1621  if test "$RANLIB_FOR_TARGET" = "no"; then
1622    # ranlib wasn't found; check if ar -s is available
1623   
1624echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
1625echo "configure:1626: checking whether $AR_FOR_TARGET -s works" >&5
1626if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
1627  echo $ac_n "(cached) $ac_c" 1>&6
1628else
1629 
1630cat > conftest.$ac_ext <<EOF
1631int foo( int b )
1632{ return b; }
1633EOF
1634if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
1635  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
1636  && test -s conftest.a ; \
1637then
1638  rtems_cv_AR_FOR_TARGET_S="yes"
1639else
1640  rtems_cv_AR_FOR_TARGET_S="no"
1641fi
1642  rm -f conftest*
1643
1644fi
1645
1646echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6
1647
1648    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
1649            ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
1650      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1651    else
1652      { echo "configure: error: ***
1653        Can't figure out how to build a library index
1654        Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; }
1655    fi
1656  fi
1657
1658 
1659echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
1660echo "configure:1661: checking target's objcopy" >&5
1661if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
1662  echo $ac_n "(cached) $ac_c" 1>&6
1663else
1664  :
1665fi
1666
1667echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6
1668
1669if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then
1670    OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
1671else
1672    if test -z "$OBJCOPY_FOR_TARGET" ; then
1673    if test "$rtems_cv_prog_gcc" = "yes"; then
1674      # We are using gcc, ask it about its tool
1675      # NOTE: Necessary if gcc was configured to use the target's
1676      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1677       case $host_os in
1678  *cygwin*)
1679            OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' `
1680    ;;
1681  *)
1682    OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy`
1683    ;;
1684  esac
1685
1686    fi
1687  else
1688    # The user set an environment variable.
1689    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1690    # will override the environment variable, which isn't what the user
1691    # intends
1692    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1693echo "configure:1694: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
1694    case "$OBJCOPY_FOR_TARGET" in
1695    /*) # valid
1696      echo "$ac_t"""yes"" 1>&6
1697    ;;
1698    *)  # invalid for AC_PATH_PROG
1699      echo "$ac_t"""no"" 1>&6
1700      { echo "configure: error: ***
1701        Environment variable OBJCOPY_FOR_TARGET should either
1702        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1703    ;;
1704    esac
1705  fi
1706
1707  # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
1708set dummy "$program_prefix"objcopy; ac_word=$2
1709echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1710echo "configure:1711: checking for $ac_word" >&5
1711if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
1712  echo $ac_n "(cached) $ac_c" 1>&6
1713else
1714  case "$OBJCOPY_FOR_TARGET" in
1715  /*)
1716  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
1717  ;;
1718  ?:/*)                 
1719  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path.
1720  ;;
1721  *)
1722  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1723  ac_dummy="$PATH"
1724  for ac_dir in $ac_dummy; do
1725    test -z "$ac_dir" && ac_dir=.
1726    if test -f $ac_dir/$ac_word; then
1727      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
1728      break
1729    fi
1730  done
1731  IFS="$ac_save_ifs"
1732  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
1733  ;;
1734esac
1735fi
1736OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
1737if test -n "$OBJCOPY_FOR_TARGET"; then
1738  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
1739else
1740  echo "$ac_t""no" 1>&6
1741fi
1742
1743fi
1744
1745 
1746echo $ac_n "checking target's size""... $ac_c" 1>&6
1747echo "configure:1748: checking target's size" >&5
1748if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
1749  echo $ac_n "(cached) $ac_c" 1>&6
1750else
1751  :
1752fi
1753
1754echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6
1755
1756if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then
1757    SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET
1758else
1759    if test -z "$SIZE_FOR_TARGET" ; then
1760    if test "$rtems_cv_prog_gcc" = "yes"; then
1761      # We are using gcc, ask it about its tool
1762      # NOTE: Necessary if gcc was configured to use the target's
1763      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1764       case $host_os in
1765  *cygwin*)
1766            SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' `
1767    ;;
1768  *)
1769    SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size`
1770    ;;
1771  esac
1772
1773    fi
1774  else
1775    # The user set an environment variable.
1776    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1777    # will override the environment variable, which isn't what the user
1778    # intends
1779    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1780echo "configure:1781: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
1781    case "$SIZE_FOR_TARGET" in
1782    /*) # valid
1783      echo "$ac_t"""yes"" 1>&6
1784    ;;
1785    *)  # invalid for AC_PATH_PROG
1786      echo "$ac_t"""no"" 1>&6
1787      { echo "configure: error: ***
1788        Environment variable SIZE_FOR_TARGET should either
1789        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1790    ;;
1791    esac
1792  fi
1793
1794  # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
1795set dummy "$program_prefix"size; ac_word=$2
1796echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1797echo "configure:1798: checking for $ac_word" >&5
1798if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
1799  echo $ac_n "(cached) $ac_c" 1>&6
1800else
1801  case "$SIZE_FOR_TARGET" in
1802  /*)
1803  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
1804  ;;
1805  ?:/*)                 
1806  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path.
1807  ;;
1808  *)
1809  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1810  ac_dummy="$PATH"
1811  for ac_dir in $ac_dummy; do
1812    test -z "$ac_dir" && ac_dir=.
1813    if test -f $ac_dir/$ac_word; then
1814      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
1815      break
1816    fi
1817  done
1818  IFS="$ac_save_ifs"
1819  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
1820  ;;
1821esac
1822fi
1823SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
1824if test -n "$SIZE_FOR_TARGET"; then
1825  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
1826else
1827  echo "$ac_t""no" 1>&6
1828fi
1829
1830fi
1831
1832 
1833echo $ac_n "checking target's strip""... $ac_c" 1>&6
1834echo "configure:1835: checking target's strip" >&5
1835if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
1836  echo $ac_n "(cached) $ac_c" 1>&6
1837else
1838  :
1839fi
1840
1841echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
1842
1843if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then
1844    STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
1845else
1846    if test -z "$STRIP_FOR_TARGET" ; then
1847    if test "$rtems_cv_prog_gcc" = "yes"; then
1848      # We are using gcc, ask it about its tool
1849      # NOTE: Necessary if gcc was configured to use the target's
1850      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1851       case $host_os in
1852  *cygwin*)
1853            STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' `
1854    ;;
1855  *)
1856    STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip`
1857    ;;
1858  esac
1859
1860    fi
1861  else
1862    # The user set an environment variable.
1863    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1864    # will override the environment variable, which isn't what the user
1865    # intends
1866    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1867echo "configure:1868: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
1868    case "$STRIP_FOR_TARGET" in
1869    /*) # valid
1870      echo "$ac_t"""yes"" 1>&6
1871    ;;
1872    *)  # invalid for AC_PATH_PROG
1873      echo "$ac_t"""no"" 1>&6
1874      { echo "configure: error: ***
1875        Environment variable STRIP_FOR_TARGET should either
1876        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1877    ;;
1878    esac
1879  fi
1880
1881  # Extract the first word of ""$program_prefix"strip", so it can be a program name with args.
1882set dummy "$program_prefix"strip; ac_word=$2
1883echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1884echo "configure:1885: checking for $ac_word" >&5
1885if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
1886  echo $ac_n "(cached) $ac_c" 1>&6
1887else
1888  case "$STRIP_FOR_TARGET" in
1889  /*)
1890  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
1891  ;;
1892  ?:/*)                 
1893  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
1894  ;;
1895  *)
1896  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1897  ac_dummy="$PATH"
1898  for ac_dir in $ac_dummy; do
1899    test -z "$ac_dir" && ac_dir=.
1900    if test -f $ac_dir/$ac_word; then
1901      ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
1902      break
1903    fi
1904  done
1905  IFS="$ac_save_ifs"
1906  test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no"
1907  ;;
1908esac
1909fi
1910STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
1911if test -n "$STRIP_FOR_TARGET"; then
1912  echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
1913else
1914  echo "$ac_t""no" 1>&6
1915fi
1916
1917fi
1918
1919
1920
1921# Extract the first word of "rpcgen", so it can be a program name with args.
1922set dummy rpcgen; ac_word=$2
1923echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1924echo "configure:1925: checking for $ac_word" >&5
1925if eval "test \"`echo '$''{'ac_cv_prog_RPCGEN'+set}'`\" = set"; then
1926  echo $ac_n "(cached) $ac_c" 1>&6
1927else
1928  if test -n "$RPCGEN"; then
1929  ac_cv_prog_RPCGEN="$RPCGEN" # Let the user override the test.
1930else
1931  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1932  ac_dummy="$PATH"
1933  for ac_dir in $ac_dummy; do
1934    test -z "$ac_dir" && ac_dir=.
1935    if test -f $ac_dir/$ac_word; then
1936      ac_cv_prog_RPCGEN="rpcgen"
1937      break
1938    fi
1939  done
1940  IFS="$ac_save_ifs"
1941fi
1942fi
1943RPCGEN="$ac_cv_prog_RPCGEN"
1944if test -n "$RPCGEN"; then
1945  echo "$ac_t""$RPCGEN" 1>&6
1946else
1947  echo "$ac_t""no" 1>&6
1948fi
1949
1950for ac_prog in gawk mawk nawk awk
1951do
1952# Extract the first word of "$ac_prog", so it can be a program name with args.
1953set dummy $ac_prog; ac_word=$2
1954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955echo "configure:1956: checking for $ac_word" >&5
1956if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1957  echo $ac_n "(cached) $ac_c" 1>&6
1958else
1959  if test -n "$AWK"; then
1960  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1961else
1962  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1963  ac_dummy="$PATH"
1964  for ac_dir in $ac_dummy; do
1965    test -z "$ac_dir" && ac_dir=.
1966    if test -f $ac_dir/$ac_word; then
1967      ac_cv_prog_AWK="$ac_prog"
1968      break
1969    fi
1970  done
1971  IFS="$ac_save_ifs"
1972fi
1973fi
1974AWK="$ac_cv_prog_AWK"
1975if test -n "$AWK"; then
1976  echo "$ac_t""$AWK" 1>&6
1977else
1978  echo "$ac_t""no" 1>&6
1979fi
1980
1981test -n "$AWK" && break
1982done
1983
1984
1985if test "$RPCGEN" = "no"; then
1986  { echo "configure: error: missing rpcgen, required to build librdbg" 1>&2; exit 1; }
1987fi
1988if test "$AWK" = "no"; then
1989  { echo "configure: error: missing awk, required to build librdbg" 1>&2; exit 1; }
1990fi
1991
1992
1993
1994echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
1995echo "configure:1996: checking for make/custom/$RTEMS_BSP.cfg" >&5
1996if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
1997  echo "$ac_t""yes" 1>&6
1998else
1999  { echo "configure: error: no" 1>&2; exit 1; }
2000fi
2001
2002
2003    # account for "aliased" bsps which share source code
2004    case ${RTEMS_BSP} in
2005      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
2006      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
2007      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
2008      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
2009      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
2010      *)            bspdir=${RTEMS_BSP};;
2011    esac
2012
2013
2014echo $ac_n "checking whether BSP supports networking""... $ac_c" 1>&6
2015echo "configure:2016: checking whether BSP supports networking" >&5
2016if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then
2017  echo $ac_n "(cached) $ac_c" 1>&6
2018else
2019      case "$RTEMS_CPU" in
2020    unix*)
2021      rtems_cv_HAS_NETWORKING="no"
2022      ;;
2023    *)
2024      if test "${RTEMS_HAS_NETWORKING}" = "yes"; then
2025        rtems_cv_HAS_NETWORKING="yes";
2026      else
2027        rtems_cv_HAS_NETWORKING="disabled";
2028      fi
2029      ;;
2030    esac
2031fi
2032
2033echo "$ac_t""$rtems_cv_HAS_NETWORKING" 1>&6
2034if test "$rtems_cv_HAS_NETWORKING" = "yes"; then
2035  HAS_NETWORKING="yes";
2036else
2037  HAS_NETWORKING="no";
2038fi
2039
2040echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6
2041echo "configure:2042: checking whether BSP supports librdbg" >&5
2042if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then
2043  echo $ac_n "(cached) $ac_c" 1>&6
2044else
2045 
2046    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/librdbg/${RTEMS_CPU}/${bspdir}"; then
2047      rtems_cv_HAS_RDBG="yes" ;
2048    else
2049      rtems_cv_HAS_RDBG="no";
2050    fi
2051 
2052fi
2053
2054echo "$ac_t""$rtems_cv_HAS_RDBG" 1>&6
2055HAS_RDBG="$rtems_cv_HAS_RDBG"
2056
2057
2058
2059# Try to explicitly list a Makefile here
2060trap '' 1 2 15
2061cat > confcache <<\EOF
2062# This file is a shell script that caches the results of configure
2063# tests run on this system so they can be shared between configure
2064# scripts and configure runs.  It is not useful on other systems.
2065# If it contains results you don't want to keep, you may remove or edit it.
2066#
2067# By default, configure uses ./config.cache as the cache file,
2068# creating it if it does not exist already.  You can give configure
2069# the --cache-file=FILE option to use a different cache file; that is
2070# what configure does when it calls configure scripts in
2071# subdirectories, so they share the cache.
2072# Giving --cache-file=/dev/null disables caching, for debugging configure.
2073# config.status only pays attention to the cache file if you give it the
2074# --recheck option to rerun configure.
2075#
2076EOF
2077# The following way of writing the cache mishandles newlines in values,
2078# but we know of no workaround that is simple, portable, and efficient.
2079# So, don't put newlines in cache variables' values.
2080# Ultrix sh set writes to stderr and can't be redirected directly,
2081# and sets the high bit in the cache file unless we assign to the vars.
2082(set) 2>&1 |
2083  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2084  *ac_space=\ *)
2085    # `set' does not quote correctly, so add quotes (double-quote substitution
2086    # turns \\\\ into \\, and sed turns \\ into \).
2087    sed -n \
2088      -e "s/'/'\\\\''/g" \
2089      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2090    ;;
2091  *)
2092    # `set' quotes correctly as required by POSIX, so do not add quotes.
2093    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2094    ;;
2095  esac >> confcache
2096if cmp -s $cache_file confcache; then
2097  :
2098else
2099  if test -w $cache_file; then
2100    echo "updating cache $cache_file"
2101    cat confcache > $cache_file
2102  else
2103    echo "not updating unwritable cache $cache_file"
2104  fi
2105fi
2106rm -f confcache
2107
2108trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2109
2110test "x$prefix" = xNONE && prefix=$ac_default_prefix
2111# Let make expand exec_prefix.
2112test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2113
2114# Any assignment to VPATH causes Sun make to only execute
2115# the first set of double-colon rules, so remove it if not needed.
2116# If there is a colon in the path, we need to keep it.
2117if test "x$srcdir" = x.; then
2118  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2119fi
2120
2121trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2122
2123# Transform confdefs.h into DEFS.
2124# Protect against shell expansion while executing Makefile rules.
2125# Protect against Makefile macro expansion.
2126cat > conftest.defs <<\EOF
2127s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2128s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2129s%\[%\\&%g
2130s%\]%\\&%g
2131s%\$%$$%g
2132EOF
2133DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2134rm -f conftest.defs
2135
2136
2137# Without the "./", some shells look in PATH for config.status.
2138: ${CONFIG_STATUS=./config.status}
2139
2140echo creating $CONFIG_STATUS
2141rm -f $CONFIG_STATUS
2142cat > $CONFIG_STATUS <<EOF
2143#! /bin/sh
2144# Generated automatically by configure.
2145# Run this file to recreate the current configuration.
2146# This directory was configured as follows,
2147# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2148#
2149# $0 $ac_configure_args
2150#
2151# Compiler output produced by configure, useful for debugging
2152# configure, is in ./config.log if it exists.
2153
2154ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2155for ac_option
2156do
2157  case "\$ac_option" in
2158  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2159    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2160    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2161  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2162    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2163    exit 0 ;;
2164  -help | --help | --hel | --he | --h)
2165    echo "\$ac_cs_usage"; exit 0 ;;
2166  *) echo "\$ac_cs_usage"; exit 1 ;;
2167  esac
2168done
2169
2170ac_given_srcdir=$srcdir
2171ac_given_INSTALL="$INSTALL"
2172
2173trap 'rm -fr `echo "Makefile
2174i386/Makefile
2175i386/pc386/Makefile
2176powerpc/Makefile
2177powerpc/mcp750/Makefile
2178" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2179EOF
2180cat >> $CONFIG_STATUS <<EOF
2181
2182# Protect against being on the right side of a sed subst in config.status.
2183sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2184 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2185$ac_vpsub
2186$extrasub
2187s%@SHELL@%$SHELL%g
2188s%@CFLAGS@%$CFLAGS%g
2189s%@CPPFLAGS@%$CPPFLAGS%g
2190s%@CXXFLAGS@%$CXXFLAGS%g
2191s%@FFLAGS@%$FFLAGS%g
2192s%@DEFS@%$DEFS%g
2193s%@LDFLAGS@%$LDFLAGS%g
2194s%@LIBS@%$LIBS%g
2195s%@exec_prefix@%$exec_prefix%g
2196s%@prefix@%$prefix%g
2197s%@program_transform_name@%$program_transform_name%g
2198s%@bindir@%$bindir%g
2199s%@sbindir@%$sbindir%g
2200s%@libexecdir@%$libexecdir%g
2201s%@datadir@%$datadir%g
2202s%@sysconfdir@%$sysconfdir%g
2203s%@sharedstatedir@%$sharedstatedir%g
2204s%@localstatedir@%$localstatedir%g
2205s%@libdir@%$libdir%g
2206s%@includedir@%$includedir%g
2207s%@oldincludedir@%$oldincludedir%g
2208s%@infodir@%$infodir%g
2209s%@mandir@%$mandir%g
2210s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
2211s%@host@%$host%g
2212s%@host_alias@%$host_alias%g
2213s%@host_cpu@%$host_cpu%g
2214s%@host_vendor@%$host_vendor%g
2215s%@host_os@%$host_os%g
2216s%@target@%$target%g
2217s%@target_alias@%$target_alias%g
2218s%@target_cpu@%$target_cpu%g
2219s%@target_vendor@%$target_vendor%g
2220s%@target_os@%$target_os%g
2221s%@build@%$build%g
2222s%@build_alias@%$build_alias%g
2223s%@build_cpu@%$build_cpu%g
2224s%@build_vendor@%$build_vendor%g
2225s%@build_os@%$build_os%g
2226s%@RTEMS_CPU@%$RTEMS_CPU%g
2227s%@SET_MAKE@%$SET_MAKE%g
2228s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2229s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2230s%@INSTALL_DATA@%$INSTALL_DATA%g
2231s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2232s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2233s%@MAINT@%$MAINT%g
2234s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
2235s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g
2236s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
2237s%@RTEMS_BSP@%$RTEMS_BSP%g
2238s%@RTEMS_HOST@%$RTEMS_HOST%g
2239s%@PROJECT_ROOT@%$PROJECT_ROOT%g
2240s%@RTEMS_ROOT@%$RTEMS_ROOT%g
2241s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
2242s%@PACKHEX@%$PACKHEX%g
2243s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
2244s%@GCCSED@%$GCCSED%g
2245s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
2246s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
2247s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
2248s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
2249s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
2250s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
2251s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
2252s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
2253s%@RPCGEN@%$RPCGEN%g
2254s%@AWK@%$AWK%g
2255s%@HAS_NETWORKING@%$HAS_NETWORKING%g
2256s%@HAS_RDBG@%$HAS_RDBG%g
2257
2258CEOF
2259EOF
2260
2261cat >> $CONFIG_STATUS <<\EOF
2262
2263# Split the substitutions into bite-sized pieces for seds with
2264# small command number limits, like on Digital OSF/1 and HP-UX.
2265ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2266ac_file=1 # Number of current file.
2267ac_beg=1 # First line for current file.
2268ac_end=$ac_max_sed_cmds # Line after last line for current file.
2269ac_more_lines=:
2270ac_sed_cmds=""
2271while $ac_more_lines; do
2272  if test $ac_beg -gt 1; then
2273    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2274  else
2275    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2276  fi
2277  if test ! -s conftest.s$ac_file; then
2278    ac_more_lines=false
2279    rm -f conftest.s$ac_file
2280  else
2281    if test -z "$ac_sed_cmds"; then
2282      ac_sed_cmds="sed -f conftest.s$ac_file"
2283    else
2284      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2285    fi
2286    ac_file=`expr $ac_file + 1`
2287    ac_beg=$ac_end
2288    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2289  fi
2290done
2291if test -z "$ac_sed_cmds"; then
2292  ac_sed_cmds=cat
2293fi
2294EOF
2295
2296cat >> $CONFIG_STATUS <<EOF
2297
2298CONFIG_FILES=\${CONFIG_FILES-"Makefile
2299i386/Makefile
2300i386/pc386/Makefile
2301powerpc/Makefile
2302powerpc/mcp750/Makefile
2303"}
2304EOF
2305cat >> $CONFIG_STATUS <<\EOF
2306for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2307  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2308  case "$ac_file" in
2309  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2310       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2311  *) ac_file_in="${ac_file}.in" ;;
2312  esac
2313
2314  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2315
2316  # Remove last slash and all that follows it.  Not all systems have dirname.
2317  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2318  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2319    # The file is in a subdirectory.
2320    test ! -d "$ac_dir" && mkdir "$ac_dir"
2321    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2322    # A "../" for each directory in $ac_dir_suffix.
2323    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2324  else
2325    ac_dir_suffix= ac_dots=
2326  fi
2327
2328  case "$ac_given_srcdir" in
2329  .)  srcdir=.
2330      if test -z "$ac_dots"; then top_srcdir=.
2331      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2332  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2333  *) # Relative path.
2334    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2335    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2336  esac
2337
2338  case "$ac_given_INSTALL" in
2339  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2340  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2341  esac
2342
2343  echo creating "$ac_file"
2344  rm -f "$ac_file"
2345  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2346  case "$ac_file" in
2347  *Makefile*) ac_comsub="1i\\
2348# $configure_input" ;;
2349  *) ac_comsub= ;;
2350  esac
2351
2352  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2353  sed -e "$ac_comsub
2354s%@configure_input@%$configure_input%g
2355s%@srcdir@%$srcdir%g
2356s%@top_srcdir@%$top_srcdir%g
2357s%@INSTALL@%$INSTALL%g
2358" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2359fi; done
2360rm -f conftest.s*
2361
2362EOF
2363cat >> $CONFIG_STATUS <<EOF
2364
2365EOF
2366cat >> $CONFIG_STATUS <<\EOF
2367
2368exit 0
2369EOF
2370chmod +x $CONFIG_STATUS
2371rm -fr confdefs* $ac_clean_files
2372test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2373
Note: See TracBrowser for help on using the repository browser.