OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libcpu/] [mips64orion/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by Autoconf 2.52 for rtems-c-src-lib-libcpu-mips64orion ss-20020807.
4
#
5
# Report bugs to .
6
#
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
 
12
# Avoid depending upon Character Ranges.
13
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16
as_cr_digits='0123456789'
17
as_cr_alnum=$as_cr_Letters$as_cr_digits
18
 
19
# Sed expression to map a string onto a valid variable name.
20
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
 
22
# Sed expression to map a string onto a valid CPP name.
23
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
 
25
# Be Bourne compatible
26
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27
  emulate sh
28
  NULLCMD=:
29
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30
  set -o posix
31
fi
32
 
33
# Name of the executable.
34
as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
 
36
if expr a : '\(a\)' >/dev/null 2>&1; then
37
  as_expr=expr
38
else
39
  as_expr=false
40
fi
41
 
42
rm -f conf$$ conf$$.exe conf$$.file
43
echo >conf$$.file
44
if ln -s conf$$.file conf$$ 2>/dev/null; then
45
  # We could just check for DJGPP; but this test a) works b) is more generic
46
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47
  if test -f conf$$.exe; then
48
    # Don't use ln at all; we don't have any links
49
    as_ln_s='cp -p'
50
  else
51
    as_ln_s='ln -s'
52
  fi
53
elif ln conf$$.file conf$$ 2>/dev/null; then
54
  as_ln_s=ln
55
else
56
  as_ln_s='cp -p'
57
fi
58
rm -f conf$$ conf$$.exe conf$$.file
59
 
60
as_executable_p="test -f"
61
 
62
# Support unset when possible.
63
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64
  as_unset=unset
65
else
66
  as_unset=false
67
fi
68
 
69
# NLS nuisances.
70
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
 
79
# IFS
80
# We need space, tab and new line, in precisely that order.
81
as_nl='
82
'
83
IFS="   $as_nl"
84
 
85
# CDPATH.
86
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
 
88
# Name of the host.
89
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90
# so uname gets run too.
91
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
 
93
exec 6>&1
94
 
95
#
96
# Initializations.
97
#
98
ac_default_prefix=/usr/local
99
cross_compiling=no
100
subdirs=
101
MFLAGS= MAKEFLAGS=
102
SHELL=${CONFIG_SHELL-/bin/sh}
103
 
104
# Maximum number of lines to put in a shell here document.
105
# This variable seems obsolete.  It should probably be removed, and
106
# only ac_max_sed_lines should be used.
107
: ${ac_max_here_lines=38}
108
 
109
ac_unique_file="clock"
110
ac_default_prefix=/opt/rtems
111
 
112
# Initialize some variables set by options.
113
ac_init_help=
114
ac_init_version=false
115
# The variables have the same names as the options, with
116
# dashes changed to underlines.
117
cache_file=/dev/null
118
exec_prefix=NONE
119
no_create=
120
no_recursion=
121
prefix=NONE
122
program_prefix=NONE
123
program_suffix=NONE
124
program_transform_name=s,x,x,
125
silent=
126
site=
127
srcdir=
128
verbose=
129
x_includes=NONE
130
x_libraries=NONE
131
 
132
# Installation directory options.
133
# These are left unexpanded so users can "make install exec_prefix=/foo"
134
# and all the variables that are supposed to be based on exec_prefix
135
# by default will actually change.
136
# Use braces instead of parens because sh, perl, etc. also accept them.
137
bindir='${exec_prefix}/bin'
138
sbindir='${exec_prefix}/sbin'
139
libexecdir='${exec_prefix}/libexec'
140
datadir='${prefix}/share'
141
sysconfdir='${prefix}/etc'
142
sharedstatedir='${prefix}/com'
143
localstatedir='${prefix}/var'
144
libdir='${exec_prefix}/lib'
145
includedir='${prefix}/include'
146
oldincludedir='/usr/include'
147
infodir='${prefix}/info'
148
mandir='${prefix}/man'
149
 
150
# Identity of this package.
151
PACKAGE_NAME='rtems-c-src-lib-libcpu-mips64orion'
152
PACKAGE_TARNAME='rtems-c-src-lib-libcpu-mips64orion'
153
PACKAGE_VERSION='ss-20020807'
154
PACKAGE_STRING='rtems-c-src-lib-libcpu-mips64orion ss-20020807'
155
PACKAGE_BUGREPORT='rtems-bugs@OARcorp.com'
156
 
157
ac_prev=
158
for ac_option
159
do
160
  # If the previous option needs an argument, assign it.
161
  if test -n "$ac_prev"; then
162
    eval "$ac_prev=\$ac_option"
163
    ac_prev=
164
    continue
165
  fi
166
 
167
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168
 
169
  # Accept the important Cygnus configure options, so we can diagnose typos.
170
 
171
  case $ac_option in
172
 
173
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
174
    ac_prev=bindir ;;
175
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176
    bindir=$ac_optarg ;;
177
 
178
  -build | --build | --buil | --bui | --bu)
179
    ac_prev=build_alias ;;
180
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
181
    build_alias=$ac_optarg ;;
182
 
183
  -cache-file | --cache-file | --cache-fil | --cache-fi \
184
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
185
    ac_prev=cache_file ;;
186
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
187
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
188
    cache_file=$ac_optarg ;;
189
 
190
  --config-cache | -C)
191
    cache_file=config.cache ;;
192
 
193
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194
    ac_prev=datadir ;;
195
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196
  | --da=*)
197
    datadir=$ac_optarg ;;
198
 
199
  -disable-* | --disable-*)
200
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
201
    # Reject names that are not valid shell variable names.
202
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
203
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
204
   { (exit 1); exit 1; }; }
205
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
206
    eval "enable_$ac_feature=no" ;;
207
 
208
  -enable-* | --enable-*)
209
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
210
    # Reject names that are not valid shell variable names.
211
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
212
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
213
   { (exit 1); exit 1; }; }
214
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
215
    case $ac_option in
216
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217
      *) ac_optarg=yes ;;
218
    esac
219
    eval "enable_$ac_feature='$ac_optarg'" ;;
220
 
221
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
222
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
223
  | --exec | --exe | --ex)
224
    ac_prev=exec_prefix ;;
225
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
226
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
227
  | --exec=* | --exe=* | --ex=*)
228
    exec_prefix=$ac_optarg ;;
229
 
230
  -gas | --gas | --ga | --g)
231
    # Obsolete; use --with-gas.
232
    with_gas=yes ;;
233
 
234
  -help | --help | --hel | --he | -h)
235
    ac_init_help=long ;;
236
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
237
    ac_init_help=recursive ;;
238
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
239
    ac_init_help=short ;;
240
 
241
  -host | --host | --hos | --ho)
242
    ac_prev=host_alias ;;
243
  -host=* | --host=* | --hos=* | --ho=*)
244
    host_alias=$ac_optarg ;;
245
 
246
  -includedir | --includedir | --includedi | --included | --include \
247
  | --includ | --inclu | --incl | --inc)
248
    ac_prev=includedir ;;
249
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250
  | --includ=* | --inclu=* | --incl=* | --inc=*)
251
    includedir=$ac_optarg ;;
252
 
253
  -infodir | --infodir | --infodi | --infod | --info | --inf)
254
    ac_prev=infodir ;;
255
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256
    infodir=$ac_optarg ;;
257
 
258
  -libdir | --libdir | --libdi | --libd)
259
    ac_prev=libdir ;;
260
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
261
    libdir=$ac_optarg ;;
262
 
263
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264
  | --libexe | --libex | --libe)
265
    ac_prev=libexecdir ;;
266
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267
  | --libexe=* | --libex=* | --libe=*)
268
    libexecdir=$ac_optarg ;;
269
 
270
  -localstatedir | --localstatedir | --localstatedi | --localstated \
271
  | --localstate | --localstat | --localsta | --localst \
272
  | --locals | --local | --loca | --loc | --lo)
273
    ac_prev=localstatedir ;;
274
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277
    localstatedir=$ac_optarg ;;
278
 
279
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280
    ac_prev=mandir ;;
281
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282
    mandir=$ac_optarg ;;
283
 
284
  -nfp | --nfp | --nf)
285
    # Obsolete; use --without-fp.
286
    with_fp=no ;;
287
 
288
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289
  | --no-cr | --no-c)
290
    no_create=yes ;;
291
 
292
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294
    no_recursion=yes ;;
295
 
296
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298
  | --oldin | --oldi | --old | --ol | --o)
299
    ac_prev=oldincludedir ;;
300
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303
    oldincludedir=$ac_optarg ;;
304
 
305
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306
    ac_prev=prefix ;;
307
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308
    prefix=$ac_optarg ;;
309
 
310
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
311
  | --program-pre | --program-pr | --program-p)
312
    ac_prev=program_prefix ;;
313
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
314
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315
    program_prefix=$ac_optarg ;;
316
 
317
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
318
  | --program-suf | --program-su | --program-s)
319
    ac_prev=program_suffix ;;
320
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
321
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322
    program_suffix=$ac_optarg ;;
323
 
324
  -program-transform-name | --program-transform-name \
325
  | --program-transform-nam | --program-transform-na \
326
  | --program-transform-n | --program-transform- \
327
  | --program-transform | --program-transfor \
328
  | --program-transfo | --program-transf \
329
  | --program-trans | --program-tran \
330
  | --progr-tra | --program-tr | --program-t)
331
    ac_prev=program_transform_name ;;
332
  -program-transform-name=* | --program-transform-name=* \
333
  | --program-transform-nam=* | --program-transform-na=* \
334
  | --program-transform-n=* | --program-transform-=* \
335
  | --program-transform=* | --program-transfor=* \
336
  | --program-transfo=* | --program-transf=* \
337
  | --program-trans=* | --program-tran=* \
338
  | --progr-tra=* | --program-tr=* | --program-t=*)
339
    program_transform_name=$ac_optarg ;;
340
 
341
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342
  | -silent | --silent | --silen | --sile | --sil)
343
    silent=yes ;;
344
 
345
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346
    ac_prev=sbindir ;;
347
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348
  | --sbi=* | --sb=*)
349
    sbindir=$ac_optarg ;;
350
 
351
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
352
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353
  | --sharedst | --shareds | --shared | --share | --shar \
354
  | --sha | --sh)
355
    ac_prev=sharedstatedir ;;
356
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359
  | --sha=* | --sh=*)
360
    sharedstatedir=$ac_optarg ;;
361
 
362
  -site | --site | --sit)
363
    ac_prev=site ;;
364
  -site=* | --site=* | --sit=*)
365
    site=$ac_optarg ;;
366
 
367
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368
    ac_prev=srcdir ;;
369
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370
    srcdir=$ac_optarg ;;
371
 
372
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373
  | --syscon | --sysco | --sysc | --sys | --sy)
374
    ac_prev=sysconfdir ;;
375
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377
    sysconfdir=$ac_optarg ;;
378
 
379
  -target | --target | --targe | --targ | --tar | --ta | --t)
380
    ac_prev=target_alias ;;
381
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382
    target_alias=$ac_optarg ;;
383
 
384
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
385
    verbose=yes ;;
386
 
387
  -version | --version | --versio | --versi | --vers | -V)
388
    ac_init_version=: ;;
389
 
390
  -with-* | --with-*)
391
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
392
    # Reject names that are not valid shell variable names.
393
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394
      { echo "$as_me: error: invalid package name: $ac_package" >&2
395
   { (exit 1); exit 1; }; }
396
    ac_package=`echo $ac_package| sed 's/-/_/g'`
397
    case $ac_option in
398
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399
      *) ac_optarg=yes ;;
400
    esac
401
    eval "with_$ac_package='$ac_optarg'" ;;
402
 
403
  -without-* | --without-*)
404
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
405
    # Reject names that are not valid shell variable names.
406
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
      { echo "$as_me: error: invalid package name: $ac_package" >&2
408
   { (exit 1); exit 1; }; }
409
    ac_package=`echo $ac_package | sed 's/-/_/g'`
410
    eval "with_$ac_package=no" ;;
411
 
412
  --x)
413
    # Obsolete; use --with-x.
414
    with_x=yes ;;
415
 
416
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417
  | --x-incl | --x-inc | --x-in | --x-i)
418
    ac_prev=x_includes ;;
419
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421
    x_includes=$ac_optarg ;;
422
 
423
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
424
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425
    ac_prev=x_libraries ;;
426
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428
    x_libraries=$ac_optarg ;;
429
 
430
  -*) { echo "$as_me: error: unrecognized option: $ac_option
431
Try \`$0 --help' for more information." >&2
432
   { (exit 1); exit 1; }; }
433
    ;;
434
 
435
  *=*)
436
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
437
    # Reject names that are not valid shell variable names.
438
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
439
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
440
   { (exit 1); exit 1; }; }
441
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
442
    eval "$ac_envvar='$ac_optarg'"
443
    export $ac_envvar ;;
444
 
445
  *)
446
    # FIXME: should be removed in autoconf 3.0.
447
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
448
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
449
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
450
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
451
    ;;
452
 
453
  esac
454
done
455
 
456
if test -n "$ac_prev"; then
457
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
458
  { echo "$as_me: error: missing argument to $ac_option" >&2
459
   { (exit 1); exit 1; }; }
460
fi
461
 
462
# Be sure to have absolute paths.
463
for ac_var in exec_prefix prefix
464
do
465
  eval ac_val=$`echo $ac_var`
466
  case $ac_val in
467
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
468
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
469
   { (exit 1); exit 1; }; };;
470
  esac
471
done
472
 
473
# Be sure to have absolute paths.
474
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
475
              localstatedir libdir includedir oldincludedir infodir mandir
476
do
477
  eval ac_val=$`echo $ac_var`
478
  case $ac_val in
479
    [\\/$]* | ?:[\\/]* ) ;;
480
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
481
   { (exit 1); exit 1; }; };;
482
  esac
483
done
484
 
485
# There might be people who depend on the old broken behavior: `$host'
486
# used to hold the argument of --host etc.
487
build=$build_alias
488
host=$host_alias
489
target=$target_alias
490
 
491
# FIXME: should be removed in autoconf 3.0.
492
if test "x$host_alias" != x; then
493
  if test "x$build_alias" = x; then
494
    cross_compiling=maybe
495
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
496
    If a cross compiler is detected then cross compile mode will be used." >&2
497
  elif test "x$build_alias" != "x$host_alias"; then
498
    cross_compiling=yes
499
  fi
500
fi
501
 
502
ac_tool_prefix=
503
test -n "$host_alias" && ac_tool_prefix=$host_alias-
504
 
505
test "$silent" = yes && exec 6>/dev/null
506
 
507
# Find the source files, if location was not specified.
508
if test -z "$srcdir"; then
509
  ac_srcdir_defaulted=yes
510
  # Try the directory containing this script, then its parent.
511
  ac_prog=$0
512
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
513
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514
  srcdir=$ac_confdir
515
  if test ! -r $srcdir/$ac_unique_file; then
516
    srcdir=..
517
  fi
518
else
519
  ac_srcdir_defaulted=no
520
fi
521
if test ! -r $srcdir/$ac_unique_file; then
522
  if test "$ac_srcdir_defaulted" = yes; then
523
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
524
   { (exit 1); exit 1; }; }
525
  else
526
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
527
   { (exit 1); exit 1; }; }
528
  fi
529
fi
530
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
531
ac_env_build_alias_set=${build_alias+set}
532
ac_env_build_alias_value=$build_alias
533
ac_cv_env_build_alias_set=${build_alias+set}
534
ac_cv_env_build_alias_value=$build_alias
535
ac_env_host_alias_set=${host_alias+set}
536
ac_env_host_alias_value=$host_alias
537
ac_cv_env_host_alias_set=${host_alias+set}
538
ac_cv_env_host_alias_value=$host_alias
539
ac_env_target_alias_set=${target_alias+set}
540
ac_env_target_alias_value=$target_alias
541
ac_cv_env_target_alias_set=${target_alias+set}
542
ac_cv_env_target_alias_value=$target_alias
543
ac_env_RTEMS_BSP_set=${RTEMS_BSP+set}
544
ac_env_RTEMS_BSP_value=$RTEMS_BSP
545
ac_cv_env_RTEMS_BSP_set=${RTEMS_BSP+set}
546
ac_cv_env_RTEMS_BSP_value=$RTEMS_BSP
547
ac_env_CC_set=${CC+set}
548
ac_env_CC_value=$CC
549
ac_cv_env_CC_set=${CC+set}
550
ac_cv_env_CC_value=$CC
551
ac_env_CFLAGS_set=${CFLAGS+set}
552
ac_env_CFLAGS_value=$CFLAGS
553
ac_cv_env_CFLAGS_set=${CFLAGS+set}
554
ac_cv_env_CFLAGS_value=$CFLAGS
555
ac_env_LDFLAGS_set=${LDFLAGS+set}
556
ac_env_LDFLAGS_value=$LDFLAGS
557
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
558
ac_cv_env_LDFLAGS_value=$LDFLAGS
559
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
560
ac_env_CPPFLAGS_value=$CPPFLAGS
561
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
562
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
563
ac_env_CPP_set=${CPP+set}
564
ac_env_CPP_value=$CPP
565
ac_cv_env_CPP_set=${CPP+set}
566
ac_cv_env_CPP_value=$CPP
567
 
568
#
569
# Report the --help message.
570
#
571
if test "$ac_init_help" = "long"; then
572
  # Omit some internal or obsolete options to make the list less imposing.
573
  # This message is too long to be a string in the A/UX 3.1 sh.
574
  cat <
