source: rtems/c/src/librtems++/configure @ e1d8abb

4.104.114.84.95
Last change on this file since e1d8abb was e1d8abb, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 7, 1999 at 1:45:03 PM

Applied patch rtems-rc-19990820-6.diff.gz from
Ralf Corsepius <corsepiu@…> which converted many
Makefile.in's to Makefile.am's. This added a lot of files.

  • 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
880PACKAGE=rtems-c-src-librtems++
881
882VERSION=$RTEMS_VERSION
883
884if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
885  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
886fi
887
888
889
890missing_dir=`cd $ac_aux_dir && pwd`
891echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
892echo "configure:893: checking for working aclocal" >&5
893# Run test in a subshell; some versions of sh will print an error if
894# an executable is not found, even if stderr is redirected.
895# Redirect stdin to placate older versions of autoconf.  Sigh.
896if (aclocal --version) < /dev/null > /dev/null 2>&1; then
897   ACLOCAL=aclocal
898   echo "$ac_t""found" 1>&6
899else
900   ACLOCAL="$missing_dir/missing aclocal"
901   echo "$ac_t""missing" 1>&6
902fi
903
904echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
905echo "configure:906: checking for working autoconf" >&5
906# Run test in a subshell; some versions of sh will print an error if
907# an executable is not found, even if stderr is redirected.
908# Redirect stdin to placate older versions of autoconf.  Sigh.
909if (autoconf --version) < /dev/null > /dev/null 2>&1; then
910   AUTOCONF=autoconf
911   echo "$ac_t""found" 1>&6
912else
913   AUTOCONF="$missing_dir/missing autoconf"
914   echo "$ac_t""missing" 1>&6
915fi
916
917echo $ac_n "checking for working automake""... $ac_c" 1>&6
918echo "configure:919: checking for working automake" >&5
919# Run test in a subshell; some versions of sh will print an error if
920# an executable is not found, even if stderr is redirected.
921# Redirect stdin to placate older versions of autoconf.  Sigh.
922if (automake --version) < /dev/null > /dev/null 2>&1; then
923   AUTOMAKE=automake
924   echo "$ac_t""found" 1>&6
925else
926   AUTOMAKE="$missing_dir/missing automake"
927   echo "$ac_t""missing" 1>&6
928fi
929
930echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
931echo "configure:932: checking for working autoheader" >&5
932# Run test in a subshell; some versions of sh will print an error if
933# an executable is not found, even if stderr is redirected.
934# Redirect stdin to placate older versions of autoconf.  Sigh.
935if (autoheader --version) < /dev/null > /dev/null 2>&1; then
936   AUTOHEADER=autoheader
937   echo "$ac_t""found" 1>&6
938else
939   AUTOHEADER="$missing_dir/missing autoheader"
940   echo "$ac_t""missing" 1>&6
941fi
942
943echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
944echo "configure:945: checking for working makeinfo" >&5
945# Run test in a subshell; some versions of sh will print an error if
946# an executable is not found, even if stderr is redirected.
947# Redirect stdin to placate older versions of autoconf.  Sigh.
948if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
949   MAKEINFO=makeinfo
950   echo "$ac_t""found" 1>&6
951else
952   MAKEINFO="$missing_dir/missing makeinfo"
953   echo "$ac_t""missing" 1>&6
954fi
955
956
957echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
958echo "configure:959: checking whether to enable maintainer-specific portions of Makefiles" >&5
959    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
960if test "${enable_maintainer_mode+set}" = set; then
961  enableval="$enable_maintainer_mode"
962  USE_MAINTAINER_MODE=$enableval
963else
964  USE_MAINTAINER_MODE=no
965fi
966
967  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
968 
969
970if test $USE_MAINTAINER_MODE = yes; then
971  MAINTAINER_MODE_TRUE=
972  MAINTAINER_MODE_FALSE='#'
973else
974  MAINTAINER_MODE_TRUE='#'
975  MAINTAINER_MODE_FALSE=
976fi
977  MAINT=$MAINTAINER_MODE_TRUE
978 
979
980
981
982# Check whether --enable-cxx or --disable-cxx was given.
983if test "${enable_cxx+set}" = set; then
984  enableval="$enable_cxx"
985  case "${enableval}" in
986  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
987  no) RTEMS_HAS_CPLUSPLUS=no   ;;
988  *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
989esac
990else
991  RTEMS_HAS_CPLUSPLUS=no
992fi
993
994
995
996# Check whether --enable-libcdir or --disable-libcdir was given.
997if test "${enable_libcdir+set}" = set; then
998  enableval="$enable_libcdir"
999   RTEMS_LIBC_DIR="${enableval}" ; \
1000test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
1001fi
1002
1003
1004
1005echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
1006echo "configure:1007: checking for RTEMS_BSP" >&5
1007if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
1008  echo $ac_n "(cached) $ac_c" 1>&6
1009else
1010    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1011
1012fi
1013if test -z "$rtems_cv_RTEMS_BSP"; then
1014  { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }
1015fi
1016RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1017echo "$ac_t""${RTEMS_BSP}" 1>&6
1018
1019
1020
1021
1022# Is this a supported CPU?
1023echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
1024echo "configure:1025: checking if cpu $RTEMS_CPU is supported" >&5
1025if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
1026  echo "$ac_t""yes" 1>&6
1027else
1028  { echo "configure: error: no" 1>&2; exit 1; }
1029fi
1030
1031echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
1032echo "configure:1033: checking for make/custom/$RTEMS_BSP.cfg" >&5
1033if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
1034  echo "$ac_t""yes" 1>&6
1035else
1036  { echo "configure: error: no" 1>&2; exit 1; }
1037fi
1038
1039
1040
1041if [ "${program_prefix}" = "NONE" ] ; then
1042  if [ "${target}" = "${host}" ] ; then
1043    program_prefix=
1044  else
1045    program_prefix=${target}-
1046  fi
1047fi
1048
1049
1050
1051
1052for ac_prog in "$program_prefix"gcc "$program_prefix"cc
1053do
1054# Extract the first word of "$ac_prog", so it can be a program name with args.
1055set dummy $ac_prog; ac_word=$2
1056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057echo "configure:1058: checking for $ac_word" >&5
1058if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
1059  echo $ac_n "(cached) $ac_c" 1>&6
1060else
1061  case "$CC_FOR_TARGET" in
1062  /*)
1063  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
1064  ;;
1065  ?:/*)                 
1066  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path.
1067  ;;
1068  *)
1069  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1070  ac_dummy="$PATH"
1071  for ac_dir in $ac_dummy; do
1072    test -z "$ac_dir" && ac_dir=.
1073    if test -f $ac_dir/$ac_word; then
1074      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
1075      break
1076    fi
1077  done
1078  IFS="$ac_save_ifs"
1079  ;;
1080esac
1081fi
1082CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
1083if test -n "$CC_FOR_TARGET"; then
1084  echo "$ac_t""$CC_FOR_TARGET" 1>&6
1085else
1086  echo "$ac_t""no" 1>&6
1087fi
1088
1089test -n "$CC_FOR_TARGET" && break
1090done
1091
1092test -z "$CC_FOR_TARGET" \
1093  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1094
1095rtems_save_CC=$CC
1096rtems_save_CFLAGS=$CFLAGS
1097
1098CC=$CC_FOR_TARGET
1099
1100echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1101echo "configure:1102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1102
1103ac_ext=c
1104# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1105ac_cpp='$CPP $CPPFLAGS'
1106ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1107ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1108cross_compiling=$ac_cv_prog_cc_cross
1109
1110cat > conftest.$ac_ext << EOF
1111
1112#line 1113 "configure"
1113#include "confdefs.h"
1114
1115main(){return(0);}
1116EOF
1117if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1118  ac_cv_prog_cc_works=yes
1119  # If we can't run a trivial program, we are probably using a cross compiler.
1120  if (./conftest; exit) 2>/dev/null; then
1121    ac_cv_prog_cc_cross=no
1122  else
1123    ac_cv_prog_cc_cross=yes
1124  fi
1125else
1126  echo "configure: failed program was:" >&5
1127  cat conftest.$ac_ext >&5
1128  ac_cv_prog_cc_works=no
1129fi
1130rm -fr conftest*
1131ac_ext=c
1132# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1133ac_cpp='$CPP $CPPFLAGS'
1134ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1135ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1136cross_compiling=$ac_cv_prog_cc_cross
1137
1138echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1139if test $ac_cv_prog_cc_works = no; then
1140  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1141fi
1142echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1143echo "configure:1144: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1144echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1145cross_compiling=$ac_cv_prog_cc_cross
1146
1147echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1148echo "configure:1149: checking whether we are using GNU C" >&5
1149if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1150  echo $ac_n "(cached) $ac_c" 1>&6
1151else
1152  cat > conftest.c <<EOF
1153#ifdef __GNUC__
1154  yes;
1155#endif
1156EOF
1157if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1158  ac_cv_prog_gcc=yes
1159else
1160  ac_cv_prog_gcc=no
1161fi
1162fi
1163
1164echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165
1166if test $ac_cv_prog_gcc = yes; then
1167  GCC=yes
1168  ac_test_CFLAGS="${CFLAGS+set}"
1169  ac_save_CFLAGS="$CFLAGS"
1170  CFLAGS=
1171  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1172echo "configure:1173: checking whether ${CC-cc} accepts -g" >&5
1173if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1174  echo $ac_n "(cached) $ac_c" 1>&6
1175else
1176  echo 'void f(){}' > conftest.c
1177if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1178  ac_cv_prog_cc_g=yes
1179else
1180  ac_cv_prog_cc_g=no
1181fi
1182rm -f conftest*
1183
1184fi
1185
1186echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1187  if test "$ac_test_CFLAGS" = set; then
1188    CFLAGS="$ac_save_CFLAGS"
1189  elif test $ac_cv_prog_cc_g = yes; then
1190    CFLAGS="-g -O2"
1191  else
1192    CFLAGS="-O2"
1193  fi
1194else
1195  GCC=
1196  test "${CFLAGS+set}" = set || CFLAGS="-g"
1197fi
1198
1199rtems_cv_prog_gcc=$ac_cv_prog_gcc
1200rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1201rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1202rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1203
1204CC=$rtems_save_CC
1205CFLAGS=$rtems_save_CFLAGS
1206
1207unset ac_cv_prog_gcc
1208unset ac_cv_prog_cc_g
1209unset ac_cv_prog_cc_works
1210unset ac_cv_prog_cc_cross
1211
1212
1213echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1214echo "configure:1215: checking whether $CC_FOR_TARGET accepts -specs" >&5
1215if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1216  echo $ac_n "(cached) $ac_c" 1>&6
1217else
1218 
1219rtems_cv_gcc_specs=no
1220if test "$rtems_cv_prog_gcc" = "yes"; then
1221  touch confspec
1222  echo 'void f(){}' >conftest.c
1223  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1224    rtems_cv_gcc_specs=yes
1225  fi
1226fi
1227rm -f confspec conftest*
1228
1229fi
1230
1231echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1232 
1233
1234echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1235echo "configure:1236: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1236if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1237  echo $ac_n "(cached) $ac_c" 1>&6
1238else
1239 
1240rtems_cv_gcc_pipe=no
1241if test "$rtems_cv_prog_gcc" = "yes"; then
1242case "$host_os" in
1243  cygwin*)
1244    ;;
1245  *)
1246    echo 'void f(){}' >conftest.c
1247    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1248      rtems_cv_gcc_pipe=yes
1249    fi
1250    rm -f conftest*
1251    ;;
1252esac
1253fi
1254
1255fi
1256
1257echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1258
1259if test "$RTEMS_USE_GCC272" != "yes" ; then
1260  if test "$rtems_cv_gcc_specs" = "no"; then
1261    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1262      RTEMS_USE_GCC272=yes
1263  fi
1264fi
1265test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1266
1267case $host_os in
1268*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
1269*) ;;
1270esac
1271
1272
1273
1274 
1275
1276for ac_prog in "$program_prefix"g++ "$program_prefix"c++
1277do
1278# Extract the first word of "$ac_prog", so it can be a program name with args.
1279set dummy $ac_prog; ac_word=$2
1280echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1281echo "configure:1282: checking for $ac_word" >&5
1282if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
1283  echo $ac_n "(cached) $ac_c" 1>&6
1284else
1285  case "$CXX_FOR_TARGET" in
1286  /*)
1287  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
1288  ;;
1289  ?:/*)                 
1290  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path.
1291  ;;
1292  *)
1293  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1294  ac_dummy="$PATH"
1295  for ac_dir in $ac_dummy; do
1296    test -z "$ac_dir" && ac_dir=.
1297    if test -f $ac_dir/$ac_word; then
1298      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
1299      break
1300    fi
1301  done
1302  IFS="$ac_save_ifs"
1303  ;;
1304esac
1305fi
1306CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
1307if test -n "$CXX_FOR_TARGET"; then
1308  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
1309else
1310  echo "$ac_t""no" 1>&6
1311fi
1312
1313test -n "$CXX_FOR_TARGET" && break
1314done
1315
1316test -z "$CXX_FOR_TARGET" \
1317  && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1318
1319rtems_save_CXX=$CXX
1320rtems_save_CXXFLAGS=$CXXFLAGS
1321
1322CXX=$CXX_FOR_TARGET
1323
1324echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1325echo "configure:1326: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1326
1327ac_ext=C
1328# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1329ac_cpp='$CXXCPP $CPPFLAGS'
1330ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1331ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1332cross_compiling=$ac_cv_prog_cxx_cross
1333
1334cat > conftest.$ac_ext << EOF
1335
1336#line 1337 "configure"
1337#include "confdefs.h"
1338
1339int main(){return(0);}
1340EOF
1341if { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1342  ac_cv_prog_cxx_works=yes
1343  # If we can't run a trivial program, we are probably using a cross compiler.
1344  if (./conftest; exit) 2>/dev/null; then
1345    ac_cv_prog_cxx_cross=no
1346  else
1347    ac_cv_prog_cxx_cross=yes
1348  fi
1349else
1350  echo "configure: failed program was:" >&5
1351  cat conftest.$ac_ext >&5
1352  ac_cv_prog_cxx_works=no
1353fi
1354rm -fr conftest*
1355ac_ext=c
1356# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1357ac_cpp='$CPP $CPPFLAGS'
1358ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1359ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1360cross_compiling=$ac_cv_prog_cc_cross
1361
1362echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1363if test $ac_cv_prog_cxx_works = no; then
1364  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1365fi
1366echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1367echo "configure:1368: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1368echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1369cross_compiling=$ac_cv_prog_cxx_cross
1370
1371echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1372echo "configure:1373: checking whether we are using GNU C++" >&5
1373if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1374  echo $ac_n "(cached) $ac_c" 1>&6
1375else
1376  cat > conftest.C <<EOF
1377#ifdef __GNUC__
1378  yes;
1379#endif
1380EOF
1381if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1382  ac_cv_prog_gxx=yes
1383else
1384  ac_cv_prog_gxx=no
1385fi
1386fi
1387
1388echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1389
1390if test $ac_cv_prog_gxx = yes; then
1391  GXX=yes
1392  ac_test_CXXFLAGS="${CXXFLAGS+set}"
1393  ac_save_CXXFLAGS="$CXXFLAGS"
1394  CXXFLAGS=
1395  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1396echo "configure:1397: checking whether ${CXX-g++} accepts -g" >&5
1397if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1398  echo $ac_n "(cached) $ac_c" 1>&6
1399else
1400  echo 'void f(){}' > conftest.cc
1401if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1402  ac_cv_prog_cxx_g=yes
1403else
1404  ac_cv_prog_cxx_g=no
1405fi
1406rm -f conftest*
1407
1408fi
1409
1410echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1411  if test "$ac_test_CXXFLAGS" = set; then
1412    CXXFLAGS="$ac_save_CXXFLAGS"
1413  elif test $ac_cv_prog_cxx_g = yes; then
1414    CXXFLAGS="-g -O2"
1415  else
1416    CXXFLAGS="-O2"
1417  fi
1418else
1419  GXX=
1420  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1421fi
1422
1423rtems_cv_prog_gxx=$ac_cv_prog_gxx
1424rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
1425rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
1426rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
1427
1428CXX=$rtems_save_CXX
1429CXXFLAGS=$rtems_save_CXXFLAGS
1430
1431unset ac_cv_prog_gxx
1432unset ac_cv_prog_cc_g
1433unset ac_cv_prog_cxx_works
1434unset ac_cv_prog_cxx_cross
1435
1436  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
1437    { echo "configure: error: ***
1438     Inconsistency in compiler configuration:
1439     Target C compiler and Target C++ compiler
1440     must both either be cross compilers or native compilers
1441     Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
1442  fi
1443
1444echo $ac_n "checking whether to build rtems++""... $ac_c" 1>&6
1445echo "configure:1446: checking whether to build rtems++" >&5
1446if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then
1447  echo $ac_n "(cached) $ac_c" 1>&6
1448else
1449   if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
1450      if test -n "$CXX_FOR_TARGET"; then
1451        rtems_cv_HAS_CPLUSPLUS="yes"
1452      else
1453        rtems_cv_HAS_CPLUSPLUS="no"
1454      fi
1455    else
1456      rtems_cv_HAS_CPLUSPLUS="no"
1457    fi
1458fi
1459
1460echo "$ac_t""$rtems_cv_HAS_CPLUSPLUS" 1>&6
1461HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";
1462
1463if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
1464 
1465 
1466
1467for ac_prog in "$program_prefix"g++ "$program_prefix"c++
1468do
1469# Extract the first word of "$ac_prog", so it can be a program name with args.
1470set dummy $ac_prog; ac_word=$2
1471echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1472echo "configure:1473: checking for $ac_word" >&5
1473if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
1474  echo $ac_n "(cached) $ac_c" 1>&6
1475else
1476  case "$CXX_FOR_TARGET" in
1477  /*)
1478  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
1479  ;;
1480  ?:/*)                 
1481  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path.
1482  ;;
1483  *)
1484  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1485  ac_dummy="$PATH"
1486  for ac_dir in $ac_dummy; do
1487    test -z "$ac_dir" && ac_dir=.
1488    if test -f $ac_dir/$ac_word; then
1489      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
1490      break
1491    fi
1492  done
1493  IFS="$ac_save_ifs"
1494  ;;
1495esac
1496fi
1497CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
1498if test -n "$CXX_FOR_TARGET"; then
1499  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
1500else
1501  echo "$ac_t""no" 1>&6
1502fi
1503
1504test -n "$CXX_FOR_TARGET" && break
1505done
1506
1507test -z "$CXX_FOR_TARGET" \
1508  && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1509
1510rtems_save_CXX=$CXX
1511rtems_save_CXXFLAGS=$CXXFLAGS
1512
1513CXX=$CXX_FOR_TARGET
1514
1515echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1516echo "configure:1517: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1517
1518ac_ext=C
1519# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1520ac_cpp='$CXXCPP $CPPFLAGS'
1521ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1522ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1523cross_compiling=$ac_cv_prog_cxx_cross
1524
1525cat > conftest.$ac_ext << EOF
1526
1527#line 1528 "configure"
1528#include "confdefs.h"
1529
1530int main(){return(0);}
1531EOF
1532if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1533  ac_cv_prog_cxx_works=yes
1534  # If we can't run a trivial program, we are probably using a cross compiler.
1535  if (./conftest; exit) 2>/dev/null; then
1536    ac_cv_prog_cxx_cross=no
1537  else
1538    ac_cv_prog_cxx_cross=yes
1539  fi
1540else
1541  echo "configure: failed program was:" >&5
1542  cat conftest.$ac_ext >&5
1543  ac_cv_prog_cxx_works=no
1544fi
1545rm -fr conftest*
1546ac_ext=c
1547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1548ac_cpp='$CPP $CPPFLAGS'
1549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1551cross_compiling=$ac_cv_prog_cc_cross
1552
1553echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1554if test $ac_cv_prog_cxx_works = no; then
1555  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1556fi
1557echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1558echo "configure:1559: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1559echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1560cross_compiling=$ac_cv_prog_cxx_cross
1561
1562echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1563echo "configure:1564: checking whether we are using GNU C++" >&5
1564if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1565  echo $ac_n "(cached) $ac_c" 1>&6
1566else
1567  cat > conftest.C <<EOF
1568#ifdef __GNUC__
1569  yes;
1570#endif
1571EOF
1572if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1573  ac_cv_prog_gxx=yes
1574else
1575  ac_cv_prog_gxx=no
1576fi
1577fi
1578
1579echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1580
1581if test $ac_cv_prog_gxx = yes; then
1582  GXX=yes
1583  ac_test_CXXFLAGS="${CXXFLAGS+set}"
1584  ac_save_CXXFLAGS="$CXXFLAGS"
1585  CXXFLAGS=
1586  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1587echo "configure:1588: checking whether ${CXX-g++} accepts -g" >&5
1588if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1589  echo $ac_n "(cached) $ac_c" 1>&6
1590else
1591  echo 'void f(){}' > conftest.cc
1592if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1593  ac_cv_prog_cxx_g=yes
1594else
1595  ac_cv_prog_cxx_g=no
1596fi
1597rm -f conftest*
1598
1599fi
1600
1601echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1602  if test "$ac_test_CXXFLAGS" = set; then
1603    CXXFLAGS="$ac_save_CXXFLAGS"
1604  elif test $ac_cv_prog_cxx_g = yes; then
1605    CXXFLAGS="-g -O2"
1606  else
1607    CXXFLAGS="-O2"
1608  fi
1609else
1610  GXX=
1611  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1612fi
1613
1614rtems_cv_prog_gxx=$ac_cv_prog_gxx
1615rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
1616rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
1617rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
1618
1619CXX=$rtems_save_CXX
1620CXXFLAGS=$rtems_save_CXXFLAGS
1621
1622unset ac_cv_prog_gxx
1623unset ac_cv_prog_cc_g
1624unset ac_cv_prog_cxx_works
1625unset ac_cv_prog_cxx_cross
1626
1627  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
1628    { echo "configure: error: ***
1629     Inconsistency in compiler configuration:
1630     Target C compiler and Target C++ compiler
1631     must both either be cross compilers or native compilers
1632     Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
1633  fi
1634
1635fi
1636
1637 
1638echo $ac_n "checking target's ar""... $ac_c" 1>&6
1639echo "configure:1640: checking target's ar" >&5
1640if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1641  echo $ac_n "(cached) $ac_c" 1>&6
1642else
1643  :
1644fi
1645
1646echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
1647
1648if test -n "$ac_cv_path_AR_FOR_TARGET"; then
1649    AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
1650else
1651    if test -z "$AR_FOR_TARGET" ; then
1652    if test "$rtems_cv_prog_gcc" = "yes"; then
1653      # We are using gcc, ask it about its tool
1654      # NOTE: Necessary if gcc was configured to use the target's
1655      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1656       case $host_os in
1657  *cygwin*)
1658            AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' `
1659    ;;
1660  *)
1661    AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
1662    ;;
1663  esac
1664
1665    fi
1666  else
1667    # The user set an environment variable.
1668    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1669    # will override the environment variable, which isn't what the user
1670    # intends
1671    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1672echo "configure:1673: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
1673    case "$AR_FOR_TARGET" in
1674    /*) # valid
1675      echo "$ac_t"""yes"" 1>&6
1676    ;;
1677    *)  # invalid for AC_PATH_PROG
1678      echo "$ac_t"""no"" 1>&6
1679      { echo "configure: error: ***
1680        Environment variable AR_FOR_TARGET should either
1681        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1682    ;;
1683    esac
1684  fi
1685
1686  # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
1687set dummy "$program_prefix"ar; ac_word=$2
1688echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1689echo "configure:1690: checking for $ac_word" >&5
1690if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1691  echo $ac_n "(cached) $ac_c" 1>&6
1692else
1693  case "$AR_FOR_TARGET" in
1694  /*)
1695  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
1696  ;;
1697  ?:/*)                 
1698  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
1699  ;;
1700  *)
1701  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1702  ac_dummy="$PATH"
1703  for ac_dir in $ac_dummy; do
1704    test -z "$ac_dir" && ac_dir=.
1705    if test -f $ac_dir/$ac_word; then
1706      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
1707      break
1708    fi
1709  done
1710  IFS="$ac_save_ifs"
1711  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
1712  ;;
1713esac
1714fi
1715AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
1716if test -n "$AR_FOR_TARGET"; then
1717  echo "$ac_t""$AR_FOR_TARGET" 1>&6
1718else
1719  echo "$ac_t""no" 1>&6
1720fi
1721
1722fi
1723
1724 
1725echo $ac_n "checking target's as""... $ac_c" 1>&6
1726echo "configure:1727: checking target's as" >&5
1727if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1728  echo $ac_n "(cached) $ac_c" 1>&6
1729else
1730  :
1731fi
1732
1733echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
1734
1735if test -n "$ac_cv_path_AS_FOR_TARGET"; then
1736    AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
1737else
1738    if test -z "$AS_FOR_TARGET" ; then
1739    if test "$rtems_cv_prog_gcc" = "yes"; then
1740      # We are using gcc, ask it about its tool
1741      # NOTE: Necessary if gcc was configured to use the target's
1742      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1743       case $host_os in
1744  *cygwin*)
1745            AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' `
1746    ;;
1747  *)
1748    AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
1749    ;;
1750  esac
1751
1752    fi
1753  else
1754    # The user set an environment variable.
1755    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1756    # will override the environment variable, which isn't what the user
1757    # intends
1758    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1759echo "configure:1760: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
1760    case "$AS_FOR_TARGET" in
1761    /*) # valid
1762      echo "$ac_t"""yes"" 1>&6
1763    ;;
1764    *)  # invalid for AC_PATH_PROG
1765      echo "$ac_t"""no"" 1>&6
1766      { echo "configure: error: ***
1767        Environment variable AS_FOR_TARGET should either
1768        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1769    ;;
1770    esac
1771  fi
1772
1773  # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
1774set dummy "$program_prefix"as; ac_word=$2
1775echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1776echo "configure:1777: checking for $ac_word" >&5
1777if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1778  echo $ac_n "(cached) $ac_c" 1>&6
1779else
1780  case "$AS_FOR_TARGET" in
1781  /*)
1782  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
1783  ;;
1784  ?:/*)                 
1785  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
1786  ;;
1787  *)
1788  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1789  ac_dummy="$PATH"
1790  for ac_dir in $ac_dummy; do
1791    test -z "$ac_dir" && ac_dir=.
1792    if test -f $ac_dir/$ac_word; then
1793      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
1794      break
1795    fi
1796  done
1797  IFS="$ac_save_ifs"
1798  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
1799  ;;
1800esac
1801fi
1802AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
1803if test -n "$AS_FOR_TARGET"; then
1804  echo "$ac_t""$AS_FOR_TARGET" 1>&6
1805else
1806  echo "$ac_t""no" 1>&6
1807fi
1808
1809fi
1810
1811 
1812echo $ac_n "checking target's ld""... $ac_c" 1>&6
1813echo "configure:1814: checking target's ld" >&5
1814if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1815  echo $ac_n "(cached) $ac_c" 1>&6
1816else
1817  :
1818fi
1819
1820echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
1821
1822if test -n "$ac_cv_path_LD_FOR_TARGET"; then
1823    LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
1824else
1825    if test -z "$LD_FOR_TARGET" ; then
1826    if test "$rtems_cv_prog_gcc" = "yes"; then
1827      # We are using gcc, ask it about its tool
1828      # NOTE: Necessary if gcc was configured to use the target's
1829      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1830       case $host_os in
1831  *cygwin*)
1832            LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' `
1833    ;;
1834  *)
1835    LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
1836    ;;
1837  esac
1838
1839    fi
1840  else
1841    # The user set an environment variable.
1842    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1843    # will override the environment variable, which isn't what the user
1844    # intends
1845    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1846echo "configure:1847: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
1847    case "$LD_FOR_TARGET" in
1848    /*) # valid
1849      echo "$ac_t"""yes"" 1>&6
1850    ;;
1851    *)  # invalid for AC_PATH_PROG
1852      echo "$ac_t"""no"" 1>&6
1853      { echo "configure: error: ***
1854        Environment variable LD_FOR_TARGET should either
1855        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1856    ;;
1857    esac
1858  fi
1859
1860  # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
1861set dummy "$program_prefix"ld; ac_word=$2
1862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863echo "configure:1864: checking for $ac_word" >&5
1864if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1865  echo $ac_n "(cached) $ac_c" 1>&6
1866else
1867  case "$LD_FOR_TARGET" in
1868  /*)
1869  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
1870  ;;
1871  ?:/*)                 
1872  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
1873  ;;
1874  *)
1875  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1876  ac_dummy="$PATH"
1877  for ac_dir in $ac_dummy; do
1878    test -z "$ac_dir" && ac_dir=.
1879    if test -f $ac_dir/$ac_word; then
1880      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
1881      break
1882    fi
1883  done
1884  IFS="$ac_save_ifs"
1885  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
1886  ;;
1887esac
1888fi
1889LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
1890if test -n "$LD_FOR_TARGET"; then
1891  echo "$ac_t""$LD_FOR_TARGET" 1>&6
1892else
1893  echo "$ac_t""no" 1>&6
1894fi
1895
1896fi
1897
1898 
1899echo $ac_n "checking target's nm""... $ac_c" 1>&6
1900echo "configure:1901: checking target's nm" >&5
1901if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1902  echo $ac_n "(cached) $ac_c" 1>&6
1903else
1904  :
1905fi
1906
1907echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
1908
1909if test -n "$ac_cv_path_NM_FOR_TARGET"; then
1910    NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
1911else
1912    if test -z "$NM_FOR_TARGET" ; then
1913    if test "$rtems_cv_prog_gcc" = "yes"; then
1914      # We are using gcc, ask it about its tool
1915      # NOTE: Necessary if gcc was configured to use the target's
1916      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1917       case $host_os in
1918  *cygwin*)
1919            NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' `
1920    ;;
1921  *)
1922    NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
1923    ;;
1924  esac
1925
1926    fi
1927  else
1928    # The user set an environment variable.
1929    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1930    # will override the environment variable, which isn't what the user
1931    # intends
1932    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1933echo "configure:1934: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
1934    case "$NM_FOR_TARGET" in
1935    /*) # valid
1936      echo "$ac_t"""yes"" 1>&6
1937    ;;
1938    *)  # invalid for AC_PATH_PROG
1939      echo "$ac_t"""no"" 1>&6
1940      { echo "configure: error: ***
1941        Environment variable NM_FOR_TARGET should either
1942        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1943    ;;
1944    esac
1945  fi
1946
1947  # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
1948set dummy "$program_prefix"nm; ac_word=$2
1949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1950echo "configure:1951: checking for $ac_word" >&5
1951if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1952  echo $ac_n "(cached) $ac_c" 1>&6
1953else
1954  case "$NM_FOR_TARGET" in
1955  /*)
1956  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
1957  ;;
1958  ?:/*)                 
1959  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
1960  ;;
1961  *)
1962  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1963  ac_dummy="$PATH"
1964  for ac_dir in $ac_dummy; do
1965    test -z "$ac_dir" && ac_dir=.
1966    if test -f $ac_dir/$ac_word; then
1967      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
1968      break
1969    fi
1970  done
1971  IFS="$ac_save_ifs"
1972  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
1973  ;;
1974esac
1975fi
1976NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
1977if test -n "$NM_FOR_TARGET"; then
1978  echo "$ac_t""$NM_FOR_TARGET" 1>&6
1979else
1980  echo "$ac_t""no" 1>&6
1981fi
1982
1983fi
1984
1985
1986 
1987echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
1988echo "configure:1989: checking target's ranlib" >&5
1989if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1990  echo $ac_n "(cached) $ac_c" 1>&6
1991else
1992  :
1993fi
1994
1995echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
1996
1997if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then
1998    RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1999else
2000    if test -z "$RANLIB_FOR_TARGET" ; then
2001    if test "$rtems_cv_prog_gcc" = "yes"; then
2002      # We are using gcc, ask it about its tool
2003      # NOTE: Necessary if gcc was configured to use the target's
2004      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2005       case $host_os in
2006  *cygwin*)
2007            RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' `
2008    ;;
2009  *)
2010    RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
2011    ;;
2012  esac
2013
2014    fi
2015  else
2016    # The user set an environment variable.
2017    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2018    # will override the environment variable, which isn't what the user
2019    # intends
2020    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2021echo "configure:2022: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
2022    case "$RANLIB_FOR_TARGET" in
2023    /*) # valid
2024      echo "$ac_t"""yes"" 1>&6
2025    ;;
2026    *)  # invalid for AC_PATH_PROG
2027      echo "$ac_t"""no"" 1>&6
2028      { echo "configure: error: ***
2029        Environment variable RANLIB_FOR_TARGET should either
2030        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2031    ;;
2032    esac
2033  fi
2034
2035  # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
2036set dummy "$program_prefix"ranlib; ac_word=$2
2037echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2038echo "configure:2039: checking for $ac_word" >&5
2039if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
2040  echo $ac_n "(cached) $ac_c" 1>&6
2041else
2042  case "$RANLIB_FOR_TARGET" in
2043  /*)
2044  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
2045  ;;
2046  ?:/*)                 
2047  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
2048  ;;
2049  *)
2050  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2051  ac_dummy="$PATH"
2052  for ac_dir in $ac_dummy; do
2053    test -z "$ac_dir" && ac_dir=.
2054    if test -f $ac_dir/$ac_word; then
2055      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
2056      break
2057    fi
2058  done
2059  IFS="$ac_save_ifs"
2060  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
2061  ;;
2062esac
2063fi
2064RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
2065if test -n "$RANLIB_FOR_TARGET"; then
2066  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
2067else
2068  echo "$ac_t""no" 1>&6
2069fi
2070
2071fi
2072
2073  if test "$RANLIB_FOR_TARGET" = "no"; then
2074    # ranlib wasn't found; check if ar -s is available
2075   
2076echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
2077echo "configure:2078: checking whether $AR_FOR_TARGET -s works" >&5
2078if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
2079  echo $ac_n "(cached) $ac_c" 1>&6
2080else
2081 
2082cat > conftest.$ac_ext <<EOF
2083int foo( int b )
2084{ return b; }
2085EOF
2086if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
2087  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
2088  && test -s conftest.a ; \
2089then
2090  rtems_cv_AR_FOR_TARGET_S="yes"
2091else
2092  rtems_cv_AR_FOR_TARGET_S="no"
2093fi
2094  rm -f conftest*
2095
2096fi
2097
2098echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6
2099
2100    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
2101            ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
2102      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2103    else
2104      { echo "configure: error: ***
2105        Can't figure out how to build a library index
2106        Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; }
2107    fi
2108  fi
2109
2110 
2111echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
2112echo "configure:2113: checking target's objcopy" >&5
2113if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2114  echo $ac_n "(cached) $ac_c" 1>&6
2115else
2116  :
2117fi
2118
2119echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6
2120
2121if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then
2122    OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
2123else
2124    if test -z "$OBJCOPY_FOR_TARGET" ; then
2125    if test "$rtems_cv_prog_gcc" = "yes"; then
2126      # We are using gcc, ask it about its tool
2127      # NOTE: Necessary if gcc was configured to use the target's
2128      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2129       case $host_os in
2130  *cygwin*)
2131            OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' `
2132    ;;
2133  *)
2134    OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy`
2135    ;;
2136  esac
2137
2138    fi
2139  else
2140    # The user set an environment variable.
2141    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2142    # will override the environment variable, which isn't what the user
2143    # intends
2144    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2145echo "configure:2146: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
2146    case "$OBJCOPY_FOR_TARGET" in
2147    /*) # valid
2148      echo "$ac_t"""yes"" 1>&6
2149    ;;
2150    *)  # invalid for AC_PATH_PROG
2151      echo "$ac_t"""no"" 1>&6
2152      { echo "configure: error: ***
2153        Environment variable OBJCOPY_FOR_TARGET should either
2154        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2155    ;;
2156    esac
2157  fi
2158
2159  # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
2160set dummy "$program_prefix"objcopy; ac_word=$2
2161echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162echo "configure:2163: checking for $ac_word" >&5
2163if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2164  echo $ac_n "(cached) $ac_c" 1>&6
2165else
2166  case "$OBJCOPY_FOR_TARGET" in
2167  /*)
2168  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
2169  ;;
2170  ?:/*)                 
2171  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path.
2172  ;;
2173  *)
2174  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2175  ac_dummy="$PATH"
2176  for ac_dir in $ac_dummy; do
2177    test -z "$ac_dir" && ac_dir=.
2178    if test -f $ac_dir/$ac_word; then
2179      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
2180      break
2181    fi
2182  done
2183  IFS="$ac_save_ifs"
2184  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
2185  ;;
2186esac
2187fi
2188OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
2189if test -n "$OBJCOPY_FOR_TARGET"; then
2190  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
2191else
2192  echo "$ac_t""no" 1>&6
2193fi
2194
2195fi
2196
2197 
2198echo $ac_n "checking target's size""... $ac_c" 1>&6
2199echo "configure:2200: checking target's size" >&5
2200if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2201  echo $ac_n "(cached) $ac_c" 1>&6
2202else
2203  :
2204fi
2205
2206echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6
2207
2208if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then
2209    SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET
2210else
2211    if test -z "$SIZE_FOR_TARGET" ; then
2212    if test "$rtems_cv_prog_gcc" = "yes"; then
2213      # We are using gcc, ask it about its tool
2214      # NOTE: Necessary if gcc was configured to use the target's
2215      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2216       case $host_os in
2217  *cygwin*)
2218            SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' `
2219    ;;
2220  *)
2221    SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size`
2222    ;;
2223  esac
2224
2225    fi
2226  else
2227    # The user set an environment variable.
2228    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2229    # will override the environment variable, which isn't what the user
2230    # intends
2231    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2232echo "configure:2233: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
2233    case "$SIZE_FOR_TARGET" in
2234    /*) # valid
2235      echo "$ac_t"""yes"" 1>&6
2236    ;;
2237    *)  # invalid for AC_PATH_PROG
2238      echo "$ac_t"""no"" 1>&6
2239      { echo "configure: error: ***
2240        Environment variable SIZE_FOR_TARGET should either
2241        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2242    ;;
2243    esac
2244  fi
2245
2246  # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
2247set dummy "$program_prefix"size; ac_word=$2
2248echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2249echo "configure:2250: checking for $ac_word" >&5
2250if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2251  echo $ac_n "(cached) $ac_c" 1>&6
2252else
2253  case "$SIZE_FOR_TARGET" in
2254  /*)
2255  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
2256  ;;
2257  ?:/*)                 
2258  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path.
2259  ;;
2260  *)
2261  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2262  ac_dummy="$PATH"
2263  for ac_dir in $ac_dummy; do
2264    test -z "$ac_dir" && ac_dir=.
2265    if test -f $ac_dir/$ac_word; then
2266      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
2267      break
2268    fi
2269  done
2270  IFS="$ac_save_ifs"
2271  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
2272  ;;
2273esac
2274fi
2275SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
2276if test -n "$SIZE_FOR_TARGET"; then
2277  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
2278else
2279  echo "$ac_t""no" 1>&6
2280fi
2281
2282fi
2283
2284 
2285echo $ac_n "checking target's strip""... $ac_c" 1>&6
2286echo "configure:2287: checking target's strip" >&5
2287if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2288  echo $ac_n "(cached) $ac_c" 1>&6
2289else
2290  :
2291fi
2292
2293echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
2294
2295if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then
2296    STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2297else
2298    if test -z "$STRIP_FOR_TARGET" ; then
2299    if test "$rtems_cv_prog_gcc" = "yes"; then
2300      # We are using gcc, ask it about its tool
2301      # NOTE: Necessary if gcc was configured to use the target's
2302      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2303       case $host_os in
2304  *cygwin*)
2305            STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' `
2306    ;;
2307  *)
2308    STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip`
2309    ;;
2310  esac
2311
2312    fi
2313  else
2314    # The user set an environment variable.
2315    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2316    # will override the environment variable, which isn't what the user
2317    # intends
2318    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2319echo "configure:2320: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
2320    case "$STRIP_FOR_TARGET" in
2321    /*) # valid
2322      echo "$ac_t"""yes"" 1>&6
2323    ;;
2324    *)  # invalid for AC_PATH_PROG
2325      echo "$ac_t"""no"" 1>&6
2326      { echo "configure: error: ***
2327        Environment variable STRIP_FOR_TARGET should either
2328        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2329    ;;
2330    esac
2331  fi
2332
2333  # Extract the first word of ""$program_prefix"strip", so it can be a program name with args.
2334set dummy "$program_prefix"strip; ac_word=$2
2335echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2336echo "configure:2337: checking for $ac_word" >&5
2337if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2338  echo $ac_n "(cached) $ac_c" 1>&6
2339else
2340  case "$STRIP_FOR_TARGET" in
2341  /*)
2342  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
2343  ;;
2344  ?:/*)                 
2345  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
2346  ;;
2347  *)
2348  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2349  ac_dummy="$PATH"
2350  for ac_dir in $ac_dummy; do
2351    test -z "$ac_dir" && ac_dir=.
2352    if test -f $ac_dir/$ac_word; then
2353      ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
2354      break
2355    fi
2356  done
2357  IFS="$ac_save_ifs"
2358  test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no"
2359  ;;
2360esac
2361fi
2362STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
2363if test -n "$STRIP_FOR_TARGET"; then
2364  echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
2365else
2366  echo "$ac_t""no" 1>&6
2367fi
2368
2369fi
2370
2371
2372
2373
2374
2375if test "$HAS_CPLUSPLUS" = "yes"; then
2376  HAS_CXX_TRUE=
2377  HAS_CXX_FALSE='#'
2378else
2379  HAS_CXX_TRUE='#'
2380  HAS_CXX_FALSE=
2381fi
2382
2383PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
2384
2385
2386trap '' 1 2 15
2387cat > confcache <<\EOF
2388# This file is a shell script that caches the results of configure
2389# tests run on this system so they can be shared between configure
2390# scripts and configure runs.  It is not useful on other systems.
2391# If it contains results you don't want to keep, you may remove or edit it.
2392#
2393# By default, configure uses ./config.cache as the cache file,
2394# creating it if it does not exist already.  You can give configure
2395# the --cache-file=FILE option to use a different cache file; that is
2396# what configure does when it calls configure scripts in
2397# subdirectories, so they share the cache.
2398# Giving --cache-file=/dev/null disables caching, for debugging configure.
2399# config.status only pays attention to the cache file if you give it the
2400# --recheck option to rerun configure.
2401#
2402EOF
2403# The following way of writing the cache mishandles newlines in values,
2404# but we know of no workaround that is simple, portable, and efficient.
2405# So, don't put newlines in cache variables' values.
2406# Ultrix sh set writes to stderr and can't be redirected directly,
2407# and sets the high bit in the cache file unless we assign to the vars.
2408(set) 2>&1 |
2409  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2410  *ac_space=\ *)
2411    # `set' does not quote correctly, so add quotes (double-quote substitution
2412    # turns \\\\ into \\, and sed turns \\ into \).
2413    sed -n \
2414      -e "s/'/'\\\\''/g" \
2415      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2416    ;;
2417  *)
2418    # `set' quotes correctly as required by POSIX, so do not add quotes.
2419    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2420    ;;
2421  esac >> confcache
2422if cmp -s $cache_file confcache; then
2423  :
2424else
2425  if test -w $cache_file; then
2426    echo "updating cache $cache_file"
2427    cat confcache > $cache_file
2428  else
2429    echo "not updating unwritable cache $cache_file"
2430  fi
2431fi
2432rm -f confcache
2433
2434trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2435
2436test "x$prefix" = xNONE && prefix=$ac_default_prefix
2437# Let make expand exec_prefix.
2438test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2439
2440# Any assignment to VPATH causes Sun make to only execute
2441# the first set of double-colon rules, so remove it if not needed.
2442# If there is a colon in the path, we need to keep it.
2443if test "x$srcdir" = x.; then
2444  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2445fi
2446
2447trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2448
2449# Transform confdefs.h into DEFS.
2450# Protect against shell expansion while executing Makefile rules.
2451# Protect against Makefile macro expansion.
2452cat > conftest.defs <<\EOF
2453s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2454s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2455s%\[%\\&%g
2456s%\]%\\&%g
2457s%\$%$$%g
2458EOF
2459DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2460rm -f conftest.defs
2461
2462
2463# Without the "./", some shells look in PATH for config.status.
2464: ${CONFIG_STATUS=./config.status}
2465
2466echo creating $CONFIG_STATUS
2467rm -f $CONFIG_STATUS
2468cat > $CONFIG_STATUS <<EOF
2469#! /bin/sh
2470# Generated automatically by configure.
2471# Run this file to recreate the current configuration.
2472# This directory was configured as follows,
2473# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2474#
2475# $0 $ac_configure_args
2476#
2477# Compiler output produced by configure, useful for debugging
2478# configure, is in ./config.log if it exists.
2479
2480ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2481for ac_option
2482do
2483  case "\$ac_option" in
2484  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2485    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2486    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2487  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2488    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2489    exit 0 ;;
2490  -help | --help | --hel | --he | --h)
2491    echo "\$ac_cs_usage"; exit 0 ;;
2492  *) echo "\$ac_cs_usage"; exit 1 ;;
2493  esac
2494done
2495
2496ac_given_srcdir=$srcdir
2497ac_given_INSTALL="$INSTALL"
2498
2499trap 'rm -fr `echo "Makefile
2500include/Makefile
2501include/rtems++/Makefile
2502src/Makefile
2503" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2504EOF
2505cat >> $CONFIG_STATUS <<EOF
2506
2507# Protect against being on the right side of a sed subst in config.status.
2508sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2509 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2510$ac_vpsub
2511$extrasub
2512s%@SHELL@%$SHELL%g
2513s%@CFLAGS@%$CFLAGS%g
2514s%@CPPFLAGS@%$CPPFLAGS%g
2515s%@CXXFLAGS@%$CXXFLAGS%g
2516s%@FFLAGS@%$FFLAGS%g
2517s%@DEFS@%$DEFS%g
2518s%@LDFLAGS@%$LDFLAGS%g
2519s%@LIBS@%$LIBS%g
2520s%@exec_prefix@%$exec_prefix%g
2521s%@prefix@%$prefix%g
2522s%@program_transform_name@%$program_transform_name%g
2523s%@bindir@%$bindir%g
2524s%@sbindir@%$sbindir%g
2525s%@libexecdir@%$libexecdir%g
2526s%@datadir@%$datadir%g
2527s%@sysconfdir@%$sysconfdir%g
2528s%@sharedstatedir@%$sharedstatedir%g
2529s%@localstatedir@%$localstatedir%g
2530s%@libdir@%$libdir%g
2531s%@includedir@%$includedir%g
2532s%@oldincludedir@%$oldincludedir%g
2533s%@infodir@%$infodir%g
2534s%@mandir@%$mandir%g
2535s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
2536s%@host@%$host%g
2537s%@host_alias@%$host_alias%g
2538s%@host_cpu@%$host_cpu%g
2539s%@host_vendor@%$host_vendor%g
2540s%@host_os@%$host_os%g
2541s%@target@%$target%g
2542s%@target_alias@%$target_alias%g
2543s%@target_cpu@%$target_cpu%g
2544s%@target_vendor@%$target_vendor%g
2545s%@target_os@%$target_os%g
2546s%@build@%$build%g
2547s%@build_alias@%$build_alias%g
2548s%@build_cpu@%$build_cpu%g
2549s%@build_vendor@%$build_vendor%g
2550s%@build_os@%$build_os%g
2551s%@RTEMS_CPU@%$RTEMS_CPU%g
2552s%@PROJECT_ROOT@%$PROJECT_ROOT%g
2553s%@RTEMS_ROOT@%$RTEMS_ROOT%g
2554s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
2555s%@PACKHEX@%$PACKHEX%g
2556s%@RTEMS_HOST@%$RTEMS_HOST%g
2557s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2558s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2559s%@INSTALL_DATA@%$INSTALL_DATA%g
2560s%@PACKAGE@%$PACKAGE%g
2561s%@VERSION@%$VERSION%g
2562s%@ACLOCAL@%$ACLOCAL%g
2563s%@AUTOCONF@%$AUTOCONF%g
2564s%@AUTOMAKE@%$AUTOMAKE%g
2565s%@AUTOHEADER@%$AUTOHEADER%g
2566s%@MAKEINFO@%$MAKEINFO%g
2567s%@SET_MAKE@%$SET_MAKE%g
2568s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2569s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2570s%@MAINT@%$MAINT%g
2571s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
2572s%@RTEMS_BSP@%$RTEMS_BSP%g
2573s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
2574s%@GCCSED@%$GCCSED%g
2575s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
2576s%@HAS_CPLUSPLUS@%$HAS_CPLUSPLUS%g
2577s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
2578s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
2579s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
2580s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
2581s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
2582s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
2583s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
2584s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
2585s%@HAS_CXX_TRUE@%$HAS_CXX_TRUE%g
2586s%@HAS_CXX_FALSE@%$HAS_CXX_FALSE%g
2587s%@PROJECT_INCLUDE@%$PROJECT_INCLUDE%g
2588
2589CEOF
2590EOF
2591
2592cat >> $CONFIG_STATUS <<\EOF
2593
2594# Split the substitutions into bite-sized pieces for seds with
2595# small command number limits, like on Digital OSF/1 and HP-UX.
2596ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2597ac_file=1 # Number of current file.
2598ac_beg=1 # First line for current file.
2599ac_end=$ac_max_sed_cmds # Line after last line for current file.
2600ac_more_lines=:
2601ac_sed_cmds=""
2602while $ac_more_lines; do
2603  if test $ac_beg -gt 1; then
2604    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2605  else
2606    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2607  fi
2608  if test ! -s conftest.s$ac_file; then
2609    ac_more_lines=false
2610    rm -f conftest.s$ac_file
2611  else
2612    if test -z "$ac_sed_cmds"; then
2613      ac_sed_cmds="sed -f conftest.s$ac_file"
2614    else
2615      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2616    fi
2617    ac_file=`expr $ac_file + 1`
2618    ac_beg=$ac_end
2619    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2620  fi
2621done
2622if test -z "$ac_sed_cmds"; then
2623  ac_sed_cmds=cat
2624fi
2625EOF
2626
2627cat >> $CONFIG_STATUS <<EOF
2628
2629CONFIG_FILES=\${CONFIG_FILES-"Makefile
2630include/Makefile
2631include/rtems++/Makefile
2632src/Makefile
2633"}
2634EOF
2635cat >> $CONFIG_STATUS <<\EOF
2636for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2637  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2638  case "$ac_file" in
2639  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2640       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2641  *) ac_file_in="${ac_file}.in" ;;
2642  esac
2643
2644  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2645
2646  # Remove last slash and all that follows it.  Not all systems have dirname.
2647  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2648  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2649    # The file is in a subdirectory.
2650    test ! -d "$ac_dir" && mkdir "$ac_dir"
2651    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2652    # A "../" for each directory in $ac_dir_suffix.
2653    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2654  else
2655    ac_dir_suffix= ac_dots=
2656  fi
2657
2658  case "$ac_given_srcdir" in
2659  .)  srcdir=.
2660      if test -z "$ac_dots"; then top_srcdir=.
2661      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2662  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2663  *) # Relative path.
2664    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2665    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2666  esac
2667
2668  case "$ac_given_INSTALL" in
2669  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2670  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2671  esac
2672
2673  echo creating "$ac_file"
2674  rm -f "$ac_file"
2675  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2676  case "$ac_file" in
2677  *Makefile*) ac_comsub="1i\\
2678# $configure_input" ;;
2679  *) ac_comsub= ;;
2680  esac
2681
2682  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2683  sed -e "$ac_comsub
2684s%@configure_input@%$configure_input%g
2685s%@srcdir@%$srcdir%g
2686s%@top_srcdir@%$top_srcdir%g
2687s%@INSTALL@%$INSTALL%g
2688" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2689fi; done
2690rm -f conftest.s*
2691
2692EOF
2693cat >> $CONFIG_STATUS <<EOF
2694
2695EOF
2696cat >> $CONFIG_STATUS <<\EOF
2697
2698exit 0
2699EOF
2700chmod +x $CONFIG_STATUS
2701rm -fr confdefs* $ac_clean_files
2702test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2703
Note: See TracBrowser for help on using the repository browser.