source: rtems/c/src/exec/score/cpu/configure @ a24c280

4.104.114.84.95
Last change on this file since a24c280 was a24c280, checked in by Joel Sherrill <joel.sherrill@…>, on 09/09/99 at 21:22:36

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