575
\`configure' configures rtems-c-src-lib-libcpu-mips64orion ss-20020807 to adapt to many kinds of systems.
576
 
577
Usage: $0 [OPTION]... [VAR=VALUE]...
578
 
579
To assign environment variables (e.g., CC, CFLAGS...), specify them as
580
VAR=VALUE.  See below for descriptions of some of the useful variables.
581
 
582
Defaults for the options are specified in brackets.
583
 
584
Configuration:
585
  -h, --help              display this help and exit
586
      --help=short        display options specific to this package
587
      --help=recursive    display the short help of all the included packages
588
  -V, --version           display version information and exit
589
  -q, --quiet, --silent   do not print \`checking...' messages
590
      --cache-file=FILE   cache test results in FILE [disabled]
591
  -C, --config-cache      alias for \`--cache-file=config.cache'
592
  -n, --no-create         do not create output files
593
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
594
 
595
EOF
596
 
597
  cat <
598
Installation directories:
599
  --prefix=PREFIX         install architecture-independent files in PREFIX
600
                          [$ac_default_prefix]
601
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
602
                          [PREFIX]
603
 
604
By default, \`make install' will install all the files in
605
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
606
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
607
for instance \`--prefix=\$HOME'.
608
 
609
For better control, use the options below.
610
 
611
Fine tuning of the installation directories:
612
  --bindir=DIR           user executables [EPREFIX/bin]
613
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
614
  --libexecdir=DIR       program executables [EPREFIX/libexec]
615
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
616
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
617
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
618
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
619
  --libdir=DIR           object code libraries [EPREFIX/lib]
620
  --includedir=DIR       C header files [PREFIX/include]
621
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
622
  --infodir=DIR          info documentation [PREFIX/info]
623
  --mandir=DIR           man documentation [PREFIX/man]
624
EOF
625
 
626
  cat <<\EOF
627
 
628
Program names:
629
  --program-prefix=PREFIX            prepend PREFIX to installed program names
630
  --program-suffix=SUFFIX            append SUFFIX to installed program names
631
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
632
 
633
System types:
634
  --build=BUILD     configure for building on BUILD [guessed]
635
  --host=HOST       build programs to run on HOST [BUILD]
636
  --target=TARGET   configure for building compilers for TARGET [HOST]
637
EOF
638
fi
639
 
640
if test -n "$ac_init_help"; then
641
  case $ac_init_help in
642
     short | recursive ) echo "Configuration of rtems-c-src-lib-libcpu-mips64orion ss-20020807:";;
643
   esac
644
  cat <<\EOF
645
 
646
Optional Features:
647
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
648
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
649
  --enable-maintainer-mode enable make rules and dependencies not useful
650
                          (and sometimes confusing) to the casual installer
651
  --enable-bare-cpu-cflags
652
                          specify a particular cpu cflag (bare bsp specific)
653
  --enable-bare-cpu-model specify a particular cpu model (bare bsp specific)
654
  --disable-dependency-tracking Speeds up one-time builds
655
  --enable-dependency-tracking  Do not reject slow dependency extractors
656
 
657
Some influential environment variables:
658
  RTEMS_BSP   RTEMS_BSP to build
659
  CC          C compiler command
660
  CFLAGS      C compiler flags
661
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
662
              nonstandard directory 
663
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
664
              headers in a nonstandard directory 
665
  CPP         C preprocessor
666
 
667
Use these variables to override the choices made by `configure' or to help
668
it to find libraries and programs with nonstandard names/locations.
669
 
670
Report bugs to .
671
EOF
672
fi
673
 
674
if test "$ac_init_help" = "recursive"; then
675
  # If there are subdirs, report their specific --help.
676
  ac_popdir=`pwd`
677
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
678
    cd $ac_subdir
679
    # A "../" for each directory in /$ac_subdir.
680
    ac_dots=`echo $ac_subdir |
681
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
682
 
683
    case $srcdir in
684
    .) # No --srcdir option.  We are building in place.
685
      ac_sub_srcdir=$srcdir ;;
686
    [\\/]* | ?:[\\/]* ) # Absolute path.
687
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
688
    *) # Relative path.
689
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
690
    esac
691
 
692
    # Check for guested configure; otherwise get Cygnus style configure.
693
    if test -f $ac_sub_srcdir/configure.gnu; then
694
      echo
695
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
696
    elif test -f $ac_sub_srcdir/configure; then
697
      echo
698
      $SHELL $ac_sub_srcdir/configure  --help=recursive
699
    elif test -f $ac_sub_srcdir/configure.ac ||
700
           test -f $ac_sub_srcdir/configure.in; then
701
      echo
702
      $ac_configure --help
703
    else
704
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
705
    fi
706
    cd $ac_popdir
707
  done
708
fi
709
 
710
test -n "$ac_init_help" && exit 0
711
if $ac_init_version; then
712
  cat <<\EOF
713
rtems-c-src-lib-libcpu-mips64orion configure ss-20020807
714
generated by GNU Autoconf 2.52
715
 
716
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
717
Free Software Foundation, Inc.
718
This configure script is free software; the Free Software Foundation
719
gives unlimited permission to copy, distribute and modify it.
720
EOF
721
  exit 0
722
fi
723
exec 5>config.log
724
cat >&5 <
725
This file contains any messages produced by compilers while
726
running configure, to aid debugging if configure makes a mistake.
727
 
728
It was created by rtems-c-src-lib-libcpu-mips64orion $as_me ss-20020807, which was
729
generated by GNU Autoconf 2.52.  Invocation command line was
730
 
731
  $ $0 $@
732
 
733
EOF
734
{
735
cat <<_ASUNAME
736
## ---------- ##
737
## Platform.  ##
738
## ---------- ##
739
 
740
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
741
uname -m = `(uname -m) 2>/dev/null || echo unknown`
742
uname -r = `(uname -r) 2>/dev/null || echo unknown`
743
uname -s = `(uname -s) 2>/dev/null || echo unknown`
744
uname -v = `(uname -v) 2>/dev/null || echo unknown`
745
 
746
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
747
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
748
 
749
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
750
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
751
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
752
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
753
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
754
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
755
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
756
 
757
PATH = $PATH
758
 
759
_ASUNAME
760
} >&5
761
 
762
cat >&5 <
763
## ------------ ##
764
## Core tests.  ##
765
## ------------ ##
766
 
767
EOF
768
 
769
# Keep a trace of the command line.
770
# Strip out --no-create and --no-recursion so they do not pile up.
771
# Also quote any args containing shell meta-characters.
772
ac_configure_args=
773
ac_sep=
774
for ac_arg
775
do
776
  case $ac_arg in
777
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
778
  | --no-cr | --no-c) ;;
779
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
780
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
781
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
782
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
783
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
784
    ac_sep=" " ;;
785
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
786
     ac_sep=" " ;;
787
  esac
788
  # Get rid of the leading space.
789
done
790
 
791
# When interrupted or exit'd, cleanup temporary files, and complete
792
# config.log.  We remove comments because anyway the quotes in there
793
# would cause problems or look ugly.
794
trap 'exit_status=$?
795
  # Save into config.log some information that might help in debugging.
796
  echo >&5
797
  echo "## ----------------- ##" >&5
798
  echo "## Cache variables.  ##" >&5
799
  echo "## ----------------- ##" >&5
800
  echo >&5
801
  # The following way of writing the cache mishandles newlines in values,
802
{
803
  (set) 2>&1 |
804
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
805
    *ac_space=\ *)
806
      sed -n \
807
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
808
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
809
      ;;
810
    *)
811
      sed -n \
812
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
813
      ;;
814
    esac;
815
} >&5
816
  sed "/^$/d" confdefs.h >conftest.log
817
  if test -s conftest.log; then
818
    echo >&5
819
    echo "## ------------ ##" >&5
820
    echo "## confdefs.h.  ##" >&5
821
    echo "## ------------ ##" >&5
822
    echo >&5
823
    cat conftest.log >&5
824
  fi
825
  (echo; echo) >&5
826
  test "$ac_signal" != 0 &&
827
    echo "$as_me: caught signal $ac_signal" >&5
828
  echo "$as_me: exit $exit_status" >&5
829
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
830
    exit $exit_status
831
     ' 0
832
for ac_signal in 1 2 13 15; do
833
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
834
done
835
ac_signal=0
836
 
837
# confdefs.h avoids OS command line length limits that DEFS can exceed.
838
rm -rf conftest* confdefs.h
839
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
840
echo >confdefs.h
841
 
842
# Let the site file select an alternate cache file if it wants to.
843
# Prefer explicitly selected file to automatically selected ones.
844
if test -z "$CONFIG_SITE"; then
845
  if test "x$prefix" != xNONE; then
846
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
847
  else
848
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
849
  fi
850
fi
851
for ac_site_file in $CONFIG_SITE; do
852
  if test -r "$ac_site_file"; then
853
    { echo "$as_me:853: loading site script $ac_site_file" >&5
854
echo "$as_me: loading site script $ac_site_file" >&6;}
855
    cat "$ac_site_file" >&5
856
    . "$ac_site_file"
857
  fi
858
done
859
 
860
if test -r "$cache_file"; then
861
  # Some versions of bash will fail to source /dev/null (special
862
  # files actually), so we avoid doing that.
863
  if test -f "$cache_file"; then
864
    { echo "$as_me:864: loading cache $cache_file" >&5
865
echo "$as_me: loading cache $cache_file" >&6;}
866
    case $cache_file in
867
      [\\/]* | ?:[\\/]* ) . $cache_file;;
868
      *)                      . ./$cache_file;;
869
    esac
870
  fi
871
else
872
  { echo "$as_me:872: creating cache $cache_file" >&5
873
echo "$as_me: creating cache $cache_file" >&6;}
874
  >$cache_file
875
fi
876
 
877
# Check that the precious variables saved in the cache have kept the same
878
# value.
879
ac_cache_corrupted=false
880
for ac_var in `(set) 2>&1 |
881
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
882
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
883
  eval ac_new_set=\$ac_env_${ac_var}_set
884
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
885
  eval ac_new_val="\$ac_env_${ac_var}_value"
886
  case $ac_old_set,$ac_new_set in
887
    set,)
888
      { echo "$as_me:888: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
889
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
890
      ac_cache_corrupted=: ;;
891
    ,set)
892
      { echo "$as_me:892: error: \`$ac_var' was not set in the previous run" >&5
893
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
894
      ac_cache_corrupted=: ;;
895
    ,);;
896
    *)
897
      if test "x$ac_old_val" != "x$ac_new_val"; then
