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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [cpu/] [unix/] [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-exec-score-cpu-unix ss-20020528.
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="cpu.c"
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-exec-score-cpu-unix'
152
PACKAGE_TARNAME='rtems-c-src-exec-score-cpu-unix'
153
PACKAGE_VERSION='ss-20020528'
154
PACKAGE_STRING='rtems-c-src-exec-score-cpu-unix ss-20020528'
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-exec-score-cpu-unix ss-20020528 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-exec-score-cpu-unix ss-20020528:";;
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-multilib       build many library versions (default=no)
652
  --enable-bare-cpu-cflags
653
                          specify a particular cpu cflag (bare bsp specific)
654
  --enable-bare-cpu-model specify a particular cpu model (bare bsp specific)
655
  --disable-dependency-tracking Speeds up one-time builds
656
  --enable-dependency-tracking  Do not reject slow dependency extractors
657
  --enable-multiprocessing
658
                          enable multiprocessing interface
659
 
660
Some influential environment variables:
661
  RTEMS_BSP   RTEMS_BSP to build
662
  CC          C compiler command
663
  CFLAGS      C compiler flags
664
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
665
              nonstandard directory 
666
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
667
              headers in a nonstandard directory 
668
  CPP         C preprocessor
669
 
670
Use these variables to override the choices made by `configure' or to help
671
it to find libraries and programs with nonstandard names/locations.
672
 
673
Report bugs to .
674
EOF
675
fi
676
 
677
if test "$ac_init_help" = "recursive"; then
678
  # If there are subdirs, report their specific --help.
679
  ac_popdir=`pwd`
680
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
681
    cd $ac_subdir
682
    # A "../" for each directory in /$ac_subdir.
683
    ac_dots=`echo $ac_subdir |
684
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
685
 
686
    case $srcdir in
687
    .) # No --srcdir option.  We are building in place.
688
      ac_sub_srcdir=$srcdir ;;
689
    [\\/]* | ?:[\\/]* ) # Absolute path.
690
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
691
    *) # Relative path.
692
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
693
    esac
694
 
695
    # Check for guested configure; otherwise get Cygnus style configure.
696
    if test -f $ac_sub_srcdir/configure.gnu; then
697
      echo
698
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
699
    elif test -f $ac_sub_srcdir/configure; then
700
      echo
701
      $SHELL $ac_sub_srcdir/configure  --help=recursive
702
    elif test -f $ac_sub_srcdir/configure.ac ||
703
           test -f $ac_sub_srcdir/configure.in; then
704
      echo
705
      $ac_configure --help
706
    else
707
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
708
    fi
709
    cd $ac_popdir
710
  done
711
fi
712
 
713
test -n "$ac_init_help" && exit 0
714
if $ac_init_version; then
715
  cat <<\EOF
716
rtems-c-src-exec-score-cpu-unix configure ss-20020528
717
generated by GNU Autoconf 2.52
718
 
719
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
720
Free Software Foundation, Inc.
721
This configure script is free software; the Free Software Foundation
722
gives unlimited permission to copy, distribute and modify it.
723
EOF
724
  exit 0
725
fi
726
exec 5>config.log
727
cat >&5 <
728
This file contains any messages produced by compilers while
729
running configure, to aid debugging if configure makes a mistake.
730
 
731
It was created by rtems-c-src-exec-score-cpu-unix $as_me ss-20020528, which was
732
generated by GNU Autoconf 2.52.  Invocation command line was
733
 
734
  $ $0 $@
735
 
736
EOF
737
{
738
cat <<_ASUNAME
739
## ---------- ##
740
## Platform.  ##
741
## ---------- ##
742
 
743
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
744
uname -m = `(uname -m) 2>/dev/null || echo unknown`
745
uname -r = `(uname -r) 2>/dev/null || echo unknown`
746
uname -s = `(uname -s) 2>/dev/null || echo unknown`
747
uname -v = `(uname -v) 2>/dev/null || echo unknown`
748
 
749
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
750
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
751
 
752
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
753
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
754
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
755
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
756
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
757
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
758
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
759
 
760
PATH = $PATH
761
 
762
_ASUNAME
763
} >&5
764
 
765
cat >&5 <
766
## ------------ ##
767
## Core tests.  ##
768
## ------------ ##
769
 
770
EOF
771
 
772
# Keep a trace of the command line.
773
# Strip out --no-create and --no-recursion so they do not pile up.
774
# Also quote any args containing shell meta-characters.
775
ac_configure_args=
776
ac_sep=
777
for ac_arg
778
do
779
  case $ac_arg in
780
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
781
  | --no-cr | --no-c) ;;
782
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
783
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
784
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
785
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
786
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
787
    ac_sep=" " ;;
788
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
789
     ac_sep=" " ;;
790
  esac
791
  # Get rid of the leading space.
792
done
793
 
794
# When interrupted or exit'd, cleanup temporary files, and complete
795
# config.log.  We remove comments because anyway the quotes in there
796
# would cause problems or look ugly.
797
trap 'exit_status=$?
798
  # Save into config.log some information that might help in debugging.
799
  echo >&5
800
  echo "## ----------------- ##" >&5
801
  echo "## Cache variables.  ##" >&5
802
  echo "## ----------------- ##" >&5
803
  echo >&5
804
  # The following way of writing the cache mishandles newlines in values,
805
{
806
  (set) 2>&1 |
807
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
808
    *ac_space=\ *)
809
      sed -n \
810
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
811
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
812
      ;;
813
    *)
814
      sed -n \
815
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
816
      ;;
817
    esac;
818
} >&5
819
  sed "/^$/d" confdefs.h >conftest.log
820
  if test -s conftest.log; then
821
    echo >&5
822
    echo "## ------------ ##" >&5
823
    echo "## confdefs.h.  ##" >&5
824
    echo "## ------------ ##" >&5
825
    echo >&5
826
    cat conftest.log >&5
827
  fi
828
  (echo; echo) >&5
829
  test "$ac_signal" != 0 &&
830
    echo "$as_me: caught signal $ac_signal" >&5
831
  echo "$as_me: exit $exit_status" >&5
832
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
833
    exit $exit_status
834
     ' 0
835
for ac_signal in 1 2 13 15; do
836
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
837
done
838
ac_signal=0
839
 
840
# confdefs.h avoids OS command line length limits that DEFS can exceed.
841
rm -rf conftest* confdefs.h
842
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
843
echo >confdefs.h
844
 
845
# Let the site file select an alternate cache file if it wants to.
846
# Prefer explicitly selected file to automatically selected ones.
847
if test -z "$CONFIG_SITE"; then
848
  if test "x$prefix" != xNONE; then
849
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
850
  else
851
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
852
  fi
853
fi
854
for ac_site_file in $CONFIG_SITE; do
855
  if test -r "$ac_site_file"; then
856
    { echo "$as_me:856: loading site script $ac_site_file" >&5
857
echo "$as_me: loading site script $ac_site_file" >&6;}
858
    cat "$ac_site_file" >&5
859
    . "$ac_site_file"
860
  fi
861
done
862
 
863
if test -r "$cache_file"; then
864
  # Some versions of bash will fail to source /dev/null (special
865
  # files actually), so we avoid doing that.
866
  if test -f "$cache_file"; then
867
    { echo "$as_me:867: loading cache $cache_file" >&5
868
echo "$as_me: loading cache $cache_file" >&6;}
869
    case $cache_file in
870
      [\\/]* | ?:[\\/]* ) . $cache_file;;
871
      *)                      . ./$cache_file;;
872
    esac
873
  fi
874
else
875
  { echo "$as_me:875: creating cache $cache_file" >&5
876
echo "$as_me: creating cache $cache_file" >&6;}
877
  >$cache_file
878
fi
879
 
880
# Check that the precious variables saved in the cache have kept the same
881
# value.
882
ac_cache_corrupted=false
883
for ac_var in `(set) 2>&1 |
884
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
885
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
886
  eval ac_new_set=\$ac_env_${ac_var}_set
887
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
888
  eval ac_new_val="\$ac_env_${ac_var}_value"
889
  case $ac_old_set,$ac_new_set in
890
    set,)
891
      { echo "$as_me:891: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
892
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
893
      ac_cache_corrupted=: ;;
894
    ,set)
895
      { echo "$as_me:895: error: \`$ac_var' was not set in the previous run" >&5
896
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
897
      ac_cache_corrupted=: ;;
898
    ,);;
899
    *)
900
      if test "x$ac_old_val" != "x$ac_new_val"; then
901
        { echo "$as_me:901: error: \`$ac_var' has changed since the previous run:" >&5
902
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
903
        { echo "$as_me:903:   former value:  $ac_old_val" >&5
904
echo "$as_me:   former value:  $ac_old_val" >&2;}
905
        { echo "$as_me:905:   current value: $ac_new_val" >&5
906
echo "$as_me:   current value: $ac_new_val" >&2;}
907
        ac_cache_corrupted=:
908
      fi;;
909
  esac
910
  # Pass precious variables to config.status.  It doesn't matter if
911
  # we pass some twice (in addition to the command line arguments).
912
  if test "$ac_new_set" = set; then
913
    case $ac_new_val in
914
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
915
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
916
      ac_configure_args="$ac_configure_args '$ac_arg'"
917
      ;;
918
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
919
       ;;
920
    esac
921
  fi
922
done
923
if $ac_cache_corrupted; then
924
  { echo "$as_me:924: error: changes in the environment can compromise the build" >&5
925
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
926
  { { echo "$as_me:926: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
927
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
928
   { (exit 1); exit 1; }; }
929
fi
930
 
931
ac_ext=c
932
ac_cpp='$CPP $CPPFLAGS'
933
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
934
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
935
ac_compiler_gnu=$ac_cv_c_compiler_gnu
936
 
937
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
938
  *c*,-n*) ECHO_N= ECHO_C='
939
' ECHO_T='      ' ;;
940
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
941
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
942
esac
943
echo "#! $SHELL" >conftest.sh
944
echo  "exit 0"   >>conftest.sh
945
chmod +x conftest.sh
946
if { (echo "$as_me:946: PATH=\".;.\"; conftest.sh") >&5
947
  (PATH=".;."; conftest.sh) 2>&5
948
  ac_status=$?
949
  echo "$as_me:949: \$? = $ac_status" >&5
950
  (exit $ac_status); }; then
951
  ac_path_separator=';'
952
else
953
  ac_path_separator=:
954
fi
955
PATH_SEPARATOR="$ac_path_separator"
956
rm -f conftest.sh
957
 
958
for ac_prog in gmake make
959
do
960
  # Extract the first word of "$ac_prog", so it can be a program name with args.
961
set dummy $ac_prog; ac_word=$2
962
echo "$as_me:962: checking for $ac_word" >&5
963
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
964
if test "${ac_cv_prog_MAKE+set}" = set; then
965
  echo $ECHO_N "(cached) $ECHO_C" >&6
966
else
967
  if test -n "$MAKE"; then
968
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
969
else
970
  ac_save_IFS=$IFS; IFS=$ac_path_separator
971
ac_dummy="$PATH"
972
for ac_dir in $ac_dummy; do
973
  IFS=$ac_save_IFS
974
  test -z "$ac_dir" && ac_dir=.
975
  $as_executable_p "$ac_dir/$ac_word" || continue
976
ac_cv_prog_MAKE="$ac_prog"
977
echo "$as_me:977: found $ac_dir/$ac_word" >&5
978
break
979
done
980
 
981
fi
982
fi
983
MAKE=$ac_cv_prog_MAKE
984
if test -n "$MAKE"; then
985
  echo "$as_me:985: result: $MAKE" >&5
986
echo "${ECHO_T}$MAKE" >&6
987
else
988
  echo "$as_me:988: result: no" >&5
989
echo "${ECHO_T}no" >&6
990
fi
991
 
992
  test -n "$MAKE" && break
993
done
994
 
995
ENDIF=endif
996
 
997
RTEMS_TOPdir="../../../..";
998
 
999
test -n "$with_target_subdir" || with_target_subdir="."
1000
 
1001
if test "$with_target_subdir" = "." ; then
1002
# Native
1003
PROJECT_TOPdir="${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)"
1004
else
1005
# Cross
1006
dots=`echo $with_target_subdir|\
1007
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1008
PROJECT_TOPdir="${dots}${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)"
1009
fi
1010
 
1011
PROJECT_ROOT="${with_project_root}${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)"
1012
 
1013
echo "$as_me:1013: checking for RTEMS Version" >&5
1014
echo $ECHO_N "checking for RTEMS Version... $ECHO_C" >&6
1015
if test -r "${srcdir}/${RTEMS_TOPdir}/cpukit/aclocal/version.m4"; then
1016
  :
1017
else
1018
  { { echo "$as_me:1018: error: Unable to find ${RTEMS_TOPdir}/cpukit/aclocal/version.m4" >&5
1019
echo "$as_me: error: Unable to find ${RTEMS_TOPdir}/cpukit/aclocal/version.m4" >&2;}
1020
   { (exit 1); exit 1; }; }
1021
fi
1022
 
1023
echo "$as_me:1023: result: ss-20020528" >&5
1024
echo "${ECHO_T}ss-20020528" >&6
1025
 
1026
ac_aux_dir=
1027
for ac_dir in ../../../.. $srcdir/../../../..; do
1028
  if test -f $ac_dir/install-sh; then
1029
    ac_aux_dir=$ac_dir
1030
    ac_install_sh="$ac_aux_dir/install-sh -c"
1031
    break
1032
  elif test -f $ac_dir/install.sh; then
1033
    ac_aux_dir=$ac_dir
1034
    ac_install_sh="$ac_aux_dir/install.sh -c"
1035
    break
1036
  elif test -f $ac_dir/shtool; then
1037
    ac_aux_dir=$ac_dir
1038
    ac_install_sh="$ac_aux_dir/shtool install -c"
1039
    break
1040
  fi
