source: rtems/c/src/tests/psxtests/configure @ 473b4e5

4.104.114.84.95
Last change on this file since 473b4e5 was 473b4e5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/04/99 at 13:30:15

Regenerated.

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