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