1041
done
1042
if test -z "$ac_aux_dir"; then
1043
  { { echo "$as_me:1043: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&5
1044
echo "$as_me: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&2;}
1045
   { (exit 1); exit 1; }; }
1046
fi
1047
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1048
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1049
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1050
 
1051
# Make sure we can run config.sub.
1052
$ac_config_sub sun4 >/dev/null 2>&1 ||
1053
  { { echo "$as_me:1053: error: cannot run $ac_config_sub" >&5
1054
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1055
   { (exit 1); exit 1; }; }
1056
 
1057
echo "$as_me:1057: checking build system type" >&5
1058
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1059
if test "${ac_cv_build+set}" = set; then
1060
  echo $ECHO_N "(cached) $ECHO_C" >&6
1061
else
1062
  ac_cv_build_alias=$build_alias
1063
test -z "$ac_cv_build_alias" &&
1064
  ac_cv_build_alias=`$ac_config_guess`
1065
test -z "$ac_cv_build_alias" &&
1066
  { { echo "$as_me:1066: error: cannot guess build type; you must specify one" >&5
1067
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1068
   { (exit 1); exit 1; }; }
1069
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1070
  { { echo "$as_me:1070: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1071
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1072
   { (exit 1); exit 1; }; }
1073
 
1074
fi
1075
echo "$as_me:1075: result: $ac_cv_build" >&5
1076
echo "${ECHO_T}$ac_cv_build" >&6
1077
build=$ac_cv_build
1078
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081
 
1082
echo "$as_me:1082: checking host system type" >&5
1083
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1084
if test "${ac_cv_host+set}" = set; then
1085
  echo $ECHO_N "(cached) $ECHO_C" >&6
1086
else
1087
  ac_cv_host_alias=$host_alias
1088
test -z "$ac_cv_host_alias" &&
1089
  ac_cv_host_alias=$ac_cv_build_alias
1090
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1091
  { { echo "$as_me:1091: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1092
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1093
   { (exit 1); exit 1; }; }
1094
 
1095
fi
1096
echo "$as_me:1096: result: $ac_cv_host" >&5
1097
echo "${ECHO_T}$ac_cv_host" >&6
1098
host=$ac_cv_host
1099
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1100
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1101
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1102
 
1103
echo "$as_me:1103: checking target system type" >&5
1104
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1105
if test "${ac_cv_target+set}" = set; then
1106
  echo $ECHO_N "(cached) $ECHO_C" >&6
1107
else
1108
  ac_cv_target_alias=$target_alias
1109
test "x$ac_cv_target_alias" = "x" &&
1110
  ac_cv_target_alias=$ac_cv_host_alias
1111
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1112
  { { echo "$as_me:1112: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1113
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1114
   { (exit 1); exit 1; }; }
1115
 
1116
fi
1117
echo "$as_me:1117: result: $ac_cv_target" >&5
1118
echo "${ECHO_T}$ac_cv_target" >&6
1119
target=$ac_cv_target
1120
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1121
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1122
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123
 
1124
# The aliases save the names the user supplied, while $host etc.
1125
# will get canonicalized.
1126
test -n "$target_alias" &&
1127
  test "$program_prefix$program_suffix$program_transform_name" = \
1128
    NONENONEs,x,x, &&
1129
  program_prefix=${target_alias}-
1130
echo "$as_me:1130: checking rtems target cpu" >&5
1131
echo $ECHO_N "checking rtems target cpu... $ECHO_C" >&6
1132
case "${target}" in
1133
  # hpux unix port should go here
1134
  i[34567]86-*linux*)           # unix "simulator" port
1135
        RTEMS_CPU=unix
1136
        ;;
1137
  i[34567]86-*freebsd*)         # unix "simulator" port
1138
        RTEMS_CPU=unix
1139
        ;;
1140
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1141
        RTEMS_CPU=unix
1142
        ;;
1143
  no_cpu-*rtems*)
1144
        RTEMS_CPU=no_cpu
1145
        ;;
1146
  sparc-sun-solaris*)           # unix "simulator" port
1147
        RTEMS_CPU=unix
1148
        ;;
1149
  *)
1150
        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1151
        ;;
1152
esac
1153
 
1154
echo "$as_me:1154: result: $RTEMS_CPU" >&5
1155
echo "${ECHO_T}$RTEMS_CPU" >&6
1156
 
1157
am__api_version="1.6"
1158
# Find a good install program.  We prefer a C program (faster),
1159
# so one script is as good as another.  But avoid the broken or
1160
# incompatible versions:
1161
# SysV /etc/install, /usr/sbin/install
1162
# SunOS /usr/etc/install
1163
# IRIX /sbin/install
1164
# AIX /bin/install
1165
# AmigaOS /C/install, which installs bootblocks on floppy discs
1166
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1167
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1168
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1169
# ./install, which can be erroneously created by make from ./install.sh.
1170
echo "$as_me:1170: checking for a BSD compatible install" >&5
1171
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1172
if test -z "$INSTALL"; then
1173
if test "${ac_cv_path_install+set}" = set; then
1174
  echo $ECHO_N "(cached) $ECHO_C" >&6
1175
else
1176
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1177
  for ac_dir in $PATH; do
1178
    IFS=$ac_save_IFS
1179
    # Account for people who put trailing slashes in PATH elements.
1180
    case $ac_dir/ in
1181
    / | ./ | .// | /cC/* \
1182
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1183
    | /usr/ucb/* ) ;;
1184
    *)
1185
      # OSF1 and SCO ODT 3.0 have their own names for install.
1186
      # Don't use installbsd from OSF since it installs stuff as root
1187
      # by default.
1188
      for ac_prog in ginstall scoinst install; do
1189
        if $as_executable_p "$ac_dir/$ac_prog"; then
1190
          if test $ac_prog = install &&
1191
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1192
            # AIX install.  It has an incompatible calling convention.
1193
            :
1194
          elif test $ac_prog = install &&
1195
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1196
            # program-specific install script used by HP pwplus--don't use.
1197
            :
1198
          else
1199
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1200
            break 2
1201
          fi
1202
        fi
1203
      done
1204
      ;;
1205
    esac
1206
  done
1207
 
1208
fi
1209
  if test "${ac_cv_path_install+set}" = set; then
1210
    INSTALL=$ac_cv_path_install
1211
  else
1212
    # As a last resort, use the slow shell script.  We don't cache a
1213
    # path for INSTALL within a source directory, because that will
1214
    # break other packages using the cache if that directory is
1215
    # removed, or if the path is relative.
1216
    INSTALL=$ac_install_sh
1217
  fi
1218
fi
1219
echo "$as_me:1219: result: $INSTALL" >&5
1220
echo "${ECHO_T}$INSTALL" >&6
1221
 
1222
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1223
# It thinks the first close brace ends the variable substitution.
1224
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1225
 
1226
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1227
 
1228
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1229
 
1230
echo "$as_me:1230: checking whether build environment is sane" >&5
1231
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1232
# Just in case
1233
sleep 1
1234
echo timestamp > conftest.file
1235
# Do `set' in a subshell so we don't clobber the current shell's
1236
# arguments.  Must try -L first in case configure is actually a
1237
# symlink; some systems play weird games with the mod time of symlinks
1238
# (eg FreeBSD returns the mod time of the symlink's containing
1239
# directory).
1240
if (
1241
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1242
   if test "$*" = "X"; then
1243
      # -L didn't work.
1244
      set X `ls -t $srcdir/configure conftest.file`
1245
   fi
1246
   rm -f conftest.file
1247
   if test "$*" != "X $srcdir/configure conftest.file" \
1248
      && test "$*" != "X conftest.file $srcdir/configure"; then
1249
 
1250
      # If neither matched, then we have a broken ls.  This can happen
1251
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1252
      # broken ls alias from the environment.  This has actually
1253
      # happened.  Such a system could not be considered "sane".
1254
      { { echo "$as_me:1254: error: ls -t appears to fail.  Make sure there is not a broken
1255
alias in your environment" >&5
1256
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1257
alias in your environment" >&2;}
1258
   { (exit 1); exit 1; }; }
1259
   fi
1260
 
1261
   test "$2" = conftest.file
1262
   )
1263
then
1264
   # Ok.
1265
   :
1266
else
1267
   { { echo "$as_me:1267: error: newly created file is older than distributed files!
1268
Check your system clock" >&5
1269
echo "$as_me: error: newly created file is older than distributed files!
1270
Check your system clock" >&2;}
1271
   { (exit 1); exit 1; }; }
1272
fi
1273
echo "$as_me:1273: result: yes" >&5
1274
echo "${ECHO_T}yes" >&6
1275
test "$program_prefix" != NONE &&
1276
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1277
# Use a double $ so make ignores it.
1278
test "$program_suffix" != NONE &&
1279
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1280
# Double any \ or $.  echo might interpret backslashes.
1281
# By default was `s,x,x', remove it if useless.
1282
cat <<\_ACEOF >conftest.sed
1283
s/[\\$]/&&/g;s/;s,x,x,$//
1284
_ACEOF
1285
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1286
rm conftest.sed
1287
 
1288
# expand $ac_aux_dir to an absolute path
1289
am_aux_dir=`cd $ac_aux_dir && pwd`
1290
 
1291
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1292
# Use eval to expand $SHELL
1293
if eval "$MISSING --run true"; then
1294
  am_missing_run="$MISSING --run "
1295
else
1296
  am_missing_run=
1297
  { echo "$as_me:1297: WARNING: \`missing' script is too old or missing" >&5
1298
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1299
fi
1300
 
1301
for ac_prog in mawk gawk nawk awk
1302
do
1303
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1304
set dummy $ac_prog; ac_word=$2
1305
echo "$as_me:1305: checking for $ac_word" >&5
1306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307
if test "${ac_cv_prog_AWK+set}" = set; then
1308
  echo $ECHO_N "(cached) $ECHO_C" >&6
1309
else
1310
  if test -n "$AWK"; then
1311
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1312
else
1313
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1314
ac_dummy="$PATH"
1315
for ac_dir in $ac_dummy; do
1316
  IFS=$ac_save_IFS
1317
  test -z "$ac_dir" && ac_dir=.
1318
  $as_executable_p "$ac_dir/$ac_word" || continue
1319
ac_cv_prog_AWK="$ac_prog"
1320
echo "$as_me:1320: found $ac_dir/$ac_word" >&5
1321
break
1322
done
1323
 
1324
fi
1325
fi
1326
AWK=$ac_cv_prog_AWK
1327
if test -n "$AWK"; then
1328
  echo "$as_me:1328: result: $AWK" >&5
1329
echo "${ECHO_T}$AWK" >&6
1330
else
1331
  echo "$as_me:1331: result: no" >&5
1332
echo "${ECHO_T}no" >&6
1333
fi
1334
 
1335
  test -n "$AWK" && break
1336
done
1337
 
1338
echo "$as_me:1338: checking whether ${MAKE-make} sets \${MAKE}" >&5
1339
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1340
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1341
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1342
  echo $ECHO_N "(cached) $ECHO_C" >&6
1343
else
1344
  cat >conftest.make <<\EOF
1345
all:
1346
        @echo 'ac_maketemp="${MAKE}"'
1347
EOF
1348
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1349
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1350
if test -n "$ac_maketemp"; then
1351
  eval ac_cv_prog_make_${ac_make}_set=yes
1352
else
1353
  eval ac_cv_prog_make_${ac_make}_set=no
1354
fi
1355
rm -f conftest.make
1356
fi
1357
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1358
  echo "$as_me:1358: result: yes" >&5
1359
echo "${ECHO_T}yes" >&6
1360
  SET_MAKE=
1361
else
1362
  echo "$as_me:1362: result: no" >&5
1363
echo "${ECHO_T}no" >&6
1364
  SET_MAKE="MAKE=${MAKE-make}"
1365
fi
1366
 
1367
 # test to see if srcdir already configured
1368
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1369
   test -f $srcdir/config.status; then
1370
  { { echo "$as_me:1370: error: source directory already configured; run \"make distclean\" there first" >&5
1371
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1372
   { (exit 1); exit 1; }; }
1373
fi
1374
 
1375
# Define the identity of the package.
1376
 PACKAGE=rtems-c-src-exec-score-cpu-unix
1377
 VERSION=ss-20020528
1378
 
1379
# Some tools Automake needs.
1380
 
1381
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1382
 
1383
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1384
 
1385
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1386
 
1387
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1388
 
1389
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1390
 
1391
AMTAR=${AMTAR-"${am_missing_run}tar"}
1392
 
1393
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1394
 
1395
# Installed binaries are usually stripped using `strip' when the user
1396
# run `make install-strip'.  However `strip' might not be the right
1397
# tool to use in cross-compilation environments, therefore Automake
1398
# will honor the `STRIP' environment variable to overrule this program.
1399
if test "$cross_compiling" != no; then
1400
  if test -n "$ac_tool_prefix"; then
1401
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1402
set dummy ${ac_tool_prefix}strip; ac_word=$2
1403
echo "$as_me:1403: checking for $ac_word" >&5
1404
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405
if test "${ac_cv_prog_STRIP+set}" = set; then
1406
  echo $ECHO_N "(cached) $ECHO_C" >&6
1407
else
1408
  if test -n "$STRIP"; then
1409
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1410
else
1411
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1412
ac_dummy="$PATH"
1413
for ac_dir in $ac_dummy; do
1414
  IFS=$ac_save_IFS
1415
  test -z "$ac_dir" && ac_dir=.
1416
  $as_executable_p "$ac_dir/$ac_word" || continue
1417
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1418
echo "$as_me:1418: found $ac_dir/$ac_word" >&5
1419
break
1420
done
1421
 
1422
fi
1423
fi
1424
STRIP=$ac_cv_prog_STRIP
1425
if test -n "$STRIP"; then
1426
  echo "$as_me:1426: result: $STRIP" >&5
1427
echo "${ECHO_T}$STRIP" >&6
1428
else
1429
  echo "$as_me:1429: result: no" >&5
1430
echo "${ECHO_T}no" >&6
1431
fi
1432
 
1433
fi
1434
if test -z "$ac_cv_prog_STRIP"; then
1435
  ac_ct_STRIP=$STRIP
1436
  # Extract the first word of "strip", so it can be a program name with args.
1437
set dummy strip; ac_word=$2
1438
echo "$as_me:1438: checking for $ac_word" >&5
1439
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1441
  echo $ECHO_N "(cached) $ECHO_C" >&6
1442
else
1443
  if test -n "$ac_ct_STRIP"; then
1444
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1445
else
1446
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1447
ac_dummy="$PATH"
1448
for ac_dir in $ac_dummy; do
1449
  IFS=$ac_save_IFS
1450
  test -z "$ac_dir" && ac_dir=.
1451
  $as_executable_p "$ac_dir/$ac_word" || continue
1452
ac_cv_prog_ac_ct_STRIP="strip"
1453
echo "$as_me:1453: found $ac_dir/$ac_word" >&5
1454
break
1455
done
1456
 
1457
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1458
fi
1459
fi
1460
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1461
if test -n "$ac_ct_STRIP"; then
1462
  echo "$as_me:1462: result: $ac_ct_STRIP" >&5
1463
echo "${ECHO_T}$ac_ct_STRIP" >&6
1464
else
1465
  echo "$as_me:1465: result: no" >&5
1466
echo "${ECHO_T}no" >&6
1467
fi
1468
 
1469
  STRIP=$ac_ct_STRIP
1470
else
1471
  STRIP="$ac_cv_prog_STRIP"
1472
fi
1473
 
1474
fi
1475
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1476
 
1477
# We need awk for the "check" target.  The system "awk" is bad on
1478
# some platforms.
1479
 
1480
echo "$as_me:1480: checking whether to enable maintainer-specific portions of Makefiles" >&5
1481
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1482
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1483
if test "${enable_maintainer_mode+set}" = set; then
1484
  enableval="$enable_maintainer_mode"
1485
  USE_MAINTAINER_MODE=$enableval
1486
else
1487
  USE_MAINTAINER_MODE=no
1488
fi;
1489
  echo "$as_me:1489: result: $USE_MAINTAINER_MODE" >&5
1490
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1491
 
1492
if test $USE_MAINTAINER_MODE = yes; then
1493
  MAINTAINER_MODE_TRUE=
1494
  MAINTAINER_MODE_FALSE='#'
1495
else
1496
  MAINTAINER_MODE_TRUE='#'
1497
  MAINTAINER_MODE_FALSE=
1498
fi
1499
 
1500
  MAINT=$MAINTAINER_MODE_TRUE
1501
 
1502
# Check whether --enable-multilib or --disable-multilib was given.
1503
if test "${enable_multilib+set}" = set; then
1504
  enableval="$enable_multilib"
1505
  case "${enableval}" in
1506
  yes) multilib=yes ;;
1507
  no)  multilib=no ;;
1508
  *)   { { echo "$as_me:1508: error: bad value ${enableval} for multilib option" >&5
1509
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1510
   { (exit 1); exit 1; }; } ;;
1511
 esac
1512
else
1513
  multilib=no
1514
fi;
1515
 
1516
if test x"${multilib}" = x"yes"; then
1517
  MULTILIB_TRUE=
1518
  MULTILIB_FALSE='#'
1519
else
1520
  MULTILIB_TRUE='#'
1521
  MULTILIB_FALSE=
1522
fi
1523
 
1524
if test x"$multilib" = x"yes"; then
1525
  if test -n "$with_multisubdir"; then
1526
  MULTIBUILDTOP=`echo "/$with_multisubdir" | sed 's,/[^\\/]*,../,g'`
1527
fi
1528
 
1529
  if test -n "$with_multisubdir"; then
1530
  MULTISUBDIR="/$with_multisubdir"
1531
fi
1532
 
1533
  GCC_SPECS="-isystem \$(PROJECT_INCLUDE)"
1534
 
1535
  PROJECT_INCLUDE="\$(PROJECT_ROOT)/lib/include"
1536
 
1537
  project_libdir="\$(PROJECT_ROOT)/lib"
1538
 
1539
  RTEMS_ROOT="${PROJECT_ROOT}"
1540
 
1541
  includedir="\${exec_prefix}/lib/include"
1542
  libdir="${libdir}\$(MULTISUBDIR)"
1543
else
1544
 
1545
echo "$as_me:1545: checking for RTEMS_BSP" >&5
1546
echo $ECHO_N "checking for RTEMS_BSP... $ECHO_C" >&6
1547
if test "${rtems_cv_RTEMS_BSP+set}" = set; then
1548
  echo $ECHO_N "(cached) $ECHO_C" >&6
1549
else
1550
    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1551
 
1552
fi
1553
if test -z "$rtems_cv_RTEMS_BSP"; then
1554
  { { echo "$as_me:1554: error: Missing RTEMS_BSP" >&5
1555
echo "$as_me: error: Missing RTEMS_BSP" >&2;}
1556
   { (exit 1); exit 1; }; }
1557
fi
1558
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1559
echo "$as_me:1559: result: ${RTEMS_BSP}" >&5
1560
echo "${ECHO_T}${RTEMS_BSP}" >&6
1561
 
1562
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
1563
 
1564
project_libdir="${PROJECT_ROOT}/$RTEMS_BSP/lib"
1565
 
1566
RTEMS_ROOT="$PROJECT_ROOT/c/$RTEMS_BSP"
1567
 
1568
GCC_SPECS="-isystem \$(PROJECT_INCLUDE)"
1569
 
1570
# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1571
if test "${enable_bare_cpu_cflags+set}" = set; then
1572
  enableval="$enable_bare_cpu_cflags"
1573
  case "${enableval}" in
1574
  no) BARE_CPU_CFLAGS="" ;;
1575
  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1576
esac
1577
else
1578
  BARE_CPU_CFLAGS=""
1579
fi;
1580
 
1581
# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1582
if test "${enable_bare_cpu_model+set}" = set; then
1583
  enableval="$enable_bare_cpu_model"
1584
  case "${enableval}" in
1585
  no)   BARE_CPU_MODEL="" ;;
1586
  *)    BARE_CPU_MODEL="${enableval}" ;;
1587
esac
1588
else
1589
  BARE_CPU_MODEL=""
1590
fi;
1591
 
1592
if false; then
1593
  MULTILIB_TRUE=
1594
  MULTILIB_FALSE='#'
1595
else
1596
  MULTILIB_TRUE='#'
1597
  MULTILIB_FALSE=
1598
fi
1599
 
1600
includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
1601
libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
1602
 
1603
echo "$as_me:1603: checking for make/custom/$RTEMS_BSP.cfg" >&5
1604
echo $ECHO_N "checking for make/custom/$RTEMS_BSP.cfg... $ECHO_C" >&6
1605
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
1606
  echo "$as_me:1606: result: yes" >&5
1607
echo "${ECHO_T}yes" >&6
1608
else
1609
  { { echo "$as_me:1609: error: no" >&5
1610
echo "$as_me: error: no" >&2;}
1611
   { (exit 1); exit 1; }; }
1612
fi
1613
 
1614
fi
1615
 
1616
# Is this a supported CPU?
1617
echo "$as_me:1617: checking if cpu $RTEMS_CPU is supported" >&5
1618
echo $ECHO_N "checking if cpu $RTEMS_CPU is supported... $ECHO_C" >&6
1619
if test -d "$srcdir/$RTEMS_TOPdir/cpukit/score/cpu/$RTEMS_CPU"; then
1620
  echo "$as_me:1620: result: yes" >&5
1621
echo "${ECHO_T}yes" >&6
1622
else
1623
  { { echo "$as_me:1623: error: no" >&5
1624
echo "$as_me: error: no" >&2;}
1625
   { (exit 1); exit 1; }; }
1626
fi
1627
 
1628
RTEMS_HOST=$host_os
1629
case "${target}" in
1630
  # hpux unix port should go here
1631
  i[34567]86-*linux*)          # unix "simulator" port
1632
        RTEMS_HOST=Linux
1633
        ;;
1634
  i[34567]86-*freebsd*)         # unix "simulator" port
1635
        RTEMS_HOST=FreeBSD
1636
        ;;
1637
  i[34567]86-pc-cygwin*)        # Cygwin is just enough unix like :)
1638
        RTEMS_HOST=Cygwin
1639
        ;;
1640
  sparc-sun-solaris*)           # unix "simulator" port
1641
        RTEMS_HOST=Solaris
1642
        ;;
1643
  *)
1644
        ;;
1645
esac
1646
 
1647
rm -f .deps 2>/dev/null
1648
mkdir .deps 2>/dev/null
1649
if test -d .deps; then
1650
  DEPDIR=.deps
1651
else
1652
  # MS-DOS does not allow filenames that begin with a dot.
1653
  DEPDIR=_deps
1654
fi
1655
rmdir .deps 2>/dev/null
1656
 
1657
ac_config_commands="$ac_config_commands depfiles"
1658
 
1659
am_make=${MAKE-make}
1660
cat > confinc << 'END'
1661
doit:
1662
        @echo done
1663
END
1664
# If we don't find an include directive, just comment out the code.
1665
echo "$as_me:1665: checking for style of include used by $am_make" >&5
1666
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1667
am__include="#"
1668
am__quote=
1669
_am_result=none
1670
# First try GNU make style include.
1671
echo "include confinc" > confmf
1672
# We grep out `Entering directory' and `Leaving directory'
1673
# messages which can occur if `w' ends up in MAKEFLAGS.
1674
# In particular we don't look at `^make:' because GNU make might
1675
# be invoked under some other name (usually "gmake"), in which
1676
# case it prints its new name instead of `make'.
1677
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1678
   am__include=include
1679
   am__quote=
1680
   _am_result=GNU
1681
fi
1682
# Now try BSD make style include.
1683
if test "$am__include" = "#"; then
1684
   echo '.include "confinc"' > confmf
1685
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1686
      am__include=.include
1687
      am__quote="\""
1688
      _am_result=BSD
1689
   fi
1690
fi
1691
 
1692
echo "$as_me:1692: result: $_am_result" >&5
1693
echo "${ECHO_T}$_am_result" >&6
1694
rm -f confinc confmf
1695
 
1696
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1697
if test "${enable_dependency_tracking+set}" = set; then
1698
  enableval="$enable_dependency_tracking"
1699
 
1700
fi;
1701
if test "x$enable_dependency_tracking" != xno; then
1702
  am_depcomp="$ac_aux_dir/depcomp"
1703
  AMDEPBACKSLASH='\'
1704
fi
1705
 
1706
if test "x$enable_dependency_tracking" != xno; then
1707
  AMDEP_TRUE=
1708
  AMDEP_FALSE='#'
1709
else
1710
  AMDEP_TRUE='#'
1711
  AMDEP_FALSE=
1712
fi
1713
 
1714
  if test "x$build_alias" != "x$host_alias"; then
1715
  rtems_tool_prefix=${ac_tool_prefix}
1716
fi
1717
 
1718
  # Extract the first word of "${rtems_tool_prefix}gcc", so it can be a program name with args.
1719
set dummy ${rtems_tool_prefix}gcc; ac_word=$2
1720
echo "$as_me:1720: checking for $ac_word" >&5
1721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722
if test "${ac_cv_prog_CC+set}" = set; then
1723
  echo $ECHO_N "(cached) $ECHO_C" >&6
1724
else
1725
  if test -n "$CC"; then
1726
  ac_cv_prog_CC="$CC" # Let the user override the test.
1727
else
1728
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1729
ac_dummy="$PATH"
1730
for ac_dir in $ac_dummy; do
1731
  IFS=$ac_save_IFS
1732
  test -z "$ac_dir" && ac_dir=.
1733
  $as_executable_p "$ac_dir/$ac_word" || continue
1734
ac_cv_prog_CC="${rtems_tool_prefix}gcc"
1735
echo "$as_me:1735: found $ac_dir/$ac_word" >&5
1736
break
1737
done
1738
 
1739
fi
1740
fi
1741
CC=$ac_cv_prog_CC
1742
if test -n "$CC"; then
1743
  echo "$as_me:1743: result: $CC" >&5
1744
echo "${ECHO_T}$CC" >&6
1745
else
1746
  echo "$as_me:1746: result: no" >&5
1747
echo "${ECHO_T}no" >&6
1748
fi
1749
 
1750
test -z "$CC" && \
1751
  { { echo "$as_me:1751: error: no acceptable cc found in \$PATH" >&5
1752
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1753
   { (exit 1); exit 1; }; }
1754
ac_ext=c
1755
ac_cpp='$CPP $CPPFLAGS'
1756
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1759
if test -n "$ac_tool_prefix"; then
1760
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1761
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1762
echo "$as_me:1762: checking for $ac_word" >&5
1763
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764
if test "${ac_cv_prog_CC+set}" = set; then
1765
  echo $ECHO_N "(cached) $ECHO_C" >&6
1766
else
1767
  if test -n "$CC"; then
1768
  ac_cv_prog_CC="$CC" # Let the user override the test.
1769
else
1770
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1771
ac_dummy="$PATH"
1772
for ac_dir in $ac_dummy; do
1773
  IFS=$ac_save_IFS
1774
  test -z "$ac_dir" && ac_dir=.
1775
  $as_executable_p "$ac_dir/$ac_word" || continue
1776
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1777
echo "$as_me:1777: found $ac_dir/$ac_word" >&5
1778
break
1779
done
1780
 
1781
fi
1782
fi
1783
CC=$ac_cv_prog_CC
1784
if test -n "$CC"; then
1785
  echo "$as_me:1785: result: $CC" >&5
1786
echo "${ECHO_T}$CC" >&6
1787
else
1788
  echo "$as_me:1788: result: no" >&5
1789
echo "${ECHO_T}no" >&6
1790
fi
1791
 
1792
fi
1793
if test -z "$ac_cv_prog_CC"; then
1794
  ac_ct_CC=$CC
1795
  # Extract the first word of "gcc", so it can be a program name with args.
1796
set dummy gcc; ac_word=$2
1797
echo "$as_me:1797: checking for $ac_word" >&5
1798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800
  echo $ECHO_N "(cached) $ECHO_C" >&6
1801
else
1802
  if test -n "$ac_ct_CC"; then
1803
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804
else
1805
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1806
ac_dummy="$PATH"
1807
for ac_dir in $ac_dummy; do
1808
  IFS=$ac_save_IFS
1809
  test -z "$ac_dir" && ac_dir=.
1810
  $as_executable_p "$ac_dir/$ac_word" || continue
1811
ac_cv_prog_ac_ct_CC="gcc"
1812
echo "$as_me:1812: found $ac_dir/$ac_word" >&5
1813
break
1814
done
1815
 
1816
fi
1817
fi
1818
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1819
if test -n "$ac_ct_CC"; then
1820
  echo "$as_me:1820: result: $ac_ct_CC" >&5
1821
echo "${ECHO_T}$ac_ct_CC" >&6
1822
else
1823
  echo "$as_me:1823: result: no" >&5
1824
echo "${ECHO_T}no" >&6
1825
fi
1826
 
1827
  CC=$ac_ct_CC
1828
else
1829
  CC="$ac_cv_prog_CC"
1830
fi
1831
 
1832
if test -z "$CC"; then
1833
  if test -n "$ac_tool_prefix"; then
1834
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1835
set dummy ${ac_tool_prefix}cc; ac_word=$2
1836
echo "$as_me:1836: checking for $ac_word" >&5
1837
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838
if test "${ac_cv_prog_CC+set}" = set; then
1839
  echo $ECHO_N "(cached) $ECHO_C" >&6
1840
else
1841
  if test -n "$CC"; then
1842
  ac_cv_prog_CC="$CC" # Let the user override the test.
1843
else
1844
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1845
ac_dummy="$PATH"
1846
for ac_dir in $ac_dummy; do
1847
  IFS=$ac_save_IFS
1848
  test -z "$ac_dir" && ac_dir=.
1849
  $as_executable_p "$ac_dir/$ac_word" || continue
1850
ac_cv_prog_CC="${ac_tool_prefix}cc"
1851
echo "$as_me:1851: found $ac_dir/$ac_word" >&5
1852
break
1853
done
1854
 
1855
fi
1856
fi
1857
CC=$ac_cv_prog_CC
1858
if test -n "$CC"; then
1859
  echo "$as_me:1859: result: $CC" >&5
1860
echo "${ECHO_T}$CC" >&6
1861
else
1862
  echo "$as_me:1862: result: no" >&5
1863
echo "${ECHO_T}no" >&6
1864
fi
1865
 
1866
fi
1867
if test -z "$ac_cv_prog_CC"; then
1868
  ac_ct_CC=$CC
1869
  # Extract the first word of "cc", so it can be a program name with args.
1870
set dummy cc; ac_word=$2
1871
echo "$as_me:1871: checking for $ac_word" >&5
1872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1874
  echo $ECHO_N "(cached) $ECHO_C" >&6
1875
else
1876
  if test -n "$ac_ct_CC"; then
1877
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878
else
1879
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1880
ac_dummy="$PATH"
1881
for ac_dir in $ac_dummy; do
1882
  IFS=$ac_save_IFS
1883
  test -z "$ac_dir" && ac_dir=.
1884
  $as_executable_p "$ac_dir/$ac_word" || continue
1885
ac_cv_prog_ac_ct_CC="cc"
1886
echo "$as_me:1886: found $ac_dir/$ac_word" >&5
1887
break
1888
done
1889
 
1890
fi
1891
fi
1892
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893
if test -n "$ac_ct_CC"; then
1894
  echo "$as_me:1894: result: $ac_ct_CC" >&5
1895
echo "${ECHO_T}$ac_ct_CC" >&6
1896
else
1897
  echo "$as_me:1897: result: no" >&5
1898
echo "${ECHO_T}no" >&6
1899
fi
1900
 
1901
  CC=$ac_ct_CC
1902
else
1903
  CC="$ac_cv_prog_CC"
1904
fi
1905
 
1906
fi
1907
if test -z "$CC"; then
1908
  # Extract the first word of "cc", so it can be a program name with args.
1909
set dummy cc; ac_word=$2
1910
echo "$as_me:1910: checking for $ac_word" >&5
1911
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912
if test "${ac_cv_prog_CC+set}" = set; then
1913
  echo $ECHO_N "(cached) $ECHO_C" >&6
1914
else
1915
  if test -n "$CC"; then
1916
  ac_cv_prog_CC="$CC" # Let the user override the test.
1917
else
1918
  ac_prog_rejected=no
1919
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1920
ac_dummy="$PATH"
1921
for ac_dir in $ac_dummy; do
1922
  IFS=$ac_save_IFS
1923
  test -z "$ac_dir" && ac_dir=.
1924
  $as_executable_p "$ac_dir/$ac_word" || continue
1925
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1926
  ac_prog_rejected=yes
1927
  continue
1928
fi
1929
ac_cv_prog_CC="cc"
1930
echo "$as_me:1930: found $ac_dir/$ac_word" >&5
1931
break
1932
done
1933
 
1934
if test $ac_prog_rejected = yes; then
1935
  # We found a bogon in the path, so make sure we never use it.
1936
  set dummy $ac_cv_prog_CC
1937
  shift
1938
  if test $# != 0; then
1939
    # We chose a different compiler from the bogus one.
1940
    # However, it has the same basename, so the bogon will be chosen
1941
    # first if we set CC to just the basename; use the full file name.
1942
    shift
1943
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1944
    shift
1945
    ac_cv_prog_CC="$@"
1946
  fi
1947
fi
1948
fi
1949
fi
1950
CC=$ac_cv_prog_CC
1951
if test -n "$CC"; then
1952
  echo "$as_me:1952: result: $CC" >&5
1953
echo "${ECHO_T}$CC" >&6
1954
else
1955
  echo "$as_me:1955: result: no" >&5
1956
echo "${ECHO_T}no" >&6
1957
fi
1958
 
1959
fi
1960
if test -z "$CC"; then
1961
  if test -n "$ac_tool_prefix"; then
1962
  for ac_prog in cl
1963
  do
1964
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1965
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1966
echo "$as_me:1966: checking for $ac_word" >&5
1967
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968
if test "${ac_cv_prog_CC+set}" = set; then
1969
  echo $ECHO_N "(cached) $ECHO_C" >&6
1970
else
1971
  if test -n "$CC"; then
1972
  ac_cv_prog_CC="$CC" # Let the user override the test.
1973
else
1974
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1975
ac_dummy="$PATH"
1976
for ac_dir in $ac_dummy; do
1977
  IFS=$ac_save_IFS
1978
  test -z "$ac_dir" && ac_dir=.
1979
  $as_executable_p "$ac_dir/$ac_word" || continue
1980
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1981
echo "$as_me:1981: found $ac_dir/$ac_word" >&5
1982
break
1983
done
1984
 
1985
fi
1986
fi
1987
CC=$ac_cv_prog_CC
1988
if test -n "$CC"; then
1989
  echo "$as_me:1989: result: $CC" >&5
1990
echo "${ECHO_T}$CC" >&6
1991
else
1992
  echo "$as_me:1992: result: no" >&5
1993
echo "${ECHO_T}no" >&6
1994
fi
1995
 
1996
    test -n "$CC" && break
1997
  done
1998
fi
1999
if test -z "$CC"; then
2000
  ac_ct_CC=$CC
2001
  for ac_prog in cl
2002
do
2003
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2004
set dummy $ac_prog; ac_word=$2
2005
echo "$as_me:2005: checking for $ac_word" >&5
2006
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008
  echo $ECHO_N "(cached) $ECHO_C" >&6
2009
else
2010
  if test -n "$ac_ct_CC"; then
2011
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012
else
2013
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2014
ac_dummy="$PATH"
2015
for ac_dir in $ac_dummy; do
2016
  IFS=$ac_save_IFS
2017
  test -z "$ac_dir" && ac_dir=.
2018
  $as_executable_p "$ac_dir/$ac_word" || continue
2019
ac_cv_prog_ac_ct_CC="$ac_prog"
2020
echo "$as_me:2020: found $ac_dir/$ac_word" >&5
2021
break
2022
done
2023
 
2024
fi
2025
fi
2026
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027
if test -n "$ac_ct_CC"; then
2028
  echo "$as_me:2028: result: $ac_ct_CC" >&5
2029
echo "${ECHO_T}$ac_ct_CC" >&6
2030
else
2031
  echo "$as_me:2031: result: no" >&5
2032
echo "${ECHO_T}no" >&6
2033
fi
2034
 
2035
  test -n "$ac_ct_CC" && break
2036
done
2037
 
2038
  CC=$ac_ct_CC
2039
fi
2040
 
2041
fi
2042
 
2043
test -z "$CC" && { { echo "$as_me:2043: error: no acceptable cc found in \$PATH" >&5
2044
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2045
   { (exit 1); exit 1; }; }
2046
 
2047
# Provide some information about the compiler.
2048
echo "$as_me:2048:" \
2049
     "checking for C compiler version" >&5
2050
ac_compiler=`set X $ac_compile; echo $2`
2051
{ (eval echo "$as_me:2051: \"$ac_compiler --version &5\"") >&5
2052
  (eval $ac_compiler --version &5) 2>&5
2053
  ac_status=$?
2054
  echo "$as_me:2054: \$? = $ac_status" >&5
2055
  (exit $ac_status); }
2056
{ (eval echo "$as_me:2056: \"$ac_compiler -v &5\"") >&5
2057
  (eval $ac_compiler -v &5) 2>&5
2058
  ac_status=$?
2059
  echo "$as_me:2059: \$? = $ac_status" >&5
2060
  (exit $ac_status); }
2061
{ (eval echo "$as_me:2061: \"$ac_compiler -V &5\"") >&5
2062
  (eval $ac_compiler -V &5) 2>&5
2063
  ac_status=$?
2064
  echo "$as_me:2064: \$? = $ac_status" >&5
2065
  (exit $ac_status); }
2066
 
2067
cat >conftest.$ac_ext <<_ACEOF
2068
#line 2068 "configure"
2069
#include "confdefs.h"
2070
 
2071
int
2072
main ()
2073
{
2074
 
2075
  ;
2076
  return 0;
2077
}
2078
_ACEOF
2079
ac_clean_files_save=$ac_clean_files
2080
ac_clean_files="$ac_clean_files a.out a.exe"
2081
# Try to create an executable without -o first, disregard a.out.
2082
# It will help us diagnose broken compilers, and finding out an intuition
2083
# of exeext.
2084
echo "$as_me:2084: checking for C compiler default output" >&5
2085
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2086
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2087
if { (eval echo "$as_me:2087: \"$ac_link_default\"") >&5
2088
  (eval $ac_link_default) 2>&5
2089
  ac_status=$?
2090
  echo "$as_me:2090: \$? = $ac_status" >&5
2091
  (exit $ac_status); }; then
2092
  # Find the output, starting from the most likely.  This scheme is
2093
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2094
# resort.
2095
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2096
                ls a.out conftest 2>/dev/null;
2097
                ls a.* conftest.* 2>/dev/null`; do
2098
  case $ac_file in
2099
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2100
    a.out ) # We found the default executable, but exeext='' is most
2101
            # certainly right.
2102
            break;;
2103
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2105
          export ac_cv_exeext
2106
          break;;
2107
    * ) break;;
2108
  esac
2109
done
2110
else
2111
  echo "$as_me: failed program was:" >&5
2112
cat conftest.$ac_ext >&5
2113
{ { echo "$as_me:2113: error: C compiler cannot create executables" >&5
2114
echo "$as_me: error: C compiler cannot create executables" >&2;}
2115
   { (exit 77); exit 77; }; }
2116
fi
2117
 
2118
ac_exeext=$ac_cv_exeext
2119
echo "$as_me:2119: result: $ac_file" >&5
2120
echo "${ECHO_T}$ac_file" >&6
2121
 
2122
# Check the compiler produces executables we can run.  If not, either
2123
# the compiler is broken, or we cross compile.
2124
echo "$as_me:2124: checking whether the C compiler works" >&5
2125
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2126
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2127
# If not cross compiling, check that we can run a simple program.
2128
if test "$cross_compiling" != yes; then
2129
  if { ac_try='./$ac_file'
2130
  { (eval echo "$as_me:2130: \"$ac_try\"") >&5
2131
  (eval $ac_try) 2>&5
2132
  ac_status=$?
2133
  echo "$as_me:2133: \$? = $ac_status" >&5
2134
  (exit $ac_status); }; }; then
2135
    cross_compiling=no
2136
  else
2137
    if test "$cross_compiling" = maybe; then
2138
        cross_compiling=yes
2139
    else
2140
        { { echo "$as_me:2140: error: cannot run C compiled programs.
2141
If you meant to cross compile, use \`--host'." >&5
2142
echo "$as_me: error: cannot run C compiled programs.
2143
If you meant to cross compile, use \`--host'." >&2;}
2144
   { (exit 1); exit 1; }; }
2145
    fi
2146
  fi
2147
fi
2148
echo "$as_me:2148: result: yes" >&5
2149
echo "${ECHO_T}yes" >&6
2150
 
2151
rm -f a.out a.exe conftest$ac_cv_exeext
2152
ac_clean_files=$ac_clean_files_save
2153
# Check the compiler produces executables we can run.  If not, either
2154
# the compiler is broken, or we cross compile.
2155
echo "$as_me:2155: checking whether we are cross compiling" >&5
2156
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2157
echo "$as_me:2157: result: $cross_compiling" >&5
2158
echo "${ECHO_T}$cross_compiling" >&6
2159
 
2160
echo "$as_me:2160: checking for executable suffix" >&5
2161
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2162
if { (eval echo "$as_me:2162: \"$ac_link\"") >&5
2163
  (eval $ac_link) 2>&5
2164
  ac_status=$?
2165
  echo "$as_me:2165: \$? = $ac_status" >&5
2166
  (exit $ac_status); }; then
2167
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2168
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2169
# work properly (i.e., refer to `conftest.exe'), while it won't with
2170
# `rm'.
2171
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2172
  case $ac_file in
2173
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2174
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175
          export ac_cv_exeext
2176
          break;;
2177
    * ) break;;
2178
  esac
2179
done
2180
else
2181
  { { echo "$as_me:2181: error: cannot compute EXEEXT: cannot compile and link" >&5
2182
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2183
   { (exit 1); exit 1; }; }
2184
fi
2185
 
2186
rm -f conftest$ac_cv_exeext
2187
echo "$as_me:2187: result: $ac_cv_exeext" >&5
2188
echo "${ECHO_T}$ac_cv_exeext" >&6
2189
 
2190
rm -f conftest.$ac_ext
2191
EXEEXT=$ac_cv_exeext
2192
ac_exeext=$EXEEXT
2193
echo "$as_me:2193: checking for object suffix" >&5
2194
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2195
if test "${ac_cv_objext+set}" = set; then
2196
  echo $ECHO_N "(cached) $ECHO_C" >&6
2197
else
2198
  cat >conftest.$ac_ext <<_ACEOF
2199
#line 2199 "configure"
2200
#include "confdefs.h"
2201
 
2202
int
2203
main ()
2204
{
2205
 
2206
  ;
2207
  return 0;
2208
}
2209
_ACEOF
2210
rm -f conftest.o conftest.obj
2211
if { (eval echo "$as_me:2211: \"$ac_compile\"") >&5
2212
  (eval $ac_compile) 2>&5
2213
  ac_status=$?
2214
  echo "$as_me:2214: \$? = $ac_status" >&5
2215
  (exit $ac_status); }; then
2216
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2217
  case $ac_file in
2218
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2219
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2220
       break;;
2221
  esac
2222
done
2223
else
2224
  echo "$as_me: failed program was:" >&5
2225
cat conftest.$ac_ext >&5
2226
{ { echo "$as_me:2226: error: cannot compute OBJEXT: cannot compile" >&5
2227
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2228
   { (exit 1); exit 1; }; }
2229
fi
2230
 
2231
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2232
fi
2233
echo "$as_me:2233: result: $ac_cv_objext" >&5
2234
echo "${ECHO_T}$ac_cv_objext" >&6
2235
OBJEXT=$ac_cv_objext
2236
ac_objext=$OBJEXT
2237
echo "$as_me:2237: checking whether we are using the GNU C compiler" >&5
2238
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2239
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2240
  echo $ECHO_N "(cached) $ECHO_C" >&6
2241
else
2242
  cat >conftest.$ac_ext <<_ACEOF
2243
#line 2243 "configure"
2244
#include "confdefs.h"
2245
 
2246
int
2247
main ()
2248
{
2249
#ifndef __GNUC__
2250
       choke me
2251
#endif
2252
 
2253
  ;
2254
  return 0;
2255
}
2256
_ACEOF
2257
rm -f conftest.$ac_objext
2258
if { (eval echo "$as_me:2258: \"$ac_compile\"") >&5
2259
  (eval $ac_compile) 2>&5
2260
  ac_status=$?
2261
  echo "$as_me:2261: \$? = $ac_status" >&5
2262
  (exit $ac_status); } &&
2263
         { ac_try='test -s conftest.$ac_objext'
2264
  { (eval echo "$as_me:2264: \"$ac_try\"") >&5
2265
  (eval $ac_try) 2>&5
2266
  ac_status=$?
2267
  echo "$as_me:2267: \$? = $ac_status" >&5
2268
  (exit $ac_status); }; }; then
2269
  ac_compiler_gnu=yes
2270
else
2271
  echo "$as_me: failed program was:" >&5
2272
cat conftest.$ac_ext >&5
2273
ac_compiler_gnu=no
2274
fi
2275
rm -f conftest.$ac_objext conftest.$ac_ext
2276
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2277
 
2278
fi
2279
echo "$as_me:2279: result: $ac_cv_c_compiler_gnu" >&5
2280
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2281
GCC=`test $ac_compiler_gnu = yes && echo yes`
2282
ac_test_CFLAGS=${CFLAGS+set}
2283
ac_save_CFLAGS=$CFLAGS
2284
CFLAGS="-g"
2285
echo "$as_me:2285: checking whether $CC accepts -g" >&5
2286
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2287
if test "${ac_cv_prog_cc_g+set}" = set; then
2288
  echo $ECHO_N "(cached) $ECHO_C" >&6
2289
else
2290
  cat >conftest.$ac_ext <<_ACEOF
2291
#line 2291 "configure"
2292
#include "confdefs.h"
2293
 
2294
int
2295
main ()
2296
{
2297
 
2298
  ;
2299
  return 0;
2300
}
2301
_ACEOF
2302
rm -f conftest.$ac_objext
2303
if { (eval echo "$as_me:2303: \"$ac_compile\"") >&5
2304
  (eval $ac_compile) 2>&5
2305
  ac_status=$?
2306
  echo "$as_me:2306: \$? = $ac_status" >&5
2307
  (exit $ac_status); } &&
2308
         { ac_try='test -s conftest.$ac_objext'
2309
  { (eval echo "$as_me:2309: \"$ac_try\"") >&5
2310
  (eval $ac_try) 2>&5
2311
  ac_status=$?
2312
  echo "$as_me:2312: \$? = $ac_status" >&5
2313
  (exit $ac_status); }; }; then
2314
  ac_cv_prog_cc_g=yes
2315
else
2316
  echo "$as_me: failed program was:" >&5
2317
cat conftest.$ac_ext >&5
2318
ac_cv_prog_cc_g=no
2319
fi
2320
rm -f conftest.$ac_objext conftest.$ac_ext
2321
fi
2322
echo "$as_me:2322: result: $ac_cv_prog_cc_g" >&5
2323
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2324
if test "$ac_test_CFLAGS" = set; then
2325
  CFLAGS=$ac_save_CFLAGS
2326
elif test $ac_cv_prog_cc_g = yes; then
2327
  if test "$GCC" = yes; then
2328
    CFLAGS="-g -O2"
2329
  else
2330
    CFLAGS="-g"
2331
  fi
2332
else
2333
  if test "$GCC" = yes; then
2334
    CFLAGS="-O2"
2335
  else
2336
    CFLAGS=
2337
  fi
2338
fi
2339
# Some people use a C++ compiler to compile C.  Since we use `exit',
2340
# in C++ we need to declare it.  In case someone uses the same compiler
2341
# for both compiling C and C++ we need to have the C++ compiler decide
2342
# the declaration of exit, since it's the most demanding environment.
2343
cat >conftest.$ac_ext <<_ACEOF
2344
#ifndef __cplusplus
2345
  choke me
2346
#endif
2347
_ACEOF
2348
rm -f conftest.$ac_objext
2349
if { (eval echo "$as_me:2349: \"$ac_compile\"") >&5
2350
  (eval $ac_compile) 2>&5
2351
  ac_status=$?
2352
  echo "$as_me:2352: \$? = $ac_status" >&5
2353
  (exit $ac_status); } &&
2354
         { ac_try='test -s conftest.$ac_objext'
2355
  { (eval echo "$as_me:2355: \"$ac_try\"") >&5
2356
  (eval $ac_try) 2>&5
2357
  ac_status=$?
2358
  echo "$as_me:2358: \$? = $ac_status" >&5
2359
  (exit $ac_status); }; }; then
2360
  for ac_declaration in \
2361
   ''\
2362
   '#include ' \
2363
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2364
   'extern "C" void std::exit (int); using std::exit;' \
2365
   'extern "C" void exit (int) throw ();' \
2366
   'extern "C" void exit (int);' \
2367
   'void exit (int);'
2368
do
2369
  cat >conftest.$ac_ext <<_ACEOF
2370
#line 2370 "configure"
2371
#include "confdefs.h"
2372
#include 
2373
$ac_declaration
2374
int
2375
main ()
2376
{
2377
exit (42);
2378
  ;
2379
  return 0;
2380
}
2381
_ACEOF
2382
rm -f conftest.$ac_objext
2383
if { (eval echo "$as_me:2383: \"$ac_compile\"") >&5
2384
  (eval $ac_compile) 2>&5
2385
  ac_status=$?
2386
  echo "$as_me:2386: \$? = $ac_status" >&5
2387
  (exit $ac_status); } &&
2388
         { ac_try='test -s conftest.$ac_objext'
2389
  { (eval echo "$as_me:2389: \"$ac_try\"") >&5
2390
  (eval $ac_try) 2>&5
2391
  ac_status=$?
2392
  echo "$as_me:2392: \$? = $ac_status" >&5
2393
  (exit $ac_status); }; }; then
2394
  :
2395
else
2396
  echo "$as_me: failed program was:" >&5
2397
cat conftest.$ac_ext >&5
2398
continue
2399
fi
2400
rm -f conftest.$ac_objext conftest.$ac_ext
2401
  cat >conftest.$ac_ext <<_ACEOF
2402
#line 2402 "configure"
2403
#include "confdefs.h"
2404
$ac_declaration
2405
int
2406
main ()
2407
{
2408
exit (42);
2409
  ;
2410
  return 0;
2411
}
2412
_ACEOF
2413
rm -f conftest.$ac_objext
2414
if { (eval echo "$as_me:2414: \"$ac_compile\"") >&5
2415
  (eval $ac_compile) 2>&5
2416
  ac_status=$?
2417
  echo "$as_me:2417: \$? = $ac_status" >&5
2418
  (exit $ac_status); } &&
2419
         { ac_try='test -s conftest.$ac_objext'
2420
  { (eval echo "$as_me:2420: \"$ac_try\"") >&5
2421
  (eval $ac_try) 2>&5
2422
  ac_status=$?
2423
  echo "$as_me:2423: \$? = $ac_status" >&5
2424
  (exit $ac_status); }; }; then
2425
  break
2426
else
2427
  echo "$as_me: failed program was:" >&5
2428
cat conftest.$ac_ext >&5
2429
fi
2430
rm -f conftest.$ac_objext conftest.$ac_ext
2431
done
2432
rm -f conftest*
2433
if test -n "$ac_declaration"; then
2434
  echo '#ifdef __cplusplus' >>confdefs.h
2435
  echo $ac_declaration      >>confdefs.h
2436
  echo '#endif'             >>confdefs.h
2437
fi
2438
 
2439
else
2440
  echo "$as_me: failed program was:" >&5
2441
cat conftest.$ac_ext >&5
2442
fi
2443
rm -f conftest.$ac_objext conftest.$ac_ext
2444
ac_ext=c
2445
ac_cpp='$CPP $CPPFLAGS'
2446
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449
 
2450
depcc="$CC"   am_compiler_list=
2451
 
2452
echo "$as_me:2452: checking dependency style of $depcc" >&5
2453
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2454
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2455
  echo $ECHO_N "(cached) $ECHO_C" >&6
2456
else
2457
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2458
  # We make a subdir and do the tests there.  Otherwise we can end up
2459
  # making bogus files that we don't know about and never remove.  For
2460
  # instance it was reported that on HP-UX the gcc test will end up
2461
  # making a dummy file named `D' -- because `-MD' means `put the output
2462
  # in D'.
2463
  mkdir conftest.dir
2464
  # Copy depcomp to subdir because otherwise we won't find it if we're
2465
  # using a relative directory.
2466
  cp "$am_depcomp" conftest.dir
2467
  cd conftest.dir
2468
 
2469
  am_cv_CC_dependencies_compiler_type=none
2470
  if test "$am_compiler_list" = ""; then
2471
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2472
  fi
2473
  for depmode in $am_compiler_list; do
2474
    # We need to recreate these files for each test, as the compiler may
2475
    # overwrite some of them when testing with obscure command lines.
2476
    # This happens at least with the AIX C compiler.
2477
    echo '#include "conftest.h"' > conftest.c
2478
    echo 'int i;' > conftest.h
2479
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2480
 
2481
    case $depmode in
2482
    nosideeffect)
2483
      # after this tag, mechanisms are not by side-effect, so they'll
2484
      # only be used when explicitly requested
2485
      if test "x$enable_dependency_tracking" = xyes; then
2486
        continue
2487
      else
2488
        break
2489
      fi
2490
      ;;
2491
    none) break ;;
2492
    esac
2493
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2494
    # mode.  It turns out that the SunPro C++ compiler does not properly
2495
    # handle `-M -o', and we need to detect this.
2496
    if depmode=$depmode \
2497
       source=conftest.c object=conftest.o \
2498
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2499
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2500
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2501
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2502
      am_cv_CC_dependencies_compiler_type=$depmode
2503
      break
2504
    fi
2505
  done
2506
 
2507
  cd ..
2508
  rm -rf conftest.dir
2509
else
2510
  am_cv_CC_dependencies_compiler_type=none
2511
fi
2512
 
2513
fi
2514
echo "$as_me:2514: result: $am_cv_CC_dependencies_compiler_type" >&5
2515
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2516
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2517
 
2518
ac_ext=c
2519
ac_cpp='$CPP $CPPFLAGS'
2520
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
echo "$as_me:2523: checking how to run the C preprocessor" >&5
2524
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2525
# On Suns, sometimes $CPP names a directory.
2526
if test -n "$CPP" && test -d "$CPP"; then
2527
  CPP=
2528
fi
2529
if test -z "$CPP"; then
2530
  if test "${ac_cv_prog_CPP+set}" = set; then
2531
  echo $ECHO_N "(cached) $ECHO_C" >&6
2532
else
2533
      # Double quotes because CPP needs to be expanded
2534
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2535
    do
2536
      ac_preproc_ok=false
2537
for ac_c_preproc_warn_flag in '' yes
2538
do
2539
  # Use a header file that comes with gcc, so configuring glibc
2540
  # with a fresh cross-compiler works.
2541
  # On the NeXT, cc -E runs the code through the compiler's parser,
2542
  # not just through cpp. "Syntax error" is here to catch this case.
2543
  cat >conftest.$ac_ext <<_ACEOF
2544
#line 2544 "configure"
2545
#include "confdefs.h"
2546
#include 
2547
                     Syntax error
2548
_ACEOF
2549
if { (eval echo "$as_me:2549: \"$ac_cpp conftest.$ac_ext\"") >&5
2550
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2551
  ac_status=$?
2552
  egrep -v '^ *\+' conftest.er1 >conftest.err
2553
  rm -f conftest.er1
2554
  cat conftest.err >&5
2555
  echo "$as_me:2555: \$? = $ac_status" >&5
2556
  (exit $ac_status); } >/dev/null; then
2557
  if test -s conftest.err; then
2558
    ac_cpp_err=$ac_c_preproc_warn_flag
2559
  else
2560
    ac_cpp_err=
2561
  fi
2562
else
2563
  ac_cpp_err=yes
2564
fi
2565
if test -z "$ac_cpp_err"; then
2566
  :
2567
else
2568
  echo "$as_me: failed program was:" >&5
2569
  cat conftest.$ac_ext >&5
2570
  # Broken: fails on valid input.
2571
continue
2572
fi
2573
rm -f conftest.err conftest.$ac_ext
2574
 
2575
  # OK, works on sane cases.  Now check whether non-existent headers
2576
  # can be detected and how.
2577
  cat >conftest.$ac_ext <<_ACEOF
2578
#line 2578 "configure"
2579
#include "confdefs.h"
2580
#include 
2581
_ACEOF
2582
if { (eval echo "$as_me:2582: \"$ac_cpp conftest.$ac_ext\"") >&5
2583
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2584
  ac_status=$?
2585
  egrep -v '^ *\+' conftest.er1 >conftest.err
2586
  rm -f conftest.er1
2587
  cat conftest.err >&5
2588
  echo "$as_me:2588: \$? = $ac_status" >&5
2589
  (exit $ac_status); } >/dev/null; then
2590
  if test -s conftest.err; then
2591
    ac_cpp_err=$ac_c_preproc_warn_flag
2592
  else
2593
    ac_cpp_err=
2594
  fi
2595
else
2596
  ac_cpp_err=yes
2597
fi
2598
if test -z "$ac_cpp_err"; then
2599
  # Broken: success on invalid input.
2600
continue
2601
else
2602
  echo "$as_me: failed program was:" >&5
2603
  cat conftest.$ac_ext >&5
2604
  # Passes both tests.
2605
ac_preproc_ok=:
2606
break
2607
fi
2608
rm -f conftest.err conftest.$ac_ext
2609
 
2610
done
2611
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2612
rm -f conftest.err conftest.$ac_ext
2613
if $ac_preproc_ok; then
2614
  break
2615
fi
2616
 
2617
    done
2618
    ac_cv_prog_CPP=$CPP
2619
 
2620
fi
2621
  CPP=$ac_cv_prog_CPP
2622
else
2623
  ac_cv_prog_CPP=$CPP
2624
fi
2625
echo "$as_me:2625: result: $CPP" >&5
2626
echo "${ECHO_T}$CPP" >&6
2627
ac_preproc_ok=false
2628
for ac_c_preproc_warn_flag in '' yes
2629
do
2630
  # Use a header file that comes with gcc, so configuring glibc
2631
  # with a fresh cross-compiler works.
2632
  # On the NeXT, cc -E runs the code through the compiler's parser,
2633
  # not just through cpp. "Syntax error" is here to catch this case.
2634
  cat >conftest.$ac_ext <<_ACEOF
2635
#line 2635 "configure"
2636
#include "confdefs.h"
2637
#include 
2638
                     Syntax error
2639
_ACEOF
2640
if { (eval echo "$as_me:2640: \"$ac_cpp conftest.$ac_ext\"") >&5
2641
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2642
  ac_status=$?
2643
  egrep -v '^ *\+' conftest.er1 >conftest.err
2644
  rm -f conftest.er1
2645
  cat conftest.err >&5
2646
  echo "$as_me:2646: \$? = $ac_status" >&5
2647
  (exit $ac_status); } >/dev/null; then
2648
  if test -s conftest.err; then
2649
    ac_cpp_err=$ac_c_preproc_warn_flag
2650
  else
2651
    ac_cpp_err=
2652
  fi
2653
else
2654
  ac_cpp_err=yes
2655
fi
2656
if test -z "$ac_cpp_err"; then
2657
  :
2658
else
2659
  echo "$as_me: failed program was:" >&5
2660
  cat conftest.$ac_ext >&5
2661
  # Broken: fails on valid input.
2662
continue
2663
fi
2664
rm -f conftest.err conftest.$ac_ext
2665
 
2666
  # OK, works on sane cases.  Now check whether non-existent headers
2667
  # can be detected and how.
2668
  cat >conftest.$ac_ext <<_ACEOF
2669
#line 2669 "configure"
2670
#include "confdefs.h"
2671
#include 
2672
_ACEOF
2673
if { (eval echo "$as_me:2673: \"$ac_cpp conftest.$ac_ext\"") >&5
2674
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2675
  ac_status=$?
2676
  egrep -v '^ *\+' conftest.er1 >conftest.err
2677
  rm -f conftest.er1
2678
  cat conftest.err >&5
2679
  echo "$as_me:2679: \$? = $ac_status" >&5
2680
  (exit $ac_status); } >/dev/null; then
2681
  if test -s conftest.err; then
2682
    ac_cpp_err=$ac_c_preproc_warn_flag
2683
  else
2684
    ac_cpp_err=
2685
  fi
2686
else
2687
  ac_cpp_err=yes
2688
fi
2689
if test -z "$ac_cpp_err"; then
2690
  # Broken: success on invalid input.
2691
continue
2692
else
2693
  echo "$as_me: failed program was:" >&5
2694
  cat conftest.$ac_ext >&5
2695
  # Passes both tests.
2696
ac_preproc_ok=:
2697
break
2698
fi
2699
rm -f conftest.err conftest.$ac_ext
2700
 
2701
done
2702
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2703
rm -f conftest.err conftest.$ac_ext
2704
if $ac_preproc_ok; then
2705
  :
2706
else
2707
  { { echo "$as_me:2707: error: C preprocessor \"$CPP\" fails sanity check" >&5
2708
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2709
   { (exit 1); exit 1; }; }
2710
fi
2711
 
2712
ac_ext=c
2713
ac_cpp='$CPP $CPPFLAGS'
2714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717
 
2718
if test x"$GCC" = x"yes"; then
2719
  RTEMS_USE_GCC_TRUE=
2720
  RTEMS_USE_GCC_FALSE='#'
2721
else
2722
  RTEMS_USE_GCC_TRUE='#'
2723
  RTEMS_USE_GCC_FALSE=
2724
fi
2725
 
2726
echo "$as_me:2726: checking whether $CC accepts -specs" >&5
2727
echo $ECHO_N "checking whether $CC accepts -specs... $ECHO_C" >&6
2728
if test "${rtems_cv_gcc_specs+set}" = set; then
2729
  echo $ECHO_N "(cached) $ECHO_C" >&6
2730
else
2731
 
2732
rtems_cv_gcc_specs=no
2733
if test x"$GCC" = x"yes"; then
2734
  touch confspec
2735
  echo 'void f(){}' >conftest.c
2736
  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then
2737
    rtems_cv_gcc_specs=yes
2738
  fi
2739
fi
2740
rm -f confspec conftest*
2741
 
2742
fi
2743
echo "$as_me:2743: result: $rtems_cv_gcc_specs" >&5
2744
echo "${ECHO_T}$rtems_cv_gcc_specs" >&6
2745
 
2746
echo "$as_me:2746: checking whether $CC accepts --pipe" >&5
2747
echo $ECHO_N "checking whether $CC accepts --pipe... $ECHO_C" >&6
2748
if test "${rtems_cv_gcc_pipe+set}" = set; then
2749
  echo $ECHO_N "(cached) $ECHO_C" >&6
2750
else
2751
 
2752
rtems_cv_gcc_pipe=no
2753
if test x"$GCC" = x"yes"; then
2754
    echo 'void f(){}' >conftest.c
2755
    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
2756
      rtems_cv_gcc_pipe=yes
2757
    fi
2758
    rm -f conftest*
2759
fi
2760
 
2761
fi
2762
echo "$as_me:2762: result: $rtems_cv_gcc_pipe" >&5
2763
echo "${ECHO_T}$rtems_cv_gcc_pipe" >&6
2764
 
2765
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
2766
 
2767
if test "$GCC" = yes; then
2768
 
2769
CPPFLAGS="$CPPFLAGS "
2770
 
2771
CFLAGS="-g -Wall"
2772
fi
2773
 
2774
#case $build_os in
2775
#*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
2776
#*) ;;
2777
#esac
2778
 
2779
  if test "x$build_alias" != "x$host_alias"; then
2780
  rtems_tool_prefix=${ac_tool_prefix}
2781
fi
2782
 
2783
  # Extract the first word of "${rtems_tool_prefix}ar", so it can be a program name with args.
2784
set dummy ${rtems_tool_prefix}ar; ac_word=$2
2785
echo "$as_me:2785: checking for $ac_word" >&5
2786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787
if test "${ac_cv_prog_AR+set}" = set; then
2788
  echo $ECHO_N "(cached) $ECHO_C" >&6
2789
else
2790
  if test -n "$AR"; then
2791
  ac_cv_prog_AR="$AR" # Let the user override the test.
2792
else
2793
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2794
ac_dummy="$PATH"
2795
for ac_dir in $ac_dummy; do
2796
  IFS=$ac_save_IFS
2797
  test -z "$ac_dir" && ac_dir=.
2798
  $as_executable_p "$ac_dir/$ac_word" || continue
2799
ac_cv_prog_AR="${rtems_tool_prefix}ar"
2800
echo "$as_me:2800: found $ac_dir/$ac_word" >&5
2801
break
2802
done
2803
 
2804
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="no"
2805
fi
2806
fi
2807
AR=$ac_cv_prog_AR
2808
if test -n "$AR"; then
2809
  echo "$as_me:2809: result: $AR" >&5
2810
echo "${ECHO_T}$AR" >&6
2811
else
2812
  echo "$as_me:2812: result: no" >&5
2813
echo "${ECHO_T}no" >&6
2814
fi
2815
 
2816
  if test "x$build_alias" != "x$host_alias"; then
2817
  rtems_tool_prefix=${ac_tool_prefix}
2818
fi
2819
 
2820
  # Extract the first word of "${rtems_tool_prefix}ranlib", so it can be a program name with args.
2821
set dummy ${rtems_tool_prefix}ranlib; ac_word=$2
2822
echo "$as_me:2822: checking for $ac_word" >&5
2823
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824
if test "${ac_cv_prog_RANLIB+set}" = set; then
2825
  echo $ECHO_N "(cached) $ECHO_C" >&6
2826
else
2827
  if test -n "$RANLIB"; then
2828
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2829
else
2830
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2831
ac_dummy="$PATH"
2832
for ac_dir in $ac_dummy; do
2833
  IFS=$ac_save_IFS
2834
  test -z "$ac_dir" && ac_dir=.
2835
  $as_executable_p "$ac_dir/$ac_word" || continue
2836
ac_cv_prog_RANLIB="${rtems_tool_prefix}ranlib"
2837
echo "$as_me:2837: found $ac_dir/$ac_word" >&5
2838
break
2839
done
2840
 
2841
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2842
fi
2843
fi
2844
RANLIB=$ac_cv_prog_RANLIB
2845
if test -n "$RANLIB"; then
2846
  echo "$as_me:2846: result: $RANLIB" >&5
2847
echo "${ECHO_T}$RANLIB" >&6
2848
else
2849
  echo "$as_me:2849: result: no" >&5
2850
echo "${ECHO_T}no" >&6
2851
fi
2852
 
2853
if test -n "$ac_tool_prefix"; then
2854
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2855
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2856
echo "$as_me:2856: checking for $ac_word" >&5
2857
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858
if test "${ac_cv_prog_RANLIB+set}" = set; then
2859
  echo $ECHO_N "(cached) $ECHO_C" >&6
2860
else
2861
  if test -n "$RANLIB"; then
2862
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2863
else
2864
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2865
ac_dummy="$PATH"
2866
for ac_dir in $ac_dummy; do
2867
  IFS=$ac_save_IFS
2868
  test -z "$ac_dir" && ac_dir=.
2869
  $as_executable_p "$ac_dir/$ac_word" || continue
2870
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2871
echo "$as_me:2871: found $ac_dir/$ac_word" >&5
2872
break
2873
done
2874
 
2875
fi
2876
fi
2877
RANLIB=$ac_cv_prog_RANLIB
2878
if test -n "$RANLIB"; then
2879
  echo "$as_me:2879: result: $RANLIB" >&5
2880
echo "${ECHO_T}$RANLIB" >&6
2881
else
2882
  echo "$as_me:2882: result: no" >&5
2883
echo "${ECHO_T}no" >&6
2884
fi
2885
 
2886
fi
2887
if test -z "$ac_cv_prog_RANLIB"; then
2888
  ac_ct_RANLIB=$RANLIB
2889
  # Extract the first word of "ranlib", so it can be a program name with args.
2890
set dummy ranlib; ac_word=$2
2891
echo "$as_me:2891: checking for $ac_word" >&5
2892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2894
  echo $ECHO_N "(cached) $ECHO_C" >&6
2895
else
2896
  if test -n "$ac_ct_RANLIB"; then
2897
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2898
else
2899
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2900
ac_dummy="$PATH"
2901
for ac_dir in $ac_dummy; do
2902
  IFS=$ac_save_IFS
2903
  test -z "$ac_dir" && ac_dir=.
2904
  $as_executable_p "$ac_dir/$ac_word" || continue
2905
ac_cv_prog_ac_ct_RANLIB="ranlib"
2906
echo "$as_me:2906: found $ac_dir/$ac_word" >&5
2907
break
2908
done
2909
 
2910
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2911
fi
2912
fi
2913
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2914
if test -n "$ac_ct_RANLIB"; then
2915
  echo "$as_me:2915: result: $ac_ct_RANLIB" >&5
2916
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2917
else
2918
  echo "$as_me:2918: result: no" >&5
2919
echo "${ECHO_T}no" >&6
2920
fi
2921
 
2922
  RANLIB=$ac_ct_RANLIB
2923
else
2924
  RANLIB="$ac_cv_prog_RANLIB"
2925
fi
2926
 
2927
echo "$as_me:2927: checking for RTEMS newlib" >&5
2928
echo $ECHO_N "checking for RTEMS newlib... $ECHO_C" >&6
2929
if test "${rtems_cv_use_newlib+set}" = set; then
2930
  echo $ECHO_N "(cached) $ECHO_C" >&6
2931
else
2932
 
2933
    cat >conftest.$ac_ext <<_ACEOF
2934
#line 2934 "configure"
2935
#include "confdefs.h"
2936
extern void not_required_by_rtems() ;
2937
int
2938
main ()
2939
{
2940
not_required_by_rtems()
2941
  ;
2942
  return 0;
2943
}
2944
_ACEOF
2945
rm -f conftest.$ac_objext conftest$ac_exeext
2946
if { (eval echo "$as_me:2946: \"$ac_link\"") >&5
2947
  (eval $ac_link) 2>&5
2948
  ac_status=$?
2949
  echo "$as_me:2949: \$? = $ac_status" >&5
2950
  (exit $ac_status); } &&
2951
         { ac_try='test -s conftest$ac_exeext'
2952
  { (eval echo "$as_me:2952: \"$ac_try\"") >&5
2953
  (eval $ac_try) 2>&5
2954
  ac_status=$?
2955
  echo "$as_me:2955: \$? = $ac_status" >&5
2956
  (exit $ac_status); }; }; then
2957
  rtems_cv_use_newlib="yes"
2958
else
2959
  echo "$as_me: failed program was:" >&5
2960
cat conftest.$ac_ext >&5
2961
fi
2962
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2963
 
2964
    if test -z "$rtems_cv_use_newlib"; then
2965
  cat >conftest.$ac_ext <<_ACEOF
2966
#line 2966 "configure"
2967
#include "confdefs.h"
2968
extern void rtems_provides_crt0() ;
2969
int
2970
main ()
2971
{
2972
rtems_provides_crt0()
2973
  ;
2974
  return 0;
2975
}
2976
_ACEOF
2977
rm -f conftest.$ac_objext conftest$ac_exeext
2978
if { (eval echo "$as_me:2978: \"$ac_link\"") >&5
2979
  (eval $ac_link) 2>&5
2980
  ac_status=$?
2981
  echo "$as_me:2981: \$? = $ac_status" >&5
2982
  (exit $ac_status); } &&
2983
         { ac_try='test -s conftest$ac_exeext'
2984
  { (eval echo "$as_me:2984: \"$ac_try\"") >&5
2985
  (eval $ac_try) 2>&5
2986
  ac_status=$?
2987
  echo "$as_me:2987: \$? = $ac_status" >&5
2988
  (exit $ac_status); }; }; then
2989
  rtems_cv_use_newlib="yes"
2990
else
2991
  echo "$as_me: failed program was:" >&5
2992
cat conftest.$ac_ext >&5
2993
rtems_cv_use_newlib="no"
2994
fi
2995
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2996
 
2997
fi
2998
 
2999
fi
3000
echo "$as_me:3000: result: $rtems_cv_use_newlib" >&5
3001
echo "${ECHO_T}$rtems_cv_use_newlib" >&6
3002
  RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
3003
 
3004
  if test x"${RTEMS_USE_NEWLIB}" = x"yes"; then
3005
 
3006
cat >>confdefs.h <
3007
#define RTEMS_NEWLIB 1
3008
EOF
3009
 
3010
fi
3011
 
3012
# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
3013
if test "${enable_multiprocessing+set}" = set; then
3014
  enableval="$enable_multiprocessing"
3015
  case "${enable_multiprocessing}" in
3016
  yes) ;;
3017
  no) ;;
3018
  *)  { { echo "$as_me:3018: error: bad value ${enableval} for enable-multiprocessing option" >&5
3019
echo "$as_me: error: bad value ${enableval} for enable-multiprocessing option" >&2;}
3020
   { (exit 1); exit 1; }; } ;;
3021
esac
3022
else
3023
  enable_multiprocessing=no
3024
fi;
3025
 
3026
if test "$enable_multiprocessing" = "yes"; then
3027
  HAS_MP="yes"
3028
else
3029
  HAS_MP="no"
3030
fi
3031
 
3032
# The only use of System V IPC is the UNIX port when multiprocessing.
3033
if test "$HAS_MP" = "yes"; then
3034
  # AC_REQUIRE([RTEMS_CANONICAL_HOST])
3035
if test "$RTEMS_CPU" = "unix" ; then
3036
 
3037
echo "$as_me:3037: checking whether $host defines union semun" >&5
3038
echo $ECHO_N "checking whether $host defines union semun... $ECHO_C" >&6
3039
if test "${rtems_cv_HAS_UNION_SEMUN+set}" = set; then
3040
  echo $ECHO_N "(cached) $ECHO_C" >&6
3041
else
3042
  cat >conftest.$ac_ext <<_ACEOF
3043
#line 3043 "configure"
3044
#include "confdefs.h"
3045
 
3046
#include 
3047
#include 
3048
#include 
3049
int
3050
main ()
3051
{
3052
union semun arg ;
3053
  ;
3054
  return 0;
3055
}
3056
_ACEOF
3057
rm -f conftest.$ac_objext
3058
if { (eval echo "$as_me:3058: \"$ac_compile\"") >&5
3059
  (eval $ac_compile) 2>&5
3060
  ac_status=$?
3061
  echo "$as_me:3061: \$? = $ac_status" >&5
3062
  (exit $ac_status); } &&
3063
         { ac_try='test -s conftest.$ac_objext'
3064
  { (eval echo "$as_me:3064: \"$ac_try\"") >&5
3065
  (eval $ac_try) 2>&5
3066
  ac_status=$?
3067
  echo "$as_me:3067: \$? = $ac_status" >&5
3068
  (exit $ac_status); }; }; then
3069
  rtems_cv_HAS_UNION_SEMUN="yes"
3070
else
3071
  echo "$as_me: failed program was:" >&5
3072
cat conftest.$ac_ext >&5
3073
rtems_cv_HAS_UNION_SEMUN="no"
3074
fi
3075
rm -f conftest.$ac_objext conftest.$ac_ext
3076
 
3077
fi
3078
echo "$as_me:3078: result: $rtems_cv_HAS_UNION_SEMUN" >&5
3079
echo "${ECHO_T}$rtems_cv_HAS_UNION_SEMUN" >&6
3080
if test "$rtems_cv_HAS_UNION_SEMUN" = "yes"; then
3081
 
3082
cat >>confdefs.h <<\EOF
3083
#define HAS_UNION_SEMUN 1
3084
EOF
3085
 
3086
fi
3087
 
3088
# AC_REQUIRE([RTEMS_CANONICAL_HOST])
3089
echo "$as_me:3089: checking whether $host supports System V semaphores" >&5
3090
echo $ECHO_N "checking whether $host supports System V semaphores... $ECHO_C" >&6
3091
if test "${rtems_cv_sysv_sem+set}" = set; then
3092
  echo $ECHO_N "(cached) $ECHO_C" >&6
3093
else
3094
 
3095
if test "$cross_compiling" = yes; then
3096
  :
3097
else
3098
  cat >conftest.$ac_ext <<_ACEOF
3099
#line 3099 "configure"
3100
#include "confdefs.h"
3101
 
3102
#include 
3103
#include 
3104
#include 
3105
#if !HAS_UNION_SEMUN
3106
  union semun {
3107
    int val;
3108
    struct semid_ds *buf;
3109
    ushort *array;
3110
  } ;
3111
#endif
3112
int main () {
3113
  union semun arg ;
3114
 
3115
  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3116
  if (id == -1)
3117
    exit(1);
3118
  arg.val = 0; /* avoid implicit type cast to union */
3119
  if (semctl(id, 0, IPC_RMID, arg) == -1)
3120
    exit(1);
3121
  exit(0);
3122
}
3123
 