898
        { echo "$as_me:898: error: \`$ac_var' has changed since the previous run:" >&5
899
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
900
        { echo "$as_me:900:   former value:  $ac_old_val" >&5
901
echo "$as_me:   former value:  $ac_old_val" >&2;}
902
        { echo "$as_me:902:   current value: $ac_new_val" >&5
903
echo "$as_me:   current value: $ac_new_val" >&2;}
904
        ac_cache_corrupted=:
905
      fi;;
906
  esac
907
  # Pass precious variables to config.status.  It doesn't matter if
908
  # we pass some twice (in addition to the command line arguments).
909
  if test "$ac_new_set" = set; then
910
    case $ac_new_val in
911
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
912
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
913
      ac_configure_args="$ac_configure_args '$ac_arg'"
914
      ;;
915
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
916
       ;;
917
    esac
918
  fi
919
done
920
if $ac_cache_corrupted; then
921
  { echo "$as_me:921: error: changes in the environment can compromise the build" >&5
922
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
923
  { { echo "$as_me:923: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
924
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
925
   { (exit 1); exit 1; }; }
926
fi
927
 
928
ac_ext=c
929
ac_cpp='$CPP $CPPFLAGS'
930
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
931
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
932
ac_compiler_gnu=$ac_cv_c_compiler_gnu
933
 
934
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
935
  *c*,-n*) ECHO_N= ECHO_C='
936
' ECHO_T='      ' ;;
937
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
938
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
939
esac
940
echo "#! $SHELL" >conftest.sh
941
echo  "exit 0"   >>conftest.sh
942
chmod +x conftest.sh
943
if { (echo "$as_me:943: PATH=\".;.\"; conftest.sh") >&5
944
  (PATH=".;."; conftest.sh) 2>&5
945
  ac_status=$?
946
  echo "$as_me:946: \$? = $ac_status" >&5
947
  (exit $ac_status); }; then
948
  ac_path_separator=';'
949
else
950
  ac_path_separator=:
951
fi
952
PATH_SEPARATOR="$ac_path_separator"
953
rm -f conftest.sh
954
 
955
for ac_prog in gmake make
956
do
957
  # Extract the first word of "$ac_prog", so it can be a program name with args.
958
set dummy $ac_prog; ac_word=$2
959
echo "$as_me:959: checking for $ac_word" >&5
960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
961
if test "${ac_cv_prog_MAKE+set}" = set; then
962
  echo $ECHO_N "(cached) $ECHO_C" >&6
963
else
964
  if test -n "$MAKE"; then
965
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
966
else
967
  ac_save_IFS=$IFS; IFS=$ac_path_separator
968
ac_dummy="$PATH"
969
for ac_dir in $ac_dummy; do
970
  IFS=$ac_save_IFS
971
  test -z "$ac_dir" && ac_dir=.
972
  $as_executable_p "$ac_dir/$ac_word" || continue
973
ac_cv_prog_MAKE="$ac_prog"
974
echo "$as_me:974: found $ac_dir/$ac_word" >&5
975
break
976
done
977
 
978
fi
979
fi
980
MAKE=$ac_cv_prog_MAKE
981
if test -n "$MAKE"; then
982
  echo "$as_me:982: result: $MAKE" >&5
983
echo "${ECHO_T}$MAKE" >&6
984
else
985
  echo "$as_me:985: result: no" >&5
986
echo "${ECHO_T}no" >&6
987
fi
988
 
989
  test -n "$MAKE" && break
990
done
991
 
992
ENDIF=endif
993
 
994
RTEMS_TOPdir="../../../../..";
995
 
996
test -n "$with_target_subdir" || with_target_subdir="."
997
 
998
if test "$with_target_subdir" = "." ; then
999
# Native
1000
PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
1001
else
1002
# Cross
1003
dots=`echo $with_target_subdir|\
1004
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1005
PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
1006
fi
1007
 
1008
if test "$with_target_subdir" = "." ; then
1009
# Native
1010
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
1011
else
1012
# Cross
1013
PROJECT_ROOT="${RTEMS_TOPdir}/\$(top_builddir)"
1014
fi
1015
 
1016
echo "$as_me:1016: checking for RTEMS Version" >&5
1017
echo $ECHO_N "checking for RTEMS Version... $ECHO_C" >&6
1018
if test -r "${srcdir}/${RTEMS_TOPdir}/aclocal/version.m4"; then
1019
  :
1020
else
1021
  { { echo "$as_me:1021: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&5
1022
echo "$as_me: error: Unable to find ${RTEMS_TOPdir}/aclocal/version.m4" >&2;}
1023
   { (exit 1); exit 1; }; }
1024
fi
1025
 
1026
echo "$as_me:1026: result: ss-20020807" >&5
1027
echo "${ECHO_T}ss-20020807" >&6
1028
 
1029
ac_aux_dir=
1030
for ac_dir in ../../../../.. $srcdir/../../../../..; do
1031
  if test -f $ac_dir/install-sh; then
1032
    ac_aux_dir=$ac_dir
1033
    ac_install_sh="$ac_aux_dir/install-sh -c"
1034
    break
1035
  elif test -f $ac_dir/install.sh; then
1036
    ac_aux_dir=$ac_dir
1037
    ac_install_sh="$ac_aux_dir/install.sh -c"
1038
    break
1039
  elif test -f $ac_dir/shtool; then
1040
    ac_aux_dir=$ac_dir
1041
    ac_install_sh="$ac_aux_dir/shtool install -c"
1042
    break
1043
  fi
1044
done
1045
if test -z "$ac_aux_dir"; then
1046
  { { echo "$as_me:1046: error: cannot find install-sh or install.sh in ../../../../.. $srcdir/../../../../.." >&5
1047
echo "$as_me: error: cannot find install-sh or install.sh in ../../../../.. $srcdir/../../../../.." >&2;}
1048
   { (exit 1); exit 1; }; }
1049
fi
1050
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1051
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1052
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1053
 
1054
# Make sure we can run config.sub.
1055
$ac_config_sub sun4 >/dev/null 2>&1 ||
1056
  { { echo "$as_me:1056: error: cannot run $ac_config_sub" >&5
1057
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1058
   { (exit 1); exit 1; }; }
1059
 
1060
echo "$as_me:1060: checking build system type" >&5
1061
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1062
if test "${ac_cv_build+set}" = set; then
1063
  echo $ECHO_N "(cached) $ECHO_C" >&6
1064
else
1065
  ac_cv_build_alias=$build_alias
1066
test -z "$ac_cv_build_alias" &&
1067
  ac_cv_build_alias=`$ac_config_guess`
1068
test -z "$ac_cv_build_alias" &&
1069
  { { echo "$as_me:1069: error: cannot guess build type; you must specify one" >&5
1070
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1071
   { (exit 1); exit 1; }; }
1072
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1073
  { { echo "$as_me:1073: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1074
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1075
   { (exit 1); exit 1; }; }
1076
 
1077
fi
1078
echo "$as_me:1078: result: $ac_cv_build" >&5
1079
echo "${ECHO_T}$ac_cv_build" >&6
1080
build=$ac_cv_build
1081
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1082
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1083
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1084
 
1085
echo "$as_me:1085: checking host system type" >&5
1086
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1087
if test "${ac_cv_host+set}" = set; then
1088
  echo $ECHO_N "(cached) $ECHO_C" >&6
1089
else
1090
  ac_cv_host_alias=$host_alias
1091
test -z "$ac_cv_host_alias" &&
1092
  ac_cv_host_alias=$ac_cv_build_alias
1093
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1094
  { { echo "$as_me:1094: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1095
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1096
   { (exit 1); exit 1; }; }
1097
 
1098
fi
1099
echo "$as_me:1099: result: $ac_cv_host" >&5
1100
echo "${ECHO_T}$ac_cv_host" >&6
1101
host=$ac_cv_host
1102
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105
 
1106
echo "$as_me:1106: checking target system type" >&5
1107
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1108
if test "${ac_cv_target+set}" = set; then
1109
  echo $ECHO_N "(cached) $ECHO_C" >&6
1110
else
1111
  ac_cv_target_alias=$target_alias
1112
test "x$ac_cv_target_alias" = "x" &&
1113
  ac_cv_target_alias=$ac_cv_host_alias
1114
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1115
  { { echo "$as_me:1115: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1116
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1117
   { (exit 1); exit 1; }; }
1118
 
1119
fi
1120
echo "$as_me:1120: result: $ac_cv_target" >&5
1121
echo "${ECHO_T}$ac_cv_target" >&6
1122
target=$ac_cv_target
1123
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1124
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1125
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1126
 
1127
# The aliases save the names the user supplied, while $host etc.
1128
# will get canonicalized.
1129
test -n "$target_alias" &&
1130
  test "$program_prefix$program_suffix$program_transform_name" = \
1131
    NONENONEs,x,x, &&
1132
  program_prefix=${target_alias}-
1133
echo "$as_me:1133: checking rtems target cpu" >&5
1134
echo $ECHO_N "checking rtems target cpu... $ECHO_C" >&6
1135
case "${target}" in
1136
  # hpux unix port should go here
1137
  i[34567]86-*linux*)           # unix "simulator" port
1138
        RTEMS_CPU=unix
1139
        ;;
1140
  i[34567]86-*freebsd*)         # unix "simulator" port
1141
        RTEMS_CPU=unix
1142
        ;;
1143
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1144
        RTEMS_CPU=unix
1145
        ;;
1146
  no_cpu-*rtems*)
1147
        RTEMS_CPU=no_cpu
1148
        ;;
1149
  sparc-sun-solaris*)           # unix "simulator" port
1150
        RTEMS_CPU=unix
1151
        ;;
1152
  *)
1153
        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1154
        ;;
1155
esac
1156
 
1157
echo "$as_me:1157: result: $RTEMS_CPU" >&5
1158
echo "${ECHO_T}$RTEMS_CPU" >&6
1159
 
1160
am__api_version="1.6"
1161
# Find a good install program.  We prefer a C program (faster),
1162
# so one script is as good as another.  But avoid the broken or
1163
# incompatible versions:
1164
# SysV /etc/install, /usr/sbin/install
1165
# SunOS /usr/etc/install
1166
# IRIX /sbin/install
1167
# AIX /bin/install
1168
# AmigaOS /C/install, which installs bootblocks on floppy discs
1169
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1170
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1171
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1172
# ./install, which can be erroneously created by make from ./install.sh.
1173
echo "$as_me:1173: checking for a BSD compatible install" >&5
1174
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1175
if test -z "$INSTALL"; then
1176
if test "${ac_cv_path_install+set}" = set; then
1177
  echo $ECHO_N "(cached) $ECHO_C" >&6
1178
else
1179
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1180
  for ac_dir in $PATH; do
1181
    IFS=$ac_save_IFS
1182
    # Account for people who put trailing slashes in PATH elements.
1183
    case $ac_dir/ in
1184
    / | ./ | .// | /cC/* \
1185
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1186
    | /usr/ucb/* ) ;;
1187
    *)
1188
      # OSF1 and SCO ODT 3.0 have their own names for install.
1189
      # Don't use installbsd from OSF since it installs stuff as root
1190
      # by default.
1191
      for ac_prog in ginstall scoinst install; do
1192
        if $as_executable_p "$ac_dir/$ac_prog"; then
1193
          if test $ac_prog = install &&
1194
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1195
            # AIX install.  It has an incompatible calling convention.
1196
            :
1197
          elif test $ac_prog = install &&
1198
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1199
            # program-specific install script used by HP pwplus--don't use.
1200
            :
1201
          else
1202
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1203
            break 2
1204
          fi
1205
        fi
1206
      done
1207
      ;;
1208
    esac
1209
  done
1210
 
1211
fi
1212
  if test "${ac_cv_path_install+set}" = set; then
1213
    INSTALL=$ac_cv_path_install
1214
  else
1215
    # As a last resort, use the slow shell script.  We don't cache a
1216
    # path for INSTALL within a source directory, because that will
1217
    # break other packages using the cache if that directory is
1218
    # removed, or if the path is relative.
1219
    INSTALL=$ac_install_sh
1220
  fi
1221
fi
1222
echo "$as_me:1222: result: $INSTALL" >&5
1223
echo "${ECHO_T}$INSTALL" >&6
1224
 
1225
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1226
# It thinks the first close brace ends the variable substitution.
1227
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1228
 
1229
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1230
 
1231
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1232
 
1233
echo "$as_me:1233: checking whether build environment is sane" >&5
1234
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1235
# Just in case
1236
sleep 1
1237
echo timestamp > conftest.file
1238
# Do `set' in a subshell so we don't clobber the current shell's
1239
# arguments.  Must try -L first in case configure is actually a
1240
# symlink; some systems play weird games with the mod time of symlinks
1241
# (eg FreeBSD returns the mod time of the symlink's containing
1242
# directory).
1243
if (
1244
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1245
   if test "$*" = "X"; then
1246
      # -L didn't work.
1247
      set X `ls -t $srcdir/configure conftest.file`
1248
   fi
1249
   rm -f conftest.file
1250
   if test "$*" != "X $srcdir/configure conftest.file" \
1251
      && test "$*" != "X conftest.file $srcdir/configure"; then
1252
 
1253
      # If neither matched, then we have a broken ls.  This can happen
1254
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1255
      # broken ls alias from the environment.  This has actually
1256
      # happened.  Such a system could not be considered "sane".
1257
      { { echo "$as_me:1257: error: ls -t appears to fail.  Make sure there is not a broken
1258
alias in your environment" >&5
1259
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1260
alias in your environment" >&2;}
1261
   { (exit 1); exit 1; }; }
1262
   fi
1263
 
1264
   test "$2" = conftest.file
1265
   )
1266
then
1267
   # Ok.
1268
   :
1269
else
1270
   { { echo "$as_me:1270: error: newly created file is older than distributed files!
1271
Check your system clock" >&5
1272
echo "$as_me: error: newly created file is older than distributed files!
1273
Check your system clock" >&2;}
1274
   { (exit 1); exit 1; }; }
1275
fi
1276
echo "$as_me:1276: result: yes" >&5
1277
echo "${ECHO_T}yes" >&6
1278
test "$program_prefix" != NONE &&
1279
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1280
# Use a double $ so make ignores it.
1281
test "$program_suffix" != NONE &&
1282
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1283
# Double any \ or $.  echo might interpret backslashes.
1284
# By default was `s,x,x', remove it if useless.
1285
cat <<\_ACEOF >conftest.sed
1286
s/[\\$]/&&/g;s/;s,x,x,$//
1287
_ACEOF
1288
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1289
rm conftest.sed
1290
 
1291
# expand $ac_aux_dir to an absolute path
1292
am_aux_dir=`cd $ac_aux_dir && pwd`
1293
 
1294
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1295
# Use eval to expand $SHELL
1296
if eval "$MISSING --run true"; then
1297
  am_missing_run="$MISSING --run "
1298
else
1299
  am_missing_run=
1300
  { echo "$as_me:1300: WARNING: \`missing' script is too old or missing" >&5
1301
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1302
fi
1303
 
1304
for ac_prog in mawk gawk nawk awk
1305
do
1306
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1307
set dummy $ac_prog; ac_word=$2
1308
echo "$as_me:1308: checking for $ac_word" >&5
1309
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1310
if test "${ac_cv_prog_AWK+set}" = set; then
1311
  echo $ECHO_N "(cached) $ECHO_C" >&6
1312
else
1313
  if test -n "$AWK"; then
1314
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1315
else
1316
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1317
ac_dummy="$PATH"
1318
for ac_dir in $ac_dummy; do
1319
  IFS=$ac_save_IFS
1320
  test -z "$ac_dir" && ac_dir=.
1321
  $as_executable_p "$ac_dir/$ac_word" || continue
1322
ac_cv_prog_AWK="$ac_prog"
1323
echo "$as_me:1323: found $ac_dir/$ac_word" >&5
1324
break
1325
done
1326
 
1327
fi
1328
fi
1329
AWK=$ac_cv_prog_AWK
1330
if test -n "$AWK"; then
1331
  echo "$as_me:1331: result: $AWK" >&5
1332
echo "${ECHO_T}$AWK" >&6
1333
else
1334
  echo "$as_me:1334: result: no" >&5
1335
echo "${ECHO_T}no" >&6
1336
fi
1337
 
1338
  test -n "$AWK" && break
1339
done
1340
 
1341
echo "$as_me:1341: checking whether ${MAKE-make} sets \${MAKE}" >&5
1342
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1343
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1344
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1345
  echo $ECHO_N "(cached) $ECHO_C" >&6
1346
else
1347
  cat >conftest.make <<\EOF
1348
all:
1349
        @echo 'ac_maketemp="${MAKE}"'
1350
EOF
1351
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1352
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1353
if test -n "$ac_maketemp"; then
1354
  eval ac_cv_prog_make_${ac_make}_set=yes
1355
else
1356
  eval ac_cv_prog_make_${ac_make}_set=no
1357
fi
1358
rm -f conftest.make
1359
fi
1360
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1361
  echo "$as_me:1361: result: yes" >&5
1362
echo "${ECHO_T}yes" >&6
1363
  SET_MAKE=
1364
else
1365
  echo "$as_me:1365: result: no" >&5
1366
echo "${ECHO_T}no" >&6
1367
  SET_MAKE="MAKE=${MAKE-make}"
1368
fi
1369
 
1370
 # test to see if srcdir already configured
1371
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1372
   test -f $srcdir/config.status; then
1373
  { { echo "$as_me:1373: error: source directory already configured; run \"make distclean\" there first" >&5
1374
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1375
   { (exit 1); exit 1; }; }
1376
fi
1377
 
1378
# Define the identity of the package.
1379
 PACKAGE=rtems-c-src-lib-libcpu-mips64orion
1380
 VERSION=ss-20020807
1381
 
1382
# Some tools Automake needs.
1383
 
1384
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1385
 
1386
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1387
 
1388
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1389
 
1390
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1391
 
1392
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1393
 
1394
AMTAR=${AMTAR-"${am_missing_run}tar"}
1395
 
1396
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1397
 
1398
# Installed binaries are usually stripped using `strip' when the user
1399
# run `make install-strip'.  However `strip' might not be the right
1400
# tool to use in cross-compilation environments, therefore Automake
1401
# will honor the `STRIP' environment variable to overrule this program.
1402
if test "$cross_compiling" != no; then
1403
  if test -n "$ac_tool_prefix"; then
1404
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1405
set dummy ${ac_tool_prefix}strip; ac_word=$2
1406
echo "$as_me:1406: checking for $ac_word" >&5
1407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408
if test "${ac_cv_prog_STRIP+set}" = set; then
1409
  echo $ECHO_N "(cached) $ECHO_C" >&6
1410
else
1411
  if test -n "$STRIP"; then
1412
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1413
else
1414
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1415
ac_dummy="$PATH"
1416
for ac_dir in $ac_dummy; do
1417
  IFS=$ac_save_IFS
1418
  test -z "$ac_dir" && ac_dir=.
1419
  $as_executable_p "$ac_dir/$ac_word" || continue
1420
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1421
echo "$as_me:1421: found $ac_dir/$ac_word" >&5
1422
break
1423
done
1424
 
1425
fi
1426
fi
1427
STRIP=$ac_cv_prog_STRIP
1428
if test -n "$STRIP"; then
1429
  echo "$as_me:1429: result: $STRIP" >&5
1430
echo "${ECHO_T}$STRIP" >&6
1431
else
1432
  echo "$as_me:1432: result: no" >&5
1433
echo "${ECHO_T}no" >&6
1434
fi
1435
 
1436
fi
1437
if test -z "$ac_cv_prog_STRIP"; then
1438
  ac_ct_STRIP=$STRIP
1439
  # Extract the first word of "strip", so it can be a program name with args.
1440
set dummy strip; ac_word=$2
1441
echo "$as_me:1441: checking for $ac_word" >&5
1442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1444
  echo $ECHO_N "(cached) $ECHO_C" >&6
1445
else
1446
  if test -n "$ac_ct_STRIP"; then
1447
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1448
else
1449
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1450
ac_dummy="$PATH"
1451
for ac_dir in $ac_dummy; do
1452
  IFS=$ac_save_IFS
1453
  test -z "$ac_dir" && ac_dir=.
1454
  $as_executable_p "$ac_dir/$ac_word" || continue
1455
ac_cv_prog_ac_ct_STRIP="strip"
1456
echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1457
break
1458
done
1459
 
1460
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1461
fi
1462
fi
1463
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1464
if test -n "$ac_ct_STRIP"; then
1465
  echo "$as_me:1465: result: $ac_ct_STRIP" >&5
1466
echo "${ECHO_T}$ac_ct_STRIP" >&6
1467
else
1468
  echo "$as_me:1468: result: no" >&5
1469
echo "${ECHO_T}no" >&6
1470
fi
1471
 
1472
  STRIP=$ac_ct_STRIP
1473
else
1474
  STRIP="$ac_cv_prog_STRIP"
1475
fi
1476
 
1477
fi
1478
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1479
 
1480
# We need awk for the "check" target.  The system "awk" is bad on
1481
# some platforms.
1482
 
1483
echo "$as_me:1483: checking whether to enable maintainer-specific portions of Makefiles" >&5
1484
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1485
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1486
if test "${enable_maintainer_mode+set}" = set; then
1487
  enableval="$enable_maintainer_mode"
1488
  USE_MAINTAINER_MODE=$enableval
1489
else
1490
  USE_MAINTAINER_MODE=no
1491
fi;
1492
  echo "$as_me:1492: result: $USE_MAINTAINER_MODE" >&5
1493
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1494
 
1495
if test $USE_MAINTAINER_MODE = yes; then
1496
  MAINTAINER_MODE_TRUE=
1497
  MAINTAINER_MODE_FALSE='#'
1498
else
1499
  MAINTAINER_MODE_TRUE='#'
1500
  MAINTAINER_MODE_FALSE=
1501
fi
1502
 
1503
  MAINT=$MAINTAINER_MODE_TRUE
1504
 
1505
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1506
if test "${enable_bare_cpu_cflags+set}" = set; then
1507
  enableval="$enable_bare_cpu_cflags"
1508
  case "${enableval}" in
1509
  no) BARE_CPU_CFLAGS="" ;;
1510
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1511
esac
1512
else
1513
  BARE_CPU_CFLAGS=""
1514
fi;
1515
 
1516
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1517
if test "${enable_bare_cpu_model+set}" = set; then
1518
  enableval="$enable_bare_cpu_model"
1519
  case "${enableval}" in
1520
  no)   BARE_CPU_MODEL="" ;;
1521
  *)    BARE_CPU_MODEL="${enableval}" ;;
1522
esac
1523
else
1524
  BARE_CPU_MODEL=""
1525
fi;
1526
 
1527
echo "$as_me:1527: checking for RTEMS_BSP" >&5
1528
echo $ECHO_N "checking for RTEMS_BSP... $ECHO_C" >&6
1529
if test "${rtems_cv_RTEMS_BSP+set}" = set; then
1530
  echo $ECHO_N "(cached) $ECHO_C" >&6
1531
else
1532
    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1533
 
1534
fi
1535
if test -z "$rtems_cv_RTEMS_BSP"; then
1536
  { { echo "$as_me:1536: error: Missing RTEMS_BSP" >&5
1537
echo "$as_me: error: Missing RTEMS_BSP" >&2;}
1538
   { (exit 1); exit 1; }; }
1539
fi
1540
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1541
echo "$as_me:1541: result: ${RTEMS_BSP}" >&5
1542
echo "${ECHO_T}${RTEMS_BSP}" >&6
1543
 
1544
RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
1545
 
1546
GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
1547
 
1548
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
1549
 
1550
PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP"
1551
 
1552
RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP
1553
 
1554
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1555
if test "${enable_bare_cpu_cflags+set}" = set; then
1556
  enableval="$enable_bare_cpu_cflags"
1557
  case "${enableval}" in
1558
  no) BARE_CPU_CFLAGS="" ;;
1559
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1560
esac
1561
else
1562
  BARE_CPU_CFLAGS=""
1563
fi;
1564
 
1565
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1566
if test "${enable_bare_cpu_model+set}" = set; then
1567
  enableval="$enable_bare_cpu_model"
1568
  case "${enableval}" in
1569
  no)   BARE_CPU_MODEL="" ;;
1570
  *)    BARE_CPU_MODEL="${enableval}" ;;
1571
esac
1572
else
1573
  BARE_CPU_MODEL=""
1574
fi;
1575
 
1576
if false; then
1577
  MULTILIB_TRUE=
1578
  MULTILIB_FALSE='#'
1579
else
1580
  MULTILIB_TRUE='#'
1581
  MULTILIB_FALSE=
1582
fi
1583
 
1584
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
1585
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1586
 
1587
bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1588
 
1589
# Is this a supported CPU?
1590
echo "$as_me:1590: checking if cpu $RTEMS_CPU is supported" >&5
1591
echo $ECHO_N "checking if cpu $RTEMS_CPU is supported... $ECHO_C" >&6
1592
# FIXME: Temporary hack
1593
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
1594
  echo "$as_me:1594: result: yes" >&5
