source: rtems/c/src/librtems++/configure @ 4f021c0

4.104.114.84.95
Last change on this file since 4f021c0 was 473b4e5, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 4, 1999 at 1:30:15 PM

Regenerated.

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