3124
_ACEOF
3125
rm -f conftest$ac_exeext
3126
if { (eval echo "$as_me:3126: \"$ac_link\"") >&5
3127
  (eval $ac_link) 2>&5
3128
  ac_status=$?
3129
  echo "$as_me:3129: \$? = $ac_status" >&5
3130
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3131
  { (eval echo "$as_me:3131: \"$ac_try\"") >&5
3132
  (eval $ac_try) 2>&5
3133
  ac_status=$?
3134
  echo "$as_me:3134: \$? = $ac_status" >&5
3135
  (exit $ac_status); }; }; then
3136
  rtems_cv_sysv_sem="yes"
3137
else
3138
  echo "$as_me: program exited with status $ac_status" >&5
3139
echo "$as_me: failed program was:" >&5
3140
cat conftest.$ac_ext >&5
3141
rtems_cv_sysv_sem="no"
3142
fi
3143
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3144
fi
3145
 
3146
fi
3147
echo "$as_me:3147: result: $rtems_cv_sysv_sem" >&5
3148
echo "${ECHO_T}$rtems_cv_sysv_sem" >&6
3149
 
3150
  if test "$rtems_cv_sysv_sem" != "yes" ; then
3151
    { { echo "$as_me:3151: error: System V semaphores don't work, required by simulator" >&5
3152
echo "$as_me: error: System V semaphores don't work, required by simulator" >&2;}
3153
   { (exit 1); exit 1; }; }