1595
echo "${ECHO_T}yes" >&6
1596
else
1597
  { { echo "$as_me:1597: error: no" >&5
1598
echo "$as_me: error: no" >&2;}
1599
   { (exit 1); exit 1; }; }
1600
fi
1601
 
1602
RTEMS_HOST=$host_os
1603
case "${target}" in
1604
  # hpux unix port should go here
1605
  i[34567]86-*linux*)          # unix "simulator" port
1606
        RTEMS_HOST=Linux
1607
        ;;
1608
  i[34567]86-*freebsd*)         # unix "simulator" port
1609
        RTEMS_HOST=FreeBSD
1610
        ;;
1611
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1612
        RTEMS_HOST=Cygwin
1613
        ;;
1614
  sparc-sun-solaris*)           # unix "simulator" port
1615
        RTEMS_HOST=Solaris
1616
        ;;
1617
  *)
1618
        ;;
1619
esac
1620
 
1621
PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"
1622
 
1623
rm -f .deps 2>/dev/null
1624
mkdir .deps 2>/dev/null
1625
if test -d .deps; then
1626
  DEPDIR=.deps
1627
else
1628
  # MS-DOS does not allow filenames that begin with a dot.
1629
  DEPDIR=_deps
1630
fi
1631
rmdir .deps 2>/dev/null
1632
 
1633
ac_config_commands="$ac_config_commands depfiles"
1634
 
1635
am_make=${MAKE-make}
1636
cat > confinc << 'END'
1637
doit:
1638
        @echo done
1639
END
1640
# If we don't find an include directive, just comment out the code.
1641
echo "$as_me:1641: checking for style of include used by $am_make" >&5
1642
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1643
am__include="#"
1644
am__quote=
1645
_am_result=none
1646
# First try GNU make style include.
1647
echo "include confinc" > confmf
1648
# We grep out `Entering directory' and `Leaving directory'
1649
# messages which can occur if `w' ends up in MAKEFLAGS.
1650
# In particular we don't look at `^make:' because GNU make might
1651
# be invoked under some other name (usually "gmake"), in which
1652
# case it prints its new name instead of `make'.
1653
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1654
   am__include=include
1655
   am__quote=
1656
   _am_result=GNU
1657
fi
1658
# Now try BSD make style include.
1659
if test "$am__include" = "#"; then
1660
   echo '.include "confinc"' > confmf
1661
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1662
      am__include=.include
1663
      am__quote="\""
1664
      _am_result=BSD
1665
   fi
1666
fi
1667
 
1668
echo "$as_me:1668: result: $_am_result" >&5
1669
echo "${ECHO_T}$_am_result" >&6
1670
rm -f confinc confmf
1671
 
1672
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1673
if test "${enable_dependency_tracking+set}" = set; then
1674
  enableval="$enable_dependency_tracking"
1675
 
1676
fi;
1677
if test "x$enable_dependency_tracking" != xno; then
1678
  am_depcomp="$ac_aux_dir/depcomp"
1679
  AMDEPBACKSLASH='\'
1680
fi
1681
 
1682
if test "x$enable_dependency_tracking" != xno; then
1683
  AMDEP_TRUE=
1684
  AMDEP_FALSE='#'
1685
else
1686
  AMDEP_TRUE='#'
1687
  AMDEP_FALSE=
1688
fi
1689
 
1690
  if test "x$build_alias" != "x$host_alias"; then
1691
  rtems_tool_prefix=${ac_tool_prefix}
1692
fi
1693
 
1694
  # Extract the first word of "${rtems_tool_prefix}gcc", so it can be a program name with args.
1695
set dummy ${rtems_tool_prefix}gcc; ac_word=$2
1696
echo "$as_me:1696: checking for $ac_word" >&5
1697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698
if test "${ac_cv_prog_CC+set}" = set; then
1699
  echo $ECHO_N "(cached) $ECHO_C" >&6
1700
else
1701
  if test -n "$CC"; then
1702
  ac_cv_prog_CC="$CC" # Let the user override the test.
1703
else
1704
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1705
ac_dummy="$PATH"
1706
for ac_dir in $ac_dummy; do
1707
  IFS=$ac_save_IFS
1708
  test -z "$ac_dir" && ac_dir=.
1709
  $as_executable_p "$ac_dir/$ac_word" || continue
1710
ac_cv_prog_CC="${rtems_tool_prefix}gcc"
1711
echo "$as_me:1711: found $ac_dir/$ac_word" >&5
1712
break
1713
done
1714
 
1715
fi
1716
fi
1717
CC=$ac_cv_prog_CC
1718
if test -n "$CC"; then
1719
  echo "$as_me:1719: result: $CC" >&5
1720
echo "${ECHO_T}$CC" >&6
1721
else
1722
  echo "$as_me:1722: result: no" >&5
1723
echo "${ECHO_T}no" >&6
1724
fi
1725
 
