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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [wrapup/] [configure] - Blame information for rev 1780

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

powered by: WebSVN 2.1.0

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