3154
  fi
3155
 
3156
# AC_REQUIRE([RTEMS_CANONICAL_HOST])
3157
echo "$as_me:3157: checking whether $host supports System V shared memory" >&5
3158
echo $ECHO_N "checking whether $host supports System V shared memory... $ECHO_C" >&6
3159
if test "${rtems_cv_sysv_shm+set}" = set; then
3160
  echo $ECHO_N "(cached) $ECHO_C" >&6
3161
else
3162
 
3163
if test "$cross_compiling" = yes; then
3164
  :
3165
else
3166
  cat >conftest.$ac_ext <<_ACEOF
3167
#line 3167 "configure"
3168
#include "confdefs.h"
3169
 
3170
#include 
3171
#include 
3172
#include 
3173
int main () {
3174
  int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3175
  if (id == -1)
3176
    exit(1);
3177
  if (shmctl(id, IPC_RMID, 0) == -1)
3178
    exit(1);
3179
  exit(0);
3180
}
3181
 
3182
_ACEOF
3183
rm -f conftest$ac_exeext
3184
if { (eval echo "$as_me:3184: \"$ac_link\"") >&5
3185
  (eval $ac_link) 2>&5
3186
  ac_status=$?
3187
  echo "$as_me:3187: \$? = $ac_status" >&5
3188
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189
  { (eval echo "$as_me:3189: \"$ac_try\"") >&5
3190
  (eval $ac_try) 2>&5
3191
  ac_status=$?
3192
  echo "$as_me:3192: \$? = $ac_status" >&5
3193
  (exit $ac_status); }; }; then