1726
test -z "$CC" && \
1727
  { { echo "$as_me:1727: error: no acceptable cc found in \$PATH" >&5
1728
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1729
   { (exit 1); exit 1; }; }
1730
ac_ext=c
1731
ac_cpp='$CPP $CPPFLAGS'
1732
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1733
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1734
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1735
if test -n "$ac_tool_prefix"; then
1736
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1737
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1738
echo "$as_me:1738: checking for $ac_word" >&5
1739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740
if test "${ac_cv_prog_CC+set}" = set; then
1741
  echo $ECHO_N "(cached) $ECHO_C" >&6
1742
else
1743
  if test -n "$CC"; then
1744
  ac_cv_prog_CC="$CC" # Let the user override the test.
1745
else
1746
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1747
ac_dummy="$PATH"
1748
for ac_dir in $ac_dummy; do
1749
  IFS=$ac_save_IFS
1750
  test -z "$ac_dir" && ac_dir=.
1751
  $as_executable_p "$ac_dir/$ac_word" || continue
1752
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1753
echo "$as_me:1753: found $ac_dir/$ac_word" >&5
1754
break
1755
done
1756
 
1757
fi
1758
fi
1759
CC=$ac_cv_prog_CC
1760
if test -n "$CC"; then
1761
  echo "$as_me:1761: result: $CC" >&5
1762
echo "${ECHO_T}$CC" >&6
1763
else
1764
  echo "$as_me:1764: result: no" >&5
1765
echo "${ECHO_T}no" >&6
1766
fi
1767
 
1768
fi
1769
if test -z "$ac_cv_prog_CC"; then
1770
  ac_ct_CC=$CC
1771
  # Extract the first word of "gcc", so it can be a program name with args.
1772
set dummy gcc; ac_word=$2
1773
echo "$as_me:1773: checking for $ac_word" >&5
1774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1776
  echo $ECHO_N "(cached) $ECHO_C" >&6
1777
else
1778
  if test -n "$ac_ct_CC"; then
1779
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1780
else
1781
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1782
ac_dummy="$PATH"
1783
for ac_dir in $ac_dummy; do
1784
  IFS=$ac_save_IFS
1785
  test -z "$ac_dir" && ac_dir=.
1786
  $as_executable_p "$ac_dir/$ac_word" || continue
1787
ac_cv_prog_ac_ct_CC="gcc"
1788
echo "$as_me:1788: found $ac_dir/$ac_word" >&5
1789
break
1790
done
1791
 
1792
fi
1793
fi
1794
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795
if test -n "$ac_ct_CC"; then
1796
  echo "$as_me:1796: result: $ac_ct_CC" >&5
1797
echo "${ECHO_T}$ac_ct_CC" >&6
1798
else
1799
  echo "$as_me:1799: result: no" >&5
1800
echo "${ECHO_T}no" >&6
1801
fi
1802
 
1803
  CC=$ac_ct_CC
1804
else
1805
  CC="$ac_cv_prog_CC"
1806
fi
1807
 
1808
if test -z "$CC"; then
1809
  if test -n "$ac_tool_prefix"; then
1810
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1811
set dummy ${ac_tool_prefix}cc; ac_word=$2
1812
echo "$as_me:1812: checking for $ac_word" >&5
1813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814
if test "${ac_cv_prog_CC+set}" = set; then
1815
  echo $ECHO_N "(cached) $ECHO_C" >&6
1816
else
1817
  if test -n "$CC"; then
1818
  ac_cv_prog_CC="$CC" # Let the user override the test.
1819
else
1820
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1821
ac_dummy="$PATH"
1822
for ac_dir in $ac_dummy; do
1823
  IFS=$ac_save_IFS
1824
  test -z "$ac_dir" && ac_dir=.
1825
  $as_executable_p "$ac_dir/$ac_word" || continue
1826
ac_cv_prog_CC="${ac_tool_prefix}cc"
1827
echo "$as_me:1827: found $ac_dir/$ac_word" >&5
1828
break
1829
done
1830
 
1831
fi
1832
fi
1833
CC=$ac_cv_prog_CC
1834
if test -n "$CC"; then
1835
  echo "$as_me:1835: result: $CC" >&5
1836
echo "${ECHO_T}$CC" >&6
1837
else
1838
  echo "$as_me:1838: result: no" >&5
1839
echo "${ECHO_T}no" >&6
1840
fi
1841
 
1842
fi
1843
if test -z "$ac_cv_prog_CC"; then
1844
  ac_ct_CC=$CC
1845
  # Extract the first word of "cc", so it can be a program name with args.
1846
set dummy cc; ac_word=$2
1847
echo "$as_me:1847: checking for $ac_word" >&5
1848
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850
  echo $ECHO_N "(cached) $ECHO_C" >&6
1851
else
1852
  if test -n "$ac_ct_CC"; then
1853
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1854
else
1855
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1856
ac_dummy="$PATH"
1857
for ac_dir in $ac_dummy; do
1858
  IFS=$ac_save_IFS
1859
  test -z "$ac_dir" && ac_dir=.
1860
  $as_executable_p "$ac_dir/$ac_word" || continue
1861
ac_cv_prog_ac_ct_CC="cc"
1862
echo "$as_me:1862: found $ac_dir/$ac_word" >&5
1863
break
1864
done
1865
 
1866
fi
1867
fi
1868
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1869
if test -n "$ac_ct_CC"; then
1870
  echo "$as_me:1870: result: $ac_ct_CC" >&5
1871
echo "${ECHO_T}$ac_ct_CC" >&6
1872
else
1873
  echo "$as_me:1873: result: no" >&5
1874
echo "${ECHO_T}no" >&6
1875
fi
1876
 
1877
  CC=$ac_ct_CC
1878
else
1879
  CC="$ac_cv_prog_CC"
1880
fi
1881
 
1882
fi
1883
if test -z "$CC"; then
1884
  # Extract the first word of "cc", so it can be a program name with args.
1885
set dummy cc; ac_word=$2
1886
echo "$as_me:1886: checking for $ac_word" >&5
1887
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888
if test "${ac_cv_prog_CC+set}" = set; then
1889
  echo $ECHO_N "(cached) $ECHO_C" >&6
1890
else
1891
  if test -n "$CC"; then
1892
  ac_cv_prog_CC="$CC" # Let the user override the test.
1893
else
1894
  ac_prog_rejected=no
1895
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1896
ac_dummy="$PATH"
1897
for ac_dir in $ac_dummy; do
1898
  IFS=$ac_save_IFS
1899
  test -z "$ac_dir" && ac_dir=.
1900
  $as_executable_p "$ac_dir/$ac_word" || continue
1901
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1902
  ac_prog_rejected=yes
1903
  continue
1904
fi
1905
ac_cv_prog_CC="cc"
1906
echo "$as_me:1906: found $ac_dir/$ac_word" >&5
1907
break
1908
done
1909
 
1910
if test $ac_prog_rejected = yes; then
1911
  # We found a bogon in the path, so make sure we never use it.
1912
  set dummy $ac_cv_prog_CC
1913
  shift
1914
  if test $# != 0; then
1915
    # We chose a different compiler from the bogus one.
1916
    # However, it has the same basename, so the bogon will be chosen
1917
    # first if we set CC to just the basename; use the full file name.
1918
    shift
1919
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1920
    shift
1921
    ac_cv_prog_CC="$@"
1922
  fi
1923
fi
1924
fi
1925
fi
1926
CC=$ac_cv_prog_CC
1927
if test -n "$CC"; then
1928
  echo "$as_me:1928: result: $CC" >&5
1929
echo "${ECHO_T}$CC" >&6
1930
else
1931
  echo "$as_me:1931: result: no" >&5
1932
echo "${ECHO_T}no" >&6
1933
fi
1934
 
1935
fi
1936
if test -z "$CC"; then
1937
  if test -n "$ac_tool_prefix"; then
1938
  for ac_prog in cl
1939
  do
1940
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1941
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1942
echo "$as_me:1942: checking for $ac_word" >&5
1943
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944
if test "${ac_cv_prog_CC+set}" = set; then
1945
  echo $ECHO_N "(cached) $ECHO_C" >&6
1946
else
1947
  if test -n "$CC"; then
1948
  ac_cv_prog_CC="$CC" # Let the user override the test.
1949
else
1950
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1951
ac_dummy="$PATH"
1952
for ac_dir in $ac_dummy; do
1953
  IFS=$ac_save_IFS
1954
  test -z "$ac_dir" && ac_dir=.
1955
  $as_executable_p "$ac_dir/$ac_word" || continue
1956
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1957
echo "$as_me:1957: found $ac_dir/$ac_word" >&5
1958
break
1959
done
1960
 
1961
fi
1962
fi
1963
CC=$ac_cv_prog_CC
1964
if test -n "$CC"; then
1965
  echo "$as_me:1965: result: $CC" >&5
1966
echo "${ECHO_T}$CC" >&6
1967
else
1968
  echo "$as_me:1968: result: no" >&5
1969
echo "${ECHO_T}no" >&6
1970
fi
1971
 
1972
    test -n "$CC" && break
1973
  done
1974
fi
1975
if test -z "$CC"; then
1976
  ac_ct_CC=$CC
1977
  for ac_prog in cl
1978
do
1979
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1980
set dummy $ac_prog; ac_word=$2
1981
echo "$as_me:1981: checking for $ac_word" >&5
1982
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1984
  echo $ECHO_N "(cached) $ECHO_C" >&6
1985
else
1986
  if test -n "$ac_ct_CC"; then
1987
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1988
else
1989
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1990
ac_dummy="$PATH"
1991
for ac_dir in $ac_dummy; do
1992
  IFS=$ac_save_IFS
1993
  test -z "$ac_dir" && ac_dir=.
1994
  $as_executable_p "$ac_dir/$ac_word" || continue
1995
ac_cv_prog_ac_ct_CC="$ac_prog"
1996
echo "$as_me:1996: found $ac_dir/$ac_word" >&5
1997
break
1998
done
1999
 
2000
fi
2001
fi
2002
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2003
if test -n "$ac_ct_CC"; then
2004
  echo "$as_me:2004: result: $ac_ct_CC" >&5
2005
echo "${ECHO_T}$ac_ct_CC" >&6
2006
else
2007
  echo "$as_me:2007: result: no" >&5
2008
echo "${ECHO_T}no" >&6
2009
fi
2010
 
2011
  test -n "$ac_ct_CC" && break
2012
done
2013
 
2014
  CC=$ac_ct_CC
2015
fi
2016
 
2017
fi
2018
 
2019
test -z "$CC" && { { echo "$as_me:2019: error: no acceptable cc found in \$PATH" >&5
2020
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2021
   { (exit 1); exit 1; }; }
2022
 
2023
# Provide some information about the compiler.
2024
echo "$as_me:2024:" \
2025
     "checking for C compiler version" >&5
2026
ac_compiler=`set X $ac_compile; echo $2`
2027
{ (eval echo "$as_me:2027: \"$ac_compiler --version &5\"") >&5
2028
  (eval $ac_compiler --version &5) 2>&5
2029
  ac_status=$?
2030
  echo "$as_me:2030: \$? = $ac_status" >&5
2031
  (exit $ac_status); }
2032
{ (eval echo "$as_me:2032: \"$ac_compiler -v &5\"") >&5
2033
  (eval $ac_compiler -v &5) 2>&5
2034
  ac_status=$?
2035
  echo "$as_me:2035: \$? = $ac_status" >&5
2036
  (exit $ac_status); }
2037
{ (eval echo "$as_me:2037: \"$ac_compiler -V &5\"") >&5
2038
  (eval $ac_compiler -V &5) 2>&5
2039
  ac_status=$?
2040
  echo "$as_me:2040: \$? = $ac_status" >&5
2041
  (exit $ac_status); }
2042
 
2043
cat >conftest.$ac_ext <<_ACEOF
2044
#line 2044 "configure"
2045
#include "confdefs.h"
2046
 
2047
int
2048
main ()
2049
{
2050
 
2051
  ;
2052
  return 0;
2053
}
2054
_ACEOF
2055
ac_clean_files_save=$ac_clean_files
2056
ac_clean_files="$ac_clean_files a.out a.exe"
2057
# Try to create an executable without -o first, disregard a.out.
2058
# It will help us diagnose broken compilers, and finding out an intuition
2059
# of exeext.
2060
echo "$as_me:2060: checking for C compiler default output" >&5
2061
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2062
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2063
if { (eval echo "$as_me:2063: \"$ac_link_default\"") >&5
2064
  (eval $ac_link_default) 2>&5
2065
  ac_status=$?
2066
  echo "$as_me:2066: \$? = $ac_status" >&5
2067
  (exit $ac_status); }; then
2068
  # Find the output, starting from the most likely.  This scheme is
2069
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2070
# resort.
2071
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2072
                ls a.out conftest 2>/dev/null;
2073
                ls a.* conftest.* 2>/dev/null`; do
2074
  case $ac_file in
2075
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2076
    a.out ) # We found the default executable, but exeext='' is most
2077
            # certainly right.
2078
            break;;
2079
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2081
          export ac_cv_exeext
2082
          break;;
2083
    * ) break;;
2084
  esac
2085
done
2086
else
2087
  echo "$as_me: failed program was:" >&5
2088
cat conftest.$ac_ext >&5
2089
{ { echo "$as_me:2089: error: C compiler cannot create executables" >&5
2090
echo "$as_me: error: C compiler cannot create executables" >&2;}
2091
   { (exit 77); exit 77; }; }
2092
fi
2093
 
2094
ac_exeext=$ac_cv_exeext
2095
echo "$as_me:2095: result: $ac_file" >&5
2096
echo "${ECHO_T}$ac_file" >&6
2097
 
2098
# Check the compiler produces executables we can run.  If not, either
2099
# the compiler is broken, or we cross compile.
2100
echo "$as_me:2100: checking whether the C compiler works" >&5
2101
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2102
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2103
# If not cross compiling, check that we can run a simple program.
2104
if test "$cross_compiling" != yes; then
2105
  if { ac_try='./$ac_file'
2106
  { (eval echo "$as_me:2106: \"$ac_try\"") >&5
2107
  (eval $ac_try) 2>&5
2108
  ac_status=$?
2109
  echo "$as_me:2109: \$? = $ac_status" >&5
2110
  (exit $ac_status); }; }; then
2111
    cross_compiling=no
2112
  else
2113
    if test "$cross_compiling" = maybe; then
2114
        cross_compiling=yes
2115
    else
2116
        { { echo "$as_me:2116: error: cannot run C compiled programs.
2117
If you meant to cross compile, use \`--host'." >&5
2118
echo "$as_me: error: cannot run C compiled programs.
2119
If you meant to cross compile, use \`--host'." >&2;}
2120
   { (exit 1); exit 1; }; }
2121
    fi
2122
  fi
2123
fi
2124
echo "$as_me:2124: result: yes" >&5
2125
echo "${ECHO_T}yes" >&6
2126
 
2127
rm -f a.out a.exe conftest$ac_cv_exeext
2128
ac_clean_files=$ac_clean_files_save
2129
# Check the compiler produces executables we can run.  If not, either
2130
# the compiler is broken, or we cross compile.
2131
echo "$as_me:2131: checking whether we are cross compiling" >&5
2132
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2133
echo "$as_me:2133: result: $cross_compiling" >&5
2134
echo "${ECHO_T}$cross_compiling" >&6
2135
 
2136
echo "$as_me:2136: checking for executable suffix" >&5
2137
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2138
if { (eval echo "$as_me:2138: \"$ac_link\"") >&5
2139
  (eval $ac_link) 2>&5
2140
  ac_status=$?
2141
  echo "$as_me:2141: \$? = $ac_status" >&5
2142
  (exit $ac_status); }; then
2143
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2144
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2145
# work properly (i.e., refer to `conftest.exe'), while it won't with
2146
# `rm'.
2147
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2148
  case $ac_file in
2149
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2150
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2151
          export ac_cv_exeext
2152
          break;;
2153
    * ) break;;
2154
  esac
2155
done
2156
else
2157
  { { echo "$as_me:2157: error: cannot compute EXEEXT: cannot compile and link" >&5
2158
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2159
   { (exit 1); exit 1; }; }
2160
fi
2161
 
2162
rm -f conftest$ac_cv_exeext
2163
echo "$as_me:2163: result: $ac_cv_exeext" >&5
2164
echo "${ECHO_T}$ac_cv_exeext" >&6
2165
 
2166
rm -f conftest.$ac_ext
2167
EXEEXT=$ac_cv_exeext
2168
ac_exeext=$EXEEXT
2169
echo "$as_me:2169: checking for object suffix" >&5
2170
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2171
if test "${ac_cv_objext+set}" = set; then
2172
  echo $ECHO_N "(cached) $ECHO_C" >&6
2173
else
2174
  cat >conftest.$ac_ext <<_ACEOF
2175
#line 2175 "configure"
2176
#include "confdefs.h"
2177
 
2178
int
2179
main ()
2180
{
2181
 
2182
  ;
2183
  return 0;
2184
}
2185
_ACEOF
2186
rm -f conftest.o conftest.obj
2187
if { (eval echo "$as_me:2187: \"$ac_compile\"") >&5
2188
  (eval $ac_compile) 2>&5
2189
  ac_status=$?
2190
  echo "$as_me:2190: \$? = $ac_status" >&5
2191
  (exit $ac_status); }; then
2192
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193
  case $ac_file in
2194
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2195
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2196
       break;;
2197
  esac
2198
done
2199
else
2200
  echo "$as_me: failed program was:" >&5
2201
cat conftest.$ac_ext >&5
2202
{ { echo "$as_me:2202: error: cannot compute OBJEXT: cannot compile" >&5
2203
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2204
   { (exit 1); exit 1; }; }
2205
fi
2206
 
2207
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2208
fi
2209
echo "$as_me:2209: result: $ac_cv_objext" >&5
2210
echo "${ECHO_T}$ac_cv_objext" >&6
2211
OBJEXT=$ac_cv_objext
2212
ac_objext=$OBJEXT
2213
echo "$as_me:2213: checking whether we are using the GNU C compiler" >&5
2214
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2215
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2216
  echo $ECHO_N "(cached) $ECHO_C" >&6
2217
else
2218
  cat >conftest.$ac_ext <<_ACEOF
2219
#line 2219 "configure"
2220
#include "confdefs.h"
2221
 
2222
int
2223
main ()
2224
{
2225
#ifndef __GNUC__
2226
       choke me
2227
#endif
2228
 
2229
  ;
2230
  return 0;
2231
}
2232
_ACEOF
2233
rm -f conftest.$ac_objext
2234
if { (eval echo "$as_me:2234: \"$ac_compile\"") >&5
2235
  (eval $ac_compile) 2>&5
2236
  ac_status=$?
2237
  echo "$as_me:2237: \$? = $ac_status" >&5
2238
  (exit $ac_status); } &&
2239
         { ac_try='test -s conftest.$ac_objext'
2240
  { (eval echo "$as_me:2240: \"$ac_try\"") >&5
2241
  (eval $ac_try) 2>&5
2242
  ac_status=$?
2243
  echo "$as_me:2243: \$? = $ac_status" >&5
2244
  (exit $ac_status); }; }; then
2245
  ac_compiler_gnu=yes
2246
else
2247
  echo "$as_me: failed program was:" >&5
2248
cat conftest.$ac_ext >&5
2249
ac_compiler_gnu=no
2250
fi
2251
rm -f conftest.$ac_objext conftest.$ac_ext
2252
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253
 
2254
fi
2255
echo "$as_me:2255: result: $ac_cv_c_compiler_gnu" >&5
2256
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257
GCC=`test $ac_compiler_gnu = yes && echo yes`
2258
ac_test_CFLAGS=${CFLAGS+set}
2259
ac_save_CFLAGS=$CFLAGS
2260
CFLAGS="-g"
2261
echo "$as_me:2261: checking whether $CC accepts -g" >&5
2262
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263
if test "${ac_cv_prog_cc_g+set}" = set; then
2264
  echo $ECHO_N "(cached) $ECHO_C" >&6
2265
else
2266
  cat >conftest.$ac_ext <<_ACEOF
2267
#line 2267 "configure"
2268
#include "confdefs.h"
2269
 
2270
int
2271
main ()
2272
{
2273
 
2274
  ;
2275
  return 0;
2276
}
2277
_ACEOF
2278
rm -f conftest.$ac_objext
2279
if { (eval echo "$as_me:2279: \"$ac_compile\"") >&5
2280
  (eval $ac_compile) 2>&5
2281
  ac_status=$?
2282
  echo "$as_me:2282: \$? = $ac_status" >&5
2283
  (exit $ac_status); } &&
2284
         { ac_try='test -s conftest.$ac_objext'
2285
  { (eval echo "$as_me:2285: \"$ac_try\"") >&5
2286
  (eval $ac_try) 2>&5
2287
  ac_status=$?
2288
  echo "$as_me:2288: \$? = $ac_status" >&5
2289
  (exit $ac_status); }; }; then
2290
  ac_cv_prog_cc_g=yes
2291
else
2292
  echo "$as_me: failed program was:" >&5
2293
cat conftest.$ac_ext >&5
2294
ac_cv_prog_cc_g=no
2295
fi
2296
rm -f conftest.$ac_objext conftest.$ac_ext
2297
fi
2298
echo "$as_me:2298: result: $ac_cv_prog_cc_g" >&5
2299
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2300
if test "$ac_test_CFLAGS" = set; then
2301
  CFLAGS=$ac_save_CFLAGS
2302
elif test $ac_cv_prog_cc_g = yes; then
2303
  if test "$GCC" = yes; then
2304
    CFLAGS="-g -O2"
2305
  else
2306
    CFLAGS="-g"
2307
  fi
2308
else
2309
  if test "$GCC" = yes; then
2310
    CFLAGS="-O2"
2311
  else
2312
    CFLAGS=
2313
  fi
2314
fi
2315
# Some people use a C++ compiler to compile C.  Since we use `exit',
2316
# in C++ we need to declare it.  In case someone uses the same compiler
2317
# for both compiling C and C++ we need to have the C++ compiler decide
2318
# the declaration of exit, since it's the most demanding environment.
2319
cat >conftest.$ac_ext <<_ACEOF
2320
#ifndef __cplusplus
2321
  choke me
2322
#endif
2323
_ACEOF
2324
rm -f conftest.$ac_objext
2325
if { (eval echo "$as_me:2325: \"$ac_compile\"") >&5
2326
  (eval $ac_compile) 2>&5
2327
  ac_status=$?
2328
  echo "$as_me:2328: \$? = $ac_status" >&5
2329
  (exit $ac_status); } &&
2330
         { ac_try='test -s conftest.$ac_objext'
2331
  { (eval echo "$as_me:2331: \"$ac_try\"") >&5
2332
  (eval $ac_try) 2>&5
2333
  ac_status=$?
2334
  echo "$as_me:2334: \$? = $ac_status" >&5
2335
  (exit $ac_status); }; }; then
2336
  for ac_declaration in \
2337
   ''\
2338
   '#include ' \
2339
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2340
   'extern "C" void std::exit (int); using std::exit;' \
2341
   'extern "C" void exit (int) throw ();' \
2342
   'extern "C" void exit (int);' \
2343
   'void exit (int);'
2344
do
2345
  cat >conftest.$ac_ext <<_ACEOF
2346
#line 2346 "configure"
2347
#include "confdefs.h"
2348
#include 
2349
$ac_declaration
2350
int
2351
main ()
2352
{
2353
exit (42);
2354
  ;
2355
  return 0;
2356
}
2357
_ACEOF
2358
rm -f conftest.$ac_objext
2359
if { (eval echo "$as_me:2359: \"$ac_compile\"") >&5
2360
  (eval $ac_compile) 2>&5
2361
  ac_status=$?
2362
  echo "$as_me:2362: \$? = $ac_status" >&5
2363
  (exit $ac_status); } &&
2364
         { ac_try='test -s conftest.$ac_objext'
2365
  { (eval echo "$as_me:2365: \"$ac_try\"") >&5
2366
  (eval $ac_try) 2>&5
2367
  ac_status=$?
2368
  echo "$as_me:2368: \$? = $ac_status" >&5
2369
  (exit $ac_status); }; }; then
2370
  :
2371
else
2372
  echo "$as_me: failed program was:" >&5
2373
cat conftest.$ac_ext >&5
2374
continue
2375
fi
2376
rm -f conftest.$ac_objext conftest.$ac_ext
2377
  cat >conftest.$ac_ext <<_ACEOF
2378
#line 2378 "configure"
2379
#include "confdefs.h"
2380
$ac_declaration
2381
int
2382
main ()
2383
{
2384
exit (42);
2385
  ;
2386
  return 0;
2387
}
2388
_ACEOF
2389
rm -f conftest.$ac_objext
2390
if { (eval echo "$as_me:2390: \"$ac_compile\"") >&5
2391
  (eval $ac_compile) 2>&5
2392
  ac_status=$?
2393
  echo "$as_me:2393: \$? = $ac_status" >&5
2394
  (exit $ac_status); } &&
2395
         { ac_try='test -s conftest.$ac_objext'
2396
  { (eval echo "$as_me:2396: \"$ac_try\"") >&5
2397
  (eval $ac_try) 2>&5
2398
  ac_status=$?
2399
  echo "$as_me:2399: \$? = $ac_status" >&5
2400
  (exit $ac_status); }; }; then
2401
  break
2402
else
2403
  echo "$as_me: failed program was:" >&5
2404
cat conftest.$ac_ext >&5
2405
fi
2406
rm -f conftest.$ac_objext conftest.$ac_ext
2407
done
2408
rm -f conftest*
2409
if test -n "$ac_declaration"; then
2410
  echo '#ifdef __cplusplus' >>confdefs.h
2411
  echo $ac_declaration      >>confdefs.h
2412
  echo '#endif'             >>confdefs.h
2413
fi
2414
 
2415
else
2416
  echo "$as_me: failed program was:" >&5
2417
cat conftest.$ac_ext >&5
2418
fi
2419
rm -f conftest.$ac_objext conftest.$ac_ext
2420
ac_ext=c
2421
ac_cpp='$CPP $CPPFLAGS'
2422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425
 
2426
depcc="$CC"   am_compiler_list=
2427
 
2428
echo "$as_me:2428: checking dependency style of $depcc" >&5
2429
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2430
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2431
  echo $ECHO_N "(cached) $ECHO_C" >&6
2432
else
2433
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2434
  # We make a subdir and do the tests there.  Otherwise we can end up
2435
  # making bogus files that we don't know about and never remove.  For
2436
  # instance it was reported that on HP-UX the gcc test will end up
2437
  # making a dummy file named `D' -- because `-MD' means `put the output
2438
  # in D'.
2439
  mkdir conftest.dir
2440
  # Copy depcomp to subdir because otherwise we won't find it if we're
2441
  # using a relative directory.
2442
  cp "$am_depcomp" conftest.dir
2443
  cd conftest.dir
2444
 
2445
  am_cv_CC_dependencies_compiler_type=none
2446
  if test "$am_compiler_list" = ""; then
2447
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2448
  fi
2449
  for depmode in $am_compiler_list; do
2450
    # We need to recreate these files for each test, as the compiler may
2451
    # overwrite some of them when testing with obscure command lines.
2452
    # This happens at least with the AIX C compiler.
2453
    echo '#include "conftest.h"' > conftest.c
2454
    echo 'int i;' > conftest.h
2455
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2456
 
2457
    case $depmode in
2458
    nosideeffect)
2459
      # after this tag, mechanisms are not by side-effect, so they'll
2460
      # only be used when explicitly requested
2461
      if test "x$enable_dependency_tracking" = xyes; then
2462
        continue
2463
      else
2464
        break
2465
      fi
2466
      ;;
2467
    none) break ;;
2468
    esac
2469
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2470
    # mode.  It turns out that the SunPro C++ compiler does not properly
2471
    # handle `-M -o', and we need to detect this.
2472
    if depmode=$depmode \
2473
       source=conftest.c object=conftest.o \
2474
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2475
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2476
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2477
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2478
      am_cv_CC_dependencies_compiler_type=$depmode
2479
      break
2480
    fi
2481
  done
2482
 
2483
  cd ..
2484
  rm -rf conftest.dir
2485
else
2486
  am_cv_CC_dependencies_compiler_type=none
2487
fi
2488
 
2489
fi
2490
echo "$as_me:2490: result: $am_cv_CC_dependencies_compiler_type" >&5
2491
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2492
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2493
 
2494
ac_ext=c
2495
ac_cpp='$CPP $CPPFLAGS'
2496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2499
echo "$as_me:2499: checking how to run the C preprocessor" >&5
2500
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2501
# On Suns, sometimes $CPP names a directory.
2502
if test -n "$CPP" && test -d "$CPP"; then
2503
  CPP=
2504
fi
2505
if test -z "$CPP"; then
2506
  if test "${ac_cv_prog_CPP+set}" = set; then
2507
  echo $ECHO_N "(cached) $ECHO_C" >&6
2508
else
2509
      # Double quotes because CPP needs to be expanded
2510
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2511
    do
2512
      ac_preproc_ok=false
2513
for ac_c_preproc_warn_flag in '' yes
2514
do
2515
  # Use a header file that comes with gcc, so configuring glibc
2516
  # with a fresh cross-compiler works.
2517
  # On the NeXT, cc -E runs the code through the compiler's parser,
2518
  # not just through cpp. "Syntax error" is here to catch this case.
2519
  cat >conftest.$ac_ext <<_ACEOF
2520
#line 2520 "configure"
2521
#include "confdefs.h"
2522
#include 
2523
                     Syntax error
2524
_ACEOF
2525
if { (eval echo "$as_me:2525: \"$ac_cpp conftest.$ac_ext\"") >&5
2526
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527
  ac_status=$?
2528
  egrep -v '^ *\+' conftest.er1 >conftest.err
2529
  rm -f conftest.er1
2530
  cat conftest.err >&5
2531
  echo "$as_me:2531: \$? = $ac_status" >&5
2532
  (exit $ac_status); } >/dev/null; then
2533
  if test -s conftest.err; then
2534
    ac_cpp_err=$ac_c_preproc_warn_flag
2535
  else
2536
    ac_cpp_err=
2537
  fi
2538
else
2539
  ac_cpp_err=yes
2540
fi
2541
if test -z "$ac_cpp_err"; then
2542
  :
2543
else
2544
  echo "$as_me: failed program was:" >&5
2545
  cat conftest.$ac_ext >&5
2546
  # Broken: fails on valid input.
2547
continue
2548
fi
2549
rm -f conftest.err conftest.$ac_ext
2550
 
2551
  # OK, works on sane cases.  Now check whether non-existent headers
2552
  # can be detected and how.
2553
  cat >conftest.$ac_ext <<_ACEOF
2554
#line 2554 "configure"
2555
#include "confdefs.h"
2556
#include 
2557
_ACEOF
2558
if { (eval echo "$as_me:2558: \"$ac_cpp conftest.$ac_ext\"") >&5
2559
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2560
  ac_status=$?
2561
  egrep -v '^ *\+' conftest.er1 >conftest.err
2562
  rm -f conftest.er1
2563
  cat conftest.err >&5
2564
  echo "$as_me:2564: \$? = $ac_status" >&5
2565
  (exit $ac_status); } >/dev/null; then
2566
  if test -s conftest.err; then
2567
    ac_cpp_err=$ac_c_preproc_warn_flag
2568
  else
2569
    ac_cpp_err=
2570
  fi
2571
else
2572
  ac_cpp_err=yes
2573
fi
2574
if test -z "$ac_cpp_err"; then
2575
  # Broken: success on invalid input.
2576
continue
2577
else
2578
  echo "$as_me: failed program was:" >&5
2579
  cat conftest.$ac_ext >&5
2580
  # Passes both tests.
2581
ac_preproc_ok=:
2582
break
2583
fi
2584
rm -f conftest.err conftest.$ac_ext
2585
 
2586
done
2587
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2588
rm -f conftest.err conftest.$ac_ext
2589
if $ac_preproc_ok; then
2590
  break
2591
fi
2592
 
2593
    done
2594
    ac_cv_prog_CPP=$CPP
2595
 
2596
fi
2597
  CPP=$ac_cv_prog_CPP
2598
else
2599
  ac_cv_prog_CPP=$CPP
2600
fi
2601
echo "$as_me:2601: result: $CPP" >&5
2602
echo "${ECHO_T}$CPP" >&6
2603
ac_preproc_ok=false
2604
for ac_c_preproc_warn_flag in '' yes
2605
do
2606
  # Use a header file that comes with gcc, so configuring glibc
2607
  # with a fresh cross-compiler works.
2608
  # On the NeXT, cc -E runs the code through the compiler's parser,
2609
  # not just through cpp. "Syntax error" is here to catch this case.
2610
  cat >conftest.$ac_ext <<_ACEOF
2611
#line 2611 "configure"
2612
#include "confdefs.h"
2613
#include 
2614
                     Syntax error
2615
_ACEOF
2616
if { (eval echo "$as_me:2616: \"$ac_cpp conftest.$ac_ext\"") >&5
2617
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2618
  ac_status=$?
2619
  egrep -v '^ *\+' conftest.er1 >conftest.err
2620
  rm -f conftest.er1
2621
  cat conftest.err >&5
2622
  echo "$as_me:2622: \$? = $ac_status" >&5
2623
  (exit $ac_status); } >/dev/null; then
2624
  if test -s conftest.err; then
2625
    ac_cpp_err=$ac_c_preproc_warn_flag
2626
  else
2627
    ac_cpp_err=
2628
  fi
2629
else
2630
  ac_cpp_err=yes
2631
fi
2632
if test -z "$ac_cpp_err"; then
2633
  :
2634
else
2635
  echo "$as_me: failed program was:" >&5
2636
  cat conftest.$ac_ext >&5
2637
  # Broken: fails on valid input.
2638
continue
2639
fi
2640
rm -f conftest.err conftest.$ac_ext
2641
 
2642
  # OK, works on sane cases.  Now check whether non-existent headers
2643
  # can be detected and how.
2644
  cat >conftest.$ac_ext <<_ACEOF
2645
#line 2645 "configure"
2646
#include "confdefs.h"
2647
#include 
2648
_ACEOF
2649
if { (eval echo "$as_me:2649: \"$ac_cpp conftest.$ac_ext\"") >&5
2650
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2651
  ac_status=$?
2652
  egrep -v '^ *\+' conftest.er1 >conftest.err
2653
  rm -f conftest.er1
2654
  cat conftest.err >&5
2655
  echo "$as_me:2655: \$? = $ac_status" >&5
2656
  (exit $ac_status); } >/dev/null; then
2657
  if test -s conftest.err; then
2658
    ac_cpp_err=$ac_c_preproc_warn_flag
2659
  else
2660
    ac_cpp_err=
2661
  fi
2662
else
2663
  ac_cpp_err=yes
2664
fi
2665
if test -z "$ac_cpp_err"; then
2666
  # Broken: success on invalid input.
2667
continue
2668
else
2669
  echo "$as_me: failed program was:" >&5
2670
  cat conftest.$ac_ext >&5
2671
  # Passes both tests.
2672
ac_preproc_ok=:
2673
break
2674
fi
2675
rm -f conftest.err conftest.$ac_ext
2676
 
2677
done
2678
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2679
rm -f conftest.err conftest.$ac_ext
2680
if $ac_preproc_ok; then
2681
  :
2682
else
2683
  { { echo "$as_me:2683: error: C preprocessor \"$CPP\" fails sanity check" >&5
2684
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2685
   { (exit 1); exit 1; }; }
2686
fi
2687
 
2688
ac_ext=c
2689
ac_cpp='$CPP $CPPFLAGS'
2690
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
 
2694
if test x"$GCC" = x"yes"; then
2695
  RTEMS_USE_GCC_TRUE=
2696
  RTEMS_USE_GCC_FALSE='#'
2697
else
2698
  RTEMS_USE_GCC_TRUE='#'
2699
  RTEMS_USE_GCC_FALSE=
2700
fi
2701
 
2702
echo "$as_me:2702: checking whether $CC accepts -specs" >&5
2703
echo $ECHO_N "checking whether $CC accepts -specs... $ECHO_C" >&6
2704
if test "${rtems_cv_gcc_specs+set}" = set; then
2705
  echo $ECHO_N "(cached) $ECHO_C" >&6
2706
else
2707
 
2708
rtems_cv_gcc_specs=no
2709
if test x"$GCC" = x"yes"; then
2710
  touch confspec
2711
  echo 'void f(){}' >conftest.c
2712
  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
2713
    rtems_cv_gcc_specs=yes
2714
  fi
2715
fi
2716
rm -f confspec conftest*
2717
 
2718
fi
2719
echo "$as_me:2719: result: $rtems_cv_gcc_specs" >&5
2720
echo "${ECHO_T}$rtems_cv_gcc_specs" >&6
2721
 
2722
echo "$as_me:2722: checking whether $CC accepts --pipe" >&5
2723
echo $ECHO_N "checking whether $CC accepts --pipe... $ECHO_C" >&6
2724
if test "${rtems_cv_gcc_pipe+set}" = set; then
2725
  echo $ECHO_N "(cached) $ECHO_C" >&6
2726
else
2727
 
2728
rtems_cv_gcc_pipe=no
2729
if test x"$GCC" = x"yes"; then
2730
    echo 'void f(){}' >conftest.c
2731
    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
2732
      rtems_cv_gcc_pipe=yes
2733
    fi
2734
    rm -f conftest*
2735
fi
2736
 
2737
fi
2738
echo "$as_me:2738: result: $rtems_cv_gcc_pipe" >&5
2739
echo "${ECHO_T}$rtems_cv_gcc_pipe" >&6
2740
 
2741
#  if test "$rtems_cv_gcc_specs" = "no"; then
2742
#    AC_MSG_WARN([*** disabling --enable-gcc28])
2743
#      RTEMS_USE_GCC272=yes
2744
#  fi
2745
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
2746
 
2747
if test "$GCC" = yes; then
2748
 
2749
CPPFLAGS="$CPPFLAGS "
2750
 
2751
CFLAGS="-g -Wall"
2752
fi
2753
 
2754
case $build_os in
2755
*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
2756
*) ;;
2757
esac
2758
 
2759
  if test "x$build_alias" != "x$host_alias"; then
2760
  rtems_tool_prefix=${ac_tool_prefix}
2761
fi
2762
 
2763
  # Extract the first word of "${rtems_tool_prefix}ar", so it can be a program name with args.
2764
set dummy ${rtems_tool_prefix}ar; ac_word=$2
2765
echo "$as_me:2765: checking for $ac_word" >&5
2766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767
if test "${ac_cv_prog_AR+set}" = set; then
2768
  echo $ECHO_N "(cached) $ECHO_C" >&6
2769
else
2770
  if test -n "$AR"; then
2771
  ac_cv_prog_AR="$AR" # Let the user override the test.
2772
else
2773
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2774
ac_dummy="$PATH"
2775
for ac_dir in $ac_dummy; do
2776
  IFS=$ac_save_IFS
2777
  test -z "$ac_dir" && ac_dir=.
2778
  $as_executable_p "$ac_dir/$ac_word" || continue
2779
ac_cv_prog_AR="${rtems_tool_prefix}ar"
2780
echo "$as_me:2780: found $ac_dir/$ac_word" >&5
2781
break
2782
done
2783
 
2784
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="no"
2785
fi
2786
fi
2787
AR=$ac_cv_prog_AR
2788
if test -n "$AR"; then
2789
  echo "$as_me:2789: result: $AR" >&5
2790
echo "${ECHO_T}$AR" >&6
2791
else
2792
  echo "$as_me:2792: result: no" >&5
2793
echo "${ECHO_T}no" >&6
2794
fi
2795
 
2796
  if test "x$build_alias" != "x$host_alias"; then
2797
  rtems_tool_prefix=${ac_tool_prefix}
2798
fi
2799
 
2800
  # Extract the first word of "${rtems_tool_prefix}as", so it can be a program name with args.
2801
set dummy ${rtems_tool_prefix}as; ac_word=$2
2802
echo "$as_me:2802: checking for $ac_word" >&5
2803
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804
if test "${ac_cv_prog_AS+set}" = set; then
2805
  echo $ECHO_N "(cached) $ECHO_C" >&6
2806
else
2807
  if test -n "$AS"; then
2808
  ac_cv_prog_AS="$AS" # Let the user override the test.
2809
else
2810
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2811
ac_dummy="$PATH"
2812
for ac_dir in $ac_dummy; do
2813
  IFS=$ac_save_IFS
2814
  test -z "$ac_dir" && ac_dir=.
2815
  $as_executable_p "$ac_dir/$ac_word" || continue
2816
ac_cv_prog_AS="${rtems_tool_prefix}as"
2817
echo "$as_me:2817: found $ac_dir/$ac_word" >&5
2818
break
2819
done
2820
 
2821
  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="no"
2822
fi
2823
fi
2824
AS=$ac_cv_prog_AS
2825
if test -n "$AS"; then
2826
  echo "$as_me:2826: result: $AS" >&5
2827
echo "${ECHO_T}$AS" >&6
2828
else
2829
  echo "$as_me:2829: result: no" >&5
2830
echo "${ECHO_T}no" >&6
2831
fi
2832
 
2833
  if test "x$build_alias" != "x$host_alias"; then
2834
  rtems_tool_prefix=${ac_tool_prefix}
2835
fi
2836
 
2837
  # Extract the first word of "${rtems_tool_prefix}ld", so it can be a program name with args.
2838
set dummy ${rtems_tool_prefix}ld; ac_word=$2
2839
echo "$as_me:2839: checking for $ac_word" >&5
2840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841
if test "${ac_cv_prog_LD+set}" = set; then
2842
  echo $ECHO_N "(cached) $ECHO_C" >&6
2843
else
2844
  if test -n "$LD"; then
2845
  ac_cv_prog_LD="$LD" # Let the user override the test.
2846
else
2847
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2848
ac_dummy="$PATH"
2849
for ac_dir in $ac_dummy; do
2850
  IFS=$ac_save_IFS
2851
  test -z "$ac_dir" && ac_dir=.
2852
  $as_executable_p "$ac_dir/$ac_word" || continue
2853
ac_cv_prog_LD="${rtems_tool_prefix}ld"
2854
echo "$as_me:2854: found $ac_dir/$ac_word" >&5
2855
break
2856
done
2857
 
2858
  test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="no"
2859
fi
2860
fi
2861
LD=$ac_cv_prog_LD
2862
if test -n "$LD"; then
2863
  echo "$as_me:2863: result: $LD" >&5
2864
echo "${ECHO_T}$LD" >&6
2865
else
2866
  echo "$as_me:2866: result: no" >&5
2867
echo "${ECHO_T}no" >&6
2868
fi
2869
 
2870
  if test "x$build_alias" != "x$host_alias"; then
2871
  rtems_tool_prefix=${ac_tool_prefix}
2872
fi
2873
 
2874
  # Extract the first word of "${rtems_tool_prefix}nm", so it can be a program name with args.
2875
set dummy ${rtems_tool_prefix}nm; ac_word=$2
2876
echo "$as_me:2876: checking for $ac_word" >&5
2877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878
if test "${ac_cv_prog_NM+set}" = set; then
2879
  echo $ECHO_N "(cached) $ECHO_C" >&6
2880
else
2881
  if test -n "$NM"; then
2882
  ac_cv_prog_NM="$NM" # Let the user override the test.
2883
else
2884
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2885
ac_dummy="$PATH"
2886
for ac_dir in $ac_dummy; do
2887
  IFS=$ac_save_IFS
2888
  test -z "$ac_dir" && ac_dir=.
2889
  $as_executable_p "$ac_dir/$ac_word" || continue
2890
ac_cv_prog_NM="${rtems_tool_prefix}nm"
2891
echo "$as_me:2891: found $ac_dir/$ac_word" >&5
2892
break
2893
done
2894
 
2895
  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="no"
2896
fi
2897
fi
2898
NM=$ac_cv_prog_NM
2899
if test -n "$NM"; then
2900
  echo "$as_me:2900: result: $NM" >&5
2901
echo "${ECHO_T}$NM" >&6
2902
else
2903
  echo "$as_me:2903: result: no" >&5
2904
echo "${ECHO_T}no" >&6
2905
fi
2906
 
2907
  if test "x$build_alias" != "x$host_alias"; then
2908
  rtems_tool_prefix=${ac_tool_prefix}
2909
fi
2910
 
2911
  # Extract the first word of "${rtems_tool_prefix}ranlib", so it can be a program name with args.
2912
set dummy ${rtems_tool_prefix}ranlib; ac_word=$2
2913
echo "$as_me:2913: checking for $ac_word" >&5
2914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915
if test "${ac_cv_prog_RANLIB+set}" = set; then
2916
  echo $ECHO_N "(cached) $ECHO_C" >&6
2917
else
2918
  if test -n "$RANLIB"; then
2919
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2920
else
2921
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2922
ac_dummy="$PATH"
2923
for ac_dir in $ac_dummy; do
2924
  IFS=$ac_save_IFS
2925
  test -z "$ac_dir" && ac_dir=.
2926
  $as_executable_p "$ac_dir/$ac_word" || continue
2927
ac_cv_prog_RANLIB="${rtems_tool_prefix}ranlib"
2928
echo "$as_me:2928: found $ac_dir/$ac_word" >&5
2929
break
2930
done
2931
 
2932
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2933
fi
2934
fi
2935
RANLIB=$ac_cv_prog_RANLIB
2936
if test -n "$RANLIB"; then
2937
  echo "$as_me:2937: result: $RANLIB" >&5
2938
echo "${ECHO_T}$RANLIB" >&6
2939
else
2940
  echo "$as_me:2940: result: no" >&5
2941
echo "${ECHO_T}no" >&6
2942
fi
2943
 
2944
  if test "x$build_alias" != "x$host_alias"; then
2945
  rtems_tool_prefix=${ac_tool_prefix}
2946
fi
2947
 
2948
  # Extract the first word of "${rtems_tool_prefix}objcopy", so it can be a program name with args.
2949
set dummy ${rtems_tool_prefix}objcopy; ac_word=$2
2950
echo "$as_me:2950: checking for $ac_word" >&5
2951
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952
if test "${ac_cv_prog_OBJCOPY+set}" = set; then
2953
  echo $ECHO_N "(cached) $ECHO_C" >&6
2954
else
2955
  if test -n "$OBJCOPY"; then
2956
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
2957
else
2958
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2959
ac_dummy="$PATH"
2960
for ac_dir in $ac_dummy; do
2961
  IFS=$ac_save_IFS
2962
  test -z "$ac_dir" && ac_dir=.
2963
  $as_executable_p "$ac_dir/$ac_word" || continue
2964
ac_cv_prog_OBJCOPY="${rtems_tool_prefix}objcopy"
2965
echo "$as_me:2965: found $ac_dir/$ac_word" >&5
2966
break
2967
done
2968
 
2969
  test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="no"
2970
fi
2971
fi
2972
OBJCOPY=$ac_cv_prog_OBJCOPY
2973
if test -n "$OBJCOPY"; then
2974
  echo "$as_me:2974: result: $OBJCOPY" >&5
2975
echo "${ECHO_T}$OBJCOPY" >&6
2976
else
2977
  echo "$as_me:2977: result: no" >&5
2978
echo "${ECHO_T}no" >&6
2979
fi
2980
 
2981
  if test "x$build_alias" != "x$host_alias"; then
2982
  rtems_tool_prefix=${ac_tool_prefix}
2983
fi
2984
 
2985
  # Extract the first word of "${rtems_tool_prefix}size", so it can be a program name with args.
2986
set dummy ${rtems_tool_prefix}size; ac_word=$2
2987
echo "$as_me:2987: checking for $ac_word" >&5
2988
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989
if test "${ac_cv_prog_SIZE+set}" = set; then
2990
  echo $ECHO_N "(cached) $ECHO_C" >&6
2991
else
2992
  if test -n "$SIZE"; then
2993
  ac_cv_prog_SIZE="$SIZE" # Let the user override the test.
2994
else
2995
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2996
ac_dummy="$PATH"
2997
for ac_dir in $ac_dummy; do
2998
  IFS=$ac_save_IFS
2999
  test -z "$ac_dir" && ac_dir=.
3000
  $as_executable_p "$ac_dir/$ac_word" || continue
3001
ac_cv_prog_SIZE="${rtems_tool_prefix}size"
3002
echo "$as_me:3002: found $ac_dir/$ac_word" >&5
3003
break
3004
done
3005
 
3006
  test -z "$ac_cv_prog_SIZE" && ac_cv_prog_SIZE="no"
3007
fi
3008
fi
3009
SIZE=$ac_cv_prog_SIZE
3010
if test -n "$SIZE"; then
3011
  echo "$as_me:3011: result: $SIZE" >&5
3012
echo "${ECHO_T}$SIZE" >&6
3013
else
3014
  echo "$as_me:3014: result: no" >&5
3015
echo "${ECHO_T}no" >&6
3016
fi
3017
 
3018
  if test "x$build_alias" != "x$host_alias"; then
3019
  rtems_tool_prefix=${ac_tool_prefix}
3020
fi
3021
 
3022
  # Extract the first word of "${rtems_tool_prefix}strip", so it can be a program name with args.
3023
set dummy ${rtems_tool_prefix}strip; ac_word=$2
3024
echo "$as_me:3024: checking for $ac_word" >&5
3025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026
if test "${ac_cv_prog_STRIP+set}" = set; then
3027
  echo $ECHO_N "(cached) $ECHO_C" >&6
3028
else
3029
  if test -n "$STRIP"; then
3030
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3031
else
3032
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3033
ac_dummy="$PATH"
3034
for ac_dir in $ac_dummy; do
3035
  IFS=$ac_save_IFS
3036
  test -z "$ac_dir" && ac_dir=.
3037
  $as_executable_p "$ac_dir/$ac_word" || continue
3038
ac_cv_prog_STRIP="${rtems_tool_prefix}strip"
3039
echo "$as_me:3039: found $ac_dir/$ac_word" >&5
3040
break
3041
done
3042
 
3043
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3044
fi
3045
fi
3046
STRIP=$ac_cv_prog_STRIP
3047
if test -n "$STRIP"; then
3048
  echo "$as_me:3048: result: $STRIP" >&5
3049
echo "${ECHO_T}$STRIP" >&6
3050
else
3051
  echo "$as_me:3051: result: no" >&5
3052
echo "${ECHO_T}no" >&6
3053
fi
3054
 
3055
echo "$as_me:3055: checking for make/custom/$RTEMS_BSP.cfg" >&5
3056
echo $ECHO_N "checking for make/custom/$RTEMS_BSP.cfg... $ECHO_C" >&6
3057
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
3058
  echo "$as_me:3058: result: yes" >&5
3059
echo "${ECHO_T}yes" >&6
3060
else
3061
  { { echo "$as_me:3061: error: no" >&5
3062
echo "$as_me: error: no" >&2;}
3063
   { (exit 1); exit 1; }; }
3064
fi
3065
 
3066
echo "$as_me:3066: checking for RTEMS_CPU_MODEL" >&5
3067
echo $ECHO_N "checking for RTEMS_CPU_MODEL... $ECHO_C" >&6
3068
if test "${rtems_cv_RTEMS_CPU_MODEL+set}" = set; then
3069
  echo $ECHO_N "(cached) $ECHO_C" >&6
3070
else
3071
  . $RTEMS_TOPdir/c/$RTEMS_BSP/make/$RTEMS_BSP.cache
3072
fi
3073
echo "$as_me:3073: result: $rtems_cv_RTEMS_CPU_MODEL" >&5
3074
echo "${ECHO_T}$rtems_cv_RTEMS_CPU_MODEL" >&6
3075
RTEMS_CPU_MODEL=$rtems_cv_RTEMS_CPU_MODEL
3076
 
3077
echo "$as_me:3077: checking for RTEMS_BSP_FAMILY" >&5
3078
echo $ECHO_N "checking for RTEMS_BSP_FAMILY... $ECHO_C" >&6
3079
if test "${rtems_cv_RTEMS_BSP_FAMILY+set}" = set; then
3080
  echo $ECHO_N "(cached) $ECHO_C" >&6
3081
else
3082
  . $RTEMS_TOPdir/c/$RTEMS_BSP/make/$RTEMS_BSP.cache
3083
fi
3084
echo "$as_me:3084: result: $rtems_cv_RTEMS_BSP_FAMILY" >&5
3085
echo "${ECHO_T}$rtems_cv_RTEMS_BSP_FAMILY" >&6
3086
RTEMS_BSP_FAMILY=$rtems_cv_RTEMS_BSP_FAMILY
3087
 
3088
# Explicitly list all Makefiles here
3089
ac_config_files="$ac_config_files Makefile clock/Makefile timer/Makefile"
3090
 
3091
cat >confcache <<\_ACEOF
3092
# This file is a shell script that caches the results of configure
3093
# tests run on this system so they can be shared between configure
3094
# scripts and configure runs, see configure's option --config-cache.
3095
# It is not useful on other systems.  If it contains results you don't
3096
# want to keep, you may remove or edit it.
3097
#
3098
# config.status only pays attention to the cache file if you give it
3099
# the --recheck option to rerun configure.
3100
#
3101
# `ac_cv_env_foo' variables (set or unset) will be overriden when
3102
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3103
# following values.
3104
 
3105
_ACEOF
3106
 
3107
# The following way of writing the cache mishandles newlines in values,
3108
# but we know of no workaround that is simple, portable, and efficient.
3109
# So, don't put newlines in cache variables' values.
3110
# Ultrix sh set writes to stderr and can't be redirected directly,
3111
# and sets the high bit in the cache file unless we assign to the vars.
3112
{
3113
  (set) 2>&1 |
3114
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3115
    *ac_space=\ *)
3116
      # `set' does not quote correctly, so add quotes (double-quote
3117
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3118
      sed -n \
3119
        "s/'/'\\\\''/g;
3120
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3121
      ;;
3122
    *)