3194
  rtems_cv_sysv_shm="yes"
3195
else
3196
  echo "$as_me: program exited with status $ac_status" >&5
3197
echo "$as_me: failed program was:" >&5
3198
cat conftest.$ac_ext >&5
3199
rtems_cv_sysv_shm="no"
3200
fi
3201
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3202
fi
3203
 
3204
fi
3205
echo "$as_me:3205: result: $rtems_cv_sysv_shm" >&5
3206
echo "${ECHO_T}$rtems_cv_sysv_shm" >&6
3207
 
3208
  if test "$rtems_cv_sysv_shm" != "yes" ; then
3209
    { { echo "$as_me:3209: error: System V shared memory doesn't work, required by simulator" >&5
3210
echo "$as_me: error: System V shared memory doesn't work, required by simulator" >&2;}
3211
   { (exit 1); exit 1; }; }
3212
  fi
3213
 
3214
# AC_REQUIRE([RTEMS_CANONICAL_HOST])
3215
echo "$as_me:3215: checking whether $host supports System V messages" >&5
3216
echo $ECHO_N "checking whether $host supports System V messages... $ECHO_C" >&6
3217
if test "${rtems_cv_sysv_msg+set}" = set; then
3218
  echo $ECHO_N "(cached) $ECHO_C" >&6