3123
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3124
      sed -n \
3125
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3126
      ;;
3127
    esac;
3128
} |
3129
  sed '
3130
     t clear
3131
     : clear
3132
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3133
     t end
3134
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3135
     : end' >>confcache
3136
if cmp -s $cache_file confcache; then :; else
3137
  if test -w $cache_file; then
3138
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3139
    cat confcache >$cache_file
3140
  else
3141
    echo "not updating unwritable cache $cache_file"
3142
  fi
3143
fi
3144
rm -f confcache
3145
 
3146
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3147
# Let make expand exec_prefix.
3148
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3149
 
3150
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3151
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3152
# trailing colons and then remove the whole line if VPATH becomes empty
3153
# (actually we leave an empty line to preserve line numbers).
3154
if test "x$srcdir" = x.; then
3155
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
3156
s/:*\$(srcdir):*/:/;
3157
s/:*\${srcdir}:*/:/;
3158
s/:*@srcdir@:*/:/;
3159
s/^\([^=]*=[    ]*\):*/\1/;
3160
s/:*$//;
3161
s/^[^=]*=[      ]*$//;
3162
}'
3163
fi
3164
 
3165
# Transform confdefs.h into DEFS.
3166
# Protect against shell expansion while executing Makefile rules.
3167
# Protect against Makefile macro expansion.
3168
#
3169
# If the first sed substitution is executed (which looks for macros that
3170
# take arguments), then we branch to the quote section.  Otherwise,
3171
# look for a macro that doesn't take arguments.
3172
cat >confdef2opt.sed <<\EOF
3173
t clear
3174
: clear
3175
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3176
t quote
3177
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3178
t quote
3179
d
3180
: quote
3181
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
3182
s,\[,\\&,g
3183
s,\],\\&,g
3184
s,\$,$$,g
3185
p
3186
EOF
3187
# We use echo to avoid assuming a particular line-breaking character.
3188
# The extra dot is to prevent the shell from consuming trailing
3189
# line-breaks from the sub-command output.  A line-break within
3190
# single-quotes doesn't work because, if this script is created in a
3191
# platform that uses two characters for line-breaks (e.g., DOS), tr
3192
# would break.
3193
ac_LF_and_DOT=`echo; echo .`
3194
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3195
rm -f confdef2opt.sed
3196
 