3219
else
3220
 
3221
if test "$cross_compiling" = yes; then
3222
  :
3223
else
3224
  cat >conftest.$ac_ext <<_ACEOF
3225
#line 3225 "configure"
3226
#include "confdefs.h"
3227
 
3228
#include 
3229
#include 
3230
#include 
3231
int main () {
3232
  int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
3233
  if (id == -1)
3234
    exit(1);
3235
  if (msgctl(id, IPC_RMID, 0) == -1)
3236
    exit(1);
3237
  exit(0);
3238
}
3239
 
3240
_ACEOF
3241
rm -f conftest$ac_exeext
3242
if { (eval echo "$as_me:3242: \"$ac_link\"") >&5
3243
  (eval $ac_link) 2>&5
3244
  ac_status=$?
3245
  echo "$as_me:3245: \$? = $ac_status" >&5
3246
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3247
  { (eval echo "$as_me:3247: \"$ac_try\"") >&5
3248
  (eval $ac_try) 2>&5
3249
  ac_status=$?
3250
  echo "$as_me:3250: \$? = $ac_status" >&5
3251
  (exit $ac_status); }; }; then
3252
  rtems_cv_sysv_msg="yes"
3253
else
3254
  echo "$as_me: program exited with status $ac_status" >&5
3255
echo "$as_me: failed program was:" >&5
3256
cat conftest.$ac_ext >&5
3257
rtems_cv_sysv_msg="no"
3258
fi
3259
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3260
fi
3261
 
3262
fi
3263
echo "$as_me:3263: result: $rtems_cv_sysv_msg" >&5
3264
echo "${ECHO_T}$rtems_cv_sysv_msg" >&6
3265
 
3266
  if test "$rtems_cv_sysv_msg" != "yes" ; then
3267
    { { echo "$as_me:3267: error: System V messages don't work, required by simulator" >&5
3268
echo "$as_me: error: System V messages don't work, required by simulator" >&2;}
3269
   { (exit 1); exit 1; }; }
3270
  fi
3271
fi
3272
 
3273
fi
3274
 
3275
## The code fragment below had been used in tools/cpu/unix/gensize.c.
3276
## FIXME:
3277
## * The pad very likely is not necessary.
3278
echo "$as_me:3278: checking for CPU_CONTEXT" >&5
3279
echo $ECHO_N "checking for CPU_CONTEXT... $ECHO_C" >&6
3280
if test "${ac_cv_type_CPU_CONTEXT+set}" = set; then
3281
  echo $ECHO_N "(cached) $ECHO_C" >&6
3282
else
3283
  cat >conftest.$ac_ext <<_ACEOF
3284
#line 3284 "configure"
3285
#include "confdefs.h"
3286
 
3287
#include 
3288
#include 
3289
 
3290
typedef struct {
3291
  jmp_buf     regs;
3292
  int         isr_level;
3293
  int         pad4; /* just in case */
3294
} CPU_CONTEXT;
3295
 
3296
int
3297
main ()
3298
{
3299
if ((CPU_CONTEXT *) 0)
3300
  return 0;
3301
if (sizeof (CPU_CONTEXT))
3302
  return 0;
3303
  ;
3304
  return 0;
3305
}
3306
_ACEOF
3307
rm -f conftest.$ac_objext
3308
if { (eval echo "$as_me:3308: \"$ac_compile\"") >&5
3309
  (eval $ac_compile) 2>&5
3310
  ac_status=$?
3311
  echo "$as_me:3311: \$? = $ac_status" >&5
3312
  (exit $ac_status); } &&
3313
         { ac_try='test -s conftest.$ac_objext'
3314
  { (eval echo "$as_me:3314: \"$ac_try\"") >&5
3315
  (eval $ac_try) 2>&5
3316
  ac_status=$?
3317
  echo "$as_me:3317: \$? = $ac_status" >&5
3318
  (exit $ac_status); }; }; then
3319
  ac_cv_type_CPU_CONTEXT=yes
3320
else
3321
  echo "$as_me: failed program was:" >&5
3322
cat conftest.$ac_ext >&5
3323
ac_cv_type_CPU_CONTEXT=no
3324
fi
3325
rm -f conftest.$ac_objext conftest.$ac_ext
3326
fi
3327
echo "$as_me:3327: result: $ac_cv_type_CPU_CONTEXT" >&5
3328
echo "${ECHO_T}$ac_cv_type_CPU_CONTEXT" >&6
3329
 
3330
echo "$as_me:3330: checking size of CPU_CONTEXT" >&5
3331
echo $ECHO_N "checking size of CPU_CONTEXT... $ECHO_C" >&6
3332
if test "${ac_cv_sizeof_CPU_CONTEXT+set}" = set; then
3333
  echo $ECHO_N "(cached) $ECHO_C" >&6
3334
else
3335
  if test "$ac_cv_type_CPU_CONTEXT" = yes; then
3336
  if test "$cross_compiling" = yes; then
3337
  # Depending upon the size, compute the lo and hi bounds.
3338
cat >conftest.$ac_ext <<_ACEOF
3339
#line 3339 "configure"
3340
#include "confdefs.h"
3341
 
3342
#include 
3343
#include 
3344
 
3345
typedef struct {
3346
  jmp_buf     regs;
3347
  int         isr_level;
3348
  int         pad4; /* just in case */
3349
} CPU_CONTEXT;
3350
 
3351
int
3352
main ()
3353
{
3354
int _array_ [1 - 2 * !((sizeof (CPU_CONTEXT)) >= 0)]
3355
  ;
3356
  return 0;
3357
}
3358
_ACEOF
3359
rm -f conftest.$ac_objext
3360
if { (eval echo "$as_me:3360: \"$ac_compile\"") >&5
3361
  (eval $ac_compile) 2>&5
3362
  ac_status=$?
3363
  echo "$as_me:3363: \$? = $ac_status" >&5
3364
  (exit $ac_status); } &&
3365
         { ac_try='test -s conftest.$ac_objext'
3366
  { (eval echo "$as_me:3366: \"$ac_try\"") >&5
3367
  (eval $ac_try) 2>&5
3368
  ac_status=$?
3369
  echo "$as_me:3369: \$? = $ac_status" >&5
3370
  (exit $ac_status); }; }; then
3371
  ac_lo=0 ac_mid=0
3372
  while :; do
3373
    cat >conftest.$ac_ext <<_ACEOF
3374
#line 3374 "configure"
3375
#include "confdefs.h"
3376
 
3377
#include 
3378
#include 
3379
 
3380
typedef struct {
3381
  jmp_buf     regs;
3382
  int         isr_level;
3383
  int         pad4; /* just in case */
3384
} CPU_CONTEXT;
3385
 
3386
int
3387
main ()
3388
{
3389
int _array_ [1 - 2 * !((sizeof (CPU_CONTEXT)) <= $ac_mid)]
3390
  ;
3391
  return 0;
3392
}
3393
_ACEOF
3394
rm -f conftest.$ac_objext
3395
if { (eval echo "$as_me:3395: \"$ac_compile\"") >&5
3396
  (eval $ac_compile) 2>&5
3397
  ac_status=$?
3398
  echo "$as_me:3398: \$? = $ac_status" >&5
3399
  (exit $ac_status); } &&
3400
         { ac_try='test -s conftest.$ac_objext'
3401
  { (eval echo "$as_me:3401: \"$ac_try\"") >&5
3402
  (eval $ac_try) 2>&5
3403
  ac_status=$?
3404
  echo "$as_me:3404: \$? = $ac_status" >&5
3405
  (exit $ac_status); }; }; then
3406
  ac_hi=$ac_mid; break
3407
else
3408
  echo "$as_me: failed program was:" >&5
3409
cat conftest.$ac_ext >&5
3410
ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
3411
fi
3412
rm -f conftest.$ac_objext conftest.$ac_ext
3413
  done
3414
else
3415
  echo "$as_me: failed program was:" >&5
3416
cat conftest.$ac_ext >&5
3417
ac_hi=-1 ac_mid=-1
3418
  while :; do
3419
    cat >conftest.$ac_ext <<_ACEOF
3420
#line 3420 "configure"
3421
#include "confdefs.h"
3422
 
3423
#include 
3424
#include 
3425
 
3426
typedef struct {
3427
  jmp_buf     regs;
3428
  int         isr_level;
3429
  int         pad4; /* just in case */
3430
} CPU_CONTEXT;
3431
 
3432
int
3433
main ()
3434
{
3435
int _array_ [1 - 2 * !((sizeof (CPU_CONTEXT)) >= $ac_mid)]
3436
  ;
3437
  return 0;
3438
}
3439
_ACEOF
3440
rm -f conftest.$ac_objext
3441
if { (eval echo "$as_me:3441: \"$ac_compile\"") >&5
3442
  (eval $ac_compile) 2>&5
3443
  ac_status=$?
3444
  echo "$as_me:3444: \$? = $ac_status" >&5
3445
  (exit $ac_status); } &&
3446
         { ac_try='test -s conftest.$ac_objext'
3447
  { (eval echo "$as_me:3447: \"$ac_try\"") >&5
3448
  (eval $ac_try) 2>&5
3449
  ac_status=$?
3450
  echo "$as_me:3450: \$? = $ac_status" >&5
3451
  (exit $ac_status); }; }; then
3452
  ac_lo=$ac_mid; break
3453
else
3454
  echo "$as_me: failed program was:" >&5
3455
cat conftest.$ac_ext >&5
3456
ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
3457
fi
3458
rm -f conftest.$ac_objext conftest.$ac_ext
3459
  done
3460
fi
3461
rm -f conftest.$ac_objext conftest.$ac_ext
3462
# Binary search between lo and hi bounds.
3463
while test "x$ac_lo" != "x$ac_hi"; do
3464
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3465
  cat >conftest.$ac_ext <<_ACEOF
3466
#line 3466 "configure"
3467
#include "confdefs.h"
3468
 
3469
#include 
3470
#include 
3471
 
3472
typedef struct {
3473
  jmp_buf     regs;
3474
  int         isr_level;
3475
  int         pad4; /* just in case */
3476
} CPU_CONTEXT;
3477
 
3478
int
3479
main ()
3480
{
3481
int _array_ [1 - 2 * !((sizeof (CPU_CONTEXT)) <= $ac_mid)]
3482
  ;
3483
  return 0;
3484
}
3485
_ACEOF
3486
rm -f conftest.$ac_objext
3487
if { (eval echo "$as_me:3487: \"$ac_compile\"") >&5
3488
  (eval $ac_compile) 2>&5
3489
  ac_status=$?
3490
  echo "$as_me:3490: \$? = $ac_status" >&5
3491
  (exit $ac_status); } &&
3492
         { ac_try='test -s conftest.$ac_objext'
3493
  { (eval echo "$as_me:3493: \"$ac_try\"") >&5
3494
  (eval $ac_try) 2>&5
3495
  ac_status=$?
3496
  echo "$as_me:3496: \$? = $ac_status" >&5
3497
  (exit $ac_status); }; }; then
3498
  ac_hi=$ac_mid
3499
else
3500
  echo "$as_me: failed program was:" >&5
3501
cat conftest.$ac_ext >&5
3502
ac_lo=`expr $ac_mid + 1`
3503
fi
3504
rm -f conftest.$ac_objext conftest.$ac_ext
3505
done
3506
ac_cv_sizeof_CPU_CONTEXT=$ac_lo
3507
else
3508
  if test "$cross_compiling" = yes; then
3509
  { { echo "$as_me:3509: error: cannot run test program while cross compiling" >&5
3510
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3511
   { (exit 1); exit 1; }; }
3512
else
3513
  cat >conftest.$ac_ext <<_ACEOF
3514
#line 3514 "configure"
3515
#include "confdefs.h"
3516
 
3517
#include 
3518
#include 
3519
 
3520
typedef struct {
3521
  jmp_buf     regs;
3522
  int         isr_level;
3523
  int         pad4; /* just in case */
3524
} CPU_CONTEXT;
3525
 
3526
int
3527
main ()
3528
{
3529
FILE *f = fopen ("conftest.val", "w");
3530
if (!f)
3531
  exit (1);
3532
fprintf (f, "%d", (sizeof (CPU_CONTEXT)));
3533
fclose (f);
3534
  ;
3535
  return 0;
3536
}
3537
_ACEOF
3538
rm -f conftest$ac_exeext
3539
if { (eval echo "$as_me:3539: \"$ac_link\"") >&5
3540
  (eval $ac_link) 2>&5
3541
  ac_status=$?
3542
  echo "$as_me:3542: \$? = $ac_status" >&5
3543
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3544
  { (eval echo "$as_me:3544: \"$ac_try\"") >&5
3545
  (eval $ac_try) 2>&5
3546
  ac_status=$?
3547
  echo "$as_me:3547: \$? = $ac_status" >&5
3548
  (exit $ac_status); }; }; then
3549
  ac_cv_sizeof_CPU_CONTEXT=`cat conftest.val`
3550
else
3551
  echo "$as_me: program exited with status $ac_status" >&5
3552
echo "$as_me: failed program was:" >&5
3553
cat conftest.$ac_ext >&5
3554
fi
3555
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3556
fi
3557
fi
3558
rm -f conftest.val
3559
else
3560
  ac_cv_sizeof_CPU_CONTEXT=0
3561
fi
3562
fi
3563
echo "$as_me:3563: result: $ac_cv_sizeof_CPU_CONTEXT" >&5
3564
echo "${ECHO_T}$ac_cv_sizeof_CPU_CONTEXT" >&6
3565
cat >>confdefs.h <
3566
#define SIZEOF_CPU_CONTEXT $ac_cv_sizeof_CPU_CONTEXT
3567
EOF
3568
 
3569
# Add the stamp file to the list of files AC keeps track of,
3570
# along with our hook.
3571
ac_config_headers="$ac_config_headers rtems/score/unixsize.h"
3572
 
3573
# Explicitly list all Makefiles here
3574
ac_config_files="$ac_config_files Makefile"
3575
 
3576
cat >confcache <<\_ACEOF
3577
# This file is a shell script that caches the results of configure
3578
# tests run on this system so they can be shared between configure
3579
# scripts and configure runs, see configure's option --config-cache.
3580
# It is not useful on other systems.  If it contains results you don't
3581
# want to keep, you may remove or edit it.
3582
#
3583
# config.status only pays attention to the cache file if you give it
3584
# the --recheck option to rerun configure.
3585
#
3586
# `ac_cv_env_foo' variables (set or unset) will be overriden when
3587
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3588
# following values.
3589
 
3590
_ACEOF
3591
 
3592
# The following way of writing the cache mishandles newlines in values,
3593
# but we know of no workaround that is simple, portable, and efficient.
3594
# So, don't put newlines in cache variables' values.
3595
# Ultrix sh set writes to stderr and can't be redirected directly,
3596
# and sets the high bit in the cache file unless we assign to the vars.
3597
{
3598
  (set) 2>&1 |
3599
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3600
    *ac_space=\ *)
3601
      # `set' does not quote correctly, so add quotes (double-quote
3602
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3603
      sed -n \
3604
        "s/'/'\\\\''/g;
3605
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3606
      ;;
3607
    *)