3197
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3198
  { { echo "$as_me:3198: error: conditional \"MAINTAINER_MODE\" was never defined.
3199
Usually this means the macro was only invoked conditionally." >&5
3200
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3201
Usually this means the macro was only invoked conditionally." >&2;}
3202
   { (exit 1); exit 1; }; }
3203
fi
3204
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
3205
  { { echo "$as_me:3205: error: conditional \"MULTILIB\" was never defined.
3206
Usually this means the macro was only invoked conditionally." >&5
3207
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
3208
Usually this means the macro was only invoked conditionally." >&2;}
3209
   { (exit 1); exit 1; }; }
3210
fi
3211
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3212
  { { echo "$as_me:3212: error: conditional \"AMDEP\" was never defined.
3213
Usually this means the macro was only invoked conditionally." >&5
3214
echo "$as_me: error: conditional \"AMDEP\" was never defined.
3215
Usually this means the macro was only invoked conditionally." >&2;}
3216
   { (exit 1); exit 1; }; }
3217
fi
3218
if test -z "${RTEMS_USE_GCC_TRUE}" && test -z "${RTEMS_USE_GCC_FALSE}"; then
3219
  { { echo "$as_me:3219: error: conditional \"RTEMS_USE_GCC\" was never defined.
3220
Usually this means the macro was only invoked conditionally." >&5
3221
echo "$as_me: error: conditional \"RTEMS_USE_GCC\" was never defined.
3222
Usually this means the macro was only invoked conditionally." >&2;}
3223
   { (exit 1); exit 1; }; }
3224
fi
3225
 
3226
: ${CONFIG_STATUS=./config.status}
3227
ac_clean_files_save=$ac_clean_files
3228
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3229
{ echo "$as_me:3229: creating $CONFIG_STATUS" >&5
3230
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3231
cat >$CONFIG_STATUS <<_ACEOF
3232
#! $SHELL
3233
# Generated automatically by configure.
3234
# Run this file to recreate the current configuration.
3235
# Compiler output produced by configure, useful for debugging
3236
# configure, is in config.log if it exists.
3237
 
3238
debug=false
3239
SHELL=\${CONFIG_SHELL-$SHELL}
3240
ac_cs_invocation="\$0 \$@"
3241
 
3242
_ACEOF
3243
 
3244
cat >>$CONFIG_STATUS <<\_ACEOF
3245
# Be Bourne compatible
3246
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3247
  emulate sh
3248
  NULLCMD=:
3249
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3250
  set -o posix
3251
fi
3252
 
3253
# Name of the executable.
3254
as_me=`echo "$0" |sed 's,.*[\\/],,'`
3255
 
3256
if expr a : '\(a\)' >/dev/null 2>&1; then
3257
  as_expr=expr
3258
else
3259
  as_expr=false
3260
fi
3261
 
3262
rm -f conf$$ conf$$.exe conf$$.file
3263
echo >conf$$.file
3264
if ln -s conf$$.file conf$$ 2>/dev/null; then
3265
  # We could just check for DJGPP; but this test a) works b) is more generic
3266
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3267
  if test -f conf$$.exe; then
3268
    # Don't use ln at all; we don't have any links
3269
    as_ln_s='cp -p'
3270
  else
3271
    as_ln_s='ln -s'
3272
  fi
3273
elif ln conf$$.file conf$$ 2>/dev/null; then
3274
  as_ln_s=ln
3275
else
3276
  as_ln_s='cp -p'
3277
fi
3278
rm -f conf$$ conf$$.exe conf$$.file
3279
 
3280
as_executable_p="test -f"
3281
 
3282
# Support unset when possible.
3283
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3284
  as_unset=unset
3285
else
3286
  as_unset=false
3287
fi
3288
 
3289
# NLS nuisances.
3290
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3291
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3292
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3293
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3294
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3295
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3296
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3297
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3298
 
3299
# IFS
3300
# We need space, tab and new line, in precisely that order.
3301
as_nl='
3302
'
3303
IFS="   $as_nl"
3304
 
3305
# CDPATH.
3306
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3307
 
3308
exec 6>&1
3309
 
3310
_ACEOF
3311
 
3312
# Files that config.status was made for.
3313
if test -n "$ac_config_files"; then
3314
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3315
fi
3316
 
3317
if test -n "$ac_config_headers"; then
3318
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3319
fi
3320
 
3321
if test -n "$ac_config_links"; then
3322
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3323
fi
3324
 
3325
if test -n "$ac_config_commands"; then
3326
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3327
fi
3328
 
3329
cat >>$CONFIG_STATUS <<\EOF
3330
 
3331
ac_cs_usage="\
3332
\`$as_me' instantiates files from templates according to the
3333
current configuration.
3334
 
3335
Usage: $0 [OPTIONS] [FILE]...
3336
 
3337
  -h, --help       print this help, then exit
3338
  -V, --version    print version number, then exit
3339
  -d, --debug      don't remove temporary files
3340
      --recheck    update $as_me by reconfiguring in the same conditions
3341
  --file=FILE[:TEMPLATE]
3342
                   instantiate the configuration file FILE
3343
 
3344
Configuration files:
3345
$config_files
3346
 
3347
Configuration commands:
3348
$config_commands
3349
 
3350
Report bugs to ."
3351
EOF
3352
 
3353
cat >>$CONFIG_STATUS <
3354
ac_cs_version="\\
3355
rtems-c-src-lib-libcpu-mips64orion config.status ss-20020807
3356
configured by $0, generated by GNU Autoconf 2.52,
3357
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3358
 
3359
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3360
Free Software Foundation, Inc.
3361
This config.status script is free software; the Free Software Foundation
3362
gives unlimited permission to copy, distribute and modify it."
3363
srcdir=$srcdir
3364
INSTALL="$INSTALL"
3365
EOF
3366
 
3367
cat >>$CONFIG_STATUS <<\EOF
3368
# If no file are specified by the user, then we need to provide default
3369
# value.  By we need to know if files were specified by the user.
3370
ac_need_defaults=:
3371
while test $# != 0
3372
do
3373
  case $1 in
3374
  --*=*)
3375
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3376
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3377
    shift
3378
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3379
    shift
3380
    ;;
3381
  -*);;
3382
  *) # This is not an option, so the user has probably given explicit
3383
     # arguments.
3384
     ac_need_defaults=false;;
3385
  esac
3386
 
3387
  case $1 in
3388
  # Handling of the options.
3389
EOF
3390
cat >>$CONFIG_STATUS <
3391
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3392
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3393
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3394
EOF
3395
cat >>$CONFIG_STATUS <<\EOF
3396
  --version | --vers* | -V )
3397
    echo "$ac_cs_version"; exit 0 ;;
3398
  --he | --h)
3399
    # Conflict between --help and --header
3400
    { { echo "$as_me:3400: error: ambiguous option: $1
3401
Try \`$0 --help' for more information." >&5
3402
echo "$as_me: error: ambiguous option: $1
3403
Try \`$0 --help' for more information." >&2;}
3404
   { (exit 1); exit 1; }; };;
3405
  --help | --hel | -h )
3406
    echo "$ac_cs_usage"; exit 0 ;;
3407
  --debug | --d* | -d )
3408
    debug=: ;;
3409
  --file | --fil | --fi | --f )
3410
    shift
3411
    CONFIG_FILES="$CONFIG_FILES $1"
3412
    ac_need_defaults=false;;
3413
  --header | --heade | --head | --hea )
3414
    shift
3415
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
3416
    ac_need_defaults=false;;
3417
 
3418
  # This is an error.
3419
  -*) { { echo "$as_me:3419: error: unrecognized option: $1
3420
Try \`$0 --help' for more information." >&5
3421
echo "$as_me: error: unrecognized option: $1
3422
Try \`$0 --help' for more information." >&2;}
3423
   { (exit 1); exit 1; }; } ;;
3424
 
3425
  *) ac_config_targets="$ac_config_targets $1" ;;
3426
 
3427
  esac
3428
  shift
3429
done
3430
 
3431
exec 5>>config.log
3432
cat >&5 << _ACEOF
3433
 
3434
## ----------------------- ##
3435
## Running config.status.  ##
3436
## ----------------------- ##
3437
 
3438
This file was extended by $as_me (rtems-c-src-lib-libcpu-mips64orion ss-20020807) 2.52, executed with
3439
  CONFIG_FILES    = $CONFIG_FILES
3440
  CONFIG_HEADERS  = $CONFIG_HEADERS
3441
  CONFIG_LINKS    = $CONFIG_LINKS
3442
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3443
  > $ac_cs_invocation
3444
on `(hostname || uname -n) 2>/dev/null | sed 1q`
3445
 
3446
_ACEOF
3447
EOF
3448
 
3449
cat >>$CONFIG_STATUS <
3450
#
3451
# INIT-COMMANDS section.
3452
#
3453
 
3454
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3455
 
3456
EOF
3457
 
3458
cat >>$CONFIG_STATUS <<\EOF
3459
for ac_config_target in $ac_config_targets
3460
do
3461
  case "$ac_config_target" in
3462
  # Handling of arguments.
3463
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3464
  "clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES clock/Makefile" ;;
3465
  "timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES timer/Makefile" ;;
3466
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3467
  *) { { echo "$as_me:3467: error: invalid argument: $ac_config_target" >&5
3468
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3469
   { (exit 1); exit 1; }; };;
3470
  esac
3471
done
3472
 
3473
# If the user did not use the arguments to specify the items to instantiate,
3474
# then the envvar interface is used.  Set only those that are not.
3475
# We use the long form for the default assignment because of an extremely
3476
# bizarre bug on SunOS 4.1.3.
3477
if $ac_need_defaults; then
3478
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3479
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3480
fi
3481
 
3482
# Create a temporary directory, and hook for its removal unless debugging.
3483
$debug ||
3484
{
3485
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3486
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3487
}
3488
 
3489
# Create a (secure) tmp directory for tmp files.
3490
: ${TMPDIR=/tmp}
3491
{
3492
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3493
  test -n "$tmp" && test -d "$tmp"
3494
}  ||
3495
{
3496
  tmp=$TMPDIR/cs$$-$RANDOM
3497
  (umask 077 && mkdir $tmp)
3498
} ||
3499
{
3500
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3501
   { (exit 1); exit 1; }
3502
}
3503
 
3504
EOF
3505
 
3506
cat >>$CONFIG_STATUS <
3507
 
3508
#
3509
# CONFIG_FILES section.
3510
#
3511
 
3512
# No need to generate the scripts if there are no CONFIG_FILES.
3513
# This happens for instance when ./config.status config.h
3514
if test -n "\$CONFIG_FILES"; then
3515
  # Protect against being on the right side of a sed subst in config.status.
3516
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3517
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3518
s,@SHELL@,$SHELL,;t t
3519
s,@exec_prefix@,$exec_prefix,;t t
3520
s,@prefix@,$prefix,;t t
3521
s,@program_transform_name@,$program_transform_name,;t t
3522
s,@bindir@,$bindir,;t t
3523
s,@sbindir@,$sbindir,;t t
3524
s,@libexecdir@,$libexecdir,;t t
3525
s,@datadir@,$datadir,;t t
3526
s,@sysconfdir@,$sysconfdir,;t t
3527
s,@sharedstatedir@,$sharedstatedir,;t t
3528
s,@localstatedir@,$localstatedir,;t t
3529
s,@libdir@,$libdir,;t t
3530
s,@includedir@,$includedir,;t t
3531
s,@oldincludedir@,$oldincludedir,;t t
3532
s,@infodir@,$infodir,;t t
3533
s,@mandir@,$mandir,;t t
3534
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3535
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3536
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3537
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3538
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3539
s,@build_alias@,$build_alias,;t t
3540
s,@host_alias@,$host_alias,;t t
3541
s,@target_alias@,$target_alias,;t t
3542
s,@ECHO_C@,$ECHO_C,;t t
3543
s,@ECHO_N@,$ECHO_N,;t t
3544
s,@ECHO_T@,$ECHO_T,;t t
3545
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3546
s,@DEFS@,$DEFS,;t t
3547
s,@LIBS@,$LIBS,;t t
3548
s,@MAKE@,$MAKE,;t t
3549
s,@ENDIF@,$ENDIF,;t t
3550
s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t
3551
s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t
3552
s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t
3553
s,@build@,$build,;t t
3554
s,@build_cpu@,$build_cpu,;t t
3555
s,@build_vendor@,$build_vendor,;t t
3556
s,@build_os@,$build_os,;t t
3557
s,@host@,$host,;t t
3558
s,@host_cpu@,$host_cpu,;t t
3559
s,@host_vendor@,$host_vendor,;t t
3560
s,@host_os@,$host_os,;t t
3561
s,@target@,$target,;t t
3562
s,@target_cpu@,$target_cpu,;t t
3563
s,@target_vendor@,$target_vendor,;t t
3564
s,@target_os@,$target_os,;t t
3565
s,@RTEMS_CPU@,$RTEMS_CPU,;t t
3566
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3567
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3568
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3569
s,@PACKAGE@,$PACKAGE,;t t
3570
s,@VERSION@,$VERSION,;t t
3571
s,@ACLOCAL@,$ACLOCAL,;t t
3572
s,@AUTOCONF@,$AUTOCONF,;t t
3573
s,@AUTOMAKE@,$AUTOMAKE,;t t
3574
s,@AUTOHEADER@,$AUTOHEADER,;t t
3575
s,@MAKEINFO@,$MAKEINFO,;t t
3576
s,@AMTAR@,$AMTAR,;t t
3577
s,@install_sh@,$install_sh,;t t
3578
s,@STRIP@,$STRIP,;t t
3579
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3580
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3581
s,@AWK@,$AWK,;t t
3582
s,@SET_MAKE@,$SET_MAKE,;t t
3583
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3584
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3585
s,@MAINT@,$MAINT,;t t
3586
s,@RTEMS_BSP@,$RTEMS_BSP,;t t
3587
s,@RTEMS_BSP_SPECS@,$RTEMS_BSP_SPECS,;t t
3588
s,@GCC_SPECS@,$GCC_SPECS,;t t
3589
s,@PROJECT_INCLUDE@,$PROJECT_INCLUDE,;t t
3590
s,@PROJECT_RELEASE@,$PROJECT_RELEASE,;t t
3591
s,@RTEMS_ROOT@,$RTEMS_ROOT,;t t
3592
s,@BARE_CPU_MODEL@,$BARE_CPU_MODEL,;t t
3593
s,@BARE_CPU_CFLAGS@,$BARE_CPU_CFLAGS,;t t
3594
s,@MULTILIB_TRUE@,$MULTILIB_TRUE,;t t
3595
s,@MULTILIB_FALSE@,$MULTILIB_FALSE,;t t
3596
s,@bsplibdir@,$bsplibdir,;t t
3597
s,@RTEMS_HOST@,$RTEMS_HOST,;t t
3598
s,@PACKHEX@,$PACKHEX,;t t
3599
s,@CC@,$CC,;t t
3600
s,@CFLAGS@,$CFLAGS,;t t
3601
s,@LDFLAGS@,$LDFLAGS,;t t
3602
s,@CPPFLAGS@,$CPPFLAGS,;t t
3603
s,@ac_ct_CC@,$ac_ct_CC,;t t
3604
s,@EXEEXT@,$EXEEXT,;t t
3605
s,@OBJEXT@,$OBJEXT,;t t
3606
s,@DEPDIR@,$DEPDIR,;t t
3607
s,@am__include@,$am__include,;t t
3608
s,@am__quote@,$am__quote,;t t
3609
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
3610
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
3611
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
3612
s,@CCDEPMODE@,$CCDEPMODE,;t t
3613
s,@CPP@,$CPP,;t t
3614
s,@RTEMS_USE_GCC_TRUE@,$RTEMS_USE_GCC_TRUE,;t t
3615
s,@RTEMS_USE_GCC_FALSE@,$RTEMS_USE_GCC_FALSE,;t t
3616
s,@GCCSED@,$GCCSED,;t t
3617
s,@AR@,$AR,;t t
3618
s,@AS@,$AS,;t t
3619
s,@LD@,$LD,;t t
3620
s,@NM@,$NM,;t t
3621
s,@RANLIB@,$RANLIB,;t t
3622
s,@OBJCOPY@,$OBJCOPY,;t t
3623
s,@SIZE@,$SIZE,;t t
3624
s,@RTEMS_CPU_MODEL@,$RTEMS_CPU_MODEL,;t t
3625
s,@RTEMS_BSP_FAMILY@,$RTEMS_BSP_FAMILY,;t t
3626
CEOF
3627
 
3628
EOF
3629
 
3630
  cat >>$CONFIG_STATUS <<\EOF
3631
  # Split the substitutions into bite-sized pieces for seds with
3632
  # small command number limits, like on Digital OSF/1 and HP-UX.
3633
  ac_max_sed_lines=48
3634
  ac_sed_frag=1 # Number of current file.
3635
  ac_beg=1 # First line for current file.
3636
  ac_end=$ac_max_sed_lines # Line after last line for current file.
3637
  ac_more_lines=:
3638
  ac_sed_cmds=
3639
  while $ac_more_lines; do
3640
    if test $ac_beg -gt 1; then
3641
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3642
    else
3643
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3644
    fi
3645
    if test ! -s $tmp/subs.frag; then
3646
      ac_more_lines=false
3647
    else
3648
      # The purpose of the label and of the branching condition is to
3649
      # speed up the sed processing (if there are no `@' at all, there
3650
      # is no need to browse any of the substitutions).
3651
      # These are the two extra sed commands mentioned above.
3652
      (echo ':t
3653
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3654
      if test -z "$ac_sed_cmds"; then
3655
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3656
      else
3657
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3658
      fi
3659
      ac_sed_frag=`expr $ac_sed_frag + 1`
3660
      ac_beg=$ac_end
3661
      ac_end=`expr $ac_end + $ac_max_sed_lines`
3662
    fi
3663
  done
3664
  if test -z "$ac_sed_cmds"; then
3665
    ac_sed_cmds=cat
3666
  fi
3667
fi # test -n "$CONFIG_FILES"
3668
 
3669
EOF
3670
cat >>$CONFIG_STATUS <<\EOF
3671
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3672
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3673
  case $ac_file in
3674
  - | *:- | *:-:* ) # input from stdin
3675
        cat >$tmp/stdin
3676
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3677
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3678
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3679
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3680
  * )   ac_file_in=$ac_file.in ;;
3681
  esac
3682
 
3683
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3684
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3685
         X"$ac_file" : 'X\(//\)[^/]' \| \
3686
         X"$ac_file" : 'X\(//\)$' \| \
3687
         X"$ac_file" : 'X\(/\)' \| \
3688
         .     : '\(.\)' 2>/dev/null ||
3689
echo X"$ac_file" |
3690
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3691
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3692
          /^X\(\/\/\)$/{ s//\1/; q; }
3693
          /^X\(\/\).*/{ s//\1/; q; }
3694
          s/.*/./; q'`
3695
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3696
    { case "$ac_dir" in
3697
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3698
  *)                      as_incr_dir=.;;
3699
esac
3700
as_dummy="$ac_dir"
3701
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3702
  case $as_mkdir_dir in
3703
    # Skip DOS drivespec
3704
    ?:) as_incr_dir=$as_mkdir_dir ;;
3705
    *)
3706
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
3707
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3708
    ;;
3709
  esac
3710
done; }
3711
 
3712
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3713
    # A "../" for each directory in $ac_dir_suffix.
3714
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3715
  else
3716
    ac_dir_suffix= ac_dots=
3717
  fi
3718
 
3719
  case $srcdir in
3720
  .)  ac_srcdir=.
3721
      if test -z "$ac_dots"; then
3722
         ac_top_srcdir=.
3723
      else
3724
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3725
      fi ;;
3726
  [\\/]* | ?:[\\/]* )
3727
      ac_srcdir=$srcdir$ac_dir_suffix;
3728
      ac_top_srcdir=$srcdir ;;
3729
  *) # Relative path.