3608
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3609
      sed -n \
3610
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3611
      ;;
3612
    esac;
3613
} |
3614
  sed '
3615
     t clear
3616
     : clear
3617
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3618
     t end
3619
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3620
     : end' >>confcache
3621
if cmp -s $cache_file confcache; then :; else
3622
  if test -w $cache_file; then
3623
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3624
    cat confcache >$cache_file
3625
  else
3626
    echo "not updating unwritable cache $cache_file"
3627
  fi
3628
fi
3629
rm -f confcache
3630
 
3631
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3632
# Let make expand exec_prefix.
3633
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3634
 
3635
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3636
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3637
# trailing colons and then remove the whole line if VPATH becomes empty
3638
# (actually we leave an empty line to preserve line numbers).
3639
if test "x$srcdir" = x.; then
3640
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
3641
s/:*\$(srcdir):*/:/;
3642
s/:*\${srcdir}:*/:/;
3643
s/:*@srcdir@:*/:/;
3644
s/^\([^=]*=[    ]*\):*/\1/;
3645
s/:*$//;
3646
s/^[^=]*=[      ]*$//;
3647
}'
3648
fi
3649
 
3650
DEFS=-DHAVE_CONFIG_H
3651
 
3652
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3653
  { { echo "$as_me:3653: error: conditional \"MAINTAINER_MODE\" was never defined.
3654
Usually this means the macro was only invoked conditionally." >&5
3655
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3656
Usually this means the macro was only invoked conditionally." >&2;}
3657
   { (exit 1); exit 1; }; }
3658
fi
3659
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
3660
  { { echo "$as_me:3660: error: conditional \"MULTILIB\" was never defined.
3661
Usually this means the macro was only invoked conditionally." >&5
3662
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
3663
Usually this means the macro was only invoked conditionally." >&2;}
3664
   { (exit 1); exit 1; }; }
3665
fi
3666
if test -z "${MULTILIB_TRUE}" && test -z "${MULTILIB_FALSE}"; then
3667
  { { echo "$as_me:3667: error: conditional \"MULTILIB\" was never defined.
3668
Usually this means the macro was only invoked conditionally." >&5
3669
echo "$as_me: error: conditional \"MULTILIB\" was never defined.
3670
Usually this means the macro was only invoked conditionally." >&2;}
3671
   { (exit 1); exit 1; }; }
3672
fi
3673
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3674
  { { echo "$as_me:3674: error: conditional \"AMDEP\" was never defined.
3675
Usually this means the macro was only invoked conditionally." >&5
3676
echo "$as_me: error: conditional \"AMDEP\" was never defined.
3677
Usually this means the macro was only invoked conditionally." >&2;}
3678
   { (exit 1); exit 1; }; }
3679
fi
3680
if test -z "${RTEMS_USE_GCC_TRUE}" && test -z "${RTEMS_USE_GCC_FALSE}"; then
3681
  { { echo "$as_me:3681: error: conditional \"RTEMS_USE_GCC\" was never defined.
3682
Usually this means the macro was only invoked conditionally." >&5
3683
echo "$as_me: error: conditional \"RTEMS_USE_GCC\" was never defined.
3684
Usually this means the macro was only invoked conditionally." >&2;}
3685
   { (exit 1); exit 1; }; }
3686
fi
3687
 
3688
: ${CONFIG_STATUS=./config.status}
3689
ac_clean_files_save=$ac_clean_files
3690
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3691
{ echo "$as_me:3691: creating $CONFIG_STATUS" >&5
3692
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3693
cat >$CONFIG_STATUS <<_ACEOF
3694
#! $SHELL
3695
# Generated automatically by configure.
3696
# Run this file to recreate the current configuration.
3697
# Compiler output produced by configure, useful for debugging
3698
# configure, is in config.log if it exists.
3699
 
3700
debug=false
3701
SHELL=\${CONFIG_SHELL-$SHELL}
3702
ac_cs_invocation="\$0 \$@"
3703
 
3704
_ACEOF
3705
 
3706
cat >>$CONFIG_STATUS <<\_ACEOF
3707
# Be Bourne compatible
3708
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3709
  emulate sh
3710
  NULLCMD=:
3711
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3712
  set -o posix
3713
fi
3714
 
3715
# Name of the executable.
3716
as_me=`echo "$0" |sed 's,.*[\\/],,'`
3717
 
3718
if expr a : '\(a\)' >/dev/null 2>&1; then
3719
  as_expr=expr
3720
else
3721
  as_expr=false
3722
fi
3723
 
3724
rm -f conf$$ conf$$.exe conf$$.file
3725
echo >conf$$.file
3726
if ln -s conf$$.file conf$$ 2>/dev/null; then
3727
  # We could just check for DJGPP; but this test a) works b) is more generic
3728
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3729
  if test -f conf$$.exe; then
3730
    # Don't use ln at all; we don't have any links
3731
    as_ln_s='cp -p'
3732
  else
3733
    as_ln_s='ln -s'
3734
  fi
3735
elif ln conf$$.file conf$$ 2>/dev/null; then
3736
  as_ln_s=ln
3737
else
3738
  as_ln_s='cp -p'
3739
fi
3740
rm -f conf$$ conf$$.exe conf$$.file
3741
 
3742
as_executable_p="test -f"
3743
 
3744
# Support unset when possible.
3745
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3746
  as_unset=unset
3747
else
3748
  as_unset=false
3749
fi
3750
 
3751
# NLS nuisances.
3752
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3753
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3754
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3755
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3756
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3757
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3758
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3759
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3760
 
3761
# IFS
3762
# We need space, tab and new line, in precisely that order.
3763
as_nl='
3764
'
3765
IFS="   $as_nl"
3766
 
3767
# CDPATH.
3768
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3769
 
3770
exec 6>&1
3771
 
3772
_ACEOF
3773
 
3774
# Files that config.status was made for.
3775
if test -n "$ac_config_files"; then
3776
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3777
fi
3778
 
3779
if test -n "$ac_config_headers"; then
3780
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3781
fi
3782
 
3783
if test -n "$ac_config_links"; then
3784
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3785
fi
3786
 
3787
if test -n "$ac_config_commands"; then
3788
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3789
fi
3790
 
3791
cat >>$CONFIG_STATUS <<\EOF
3792
 
3793
ac_cs_usage="\
3794
\`$as_me' instantiates files from templates according to the
3795
current configuration.
3796
 
3797
Usage: $0 [OPTIONS] [FILE]...
3798
 
3799
  -h, --help       print this help, then exit
3800
  -V, --version    print version number, then exit
3801
  -d, --debug      don't remove temporary files
3802
      --recheck    update $as_me by reconfiguring in the same conditions
3803
  --file=FILE[:TEMPLATE]
3804
                   instantiate the configuration file FILE
3805
  --header=FILE[:TEMPLATE]
3806
                   instantiate the configuration header FILE
3807
 
3808
Configuration files:
3809
$config_files
3810
 
3811
Configuration headers:
3812
$config_headers
3813
 
3814
Configuration commands:
3815
$config_commands
3816
 
3817
Report bugs to ."
3818
EOF
3819
 
3820
cat >>$CONFIG_STATUS <
3821
ac_cs_version="\\
3822
rtems-c-src-exec-score-cpu-unix config.status ss-20020528
3823
configured by $0, generated by GNU Autoconf 2.52,
3824
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3825
 
3826
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3827
Free Software Foundation, Inc.
3828
This config.status script is free software; the Free Software Foundation
3829
gives unlimited permission to copy, distribute and modify it."
3830
srcdir=$srcdir
3831
INSTALL="$INSTALL"
3832
EOF
3833
 
3834
cat >>$CONFIG_STATUS <<\EOF
3835
# If no file are specified by the user, then we need to provide default
3836
# value.  By we need to know if files were specified by the user.
3837
ac_need_defaults=:
3838
while test $# != 0
3839
do
3840
  case $1 in
3841
  --*=*)
3842
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3843
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3844
    shift
3845
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3846
    shift
3847
    ;;
3848
  -*);;
3849
  *) # This is not an option, so the user has probably given explicit
3850
     # arguments.
3851
     ac_need_defaults=false;;
3852
  esac
3853
 
3854
  case $1 in
3855
  # Handling of the options.
3856
EOF
3857
cat >>$CONFIG_STATUS <
3858
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3859
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3860
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3861
EOF
3862
cat >>$CONFIG_STATUS <<\EOF
3863
  --version | --vers* | -V )
3864
    echo "$ac_cs_version"; exit 0 ;;
3865
  --he | --h)
3866
    # Conflict between --help and --header
3867
    { { echo "$as_me:3867: error: ambiguous option: $1
3868
Try \`$0 --help' for more information." >&5
3869
echo "$as_me: error: ambiguous option: $1
3870
Try \`$0 --help' for more information." >&2;}
3871
   { (exit 1); exit 1; }; };;
3872
  --help | --hel | -h )
3873
    echo "$ac_cs_usage"; exit 0 ;;
3874
  --debug | --d* | -d )
3875
    debug=: ;;
3876
  --file | --fil | --fi | --f )
3877
    shift
3878
    CONFIG_FILES="$CONFIG_FILES $1"
3879
    ac_need_defaults=false;;
3880
  --header | --heade | --head | --hea )
3881
    shift
3882
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
3883
    ac_need_defaults=false;;
3884
 
3885
  # This is an error.
3886
  -*) { { echo "$as_me:3886: error: unrecognized option: $1
3887
Try \`$0 --help' for more information." >&5
3888
echo "$as_me: error: unrecognized option: $1
3889
Try \`$0 --help' for more information." >&2;}
3890
   { (exit 1); exit 1; }; } ;;
3891
 
3892
  *) ac_config_targets="$ac_config_targets $1" ;;
3893
 
3894
  esac
3895
  shift
3896
done
3897
 
3898
exec 5>>config.log
3899
cat >&5 << _ACEOF
3900
 
3901
## ----------------------- ##
3902
## Running config.status.  ##
3903
## ----------------------- ##
3904
 
3905
This file was extended by $as_me (rtems-c-src-exec-score-cpu-unix ss-20020528) 2.52, executed with
3906
  CONFIG_FILES    = $CONFIG_FILES
3907
  CONFIG_HEADERS  = $CONFIG_HEADERS
3908
  CONFIG_LINKS    = $CONFIG_LINKS
3909
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3910
  > $ac_cs_invocation
3911
on `(hostname || uname -n) 2>/dev/null | sed 1q`
3912
 
3913
_ACEOF
3914
EOF
3915
 
3916
cat >>$CONFIG_STATUS <
3917
#
3918
# INIT-COMMANDS section.
3919
#
3920
 
3921
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3922
 
3923
EOF
3924
 
3925
cat >>$CONFIG_STATUS <<\EOF
3926
for ac_config_target in $ac_config_targets
3927
do
3928
  case "$ac_config_target" in
3929
  # Handling of arguments.
3930
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3931
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3932
  "rtems/score/unixsize.h" ) CONFIG_HEADERS="$CONFIG_HEADERS rtems/score/unixsize.h" ;;
3933
  *) { { echo "$as_me:3933: error: invalid argument: $ac_config_target" >&5
3934
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3935
   { (exit 1); exit 1; }; };;
3936
  esac
3937
done
3938
 
3939
# If the user did not use the arguments to specify the items to instantiate,
3940
# then the envvar interface is used.  Set only those that are not.
3941
# We use the long form for the default assignment because of an extremely
3942
# bizarre bug on SunOS 4.1.3.
3943
if $ac_need_defaults; then
3944
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3945
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3946
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3947
fi
3948
 
3949
# Create a temporary directory, and hook for its removal unless debugging.
3950
$debug ||
3951
{
3952
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3953
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3954
}
3955
 
3956
# Create a (secure) tmp directory for tmp files.
3957
: ${TMPDIR=/tmp}
3958
{
3959
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3960
  test -n "$tmp" && test -d "$tmp"
3961
}  ||
3962
{
3963
  tmp=$TMPDIR/cs$$-$RANDOM
3964
  (umask 077 && mkdir $tmp)
3965
} ||
3966
{
3967
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3968
   { (exit 1); exit 1; }
3969
}
3970
 
3971
EOF
3972
 
3973
cat >>$CONFIG_STATUS <
3974
 
3975
#
3976
# CONFIG_FILES section.
3977
#
3978
 
3979
# No need to generate the scripts if there are no CONFIG_FILES.
3980
# This happens for instance when ./config.status config.h
3981
if test -n "\$CONFIG_FILES"; then
3982
  # Protect against being on the right side of a sed subst in config.status.
3983
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3984
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3985
s,@SHELL@,$SHELL,;t t
3986
s,@exec_prefix@,$exec_prefix,;t t
3987
s,@prefix@,$prefix,;t t
3988
s,@program_transform_name@,$program_transform_name,;t t
3989
s,@bindir@,$bindir,;t t
3990
s,@sbindir@,$sbindir,;t t
3991
s,@libexecdir@,$libexecdir,;t t
3992
s,@datadir@,$datadir,;t t
3993
s,@sysconfdir@,$sysconfdir,;t t
3994
s,@sharedstatedir@,$sharedstatedir,;t t
3995
s,@localstatedir@,$localstatedir,;t t
3996
s,@libdir@,$libdir,;t t
3997
s,@includedir@,$includedir,;t t
3998
s,@oldincludedir@,$oldincludedir,;t t
3999
s,@infodir@,$infodir,;t t
4000
s,@mandir@,$mandir,;t t
4001
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4002
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4003
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4004
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4005
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4006
s,@build_alias@,$build_alias,;t t
4007
s,@host_alias@,$host_alias,;t t
4008
s,@target_alias@,$target_alias,;t t
4009
s,@ECHO_C@,$ECHO_C,;t t
4010
s,@ECHO_N@,$ECHO_N,;t t
4011
s,@ECHO_T@,$ECHO_T,;t t
4012
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4013
s,@DEFS@,$DEFS,;t t
4014
s,@LIBS@,$LIBS,;t t
4015
s,@MAKE@,$MAKE,;t t
4016
s,@ENDIF@,$ENDIF,;t t
4017
s,@RTEMS_TOPdir@,$RTEMS_TOPdir,;t t
4018
s,@PROJECT_TOPdir@,$PROJECT_TOPdir,;t t
4019
s,@PROJECT_ROOT@,$PROJECT_ROOT,;t t
4020
s,@build@,$build,;t t
4021
s,@build_cpu@,$build_cpu,;t t
4022
s,@build_vendor@,$build_vendor,;t t
4023
s,@build_os@,$build_os,;t t
4024
s,@host@,$host,;t t
4025
s,@host_cpu@,$host_cpu,;t t
4026
s,@host_vendor@,$host_vendor,;t t
4027
s,@host_os@,$host_os,;t t
4028
s,@target@,$target,;t t
4029
s,@target_cpu@,$target_cpu,;t t
4030
s,@target_vendor@,$target_vendor,;t t
4031
s,@target_os@,$target_os,;t t
4032
s,@RTEMS_CPU@,$RTEMS_CPU,;t t
4033
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4034
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4035
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4036
s,@PACKAGE@,$PACKAGE,;t t
4037
s,@VERSION@,$VERSION,;t t
4038
s,@ACLOCAL@,$ACLOCAL,;t t
4039
s,@AUTOCONF@,$AUTOCONF,;t t
4040
s,@AUTOMAKE@,$AUTOMAKE,;t t
4041
s,@AUTOHEADER@,$AUTOHEADER,;t t
4042
s,@MAKEINFO@,$MAKEINFO,;t t
4043
s,@AMTAR@,$AMTAR,;t t
4044
s,@install_sh@,$install_sh,;t t
4045
s,@STRIP@,$STRIP,;t t
4046
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4047
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4048
s,@AWK@,$AWK,;t t
4049
s,@SET_MAKE@,$SET_MAKE,;t t
4050
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4051
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4052
s,@MAINT@,$MAINT,;t t
4053
s,@MULTILIB_TRUE@,$MULTILIB_TRUE,;t t
4054
s,@MULTILIB_FALSE@,$MULTILIB_FALSE,;t t
4055
s,@MULTIBUILDTOP@,$MULTIBUILDTOP,;t t
4056
s,@MULTISUBDIR@,$MULTISUBDIR,;t t
4057
s,@GCC_SPECS@,$GCC_SPECS,;t t
4058
s,@PROJECT_INCLUDE@,$PROJECT_INCLUDE,;t t
4059
s,@project_libdir@,$project_libdir,;t t
4060
s,@RTEMS_ROOT@,$RTEMS_ROOT,;t t
4061
s,@RTEMS_BSP@,$RTEMS_BSP,;t t
4062
s,@BARE_CPU_MODEL@,$BARE_CPU_MODEL,;t t
4063
s,@BARE_CPU_CFLAGS@,$BARE_CPU_CFLAGS,;t t
4064
s,@RTEMS_HOST@,$RTEMS_HOST,;t t
4065
s,@CC@,$CC,;t t
4066
s,@CFLAGS@,$CFLAGS,;t t
4067
s,@LDFLAGS@,$LDFLAGS,;t t
4068
s,@CPPFLAGS@,$CPPFLAGS,;t t
4069
s,@ac_ct_CC@,$ac_ct_CC,;t t
4070
s,@EXEEXT@,$EXEEXT,;t t
4071
s,@OBJEXT@,$OBJEXT,;t t
4072
s,@DEPDIR@,$DEPDIR,;t t
4073
s,@am__include@,$am__include,;t t
4074
s,@am__quote@,$am__quote,;t t
4075
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4076
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4077
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4078
s,@CCDEPMODE@,$CCDEPMODE,;t t
4079
s,@CPP@,$CPP,;t t
4080
s,@RTEMS_USE_GCC_TRUE@,$RTEMS_USE_GCC_TRUE,;t t
4081
s,@RTEMS_USE_GCC_FALSE@,$RTEMS_USE_GCC_FALSE,;t t
4082
s,@GCCSED@,$GCCSED,;t t
4083
s,@AR@,$AR,;t t
4084
s,@RANLIB@,$RANLIB,;t t
4085
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4086
s,@RTEMS_USE_NEWLIB@,$RTEMS_USE_NEWLIB,;t t
4087
CEOF
4088
 
4089
EOF
4090
 
4091
  cat >>$CONFIG_STATUS <<\EOF
4092
  # Split the substitutions into bite-sized pieces for seds with
4093
  # small command number limits, like on Digital OSF/1 and HP-UX.
4094
  ac_max_sed_lines=48
4095
  ac_sed_frag=1 # Number of current file.
4096
  ac_beg=1 # First line for current file.
4097
  ac_end=$ac_max_sed_lines # Line after last line for current file.
4098
  ac_more_lines=:
4099
  ac_sed_cmds=
4100
  while $ac_more_lines; do
4101
    if test $ac_beg -gt 1; then
4102
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4103
    else
4104
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4105
    fi
4106
    if test ! -s $tmp/subs.frag; then
4107
      ac_more_lines=false
4108
    else
4109
      # The purpose of the label and of the branching condition is to
4110
      # speed up the sed processing (if there are no `@' at all, there
4111
      # is no need to browse any of the substitutions).
4112
      # These are the two extra sed commands mentioned above.
4113
      (echo ':t
4114
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4115
      if test -z "$ac_sed_cmds"; then
4116
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4117
      else
4118
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4119
      fi
4120
      ac_sed_frag=`expr $ac_sed_frag + 1`
4121
      ac_beg=$ac_end
4122
      ac_end=`expr $ac_end + $ac_max_sed_lines`
4123
    fi
4124
  done
4125
  if test -z "$ac_sed_cmds"; then
4126
    ac_sed_cmds=cat
4127
  fi
4128
fi # test -n "$CONFIG_FILES"
4129
 
4130
EOF
4131
cat >>$CONFIG_STATUS <<\EOF
4132
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4133
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4134
  case $ac_file in
4135
  - | *:- | *:-:* ) # input from stdin
4136
        cat >$tmp/stdin
4137
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4138
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4139
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4140
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4141
  * )   ac_file_in=$ac_file.in ;;
4142
  esac
4143
 
4144
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4145
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4146
         X"$ac_file" : 'X\(//\)[^/]' \| \
4147
         X"$ac_file" : 'X\(//\)$' \| \
4148
         X"$ac_file" : 'X\(/\)' \| \
4149
         .     : '\(.\)' 2>/dev/null ||
4150
echo X"$ac_file" |
4151
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4152
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4153
          /^X\(\/\/\)$/{ s//\1/; q; }
4154
          /^X\(\/\).*/{ s//\1/; q; }
4155
          s/.*/./; q'`
4156
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4157
    { case "$ac_dir" in
4158
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4159
  *)                      as_incr_dir=.;;
4160
esac
4161
as_dummy="$ac_dir"
4162
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4163
  case $as_mkdir_dir in
4164
    # Skip DOS drivespec
4165
    ?:) as_incr_dir=$as_mkdir_dir ;;
4166
    *)
4167
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4168
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4169
    ;;
4170
  esac
4171
done; }
4172
 
4173
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4174
    # A "../" for each directory in $ac_dir_suffix.
4175
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4176
  else
4177
    ac_dir_suffix= ac_dots=
4178
  fi
4179
 
4180
  case $srcdir in
4181
  .)  ac_srcdir=.
4182
      if test -z "$ac_dots"; then
4183
         ac_top_srcdir=.
4184
      else
4185
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4186
      fi ;;
4187
  [\\/]* | ?:[\\/]* )
4188
      ac_srcdir=$srcdir$ac_dir_suffix;
4189
      ac_top_srcdir=$srcdir ;;
4190
  *) # Relative path.
4191
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4192
    ac_top_srcdir=$ac_dots$srcdir ;;
4193
  esac
4194
 
4195
  case $INSTALL in
4196
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4197
  *) ac_INSTALL=$ac_dots$INSTALL ;;