3730
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3731
    ac_top_srcdir=$ac_dots$srcdir ;;
3732
  esac
3733
 
3734
  case $INSTALL in
3735
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3736
  *) ac_INSTALL=$ac_dots$INSTALL ;;
3737
  esac
3738
 
3739
  if test x"$ac_file" != x-; then
3740
    { echo "$as_me:3740: creating $ac_file" >&5
3741
echo "$as_me: creating $ac_file" >&6;}
3742
    rm -f "$ac_file"
3743
  fi
3744
  # Let's still pretend it is `configure' which instantiates (i.e., don't
3745
  # use $as_me), people would be surprised to read:
3746
  #    /* config.h.  Generated automatically by config.status.  */
3747
  configure_input="Generated automatically from `echo $ac_file_in |
3748
                                                 sed 's,.*/,,'` by configure."
3749
 
3750
  # First look for the input files in the build tree, otherwise in the
3751
  # src tree.
3752
  ac_file_inputs=`IFS=:
3753
    for f in $ac_file_in; do
3754
      case $f in
3755
      -) echo $tmp/stdin ;;
3756
      [\\/$]*)
3757
         # Absolute (can't be DOS-style, as IFS=:)
3758
         test -f "$f" || { { echo "$as_me:3758: error: cannot find input file: $f" >&5
3759
echo "$as_me: error: cannot find input file: $f" >&2;}
3760
   { (exit 1); exit 1; }; }
3761
         echo $f;;
3762
      *) # Relative
3763
         if test -f "$f"; then
3764
           # Build tree
3765
           echo $f
3766
         elif test -f "$srcdir/$f"; then
3767
           # Source tree
3768
           echo $srcdir/$f
3769
         else
3770
           # /dev/null tree
3771
           { { echo "$as_me:3771: error: cannot find input file: $f" >&5
3772
echo "$as_me: error: cannot find input file: $f" >&2;}
3773
   { (exit 1); exit 1; }; }
3774
         fi;;
3775
      esac
3776
    done` || { (exit 1); exit 1; }
3777
EOF
3778
cat >>$CONFIG_STATUS <
3779
  sed "$ac_vpsub
3780
$extrasub
3781
EOF
3782
cat >>$CONFIG_STATUS <<\EOF
3783
:t
3784
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3785
s,@configure_input@,$configure_input,;t t
3786
s,@srcdir@,$ac_srcdir,;t t
3787
s,@top_srcdir@,$ac_top_srcdir,;t t
3788
s,@INSTALL@,$ac_INSTALL,;t t
3789
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3790
  rm -f $tmp/stdin
3791
  if test x"$ac_file" != x-; then
3792
    mv $tmp/out $ac_file
3793
  else
3794
    cat $tmp/out
3795
    rm -f $tmp/out
3796
  fi
3797
 
3798
done
3799
EOF
3800
cat >>$CONFIG_STATUS <<\EOF
3801
 
3802
#
3803
# CONFIG_COMMANDS section.
3804
#
3805
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3806
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3807
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3808
 
3809
  case $ac_dest in
3810
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
3811
  # Strip MF so we end up with the name of the file.
3812
  mf=`echo "$mf" | sed -e 's/:.*$//'`
3813
  # Check whether this is an Automake generated Makefile or not.
3814
  # We used to match only the files named `Makefile.in', but
3815
  # some people rename them; so instead we look at the file content.
3816
  # Grep'ing the first line is not enough: some people post-process
3817
  # each Makefile.in and add a new line on top of each file to say so.
3818
  # So let's grep whole file.
3819
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
3820
    dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3821
         X"$mf" : 'X\(//\)[^/]' \| \
3822
         X"$mf" : 'X\(//\)$' \| \
3823
         X"$mf" : 'X\(/\)' \| \
3824
         .     : '\(.\)' 2>/dev/null ||
3825
echo X"$mf" |
3826
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3827
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3828
          /^X\(\/\/\)$/{ s//\1/; q; }
3829
          /^X\(\/\).*/{ s//\1/; q; }
3830
          s/.*/./; q'`
3831
  else
3832
    continue
3833
  fi
3834
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
3835
  # Extract the definition of DEP_FILES from the Makefile without
3836
  # running `make'.
3837
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
3838
  test -z "$DEPDIR" && continue
3839
  # When using ansi2knr, U may be empty or an underscore; expand it
3840
  U=`sed -n -e '/^U = / s///p' < "$mf"`
3841
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
3842
  # We invoke sed twice because it is the simplest approach to
3843
  # changing $(DEPDIR) to its actual value in the expansion.
3844
  for file in `sed -n -e '
3845
    /^DEP_FILES = .*\\\\$/ {
3846
      s/^DEP_FILES = //
3847
      :loop
3848
        s/\\\\$//
3849
        p
3850
        n
3851
        /\\\\$/ b loop
3852
      p
3853
    }
3854
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
3855
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
3856
    # Make sure the directory exists.
3857
    test -f "$dirpart/$file" && continue
3858
    fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3859
         X"$file" : 'X\(//\)[^/]' \| \
3860
         X"$file" : 'X\(//\)$' \| \
3861
         X"$file" : 'X\(/\)' \| \
3862
         .     : '\(.\)' 2>/dev/null ||
3863
echo X"$file" |
3864
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3865
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3866
          /^X\(\/\/\)$/{ s//\1/; q; }
3867
          /^X\(\/\).*/{ s//\1/; q; }
3868
          s/.*/./; q'`
3869
    { case $dirpart/$fdir in
3870
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3871
  *)                      as_incr_dir=.;;
3872
esac
3873
as_dummy=$dirpart/$fdir
3874
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3875
  case $as_mkdir_dir in
3876
    # Skip DOS drivespec
3877
    ?:) as_incr_dir=$as_mkdir_dir ;;
3878
    *)
3879
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
3880
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3881
    ;;
3882
  esac
3883
done; }
3884
 
3885
    # echo "creating $dirpart/$file"
3886
    echo '# dummy' > "$dirpart/$file"
3887
  done
3888
done
3889
 ;;
3890
  esac
3891
done
3892
EOF
3893
 
3894
cat >>$CONFIG_STATUS <<\EOF
3895
 
3896
{ (exit 0); exit 0; }
3897
EOF
3898
chmod +x $CONFIG_STATUS
3899
ac_clean_files=$ac_clean_files_save
3900
 
3901
# configure is writing to config.log, and then calls config.status.
3902
# config.status does its own redirection, appending to config.log.
3903
# Unfortunately, on DOS this fails, as config.log is still kept open
3904
# by configure, so config.status won't be able to write to it; its
3905
# output is simply discarded.  So we exec the FD to /dev/null,
3906
# effectively closing config.log, so it can be properly (re)opened and
3907
# appended to by config.status.  When coming back to configure, we
3908
# need to make the FD available again.
3909
if test "$no_create" != yes; then
3910
  ac_cs_success=:
3911
  exec 5>/dev/null
3912
  $SHELL $CONFIG_STATUS || ac_cs_success=false
3913
  exec 5>>config.log
3914
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3915
  # would make configure fail if this is the last instruction.
3916
  $ac_cs_success || { (exit 1); exit 1; }
3917
fi
3918
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.