4198
  esac
4199
 
4200
  if test x"$ac_file" != x-; then
4201
    { echo "$as_me:4201: creating $ac_file" >&5
4202
echo "$as_me: creating $ac_file" >&6;}
4203
    rm -f "$ac_file"
4204
  fi
4205
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4206
  # use $as_me), people would be surprised to read:
4207
  #    /* config.h.  Generated automatically by config.status.  */
4208
  configure_input="Generated automatically from `echo $ac_file_in |
4209
                                                 sed 's,.*/,,'` by configure."
4210
 
4211
  # First look for the input files in the build tree, otherwise in the
4212
  # src tree.
4213
  ac_file_inputs=`IFS=:
4214
    for f in $ac_file_in; do
4215
      case $f in
4216
      -) echo $tmp/stdin ;;
4217
      [\\/$]*)
4218
         # Absolute (can't be DOS-style, as IFS=:)
4219
         test -f "$f" || { { echo "$as_me:4219: error: cannot find input file: $f" >&5
4220
echo "$as_me: error: cannot find input file: $f" >&2;}
4221
   { (exit 1); exit 1; }; }
4222
         echo $f;;
4223
      *) # Relative
4224
         if test -f "$f"; then
4225
           # Build tree
4226
           echo $f
4227
         elif test -f "$srcdir/$f"; then
4228
           # Source tree
4229
           echo $srcdir/$f
4230
         else
4231
           # /dev/null tree
4232
           { { echo "$as_me:4232: error: cannot find input file: $f" >&5
4233
echo "$as_me: error: cannot find input file: $f" >&2;}
4234
   { (exit 1); exit 1; }; }
4235
         fi;;
4236
      esac
4237
    done` || { (exit 1); exit 1; }
4238
EOF
4239
cat >>$CONFIG_STATUS <
4240
  sed "$ac_vpsub
4241
$extrasub
4242
EOF
4243
cat >>$CONFIG_STATUS <<\EOF
4244
:t
4245
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4246
s,@configure_input@,$configure_input,;t t
4247
s,@srcdir@,$ac_srcdir,;t t
4248
s,@top_srcdir@,$ac_top_srcdir,;t t
4249
s,@INSTALL@,$ac_INSTALL,;t t
4250
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4251
  rm -f $tmp/stdin
4252
  if test x"$ac_file" != x-; then
4253
    mv $tmp/out $ac_file
4254
  else
4255
    cat $tmp/out
4256
    rm -f $tmp/out
4257
  fi
4258
 
4259
done
4260
EOF
4261
cat >>$CONFIG_STATUS <<\EOF
4262
 
4263
#
4264
# CONFIG_HEADER section.
4265
#
4266
 
4267
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4268
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4269
#
4270
# ac_d sets the value in "#define NAME VALUE" lines.
4271
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4272
ac_dB='[        ].*$,\1#\2'
4273
ac_dC=' '
4274
ac_dD=',;t'
4275
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4276
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4277
ac_uB='$,\1#\2define\3'
4278
ac_uC=' '
4279
ac_uD=',;t'
4280
 
4281
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4282
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4283
  case $ac_file in
4284
  - | *:- | *:-:* ) # input from stdin
4285
        cat >$tmp/stdin
4286
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4287
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4288
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4289
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4290
  * )   ac_file_in=$ac_file.in ;;
4291
  esac
4292
 
4293
  test x"$ac_file" != x- && { echo "$as_me:4293: creating $ac_file" >&5
4294
echo "$as_me: creating $ac_file" >&6;}
4295
 
4296
  # First look for the input files in the build tree, otherwise in the
4297
  # src tree.
4298
  ac_file_inputs=`IFS=:
4299
    for f in $ac_file_in; do
4300
      case $f in
4301
      -) echo $tmp/stdin ;;
4302
      [\\/$]*)
4303
         # Absolute (can't be DOS-style, as IFS=:)
4304
         test -f "$f" || { { echo "$as_me:4304: error: cannot find input file: $f" >&5
4305
echo "$as_me: error: cannot find input file: $f" >&2;}
4306
   { (exit 1); exit 1; }; }
4307
         echo $f;;
4308
      *) # Relative
4309
         if test -f "$f"; then
4310
           # Build tree
4311
           echo $f
4312
         elif test -f "$srcdir/$f"; then
4313
           # Source tree
4314
           echo $srcdir/$f
4315
         else
4316
           # /dev/null tree
4317
           { { echo "$as_me:4317: error: cannot find input file: $f" >&5
4318
echo "$as_me: error: cannot find input file: $f" >&2;}
4319
   { (exit 1); exit 1; }; }
4320
         fi;;
4321
      esac
4322
    done` || { (exit 1); exit 1; }
4323
  # Remove the trailing spaces.
4324
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
4325
 
4326
EOF
4327
 
4328
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4329
# `conftest.undefs', that substitutes the proper values into
4330
# config.h.in to produce config.h.  The first handles `#define'
4331
# templates, and the second `#undef' templates.
4332
# And first: Protect against being on the right side of a sed subst in
4333
# config.status.  Protect against being in an unquoted here document
4334
# in config.status.
4335
rm -f conftest.defines conftest.undefs
4336
# Using a here document instead of a string reduces the quoting nightmare.
4337
# Putting comments in sed scripts is not portable.
4338
#
4339
# `end' is used to avoid that the second main sed command (meant for
4340
# 0-ary CPP macros) applies to n-ary macro definitions.
4341
# See the Autoconf documentation for `clear'.
4342
cat >confdef2sed.sed <<\EOF
4343
s/[\\&,]/\\&/g
4344
s,[\\$`],\\&,g
4345
t clear
4346
: clear
4347
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4348
t end
4349
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4350
: end
4351
EOF
4352
# If some macros were called several times there might be several times
4353
# the same #defines, which is useless.  Nevertheless, we may not want to
4354
# sort them, since we want the *last* AC-DEFINE to be honored.
4355
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4356
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4357
rm -f confdef2sed.sed
4358
 
4359
# This sed command replaces #undef with comments.  This is necessary, for
4360
# example, in the case of _POSIX_SOURCE, which is predefined and required
4361
# on some systems where configure will not decide to define it.
4362
cat >>conftest.undefs <<\EOF
4363
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4364
EOF
4365
 
4366
# Break up conftest.defines because some shells have a limit on the size
4367
# of here documents, and old seds have small limits too (100 cmds).
4368
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4369
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4370
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4371
echo '  :' >>$CONFIG_STATUS
4372
rm -f conftest.tail
4373
while grep . conftest.defines >/dev/null
4374
do
4375
  # Write a limited-size here document to $tmp/defines.sed.
4376
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
4377
  # Speed up: don't consider the non `#define' lines.
4378
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4379
  # Work around the forget-to-reset-the-flag bug.
4380
  echo 't clr' >>$CONFIG_STATUS
4381
  echo ': clr' >>$CONFIG_STATUS
4382
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4383
  echo 'CEOF
4384
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4385
  rm -f $tmp/in
4386
  mv $tmp/out $tmp/in
4387
' >>$CONFIG_STATUS
4388
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4389
  rm -f conftest.defines
4390
  mv conftest.tail conftest.defines
4391
done
4392
rm -f conftest.defines
4393
echo '  fi # egrep' >>$CONFIG_STATUS
4394
echo >>$CONFIG_STATUS
4395
 
4396
# Break up conftest.undefs because some shells have a limit on the size
4397
# of here documents, and old seds have small limits too (100 cmds).
4398
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4399
rm -f conftest.tail
4400
while grep . conftest.undefs >/dev/null
4401
do
4402
  # Write a limited-size here document to $tmp/undefs.sed.
4403
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
4404
  # Speed up: don't consider the non `#undef'
4405
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4406
  # Work around the forget-to-reset-the-flag bug.
4407
  echo 't clr' >>$CONFIG_STATUS
4408
  echo ': clr' >>$CONFIG_STATUS
4409
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4410
  echo 'CEOF
4411
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4412
  rm -f $tmp/in
4413
  mv $tmp/out $tmp/in
4414
' >>$CONFIG_STATUS
4415
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4416
  rm -f conftest.undefs
4417
  mv conftest.tail conftest.undefs
4418
done
4419
rm -f conftest.undefs
4420
 
4421
cat >>$CONFIG_STATUS <<\EOF
4422
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4423
  # use $as_me), people would be surprised to read:
4424
  #    /* config.h.  Generated automatically by config.status.  */
4425
  if test x"$ac_file" = x-; then
4426
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
4427
  else
4428
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
4429
  fi
4430
  cat $tmp/in >>$tmp/config.h
4431
  rm -f $tmp/in
4432
  if test x"$ac_file" != x-; then
4433
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4434
      { echo "$as_me:4434: $ac_file is unchanged" >&5
4435
echo "$as_me: $ac_file is unchanged" >&6;}
4436
    else
4437
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4438
         X"$ac_file" : 'X\(//\)[^/]' \| \
4439
         X"$ac_file" : 'X\(//\)$' \| \
4440
         X"$ac_file" : 'X\(/\)' \| \
4441
         .     : '\(.\)' 2>/dev/null ||
4442
echo X"$ac_file" |
4443
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4444
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4445
          /^X\(\/\/\)$/{ s//\1/; q; }
4446
          /^X\(\/\).*/{ s//\1/; q; }
4447
          s/.*/./; q'`
4448
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4449
        { case "$ac_dir" in
4450
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4451
  *)                      as_incr_dir=.;;
4452
esac
4453
as_dummy="$ac_dir"
4454
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4455
  case $as_mkdir_dir in
4456
    # Skip DOS drivespec
4457
    ?:) as_incr_dir=$as_mkdir_dir ;;
4458
    *)
4459
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4460
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4461
    ;;
4462
  esac
4463
done; }
4464
 
4465
      fi
4466
      rm -f $ac_file
4467
      mv $tmp/config.h $ac_file
4468
    fi
4469
  else
4470
    cat $tmp/config.h
4471
    rm -f $tmp/config.h
4472
  fi
4473
  # Run the commands associated with the file.
4474
  case $ac_file in
4475
    rtems/score/unixsize.h ) # update the timestamp
4476
echo 'timestamp for rtems/score/unixsize.h' >"rtems/score/stamp-h1"
4477
 ;;
4478
  esac
4479
done
4480
EOF
4481
cat >>$CONFIG_STATUS <<\EOF
4482
 
4483
#
4484
# CONFIG_COMMANDS section.
4485
#
4486
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4487
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4488
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4489
 
4490
  case $ac_dest in
4491
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4492
  # Strip MF so we end up with the name of the file.
4493
  mf=`echo "$mf" | sed -e 's/:.*$//'`
4494
  # Check whether this is an Automake generated Makefile or not.
4495
  # We used to match only the files named `Makefile.in', but
4496
  # some people rename them; so instead we look at the file content.
4497
  # Grep'ing the first line is not enough: some people post-process
4498
  # each Makefile.in and add a new line on top of each file to say so.
4499
  # So let's grep whole file.
4500
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4501
    dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4502
         X"$mf" : 'X\(//\)[^/]' \| \
4503
         X"$mf" : 'X\(//\)$' \| \
4504
         X"$mf" : 'X\(/\)' \| \
4505
         .     : '\(.\)' 2>/dev/null ||
4506
echo X"$mf" |
4507
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4508
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4509
          /^X\(\/\/\)$/{ s//\1/; q; }
4510
          /^X\(\/\).*/{ s//\1/; q; }
4511
          s/.*/./; q'`
4512
  else
4513
    continue
4514
  fi
4515
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4516
  # Extract the definition of DEP_FILES from the Makefile without
4517
  # running `make'.
4518
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4519
  test -z "$DEPDIR" && continue
4520
  # When using ansi2knr, U may be empty or an underscore; expand it
4521
  U=`sed -n -e '/^U = / s///p' < "$mf"`
4522
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4523
  # We invoke sed twice because it is the simplest approach to
4524
  # changing $(DEPDIR) to its actual value in the expansion.
4525
  for file in `sed -n -e '
4526
    /^DEP_FILES = .*\\\\$/ {
4527
      s/^DEP_FILES = //
4528
      :loop
4529
        s/\\\\$//
4530
        p
4531
        n
4532
        /\\\\$/ b loop
4533
      p
4534
    }
4535
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4536
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4537
    # Make sure the directory exists.
4538
    test -f "$dirpart/$file" && continue
4539
    fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4540
         X"$file" : 'X\(//\)[^/]' \| \
4541
         X"$file" : 'X\(//\)$' \| \
4542
         X"$file" : 'X\(/\)' \| \
4543
         .     : '\(.\)' 2>/dev/null ||
4544
echo X"$file" |
4545
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4546
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4547
          /^X\(\/\/\)$/{ s//\1/; q; }
4548
          /^X\(\/\).*/{ s//\1/; q; }
4549
          s/.*/./; q'`
4550
    { case $dirpart/$fdir in
4551
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4552
  *)                      as_incr_dir=.;;
4553
esac
4554
as_dummy=$dirpart/$fdir
4555
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4556
  case $as_mkdir_dir in
4557
    # Skip DOS drivespec
4558
    ?:) as_incr_dir=$as_mkdir_dir ;;
4559
    *)
4560
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4561
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4562
    ;;
4563
  esac
4564
done; }
4565
 
4566
    # echo "creating $dirpart/$file"
4567
    echo '# dummy' > "$dirpart/$file"
4568
  done
4569
done
4570
 ;;
4571
  esac
4572
done
4573
EOF
4574
 
4575
cat >>$CONFIG_STATUS <<\EOF
4576
 
4577
{ (exit 0); exit 0; }
4578
EOF
4579
chmod +x $CONFIG_STATUS
4580
ac_clean_files=$ac_clean_files_save
4581
 
4582
# configure is writing to config.log, and then calls config.status.
4583
# config.status does its own redirection, appending to config.log.
4584
# Unfortunately, on DOS this fails, as config.log is still kept open
4585
# by configure, so config.status won't be able to write to it; its
4586
# output is simply discarded.  So we exec the FD to /dev/null,
4587
# effectively closing config.log, so it can be properly (re)opened and
4588
# appended to by config.status.  When coming back to configure, we
4589
# need to make the FD available again.
4590
if test "$no_create" != yes; then
4591
  ac_cs_success=:
4592
  exec 5>/dev/null
4593
  $SHELL $CONFIG_STATUS || ac_cs_success=false
4594
  exec 5>>config.log
4595
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4596
  # would make configure fail if this is the last instruction.
4597
  $ac_cs_success || { (exit 1); exit 1; }
4598
fi
4599
 

powered by: WebSVN 2.1.0

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